All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [dhowells-fs:rxrpc-rxgk 15/17] net/rxrpc/server_key.c:82:10: warning: ordered comparison of pointer with integer zero
Date: Fri, 18 Sep 2020 01:00:38 +0800	[thread overview]
Message-ID: <202009180135.qKMtLtxt%lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git rxrpc-rxgk
head:   587caf020a85547c72e7e578382360f01bc7690b
commit: 72a954e6016000c505dad7f37a2035fa097fbd11 [15/17] rxrpc: Hand server key parsing off to the security class
config: openrisc-randconfig-r002-20200917 (attached as .config)
compiler: or1k-linux-gcc (GCC) 9.3.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
        git checkout 72a954e6016000c505dad7f37a2035fa097fbd11
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=openrisc 

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

   net/rxrpc/server_key.c: In function 'rxrpc_preparse_s':
>> net/rxrpc/server_key.c:82:10: warning: ordered comparison of pointer with integer zero [-Wextra]
      82 |  if (sec < 0)
         |          ^

# https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/commit/?id=72a954e6016000c505dad7f37a2035fa097fbd11
git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
git fetch --no-tags dhowells-fs rxrpc-rxgk
git checkout 72a954e6016000c505dad7f37a2035fa097fbd11
vim +82 net/rxrpc/server_key.c

    63	
    64	/*
    65	 * Preparse a server secret key.
    66	 */
    67	static int rxrpc_preparse_s(struct key_preparsed_payload *prep)
    68	{
    69		const struct rxrpc_security *sec;
    70		unsigned int service, sec_class;
    71		int n;
    72	
    73		_enter("%zu", prep->datalen);
    74	
    75		if (!prep->orig_description)
    76			return -EINVAL;
    77	
    78		if (sscanf(prep->orig_description, "%u:%u%n", &service, &sec_class, &n) != 2)
    79			return -EINVAL;
    80	
    81		sec = rxrpc_security_lookup(sec_class);
  > 82		if (sec < 0)
    83			return -ENOPKG;
    84	
    85		prep->payload.data[1] = (struct rxrpc_security *)sec;
    86	
    87		return sec->preparse_server_key(prep);
    88	}
    89	

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

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

                 reply	other threads:[~2020-09-17 17: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=202009180135.qKMtLtxt%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.