public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
* [jarkko-tpmdd:kprobes 3/3] arch/arm/kernel/module_alloc.c:24:7: warning: no previous prototype for function 'module_alloc'
@ 2022-06-10 23:04 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-06-10 23:04 UTC (permalink / raw)
  To: Jarkko Sakkinen; +Cc: llvm, kbuild-all, linux-kernel

tree:   git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git kprobes
head:   8a45ec8f64f51131c2e98dcb9ee56edf0ca0a0b3
commit: 8a45ec8f64f51131c2e98dcb9ee56edf0ca0a0b3 [3/3] kprobes: Enable tracing for mololithic kernel images
config: arm-mxs_defconfig (https://download.01.org/0day-ci/archive/20220611/202206110716.TCuKUFdZ-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 70d35fe1257e429266b83025997b400e9f79110e)
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 arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        # https://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git/commit/?id=8a45ec8f64f51131c2e98dcb9ee56edf0ca0a0b3
        git remote add jarkko-tpmdd git://git.kernel.org/pub/scm/linux/kernel/git/jarkko/linux-tpmdd.git
        git fetch --no-tags jarkko-tpmdd kprobes
        git checkout 8a45ec8f64f51131c2e98dcb9ee56edf0ca0a0b3
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash arch/arm/kernel/

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

All warnings (new ones prefixed by >>):

>> arch/arm/kernel/module_alloc.c:24:7: warning: no previous prototype for function 'module_alloc' [-Wmissing-prototypes]
   void *module_alloc(unsigned long size)
         ^
   arch/arm/kernel/module_alloc.c:24:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void *module_alloc(unsigned long size)
   ^
   static 
   1 warning generated.


vim +/module_alloc +24 arch/arm/kernel/module_alloc.c

    22	
    23	#ifdef CONFIG_MMU
  > 24	void *module_alloc(unsigned long size)

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

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

only message in thread, other threads:[~2022-06-10 23:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-10 23:04 [jarkko-tpmdd:kprobes 3/3] arch/arm/kernel/module_alloc.c:24:7: warning: no previous prototype for function 'module_alloc' kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox