public inbox for llvm@lists.linux.dev
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Vimal Agrawal <avimalin@gmail.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org, 0day robot <lkp@intel.com>
Subject: kernel/module.c:4213:6: warning: no previous prototype for function 'match_address_layout'
Date: Wed, 9 Feb 2022 01:54:06 +0800	[thread overview]
Message-ID: <202202090113.JTGTQqUD-lkp@intel.com> (raw)

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@intel.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

                 reply	other threads:[~2022-02-08 17:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202202090113.JTGTQqUD-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=avimalin@gmail.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=llvm@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox