]> Git Repo - linux.git/commitdiff
h8300: fix PREEMPTION build, TI_PRE_COUNT undefined
authorRandy Dunlap <[email protected]>
Sat, 13 Feb 2021 04:52:54 +0000 (20:52 -0800)
committerLinus Torvalds <[email protected]>
Sat, 13 Feb 2021 19:42:40 +0000 (11:42 -0800)
Fix a build error for undefined 'TI_PRE_COUNT' by adding it to
asm-offsets.c.

  h8300-linux-ld: arch/h8300/kernel/entry.o: in function `resume_kernel': (.text+0x29a): undefined reference to `TI_PRE_COUNT'

Link: https://lkml.kernel.org/r/[email protected]
Fixes: df2078b8daa7 ("h8300: Low level entry")
Signed-off-by: Randy Dunlap <[email protected]>
Reported-by: kernel test robot <[email protected]>
Cc: Yoshinori Sato <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
arch/h8300/kernel/asm-offsets.c

index 85e60509f0a839e9bbf678674d3f1f273ac80359..d4b53af657c840cdb237c8aec2a362324d161a4b 100644 (file)
@@ -63,6 +63,9 @@ int main(void)
        OFFSET(TI_FLAGS, thread_info, flags);
        OFFSET(TI_CPU, thread_info, cpu);
        OFFSET(TI_PRE, thread_info, preempt_count);
+#ifdef CONFIG_PREEMPTION
+       DEFINE(TI_PRE_COUNT, offsetof(struct thread_info, preempt_count));
+#endif
 
        return 0;
 }
This page took 0.057745 seconds and 4 git commands to generate.