The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Luis Chamberlain <mcgrof@kernel.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [mcgrof:20210910-sysfs-generic-deadlock-fix 3/10] lib/test_sysfs.c:148:26: sparse: sparse: symbol 'first_test_dev' was not declared. Should it be static?
Date: Mon, 13 Sep 2021 05:32:11 +0800	[thread overview]
Message-ID: <202109130556.Xt4QZ1v4-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git 20210910-sysfs-generic-deadlock-fix
head:   45e10e4ef8d083225f3fcd0157b447f2de52b5ed
commit: ed2111f617d4365d6a7a5032ae2002e434d901bc [3/10] selftests: add tests_sysfs module
config: x86_64-rhel-8.3-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git/commit/?id=ed2111f617d4365d6a7a5032ae2002e434d901bc
        git remote add mcgrof https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git
        git fetch --no-tags mcgrof 20210910-sysfs-generic-deadlock-fix
        git checkout ed2111f617d4365d6a7a5032ae2002e434d901bc
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=x86_64 SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
>> lib/test_sysfs.c:148:26: sparse: sparse: symbol 'first_test_dev' was not declared. Should it be static?

vim +/first_test_dev +148 lib/test_sysfs.c

   147	
 > 148	struct sysfs_test_device *first_test_dev;
   149	

---
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: 41895 bytes --]

             reply	other threads:[~2021-09-12 21:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-12 21:32 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-09-12  2:46 [mcgrof:20210910-sysfs-generic-deadlock-fix 3/10] lib/test_sysfs.c:148:26: sparse: sparse: symbol 'first_test_dev' was not declared. Should it be static? kernel test robot

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=202109130556.Xt4QZ1v4-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mcgrof@kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox