Netdev List
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Lei Zhu <zhulei_szu@163.com>,
	kuba@kernel.org, sukhdeeps@marvell.com, davem@davemloft.net,
	andrew+netdev@lunn.ch
Cc: oe-kbuild-all@lists.linux.dev, netdev@vger.kernel.org
Subject: Re: [PATCH net-next] net: atlantic: aq_utils_obj_{set|clear} optimizations
Date: Tue, 2 Jun 2026 22:18:53 +0200	[thread overview]
Message-ID: <202606022254.rqQVht0b-lkp@intel.com> (raw)
In-Reply-To: <20260602092949.263270-1-zhulei_szu@163.com>

Hi Lei,

kernel test robot noticed the following build errors:

[auto build test ERROR on net-next/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Lei-Zhu/net-atlantic-aq_utils_obj_-set-clear-optimizations/20260602-174147
base:   net-next/main
patch link:    https://lore.kernel.org/r/20260602092949.263270-1-zhulei_szu%40163.com
patch subject: [PATCH net-next] net: atlantic: aq_utils_obj_{set|clear} optimizations
config: x86_64-rhel-9.4 (https://download.01.org/0day-ci/archive/20260602/202606022254.rqQVht0b-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260602/202606022254.rqQVht0b-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
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202606022254.rqQVht0b-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from drivers/net/ethernet/aquantia/atlantic/aq_common.h:17,
                    from drivers/net/ethernet/aquantia/atlantic/aq_main.h:12,
                    from drivers/net/ethernet/aquantia/atlantic/aq_main.c:10:
   drivers/net/ethernet/aquantia/atlantic/aq_utils.h: In function 'aq_utils_obj_set':
>> drivers/net/ethernet/aquantia/atlantic/aq_utils.h:21:45: error: passing argument 2 of 'atomic_try_cmpxchg' from incompatible pointer type [-Wincompatible-pointer-types]
      21 |         } while (!atomic_try_cmpxchg(flags, &flags_old, flags_new));
         |                                             ^~~~~~~~~~
         |                                             |
         |                                             long unsigned int *
   In file included from include/linux/atomic.h:82,
                    from include/linux/cpumask.h:10,
                    from arch/x86/include/asm/paravirt.h:19,
                    from arch/x86/include/asm/irqflags.h:100,
                    from include/linux/irqflags.h:18,
                    from arch/x86/include/asm/special_insns.h:10,
                    from arch/x86/include/asm/processor.h:25,
                    from arch/x86/include/asm/timex.h:5,
                    from include/linux/timex.h:67,
                    from include/linux/time32.h:13,
                    from include/linux/time.h:60,
                    from include/linux/skbuff.h:15,
                    from include/linux/if_ether.h:19,
                    from include/linux/etherdevice.h:20,
                    from drivers/net/ethernet/aquantia/atlantic/aq_common.h:13:
   include/linux/atomic/atomic-instrumented.h:1275:38: note: expected 'int *' but argument is of type 'long unsigned int *'
    1275 | atomic_try_cmpxchg(atomic_t *v, int *old, int new)
         |                                 ~~~~~^~~
   drivers/net/ethernet/aquantia/atlantic/aq_utils.h: In function 'aq_utils_obj_clear':
   drivers/net/ethernet/aquantia/atlantic/aq_utils.h:31:45: error: passing argument 2 of 'atomic_try_cmpxchg' from incompatible pointer type [-Wincompatible-pointer-types]
      31 |         } while (!atomic_try_cmpxchg(flags, &flags_old, flags_new));
         |                                             ^~~~~~~~~~
         |                                             |
         |                                             long unsigned int *
   include/linux/atomic/atomic-instrumented.h:1275:38: note: expected 'int *' but argument is of type 'long unsigned int *'
    1275 | atomic_try_cmpxchg(atomic_t *v, int *old, int new)
         |                                 ~~~~~^~~
--
   In file included from drivers/net/ethernet/aquantia/atlantic/hw_atl/../aq_common.h:17,
                    from drivers/net/ethernet/aquantia/atlantic/hw_atl/../aq_hw.h:15,
                    from drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c:10:
   drivers/net/ethernet/aquantia/atlantic/hw_atl/../aq_utils.h: In function 'aq_utils_obj_set':
>> drivers/net/ethernet/aquantia/atlantic/hw_atl/../aq_utils.h:21:45: error: passing argument 2 of 'atomic_try_cmpxchg' from incompatible pointer type [-Wincompatible-pointer-types]
      21 |         } while (!atomic_try_cmpxchg(flags, &flags_old, flags_new));
         |                                             ^~~~~~~~~~
         |                                             |
         |                                             long unsigned int *
   In file included from include/linux/atomic.h:82,
                    from include/linux/cpumask.h:10,
                    from arch/x86/include/asm/paravirt.h:19,
                    from arch/x86/include/asm/irqflags.h:100,
                    from include/linux/irqflags.h:18,
                    from arch/x86/include/asm/special_insns.h:10,
                    from arch/x86/include/asm/processor.h:25,
                    from arch/x86/include/asm/timex.h:5,
                    from include/linux/timex.h:67,
                    from include/linux/time32.h:13,
                    from include/linux/time.h:60,
                    from include/linux/skbuff.h:15,
                    from include/linux/if_ether.h:19,
                    from include/linux/etherdevice.h:20,
                    from drivers/net/ethernet/aquantia/atlantic/hw_atl/../aq_common.h:13:
   include/linux/atomic/atomic-instrumented.h:1275:38: note: expected 'int *' but argument is of type 'long unsigned int *'
    1275 | atomic_try_cmpxchg(atomic_t *v, int *old, int new)
         |                                 ~~~~~^~~
   drivers/net/ethernet/aquantia/atlantic/hw_atl/../aq_utils.h: In function 'aq_utils_obj_clear':
   drivers/net/ethernet/aquantia/atlantic/hw_atl/../aq_utils.h:31:45: error: passing argument 2 of 'atomic_try_cmpxchg' from incompatible pointer type [-Wincompatible-pointer-types]
      31 |         } while (!atomic_try_cmpxchg(flags, &flags_old, flags_new));
         |                                             ^~~~~~~~~~
         |                                             |
         |                                             long unsigned int *
   include/linux/atomic/atomic-instrumented.h:1275:38: note: expected 'int *' but argument is of type 'long unsigned int *'
    1275 | atomic_try_cmpxchg(atomic_t *v, int *old, int new)
         |                                 ~~~~~^~~


vim +/atomic_try_cmpxchg +21 drivers/net/ethernet/aquantia/atlantic/aq_utils.h

    13	
    14	static inline void aq_utils_obj_set(atomic_t *flags, u32 mask)
    15	{
    16		unsigned long flags_old, flags_new;
    17	
    18		flags_old = atomic_read(flags);
    19		do {
    20			flags_new = flags_old | (mask);
  > 21		} while (!atomic_try_cmpxchg(flags, &flags_old, flags_new));
    22	}
    23	

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

  reply	other threads:[~2026-06-02 20:19 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-02  9:29 [PATCH net-next] net: atlantic: aq_utils_obj_{set|clear} optimizations Lei Zhu
2026-06-02 20:18 ` kernel test robot [this message]
2026-06-02 20:49 ` 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=202606022254.rqQVht0b-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sukhdeeps@marvell.com \
    --cc=zhulei_szu@163.com \
    /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