* [daniel-thompson:kdb/seq_file 1/5] include/linux/kdb.h:217:33: warning: declaration of 'struct seq_operations' will not be visible outside of this function
@ 2022-04-13 18:48 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-13 18:48 UTC (permalink / raw)
To: Daniel Thompson; +Cc: llvm, kbuild-all, linux-kernel
tree: https://git.linaro.org/people/daniel.thompson/linux.git kdb/seq_file
head: b58798cd87e95bdb8832940ba312ce920de71613
commit: e333b2ce40d76f3250a29a610671861f5ad0689c [1/5] kdb: Add framework to display sequence files
config: arm64-buildonly-randconfig-r003-20220413 (https://download.01.org/0day-ci/archive/20220414/202204140223.LWUYoH9B-lkp@intel.com/config)
compiler: clang version 15.0.0 (https://github.com/llvm/llvm-project 6b7e6ea489f6dd45a9b0da9ac20871560917b9b0)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
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
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=arm64 SHELL=/bin/bash kernel/printk/
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 >>):
In file included from kernel/printk/printk_safe.c:7:
>> include/linux/kdb.h:217:33: warning: declaration of 'struct seq_operations' will not be visible outside of this function [-Wvisibility]
kdb_print_seq_file(const struct seq_operations *ops) { return 0; }
^
1 warning generated.
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-13 18:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-13 18:48 [daniel-thompson:kdb/seq_file 1/5] include/linux/kdb.h:217:33: warning: declaration of 'struct seq_operations' will not be visible outside of this function kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).