Skip to content

Commit 72e70a0

Browse files
committed
m68k: sun3: Change led_pattern[] to unsigned char
The values stored in led_pattern[] are only used for passing to sun3_leds(), which takes an "unsigned char". Change the type of led_pattern[] accordingly, to reduce kernel size. Signed-off-by: Geert Uytterhoeven <[email protected]> Link: https://lore.kernel.org/r/794c5d543dbdae8336a13ef2459adafaaadb7d86.1695031620.git.geert@linux-m68k.org
1 parent ec17748 commit 72e70a0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

arch/m68k/sun3/sun3ints.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@ void sun3_enable_interrupts(void)
2929
sun3_enable_irq(0);
3030
}
3131

32-
static int led_pattern[8] = {
33-
~(0x80), ~(0x01),
34-
~(0x40), ~(0x02),
35-
~(0x20), ~(0x04),
36-
~(0x10), ~(0x08)
32+
static unsigned char led_pattern[8] = {
33+
(u8)~(0x80), (u8)~(0x01),
34+
(u8)~(0x40), (u8)~(0x02),
35+
(u8)~(0x20), (u8)~(0x04),
36+
(u8)~(0x10), (u8)~(0x08)
3737
};
3838

3939
volatile unsigned char* sun3_intreg;

0 commit comments

Comments
 (0)