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:   Thu, 14 Apr 2022 00:35:47 +0800
From:   kernel test robot <lkp@...el.com>
To:     Daniel Thompson <daniel.thompson@...aro.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [daniel-thompson:kdb/seq_file 1/3] include/linux/kdb.h:217:33:
 warning: 'struct seq_operations' declared inside parameter list will not be
 visible outside of this definition or declaration

tree:   https://git.linaro.org/people/daniel.thompson/linux.git kdb/seq_file
head:   2c8f993b3c1bdefc7bf84c5d63dbe69d15897b20
commit: e333b2ce40d76f3250a29a610671861f5ad0689c [1/3] kdb: Add framework to display sequence files
config: um-i386_defconfig (https://download.01.org/0day-ci/archive/20220414/202204140058.LCY9tRmR-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.2.0-19) 11.2.0
reproduce (this is a W=1 build):
        git remote add daniel-thompson https://git.linaro.org/people/daniel.thompson/linux.git
        git fetch --no-tags daniel-thompson kdb/seq_file
        git checkout e333b2ce40d76f3250a29a610671861f5ad0689c
        # save the config file to linux build tree
        mkdir build_dir
        make W=1 O=build_dir ARCH=um SUBARCH=i386 SHELL=/bin/bash kernel/printk/

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 >>):

   In file included from kernel/printk/printk_safe.c:7:
>> include/linux/kdb.h:217:33: warning: 'struct seq_operations' declared inside parameter list will not be visible outside of this definition or declaration
     217 | kdb_print_seq_file(const struct seq_operations *ops) { return 0; }
         |                                 ^~~~~~~~~~~~~~


vim +217 include/linux/kdb.h

   210	
   211	/* Dynamic kdb shell command registration */
   212	extern int kdb_register(kdbtab_t *cmd);
   213	extern void kdb_unregister(kdbtab_t *cmd);
   214	#else /* ! CONFIG_KGDB_KDB */
   215	static inline __printf(1, 2) int kdb_printf(const char *fmt, ...) { return 0; }
   216	static inline int
 > 217	kdb_print_seq_file(const struct seq_operations *ops) { return 0; }
   218	static inline void kdb_init(int level) {}
   219	static inline int kdb_register(kdbtab_t *cmd) { return 0; }
   220	static inline void kdb_unregister(kdbtab_t *cmd) {}
   221	#endif	/* CONFIG_KGDB_KDB */
   222	enum {
   223		KDB_NOT_INITIALIZED,
   224		KDB_INIT_EARLY,
   225		KDB_INIT_FULL,
   226	};
   227	

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ