Subject: Re: [PATCH net 2/3] ipvlan: Common code from v6/v4 validator_event

From: kernel test robot <[email-masked]>
Date: Wed, 21 Jan 2026 23:33:32 +0800

Hi Dmitry,

kernel test robot noticed the following build warnings:

[auto build test WARNING on net/main]

url:    https://github.com/intel-lab-lkp/linux/commits/Dmitry-Skorodumov/ipvlan-const-specifier-for-functions-that-use-iaddr/20260121-021651
base:   net/main
patch link:    https://lore.kernel.org/r/20260120161852.639238-3-skorodumov.dmitry%40huawei.com
patch subject: [PATCH net 2/3] ipvlan: Common code from v6/v4 validator_event
config: csky-randconfig-r073-20260121 (https://download.01.org/0day-ci/archive/20260122/[email-masked]/config)
compiler: csky-linux-gcc (GCC) 15.2.0
smatch version: v0.5.0-8985-g2614ff1a
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260122/[email-masked]/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 <[email-masked]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email-masked]/

All warnings (new ones prefixed by >>):

>> drivers/net/ipvlan/ipvlan_main.c:1023:30: warning: 'ipvlan_addr6_vtor_notifier_block' defined but not used [-Wunused-variable]
    1023 | static struct notifier_block ipvlan_addr6_vtor_notifier_block __read_mostly = {
         |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

vim +/ipvlan_addr6_vtor_notifier_block +1023 drivers/net/ipvlan/ipvlan_main.c

8c54904ac0f545 Dmitry Skorodumov 2026-01-20  1022  
3ad7d2468f79fc Krister Johansen  2017-06-08 @1023  static struct notifier_block ipvlan_addr6_vtor_notifier_block __read_mostly = {
8c54904ac0f545 Dmitry Skorodumov 2026-01-20  1024  	.notifier_call = ipvlan_addr_validator_event_cb,
3ad7d2468f79fc Krister Johansen  2017-06-08  1025  };
8c54904ac0f545 Dmitry Skorodumov 2026-01-20  1026  

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