]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
m68knommu: fix size of address field for 5272 interrupt controller
authorGreg Ungerer <gerg@uclinux.org>
Thu, 28 Aug 2014 04:39:45 +0000 (14:39 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Sun, 28 Sep 2014 23:18:36 +0000 (09:18 +1000)
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 d72a5abb ("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>
arch/m68k/coldfire/intc-5272.c

index d7b695629a7e3e2014a38189bf71d7bc403bcc1e..d1e2fbad327cecaa4c785e4b270177a6c030cbb5 100644 (file)
@@ -36,7 +36,7 @@
  * they also need acknowledging via acknowledge bits.
  */
 struct irqmap {
-       unsigned char   icr;
+       unsigned int    icr;
        unsigned char   index;
        unsigned char   ack;
 };