Skip to contentSkip to conversation

arch/s390/include/asm/mmu_context.h:111:0: warning:

PATCH Sergey Senozhatsky 1 participant 1 message Dec 8, 2017 1 message not in the archive s390

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 20171208070523.5c225699@mschwideX1

#1 lore raw
Quoted 18 lines · Martin Schwidefsky
Quoted 18 lines · Sergey Senozhatsky
Quoted 15 lines · kbuild test robot
Quoted 13 lines

All warnings (new ones prefixed by >>):

   In file included from arch/s390/include/asm/elf.h:141:0,
                    from include/linux/elf.h:5,
                    from include/linux/module.h:15,
                    from include/linux/kallsyms.h:13,
                    from kernel//sched/autogroup.c:6:  
Quoted 1 line
Quoted 1 line

arch/s390/include/asm/mmu_context.h:111:0: warning: "finish_arch_post_lock_switch" redefined

    #define finish_arch_post_lock_switch finish_arch_post_lock_switch

In file included from kernel//sched/autogroup.c:2:0:
kernel//sched/sched.h:1328:0: note: this is the location of the previous definition

    # define finish_arch_post_lock_switch() do { } while (0)  
Quoted 5 lines
Quoted 1 line

any chance you can help us out?

Move the include of "sched.h" in autogroup.c after all the other includes. For the #ifndef in sched.h to work the arch specific definition in mmu_context.h needs to be seen first.

yes, makes sense. care to submit a patch?

for now on I sent out a patch that removes the problematic kallsyms.h include from autogroup.c, it doesn't need it anyway. but I agree that that shed.h include [I didn't even notice it until you pointed that out] better be the last one, indeed.

	-ss