Skip to content

Commit ecb6bdc

Browse files
committed
m68knommu: fix size of address field for 5272 interrupt controller
Picked up by the 0-day buidler: All warnings: >> arch/m68k/coldfire/intc-5272.c:46:20: warning: large integer implicitly truncated to unsigned type [-Woverflow] /*MCF_IRQ_EINT1*/ { .icr = MCFSIM_ICR1, .index = 28, .ack = 1, }, ... The problem stems from the changes to make all ColdFire register addresses absolute, in commit d72a5ab ("make remaining ColdFire 5272 register definitions absolute"). That change did not take into account that the addresses were stored as offsets in the irqmap of the intc-5272.c code. Make the field that now stores register addresses big enough to hold addresses. Signed-off-by: Greg Ungerer <gerg@uclinux.org>
1 parent 6f4a885 commit ecb6bdc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/m68k/coldfire/intc-5272.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* they also need acknowledging via acknowledge bits.
3737
*/
3838
struct irqmap {
39-
unsigned char icr;
39+
unsigned int icr;
4040
unsigned char index;
4141
unsigned char ack;
4242
};

0 commit comments

Comments
 (0)