public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Xiaoming Ni <nixiaoming@huawei.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Luis Chamberlain <mcgrof@kernel.org>
Subject: [mcgrof-next:20211116-sysctl-cleanups-v3 20/20] kernel/printk/sysctl.c:82:13: warning: no previous prototype for 'printk_sysctl_init'
Date: Wed, 17 Nov 2021 13:01:17 +0800	[thread overview]
Message-ID: <202111171310.cPvT4JCh-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2395 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211116-sysctl-cleanups-v3
head:   06113f1d9a2d0669964adfa2e0128bd50e56b621
commit: 06113f1d9a2d0669964adfa2e0128bd50e56b621 [20/20] printk: move printk sysctl to printk/sysctl.c
config: riscv-randconfig-r042-20211116 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 11.2.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/mcgrof/linux-next.git/commit/?id=06113f1d9a2d0669964adfa2e0128bd50e56b621
        git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
        git fetch --no-tags mcgrof-next 20211116-sysctl-cleanups-v3
        git checkout 06113f1d9a2d0669964adfa2e0128bd50e56b621
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=riscv 

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 >>):

   kernel/printk/sysctl.c:47:36: error: 'printk_delay_msec' undeclared here (not in a function)
      47 |                 .data           = &printk_delay_msec,
         |                                    ^~~~~~~~~~~~~~~~~
   kernel/printk/sysctl.c:59:35: error: 'devkmsg_sysctl_set_loglvl' undeclared here (not in a function)
      59 |                 .proc_handler   = devkmsg_sysctl_set_loglvl,
         |                                   ^~~~~~~~~~~~~~~~~~~~~~~~~
   kernel/printk/sysctl.c:63:36: error: 'dmesg_restrict' undeclared here (not in a function)
      63 |                 .data           = &dmesg_restrict,
         |                                    ^~~~~~~~~~~~~~
>> kernel/printk/sysctl.c:82:13: warning: no previous prototype for 'printk_sysctl_init' [-Wmissing-prototypes]
      82 | void __init printk_sysctl_init(void)
         |             ^~~~~~~~~~~~~~~~~~


vim +/printk_sysctl_init +82 kernel/printk/sysctl.c

    81	
  > 82	void __init printk_sysctl_init(void)
    83	{
    84		register_sysctl_init("kernel", printk_sysctls, "printk");
    85	}
    86	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35044 bytes --]

                 reply	other threads:[~2021-11-17  5:01 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=202111171310.cPvT4JCh-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcgrof@kernel.org \
    --cc=nixiaoming@huawei.com \
    /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