mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Christopher Obbard <chris.obbard@collabora.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Richard Weinberger <richard@nod.at>
Subject: arch/um/drivers/random.c:31:31: sparse: sparse: Using plain integer as NULL pointer
Date: Sat, 27 Mar 2021 21:38:14 +0800	[thread overview]
Message-ID: <202103272112.1EWHZGpI-lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   0f4498cef9f5cd18d7c6639a2a902ec1edc5be4e
commit: 72d3e093afae79611fa38f8f2cfab9a888fe66f2 um: random: Register random as hwrng-core device
date:   3 months ago
config: um-randconfig-s031-20210327 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.3-277-gc089cd2d-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=72d3e093afae79611fa38f8f2cfab9a888fe66f2
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 72d3e093afae79611fa38f8f2cfab9a888fe66f2
        # save the attached .config to linux build tree
        make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=um 

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 >>)
>> arch/um/drivers/random.c:31:31: sparse: sparse: Using plain integer as NULL pointer

vim +31 arch/um/drivers/random.c

    25	
    26	/* Changed at init time, in the non-modular case, and at module load
    27	 * time, in the module case.  Presumably, the module subsystem
    28	 * protects against a module being loaded twice at the same time.
    29	 */
    30	static int random_fd = -1;
  > 31	static struct hwrng hwrng = { 0, };
    32	static DECLARE_COMPLETION(have_data);
    33	

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

                 reply	other threads:[~2021-03-27 13:39 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=202103272112.1EWHZGpI-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=chris.obbard@collabora.com \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=richard@nod.at \
    /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

all inboxes | Powered by JetHome®