tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git 
WIP.sched/core
head:   bb3aa6d89286e954fc5c670413c762dca3f4cc44
commit: 8c5e90d837fb1b1b0dda3db559b97bdab9c62853 [19/20] sched/headers: 
Simplify and clean up header usage in the scheduler
config: tile-tilegx_defconfig (attached as .config)
compiler: tilegx-linux-gcc (GCC) 7.2.0
reproduce:
        wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 8c5e90d837fb1b1b0dda3db559b97bdab9c62853
        # save the attached .config to linux build tree
        make.cross ARCH=tile 

All warnings (new ones prefixed by >>):

   In file included from kernel/sched/core.c:10:0:
>> arch/tile/include/asm/switch_to.h:36:0: warning: "prepare_arch_switch" 
>> redefined
    #define prepare_arch_switch(next) _prepare_arch_switch(next)
    
   In file included from kernel/sched/core.c:8:0:
   kernel/sched/sched.h:1392:0: note: this is the location of the previous 
definition
    # define prepare_arch_switch(next) do { } while (0)
    
   In file included from kernel/sched/core.c:10:0:
>> arch/tile/include/asm/switch_to.h:58:0: warning: 
>> "finish_arch_post_lock_switch" redefined
    #define finish_arch_post_lock_switch() do {                               \
    
   In file included from kernel/sched/core.c:8:0:
   kernel/sched/sched.h:1395:0: note: this is the location of the previous 
definition
    # define finish_arch_post_lock_switch() do { } while (0)
    
--
   In file included from kernel//sched/core.c:10:0:
>> arch/tile/include/asm/switch_to.h:36:0: warning: "prepare_arch_switch" 
>> redefined
    #define prepare_arch_switch(next) _prepare_arch_switch(next)
    
   In file included from kernel//sched/core.c:8:0:
   kernel//sched/sched.h:1392:0: note: this is the location of the previous 
definition
    # define prepare_arch_switch(next) do { } while (0)
    
   In file included from kernel//sched/core.c:10:0:
>> arch/tile/include/asm/switch_to.h:58:0: warning: 
>> "finish_arch_post_lock_switch" redefined
    #define finish_arch_post_lock_switch() do {                               \
    
   In file included from kernel//sched/core.c:8:0:
   kernel//sched/sched.h:1395:0: note: this is the location of the previous 
definition
    # define finish_arch_post_lock_switch() do { } while (0)
    

vim +/prepare_arch_switch +36 arch/tile/include/asm/switch_to.h

bd119c69 David Howells 2012-03-28  32  
bd119c69 David Howells 2012-03-28  33  /*
bd119c69 David Howells 2012-03-28  34   * Pause the DMA engine and static 
network before task switching.
bd119c69 David Howells 2012-03-28  35   */
bd119c69 David Howells 2012-03-28 @36  #define prepare_arch_switch(next) 
_prepare_arch_switch(next)
bd119c69 David Howells 2012-03-28  37  void _prepare_arch_switch(struct 
task_struct *next);
bd119c69 David Howells 2012-03-28  38  
bd119c69 David Howells 2012-03-28  39  struct task_struct;
bd119c69 David Howells 2012-03-28  40  #define switch_to(prev, next, last) 
((last) = _switch_to((prev), (next)))
bd119c69 David Howells 2012-03-28  41  extern struct task_struct 
*_switch_to(struct task_struct *prev,
bd119c69 David Howells 2012-03-28  42                                 struct 
task_struct *next);
bd119c69 David Howells 2012-03-28  43  
bd119c69 David Howells 2012-03-28  44  /* Helper function for _switch_to(). */
bd119c69 David Howells 2012-03-28  45  extern struct task_struct 
*__switch_to(struct task_struct *prev,
bd119c69 David Howells 2012-03-28  46                                  struct 
task_struct *next,
bd119c69 David Howells 2012-03-28  47                                  unsigned 
long new_system_save_k_0);
bd119c69 David Howells 2012-03-28  48  
bd119c69 David Howells 2012-03-28  49  /* Address that switched-away from tasks 
are at. */
bd119c69 David Howells 2012-03-28  50  extern unsigned long 
get_switch_to_pc(void);
bd119c69 David Howells 2012-03-28  51  
bd119c69 David Howells 2012-03-28  52  /*
bd119c69 David Howells 2012-03-28  53   * Kernel threads can check to see if 
they need to migrate their
bd119c69 David Howells 2012-03-28  54   * stack whenever they return from a 
context switch; for user
bd119c69 David Howells 2012-03-28  55   * threads, we defer until they are 
returning to user-space.
fe363adb Chris Metcalf 2015-07-29  56   * We defer homecache migration until 
the runqueue lock is released.
bd119c69 David Howells 2012-03-28  57   */
fe363adb Chris Metcalf 2015-07-29 @58  #define finish_arch_post_lock_switch() 
do {                               \
1eaef888 Chris Metcalf 2015-08-05  59   __insn_mtspr(SPR_SIM_CONTROL, 
SIM_CONTROL_OS_SWITCH |             \
1eaef888 Chris Metcalf 2015-08-05  60           (current->pid << 
_SIM_CONTROL_OPERATOR_BITS));            \
bd119c69 David Howells 2012-03-28  61   if (current->mm == NULL && !kstack_hash 
&&                        \
fe363adb Chris Metcalf 2015-07-29  62       
current_thread_info()->homecache_cpu != raw_smp_processor_id()) \
bd119c69 David Howells 2012-03-28  63           homecache_migrate_kthread();    
                          \
bd119c69 David Howells 2012-03-28  64  } while (0)
bd119c69 David Howells 2012-03-28  65  

:::::: The code at line 36 was first introduced by commit
:::::: bd119c69239322caafdb64517a806037d0d0c70a Disintegrate asm/system.h for 
Tile

:::::: TO: David Howells <[email protected]>
:::::: CC: David Howells <[email protected]>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

Reply via email to