oe-kbuild-all.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Jason Baron <jbaron@akamai.com>
Cc: oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>,
	Luis Chamberlain <mcgrof@kernel.org>
Subject: [linux-next:master 766/2428] include/linux/dynamic_debug.h:307:14: error: implicit declaration of function 'strcmp'
Date: Thu, 9 Mar 2023 15:05:15 +0800	[thread overview]
Message-ID: <202303091548.VqmH7I6Q-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   2c6433e9294b6d0f4d8f08c3c70a3eac434d3ec8
commit: b1ec22f8dc85bb0b2e82a528a7ebca377f46d4cb [766/2428] dyndbg: use the module notifier callbacks
config: arm-randconfig-r013-20230308 (https://download.01.org/0day-ci/archive/20230309/202303091548.VqmH7I6Q-lkp@intel.com/config)
compiler: arm-linux-gnueabi-gcc (GCC) 12.1.0
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
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=b1ec22f8dc85bb0b2e82a528a7ebca377f46d4cb
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout b1ec22f8dc85bb0b2e82a528a7ebca377f46d4cb
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm olddefconfig
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@intel.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202303091548.VqmH7I6Q-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/module.h:30,
                    from arch/arm/boot/compressed/../../../../lib/lz4/lz4_decompress.c:39,
                    from arch/arm/boot/compressed/../../../../lib/decompress_unlz4.c:10,
                    from arch/arm/boot/compressed/decompress.c:59:
   include/linux/dynamic_debug.h: In function 'ddebug_dyndbg_module_param_cb':
>> include/linux/dynamic_debug.h:307:14: error: implicit declaration of function 'strcmp' [-Werror=implicit-function-declaration]
     307 |         if (!strcmp(param, "dyndbg")) {
         |              ^~~~~~
   include/linux/dynamic_debug.h:1:1: note: 'strcmp' is defined in header '<string.h>'; did you forget to '#include <string.h>'?
     +++ |+#include <string.h>
       1 | /* SPDX-License-Identifier: GPL-2.0 */
   arch/arm/boot/compressed/decompress.c: At top level:
   arch/arm/boot/compressed/decompress.c:62:5: warning: no previous prototype for 'do_decompress' [-Wmissing-prototypes]
      62 | int do_decompress(u8 *input, int len, u8 *output, void (*error)(char *x))
         |     ^~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/strcmp +307 include/linux/dynamic_debug.h

b48420c1d3019c Jim Cromie 2012-04-27  303  
b48420c1d3019c Jim Cromie 2012-04-27  304  static inline int ddebug_dyndbg_module_param_cb(char *param, char *val,
b48420c1d3019c Jim Cromie 2012-04-27  305  						const char *modname)
b48420c1d3019c Jim Cromie 2012-04-27  306  {
85d6b66d31c351 Jim Cromie 2022-09-04 @307  	if (!strcmp(param, "dyndbg")) {
516cf1be07cf3a Jim Cromie 2012-05-01  308  		/* avoid pr_warn(), which wants pr_fmt() fully defined */
516cf1be07cf3a Jim Cromie 2012-05-01  309  		printk(KERN_WARNING "dyndbg param is supported only in "
b48420c1d3019c Jim Cromie 2012-04-27  310  			"CONFIG_DYNAMIC_DEBUG builds\n");
b48420c1d3019c Jim Cromie 2012-04-27  311  		return 0; /* allow and ignore */
b48420c1d3019c Jim Cromie 2012-04-27  312  	}
b48420c1d3019c Jim Cromie 2012-04-27  313  	return -EINVAL;
b48420c1d3019c Jim Cromie 2012-04-27  314  }
b48420c1d3019c Jim Cromie 2012-04-27  315  

:::::: The code at line 307 was first introduced by commit
:::::: 85d6b66d31c35158364058ee98fb69ab5bb6a6b1 dyndbg: fix module.dyndbg handling

:::::: TO: Jim Cromie <jim.cromie@gmail.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

                 reply	other threads:[~2023-03-09  7:06 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=202303091548.VqmH7I6Q-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=jbaron@akamai.com \
    --cc=linux-mm@kvack.org \
    --cc=mcgrof@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 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).