Skip to content

Commit 46d4e5a

Browse files
Chunyan Zhangpalmer-dabbelt
authored andcommitted
riscv: Remove unused GENERATING_ASM_OFFSETS
The macro is not used in the current version of kernel, it looks like can be removed to avoid a build warning: ../arch/riscv/kernel/asm-offsets.c: At top level: ../arch/riscv/kernel/asm-offsets.c:7: warning: macro "GENERATING_ASM_OFFSETS" is not used [-Wunused-macros] 7 | #define GENERATING_ASM_OFFSETS Fixes: 9639a44 ("RISC-V: Provide a cleaner raw_smp_processor_id()") Cc: [email protected] Reviewed-by: Alexandre Ghiti <[email protected]> Tested-by: Alexandre Ghiti <[email protected]> Signed-off-by: Chunyan Zhang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent e0872ab commit 46d4e5a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/riscv/kernel/asm-offsets.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
* Copyright (C) 2017 SiFive
55
*/
66

7-
#define GENERATING_ASM_OFFSETS
8-
97
#include <linux/kbuild.h>
108
#include <linux/mm.h>
119
#include <linux/sched.h>

0 commit comments

Comments
 (0)