Skip to content

Commit c978b01

Browse files
htakataLinus Torvalds
authored andcommitted
[PATCH] m32r: fix #if warnings
Fix warnings for #if directives. Signed-off-by: Hirokazu Takata <takata@linux-m32r.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent baa0b84 commit c978b01

2 files changed

Lines changed: 13 additions & 13 deletions

File tree

‎arch/m32r/kernel/setup.c‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -305,19 +305,19 @@ static int show_cpuinfo(struct seq_file *m, void *v)
305305

306306
seq_printf(m, "processor\t: %ld\n", cpu);
307307

308-
#ifdef CONFIG_CHIP_VDEC2
308+
#if defined(CONFIG_CHIP_VDEC2)
309309
seq_printf(m, "cpu family\t: VDEC2\n"
310310
"cache size\t: Unknown\n");
311-
#elif CONFIG_CHIP_M32700
311+
#elif defined(CONFIG_CHIP_M32700)
312312
seq_printf(m,"cpu family\t: M32700\n"
313313
"cache size\t: I-8KB/D-8KB\n");
314-
#elif CONFIG_CHIP_M32102
314+
#elif defined(CONFIG_CHIP_M32102)
315315
seq_printf(m,"cpu family\t: M32102\n"
316316
"cache size\t: I-8KB\n");
317-
#elif CONFIG_CHIP_OPSP
317+
#elif defined(CONFIG_CHIP_OPSP)
318318
seq_printf(m,"cpu family\t: OPSP\n"
319319
"cache size\t: I-8KB/D-8KB\n");
320-
#elif CONFIG_CHIP_MP
320+
#elif defined(CONFIG_CHIP_MP)
321321
seq_printf(m, "cpu family\t: M32R-MP\n"
322322
"cache size\t: I-xxKB/D-xxKB\n");
323323
#else
@@ -326,19 +326,19 @@ static int show_cpuinfo(struct seq_file *m, void *v)
326326
seq_printf(m, "bogomips\t: %lu.%02lu\n",
327327
c->loops_per_jiffy/(500000/HZ),
328328
(c->loops_per_jiffy/(5000/HZ)) % 100);
329-
#ifdef CONFIG_PLAT_MAPPI
329+
#if defined(CONFIG_PLAT_MAPPI)
330330
seq_printf(m, "Machine\t\t: Mappi Evaluation board\n");
331-
#elif CONFIG_PLAT_MAPPI2
331+
#elif defined(CONFIG_PLAT_MAPPI2)
332332
seq_printf(m, "Machine\t\t: Mappi-II Evaluation board\n");
333-
#elif CONFIG_PLAT_MAPPI3
333+
#elif defined(CONFIG_PLAT_MAPPI3)
334334
seq_printf(m, "Machine\t\t: Mappi-III Evaluation board\n");
335-
#elif CONFIG_PLAT_M32700UT
335+
#elif defined(CONFIG_PLAT_M32700UT)
336336
seq_printf(m, "Machine\t\t: M32700UT Evaluation board\n");
337-
#elif CONFIG_PLAT_OPSPUT
337+
#elif defined(CONFIG_PLAT_OPSPUT)
338338
seq_printf(m, "Machine\t\t: OPSPUT Evaluation board\n");
339-
#elif CONFIG_PLAT_USRV
339+
#elif defined(CONFIG_PLAT_USRV)
340340
seq_printf(m, "Machine\t\t: uServer\n");
341-
#elif CONFIG_PLAT_OAKS32R
341+
#elif defined(CONFIG_PLAT_OAKS32R)
342342
seq_printf(m, "Machine\t\t: OAKS32R\n");
343343
#else
344344
seq_printf(m, "Machine\t\t: Unknown\n");

‎include/asm-m32r/thread_info.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ static inline struct thread_info *current_thread_info(void)
9595
}
9696

9797
/* thread information allocation */
98-
#if CONFIG_DEBUG_STACK_USAGE
98+
#ifdef CONFIG_DEBUG_STACK_USAGE
9999
#define alloc_thread_info(tsk) \
100100
({ \
101101
struct thread_info *ret; \

0 commit comments

Comments
 (0)