The Linux Kernel Mailing List
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Kuniyuki Iwashima <kuniyu@google.com>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
	Jakub Kicinski <kuba@kernel.org>
Subject: net/ipv4/ipmr.c:312:24: sparse: sparse: incompatible types in comparison expression (different address spaces):
Date: Sun, 03 May 2026 00:39:05 +0800	[thread overview]
Message-ID: <202605030032.glNApko7-lkp@intel.com> (raw)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   f1a5e78a55ebf2b05777fd5eb738038ddae609d6
commit: b3b6babf47517fde6b6de2493dea28e8831b9347 ipmr: Free mr_table after RCU grace period.
date:   5 days ago
config: nios2-randconfig-r132-20260502 (https://download.01.org/0day-ci/archive/20260503/202605030032.glNApko7-lkp@intel.com/config)
compiler: nios2-linux-gcc (GCC) 8.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260503/202605030032.glNApko7-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: b3b6babf4751 ("ipmr: Free mr_table after RCU grace period.")
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605030032.glNApko7-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   net/ipv4/ipmr.c: note: in included file (through include/uapi/linux/swab.h, include/linux/swab.h, include/uapi/linux/byteorder/little_endian.h, ...):
   arch/nios2/include/asm/swab.h:25:24: sparse: sparse: too many arguments for function __builtin_custom_ini
>> net/ipv4/ipmr.c:312:24: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/ipv4/ipmr.c:312:24: sparse:    struct mr_table [noderef] __rcu *
   net/ipv4/ipmr.c:312:24: sparse:    struct mr_table *
   net/ipv4/ipmr.c:318:16: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/ipv4/ipmr.c:318:16: sparse:    struct mr_table [noderef] __rcu *
   net/ipv4/ipmr.c:318:16: sparse:    struct mr_table *
   net/ipv4/ipmr.c:318:16: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/ipv4/ipmr.c:318:16: sparse:    struct mr_table [noderef] __rcu *
   net/ipv4/ipmr.c:318:16: sparse:    struct mr_table *
   net/ipv4/ipmr.c:329:16: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/ipv4/ipmr.c:329:16: sparse:    struct mr_table [noderef] __rcu *
   net/ipv4/ipmr.c:329:16: sparse:    struct mr_table *
   net/ipv4/ipmr.c:343:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/ipv4/ipmr.c:343:9: sparse:    struct mr_table [noderef] __rcu *
   net/ipv4/ipmr.c:343:9: sparse:    struct mr_table *
   net/ipv4/ipmr.c:354:32: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/ipv4/ipmr.c:354:32: sparse:    struct mr_table [noderef] __rcu *
   net/ipv4/ipmr.c:354:32: sparse:    struct mr_table *
   net/ipv4/ipmr.c:356:9: sparse: sparse: incompatible types in comparison expression (different address spaces):
   net/ipv4/ipmr.c:356:9: sparse:    struct mr_table [noderef] __rcu *
   net/ipv4/ipmr.c:356:9: sparse:    struct mr_table *
   arch/nios2/include/asm/swab.h:25:24: sparse: sparse: too many arguments for function __builtin_custom_ini
   arch/nios2/include/asm/swab.h:25:24: sparse: sparse: too many arguments for function __builtin_custom_ini
   arch/nios2/include/asm/swab.h:25:24: sparse: sparse: too many arguments for function __builtin_custom_ini
   arch/nios2/include/asm/swab.h:25:24: sparse: sparse: too many arguments for function __builtin_custom_ini
   arch/nios2/include/asm/swab.h:25:24: sparse: sparse: too many arguments for function __builtin_custom_ini
   arch/nios2/include/asm/swab.h:25:24: sparse: sparse: too many arguments for function __builtin_custom_ini
   arch/nios2/include/asm/swab.h:25:24: sparse: sparse: too many arguments for function __builtin_custom_ini

vim +312 net/ipv4/ipmr.c

   301	
   302	bool ipmr_rule_default(const struct fib_rule *rule)
   303	{
   304		return fib_rule_matchall(rule) && rule->table == RT_TABLE_DEFAULT;
   305	}
   306	EXPORT_SYMBOL(ipmr_rule_default);
   307	#else
   308	static struct mr_table *ipmr_mr_table_iter(struct net *net,
   309						   struct mr_table *mrt)
   310	{
   311		if (!mrt)
 > 312			return rcu_dereference(net->ipv4.mrt);
   313		return NULL;
   314	}
   315	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

             reply	other threads:[~2026-05-02 16:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-02 16:39 kernel test robot [this message]
2026-05-02 17:54 ` net/ipv4/ipmr.c:312:24: sparse: sparse: incompatible types in comparison expression (different address spaces): Kuniyuki Iwashima

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=202605030032.glNApko7-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kuba@kernel.org \
    --cc=kuniyu@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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