* [jimc:dyn-drm-trc 21/21] include/linux/dynamic_debug.h:224:6: error: implicit declaration of function 'strstr'
@ 2022-01-27 1:00 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-01-27 1:00 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3374 bytes --]
tree: https://github.com/jimc/linux.git dyn-drm-trc
head: d095bc48a714958c8a3e66a52aad303bfec99c6e
commit: d095bc48a714958c8a3e66a52aad303bfec99c6e [21/21] dyndbg: drop 3 includes
config: x86_64-randconfig-a002 (https://download.01.org/0day-ci/archive/20220127/202201270854.qNAMI0ad-lkp(a)intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/jimc/linux/commit/d095bc48a714958c8a3e66a52aad303bfec99c6e
git remote add jimc https://github.com/jimc/linux.git
git fetch --no-tags jimc dyn-drm-trc
git checkout d095bc48a714958c8a3e66a52aad303bfec99c6e
# save the config file to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/net/ethernet/pensando/ionic/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
In file included from drivers/net/ethernet/pensando/ionic/ionic_main.c:5:
include/linux/dynamic_debug.h: In function 'ddebug_dyndbg_module_param_cb':
>> include/linux/dynamic_debug.h:224:6: error: implicit declaration of function 'strstr' [-Werror=implicit-function-declaration]
224 | if (strstr(param, "dyndbg")) {
| ^~~~~~
>> include/linux/dynamic_debug.h:224:6: warning: incompatible implicit declaration of built-in function 'strstr'
include/linux/dynamic_debug.h:7:1: note: include '<string.h>' or provide a declaration of 'strstr'
6 | #include <linux/jump_label.h>
+++ |+#include <string.h>
7 | #endif
>> include/linux/dynamic_debug.h:230:10: error: 'EINVAL' undeclared (first use in this function)
230 | return -EINVAL;
| ^~~~~~
include/linux/dynamic_debug.h:230:10: note: each undeclared identifier is reported only once for each function it appears in
cc1: some warnings being treated as errors
vim +/strstr +224 include/linux/dynamic_debug.h
e9d376f0fa66bd Jason Baron 2009-02-05 220
b48420c1d3019c Jim Cromie 2012-04-27 221 static inline int ddebug_dyndbg_module_param_cb(char *param, char *val,
b48420c1d3019c Jim Cromie 2012-04-27 222 const char *modname)
b48420c1d3019c Jim Cromie 2012-04-27 223 {
b48420c1d3019c Jim Cromie 2012-04-27 @224 if (strstr(param, "dyndbg")) {
516cf1be07cf3a Jim Cromie 2012-05-01 225 /* avoid pr_warn(), which wants pr_fmt() fully defined */
516cf1be07cf3a Jim Cromie 2012-05-01 226 printk(KERN_WARNING "dyndbg param is supported only in "
b48420c1d3019c Jim Cromie 2012-04-27 227 "CONFIG_DYNAMIC_DEBUG builds\n");
b48420c1d3019c Jim Cromie 2012-04-27 228 return 0; /* allow and ignore */
b48420c1d3019c Jim Cromie 2012-04-27 229 }
b48420c1d3019c Jim Cromie 2012-04-27 @230 return -EINVAL;
b48420c1d3019c Jim Cromie 2012-04-27 231 }
b48420c1d3019c Jim Cromie 2012-04-27 232
:::::: The code at line 224 was first introduced by commit
:::::: b48420c1d3019ce8d84fb8e58f4ca86b8e3655b8 dynamic_debug: make dynamic-debug work for module initialization
:::::: TO: Jim Cromie <jim.cromie@gmail.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-27 1:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-27 1:00 [jimc:dyn-drm-trc 21/21] include/linux/dynamic_debug.h:224:6: error: implicit declaration of function 'strstr' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.