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]
Message-ID: <202210040547.6b8GHLm5-lkp@intel.com>
Date:   Tue, 4 Oct 2022 05:10:46 +0800
From:   kernel test robot <lkp@...el.com>
To:     Masahiro Yamada <yamada.masahiro@...ionext.com>
Cc:     llvm@...ts.linux.dev, kbuild-all@...ts.01.org,
        linux-kernel@...r.kernel.org,
        Nathan Chancellor <natechancellor@...il.com>,
        Matthias Kaehlcke <mka@...omium.org>,
        Sean Paul <seanpaul@...omium.org>,
        Guenter Roeck <groeck@...omium.org>
Subject: [jsarha:topic/chromeos-4.19-s0ix 6418/9999]
 drivers/pkglist/pkglist_none.c:45:12: warning: no previous prototype for
 function 'pkglist_init'

tree:   https://github.com/jsarha/linux topic/chromeos-4.19-s0ix
head:   430bdaa0a8c38697780f45a148964d71951df11f
commit: 4fae0a1dc645742f2ecd6238813b2d30d4fb31cd [6418/9999] UPSTREAM: kbuild: add some extra warning flags unconditionally
config: mips-randconfig-r015-20221003
compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 791a7ae1ba3efd6bca96338e10ffde557ba83920)
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 mips cross compiling tool for clang build
        # apt-get install binutils-mips-linux-gnu
        # https://github.com/jsarha/linux/commit/4fae0a1dc645742f2ecd6238813b2d30d4fb31cd
        git remote add jsarha https://github.com/jsarha/linux
        git fetch --no-tags jsarha topic/chromeos-4.19-s0ix
        git checkout 4fae0a1dc645742f2ecd6238813b2d30d4fb31cd
        # 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=mips SHELL=/bin/bash M=drivers/pkglist

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

All warnings (new ones prefixed by >>):

   In file included from drivers/pkglist/pkglist_none.c:13:
   include/linux/pkglist.h:20:43: warning: passing 'const unsigned char *const' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           return q1->len == q2->len && str_case_eq(q1->name, q2->name);
                                                    ^~~~~~~~
   include/linux/pkglist.h:8:44: note: passing argument to parameter 's1' here
   static inline bool str_case_eq(const char *s1, const char *s2)
                                              ^
   include/linux/pkglist.h:20:53: warning: passing 'const unsigned char *const' to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           return q1->len == q2->len && str_case_eq(q1->name, q2->name);
                                                              ^~~~~~~~
   include/linux/pkglist.h:8:60: note: passing argument to parameter 's2' here
   static inline bool str_case_eq(const char *s1, const char *s2)
                                                              ^
>> drivers/pkglist/pkglist_none.c:45:12: warning: no previous prototype for function 'pkglist_init' [-Wmissing-prototypes]
   int __init pkglist_init(void)
              ^
   drivers/pkglist/pkglist_none.c:45:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   int __init pkglist_init(void)
   ^
   static 
>> drivers/pkglist/pkglist_none.c:51:6: warning: no previous prototype for function 'pkglist_exit' [-Wmissing-prototypes]
   void pkglist_exit(void) { }
        ^
   drivers/pkglist/pkglist_none.c:51:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
   void pkglist_exit(void) { }
   ^
   static 
   4 warnings generated.
   Assembler messages:
   Fatal error: invalid -march= option: `mips32r2'
   clang-16: error: assembler command failed with exit code 1 (use -v to see invocation)


vim +/pkglist_init +45 drivers/pkglist/pkglist_none.c

23f2bb7927c105 Daniel Rosenberg 2017-10-10  44  
23f2bb7927c105 Daniel Rosenberg 2017-10-10 @45  int __init pkglist_init(void)
23f2bb7927c105 Daniel Rosenberg 2017-10-10  46  {
23f2bb7927c105 Daniel Rosenberg 2017-10-10  47  	return 0;
23f2bb7927c105 Daniel Rosenberg 2017-10-10  48  }
23f2bb7927c105 Daniel Rosenberg 2017-10-10  49  module_init(pkglist_init);
23f2bb7927c105 Daniel Rosenberg 2017-10-10  50  
23f2bb7927c105 Daniel Rosenberg 2017-10-10 @51  void pkglist_exit(void) { }
23f2bb7927c105 Daniel Rosenberg 2017-10-10  52  

:::::: The code at line 45 was first introduced by commit
:::::: 23f2bb7927c105fe2dd9d82410183013695317bd CHROMIUM: drivers: Create pkglist for configuration

:::::: TO: Daniel Rosenberg <drosen@...gle.com>
:::::: CC: Guenter Roeck <groeck@...omium.org>

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

View attachment "config" of type "text/plain" (116784 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ