From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============8327429873718262730==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [jimc:dyn-drm-trc 21/21] include/linux/dynamic_debug.h:224:6: error: implicit declaration of function 'strstr' Date: Thu, 27 Jan 2022 09:00:44 +0800 Message-ID: <202201270854.qNAMI0ad-lkp@intel.com> List-Id: --===============8327429873718262730== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: https://github.com/jimc/linux.git dyn-drm-trc head: d095bc48a714958c8a3e66a52aad303bfec99c6e commit: d095bc48a714958c8a3e66a52aad303bfec99c6e [21/21] dyndbg: drop 3 inc= ludes config: x86_64-randconfig-a002 (https://download.01.org/0day-ci/archive/202= 20127/202201270854.qNAMI0ad-lkp(a)intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=3D1 build): # https://github.com/jimc/linux/commit/d095bc48a714958c8a3e66a52aad= 303bfec99c6e 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=3D1 O=3Dbuild_dir ARCH=3Dx86_64 SHELL=3D/bin/bash drivers/ne= t/ethernet/pensando/ionic/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot 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_c= b': >> include/linux/dynamic_debug.h:224:6: error: implicit declaration of func= tion 'strstr' [-Werror=3Dimplicit-function-declaration] 224 | if (strstr(param, "dyndbg")) { | ^~~~~~ >> include/linux/dynamic_debug.h:224:6: warning: incompatible implicit decl= aration of built-in function 'strstr' include/linux/dynamic_debug.h:7:1: note: include '' or provide= a declaration of 'strstr' 6 | #include +++ |+#include 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 i= s 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 wan= ts pr_fmt() fully defined */ 516cf1be07cf3a Jim Cromie 2012-05-01 226 printk(KERN_WARNING "dyndbg p= aram 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 :::::: CC: Greg Kroah-Hartman --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============8327429873718262730==--