All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
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	[thread overview]
Message-ID: <202201270854.qNAMI0ad-lkp@intel.com> (raw)

[-- 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

                 reply	other threads:[~2022-01-27  1:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202201270854.qNAMI0ad-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.