All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild@lists.01.org
Subject: Re: [PATCH nf-next] netfilter: cttimeout: use option structure
Date: Wed, 09 Feb 2022 05:38:20 +0800	[thread overview]
Message-ID: <202202090519.DSEDmf7v-lkp@intel.com> (raw)

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

CC: kbuild-all(a)lists.01.org
In-Reply-To: <20220208112947.26405-1-fw@strlen.de>
References: <20220208112947.26405-1-fw@strlen.de>
TO: Florian Westphal <fw@strlen.de>
TO: netfilter-devel(a)vger.kernel.org
CC: Florian Westphal <fw@strlen.de>

Hi Florian,

I love your patch! Perhaps something to improve:

[auto build test WARNING on nf-next/master]

url:    https://github.com/0day-ci/linux/commits/Florian-Westphal/netfilter-cttimeout-use-option-structure/20220208-194834
base:   https://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf-next.git master
:::::: branch date: 10 hours ago
:::::: commit date: 10 hours ago
config: arm64-randconfig-s032-20220208 (https://download.01.org/0day-ci/archive/20220209/202202090519.DSEDmf7v-lkp(a)intel.com/config)
compiler: aarch64-linux-gcc (GCC) 11.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-dirty
        # https://github.com/0day-ci/linux/commit/d47c1bd874471f3869d4b1cf4a0a9183248f9f4f
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Florian-Westphal/netfilter-cttimeout-use-option-structure/20220208-194834
        git checkout d47c1bd874471f3869d4b1cf4a0a9183248f9f4f
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=arm64 SHELL=/bin/bash net/netfilter/

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 >>)
   net/netfilter/nf_conntrack_timeout.c:32:62: sparse: sparse: incompatible types in comparison expression (different base types):
   net/netfilter/nf_conntrack_timeout.c:32:62: sparse:    struct nf_ct_timeout [noderef] __rcu *
   net/netfilter/nf_conntrack_timeout.c:32:62: sparse:    void *
   net/netfilter/nf_conntrack_timeout.c:47:47: sparse: sparse: incompatible types in comparison expression (different address spaces):
>> net/netfilter/nf_conntrack_timeout.c:47:47: sparse:    struct nf_ct_timeout_hooks const [noderef] __rcu *
>> net/netfilter/nf_conntrack_timeout.c:47:47: sparse:    struct nf_ct_timeout_hooks const *
   net/netfilter/nf_conntrack_timeout.c:63:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/netfilter/nf_conntrack_timeout.c:63:13: sparse:    struct nf_ct_timeout_hooks const [noderef] __rcu *
   net/netfilter/nf_conntrack_timeout.c:63:13: sparse:    struct nf_ct_timeout_hooks const *
   net/netfilter/nf_conntrack_timeout.c:120:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/netfilter/nf_conntrack_timeout.c:120:13: sparse:    struct nf_ct_timeout_hooks const [noderef] __rcu *
   net/netfilter/nf_conntrack_timeout.c:120:13: sparse:    struct nf_ct_timeout_hooks const *
--
   net/netfilter/nfnetlink_cttimeout.c:627:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
>> net/netfilter/nfnetlink_cttimeout.c:627:9: sparse:    struct nf_ct_timeout_hooks const [noderef] __rcu *
>> net/netfilter/nfnetlink_cttimeout.c:627:9: sparse:    struct nf_ct_timeout_hooks const *
   net/netfilter/nfnetlink_cttimeout.c:640:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/netfilter/nfnetlink_cttimeout.c:640:9: sparse:    struct nf_ct_timeout_hooks const [noderef] __rcu *
   net/netfilter/nfnetlink_cttimeout.c:640:9: sparse:    struct nf_ct_timeout_hooks const *

vim +47 net/netfilter/nf_conntrack_timeout.c

dd705072412225 Pablo Neira Ayuso 2012-02-28  27  
4e665afbd7bee2 Harsha Sharma     2018-08-07  28  static int untimeout(struct nf_conn *ct, void *timeout)
4e665afbd7bee2 Harsha Sharma     2018-08-07  29  {
4e665afbd7bee2 Harsha Sharma     2018-08-07  30  	struct nf_conn_timeout *timeout_ext = nf_ct_timeout_find(ct);
4e665afbd7bee2 Harsha Sharma     2018-08-07  31  
4e665afbd7bee2 Harsha Sharma     2018-08-07 @32  	if (timeout_ext && (!timeout || timeout_ext->timeout == timeout))
4e665afbd7bee2 Harsha Sharma     2018-08-07  33  		RCU_INIT_POINTER(timeout_ext->timeout, NULL);
4e665afbd7bee2 Harsha Sharma     2018-08-07  34  
4e665afbd7bee2 Harsha Sharma     2018-08-07  35  	/* We are not intended to delete this conntrack. */
4e665afbd7bee2 Harsha Sharma     2018-08-07  36  	return 0;
4e665afbd7bee2 Harsha Sharma     2018-08-07  37  }
4e665afbd7bee2 Harsha Sharma     2018-08-07  38  
6c1fd7dc489d9b Pablo Neira Ayuso 2018-08-07  39  void nf_ct_untimeout(struct net *net, struct nf_ct_timeout *timeout)
4e665afbd7bee2 Harsha Sharma     2018-08-07  40  {
4e665afbd7bee2 Harsha Sharma     2018-08-07  41  	nf_ct_iterate_cleanup_net(net, untimeout, timeout, 0, 0);
4e665afbd7bee2 Harsha Sharma     2018-08-07  42  }
4e665afbd7bee2 Harsha Sharma     2018-08-07  43  EXPORT_SYMBOL_GPL(nf_ct_untimeout);
4e665afbd7bee2 Harsha Sharma     2018-08-07  44  
717700d183d65b Yi-Hung Wei       2019-03-26  45  static void __nf_ct_timeout_put(struct nf_ct_timeout *timeout)
717700d183d65b Yi-Hung Wei       2019-03-26  46  {
d47c1bd874471f Florian Westphal  2022-02-08 @47  	const struct nf_ct_timeout_hooks *h = rcu_dereference(nf_ct_timeout_hook);
717700d183d65b Yi-Hung Wei       2019-03-26  48  
d47c1bd874471f Florian Westphal  2022-02-08  49  	if (h)
d47c1bd874471f Florian Westphal  2022-02-08  50  		h->timeout_put(timeout);
717700d183d65b Yi-Hung Wei       2019-03-26  51  }
717700d183d65b Yi-Hung Wei       2019-03-26  52  

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

             reply	other threads:[~2022-02-08 21:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-08 21:38 kernel test robot [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-02-08 11:29 [PATCH nf-next] netfilter: cttimeout: use option structure Florian Westphal
2022-02-09 10:56 ` Pablo Neira Ayuso

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=202202090519.DSEDmf7v-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild@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.