All of lore.kernel.org
 help / color / mirror / Atom feed
* [android-common:android-4.19 2/4] kernel/sched/stubs.c:8:5: warning: no previous prototype for function 'sched_isolate_cpu'
@ 2020-10-20  6:27 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-20  6:27 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 4167 bytes --]

tree:   https://android.googlesource.com/kernel/common android-4.19
head:   3b0049b82ec6cd95fa85bd21fb1416de5e82183a
commit: eead51495c8760858c32d9ad0332ffc94397aa82 [2/4] ANDROID: GKI: sched: stub sched_isolate symbols
config: x86_64-randconfig-a016-20201019 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ea693a162786d933863ab079648d4261ac0ead47)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        git remote add android-common https://android.googlesource.com/kernel/common
        git fetch --no-tags android-common android-4.19
        git checkout eead51495c8760858c32d9ad0332ffc94397aa82
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All warnings (new ones prefixed by >>):

   In file included from kernel/sched/stubs.c:6:
   kernel/sched/sched.h:1158:15: warning: variable 'cookie' is uninitialized when used here [-Wuninitialized]
           rf->cookie = lockdep_pin_lock(&rq->lock);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/lockdep.h:455:60: note: expanded from macro 'lockdep_pin_lock'
   #define lockdep_pin_lock(l)                     ({ struct pin_cookie cookie; cookie; })
                                                                                ^~~~~~
   kernel/sched/sched.h:1158:15: note: variable 'cookie' is declared here
   include/linux/lockdep.h:455:34: note: expanded from macro 'lockdep_pin_lock'
   #define lockdep_pin_lock(l)                     ({ struct pin_cookie cookie; cookie; })
                                                      ^
>> kernel/sched/stubs.c:8:5: warning: no previous prototype for function 'sched_isolate_cpu' [-Wmissing-prototypes]
   int sched_isolate_cpu(int cpu)
       ^
   kernel/sched/stubs.c:8:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int sched_isolate_cpu(int cpu)
   ^
   static 
>> kernel/sched/stubs.c:14:5: warning: no previous prototype for function 'sched_unisolate_cpu_unlocked' [-Wmissing-prototypes]
   int sched_unisolate_cpu_unlocked(int cpu)
       ^
   kernel/sched/stubs.c:14:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int sched_unisolate_cpu_unlocked(int cpu)
   ^
   static 
>> kernel/sched/stubs.c:20:5: warning: no previous prototype for function 'sched_unisolate_cpu' [-Wmissing-prototypes]
   int sched_unisolate_cpu(int cpu)
       ^
   kernel/sched/stubs.c:20:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int sched_unisolate_cpu(int cpu)
   ^
   static 
>> kernel/sched/stubs.c:26:5: warning: no previous prototype for function 'set_task_boost' [-Wmissing-prototypes]
   int set_task_boost(int boost, u64 period)
       ^
   kernel/sched/stubs.c:26:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int set_task_boost(int boost, u64 period)
   ^
   static 
   5 warnings generated.

vim +/sched_isolate_cpu +8 kernel/sched/stubs.c

     7	
   > 8	int sched_isolate_cpu(int cpu)
     9	{
    10		return -EINVAL;
    11	}
    12	EXPORT_SYMBOL_GPL(sched_isolate_cpu);
    13	
  > 14	int sched_unisolate_cpu_unlocked(int cpu)
    15	{
    16		return -EINVAL;
    17	}
    18	EXPORT_SYMBOL_GPL(sched_unisolate_cpu_unlocked);
    19	
  > 20	int sched_unisolate_cpu(int cpu)
    21	{
    22		return -EINVAL;
    23	}
    24	EXPORT_SYMBOL_GPL(sched_unisolate_cpu);
    25	
  > 26	int set_task_boost(int boost, u64 period)

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 28464 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-20  6:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-20  6:27 [android-common:android-4.19 2/4] kernel/sched/stubs.c:8:5: warning: no previous prototype for function 'sched_isolate_cpu' kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.