mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Ilya Leoshkevich <iii@linux.ibm.com>
Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org,
	linux-kernel@vger.kernel.org, Heiko Carstens <hca@linux.ibm.com>
Subject: arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0000'
Date: Mon, 31 Jan 2022 06:28:45 +0800	[thread overview]
Message-ID: <202201310518.38Y3LnES-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   cb323ee75d24e7acc2f188d123ba6df46159cf09
commit: 90c5318795eefa09a9f9aef8d18a904e24962b5c s390/module: test loading modules with a lot of relocations
date:   7 days ago
config: s390-randconfig-r002-20220129 (https://download.01.org/0day-ci/archive/20220131/202201310518.38Y3LnES-lkp@intel.com/config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 33b45ee44b1f32ffdbc995e6fec806271b4b3ba4)
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://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=90c5318795eefa09a9f9aef8d18a904e24962b5c
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 90c5318795eefa09a9f9aef8d18a904e24962b5c
        # 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 >>):

>> arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0000' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   REPEAT_10000(DEFINE_RETURN);
                ^
   static 
   arch/s390/lib/test_modules.h:39:19: note: expanded from macro 'REPEAT_10000'
           __REPEAT_10000_1(f, 0); \
                            ^
   arch/s390/lib/test_modules.h:28:19: note: expanded from macro '__REPEAT_10000_1'
           __REPEAT_10000_2(f, x ## 0); \
                            ^
   arch/s390/lib/test_modules.h:17:19: note: expanded from macro '__REPEAT_10000_2'
           __REPEAT_10000_3(f, x ## 0); \
                            ^
   arch/s390/lib/test_modules.h:6:2: note: expanded from macro '__REPEAT_10000_3'
           f(x ## 0); \
           ^
   arch/s390/lib/test_modules_helpers.c:8:2: note: expanded from macro 'DEFINE_RETURN'
           int test_modules_return_ ## i(void) \
           ^
>> arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0001' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
>> arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0002' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
>> arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0003' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
>> arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0004' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
>> arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0005' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
>> arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0006' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
>> arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0007' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
>> arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0008' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
>> arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0009' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
>> arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0010' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
>> arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0011' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
>> arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0012' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
>> arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0013' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
>> arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0014' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
>> arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0015' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
>> arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0016' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
>> arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0017' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
>> arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0018' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
>> arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0019' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0020' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0021' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0022' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0023' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0024' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0025' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0026' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0027' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0028' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0029' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0030' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0031' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0032' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0033' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0034' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0035' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0036' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0037' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0038' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0039' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0040' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0041' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0042' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0043' [-Wmissing-prototypes]
   REPEAT_10000(DEFINE_RETURN);
                ^
   arch/s390/lib/test_modules_helpers.c:13:14: note: declare 'static' if the function is not intended to be used outside of this translation unit
   arch/s390/lib/test_modules_helpers.c:13:14: warning: no previous prototype for function 'test_modules_return_0044' [-Wmissing-prototypes]


vim +/test_modules_return_0000 +13 arch/s390/lib/test_modules_helpers.c

     6	
     7	#define DEFINE_RETURN(i) \
   > 8		int test_modules_return_ ## i(void) \
     9		{ \
    10			return 1 ## i - 10000; \
    11		} \
    12		EXPORT_SYMBOL_GPL(test_modules_return_ ## i)
  > 13	REPEAT_10000(DEFINE_RETURN);

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

                 reply	other threads:[~2022-01-30 22:29 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=202201310518.38Y3LnES-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=hca@linux.ibm.com \
    --cc=iii@linux.ibm.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

all inboxes | Powered by JetHome®