lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Wed, 9 Feb 2022 01:54:06 +0800
From:   kernel test robot <lkp@...el.com>
To:     Vimal Agrawal <avimalin@...il.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org, 0day robot <lkp@...el.com>
Subject: kernel/module.c:4213:6: warning: no previous prototype for function
 'match_address_layout'

tree:   https://github.com/0day-ci/linux/commits/UPDATE-20220208-194118/Vimal-Agrawal/kernel-module-c-heuristic-enhancement-when-INSTALL_MOD_STRIP-strip-unneeded-is-used/20211222-212507
head:   8e6e1487d86e7fe625a0c64a5c3f4c6fc6a58a48
commit: 8e6e1487d86e7fe625a0c64a5c3f4c6fc6a58a48 modules: add heuristic when stripping unneeded symbols
date:   6 hours ago
config: s390-randconfig-r044-20220208 (https://download.01.org/0day-ci/archive/20220209/202202090113.JTGTQqUD-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project e8bff9ae54a55b4dbfeb6ba55f723abbd81bf494)
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 s390 cross compiling tool for clang build
        # apt-get install binutils-s390x-linux-gnu
        # https://github.com/0day-ci/linux/commit/8e6e1487d86e7fe625a0c64a5c3f4c6fc6a58a48
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review UPDATE-20220208-194118/Vimal-Agrawal/kernel-module-c-heuristic-enhancement-when-INSTALL_MOD_STRIP-strip-unneeded-is-used/20211222-212507
        git checkout 8e6e1487d86e7fe625a0c64a5c3f4c6fc6a58a48
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=s390 SHELL=/bin/bash

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

All warnings (new ones prefixed by >>):

>> kernel/module.c:4213:6: warning: no previous prototype for function 'match_address_layout' [-Wmissing-prototypes]
   bool match_address_layout(struct module *mod, unsigned long addr, bool init)
        ^
   kernel/module.c:4213:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   bool match_address_layout(struct module *mod, unsigned long addr, bool init)
   ^
   static 
   1 warning generated.


vim +/match_address_layout +4213 kernel/module.c

  4207	
  4208	/*
  4209	 * Check if module address (addr) passed is as per init passed
  4210	 * if init is true then check in init layout
  4211	 * else check in core layout
  4212	 */
> 4213	bool match_address_layout(struct module *mod, unsigned long addr, bool init)
  4214	{
  4215		if (init)
  4216			return within_module_init(addr, mod);
  4217		else
  4218			return within_module_core(addr, mod);
  4219	}
  4220	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ