Re: [PATCH v6 1/2] netfilter: nf_tables: Implement jump limit for nft_table_validate

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Shaun,

kernel test robot noticed the following build warnings:

[auto build test WARNING on netfilter-nf/main]
[also build test WARNING on linus/master v6.16 next-20250725]
[cannot apply to nf-next/master horms-ipvs/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Shaun-Brady/Add-test-for-nft_max_table_jumps_netns-sysctl/20250728-120528
base:   https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git main
patch link:    https://lore.kernel.org/r/20250728040315.1014454-1-brady.1345%40gmail.com
patch subject: [PATCH v6 1/2] netfilter: nf_tables: Implement jump limit for nft_table_validate
config: csky-randconfig-001-20250728 (https://download.01.org/0day-ci/archive/20250728/202507281408.4TSYx6Hl-lkp@xxxxxxxxx/config)
compiler: csky-linux-gcc (GCC) 10.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250728/202507281408.4TSYx6Hl-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202507281408.4TSYx6Hl-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

   In file included from include/net/net_namespace.h:25,
                    from include/linux/inet.h:42,
                    from fs/nfs/localio.c:15:
>> include/net/netns/netfilter.h:37:2: warning: 'unused' attribute ignored [-Wattributes]
      37 |  u32 nf_max_table_jumps_netns __maybe_unused;
         |  ^~~
--
   In file included from include/net/net_namespace.h:25,
                    from include/linux/inet.h:42,
                    from include/linux/sunrpc/msg_prot.h:205,
                    from include/linux/sunrpc/clnt.h:19,
                    from fs/nfs/nfs4proc.c:45:
>> include/net/netns/netfilter.h:37:2: warning: 'unused' attribute ignored [-Wattributes]
      37 |  u32 nf_max_table_jumps_netns __maybe_unused;
         |  ^~~
   fs/nfs/nfs4proc.c: In function 'nfs4_proc_create_session':
   fs/nfs/nfs4proc.c:9534:12: warning: variable 'ptr' set but not used [-Wunused-but-set-variable]
    9534 |  unsigned *ptr;
         |            ^~~
--
   In file included from include/net/net_namespace.h:25,
                    from include/linux/inet.h:42,
                    from include/linux/sunrpc/msg_prot.h:205,
                    from include/linux/sunrpc/auth.h:14,
                    from include/linux/nfs_fs.h:31,
                    from fs/nfs/flexfilelayout/flexfilelayout.c:10:
>> include/net/netns/netfilter.h:37:2: warning: 'unused' attribute ignored [-Wattributes]
      37 |  u32 nf_max_table_jumps_netns __maybe_unused;
         |  ^~~
   fs/nfs/flexfilelayout/flexfilelayout.c: In function 'ff_layout_io_track_ds_error':
   fs/nfs/flexfilelayout/flexfilelayout.c:1312:6: warning: variable 'err' set but not used [-Wunused-but-set-variable]
    1312 |  int err;
         |      ^~~
--
   In file included from include/net/net_namespace.h:25,
                    from include/linux/inet.h:42,
                    from include/linux/sunrpc/msg_prot.h:205,
                    from include/linux/sunrpc/auth.h:14,
                    from include/linux/nfs_fs.h:31,
                    from fs/nfs/flexfilelayout/flexfilelayoutdev.c:10:
>> include/net/netns/netfilter.h:37:2: warning: 'unused' attribute ignored [-Wattributes]
      37 |  u32 nf_max_table_jumps_netns __maybe_unused;
         |  ^~~
   fs/nfs/flexfilelayout/flexfilelayoutdev.c: In function 'nfs4_ff_alloc_deviceid_node':
   fs/nfs/flexfilelayout/flexfilelayoutdev.c:56:9: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
      56 |  int i, ret = -ENOMEM;
         |         ^~~
--
   In file included from include/net/net_namespace.h:25,
                    from include/linux/inet.h:42,
                    from include/linux/sunrpc/msg_prot.h:205,
                    from include/linux/sunrpc/clnt.h:19,
                    from nfs4proc.c:45:
>> include/net/netns/netfilter.h:37:2: warning: 'unused' attribute ignored [-Wattributes]
      37 |  u32 nf_max_table_jumps_netns __maybe_unused;
         |  ^~~
   nfs4proc.c: In function 'nfs4_proc_create_session':
   nfs4proc.c:9534:12: warning: variable 'ptr' set but not used [-Wunused-but-set-variable]
    9534 |  unsigned *ptr;
         |            ^~~
--
   In file included from include/net/net_namespace.h:25,
                    from include/linux/inet.h:42,
                    from include/linux/sunrpc/msg_prot.h:205,
                    from include/linux/sunrpc/auth.h:14,
                    from include/linux/nfs_fs.h:31,
                    from flexfilelayout/flexfilelayout.c:10:
>> include/net/netns/netfilter.h:37:2: warning: 'unused' attribute ignored [-Wattributes]
      37 |  u32 nf_max_table_jumps_netns __maybe_unused;
         |  ^~~
   flexfilelayout/flexfilelayout.c: In function 'ff_layout_io_track_ds_error':
   flexfilelayout/flexfilelayout.c:1312:6: warning: variable 'err' set but not used [-Wunused-but-set-variable]
    1312 |  int err;
         |      ^~~
--
   In file included from include/net/net_namespace.h:25,
                    from include/linux/inet.h:42,
                    from include/linux/sunrpc/msg_prot.h:205,
                    from include/linux/sunrpc/auth.h:14,
                    from include/linux/nfs_fs.h:31,
                    from flexfilelayout/flexfilelayoutdev.c:10:
>> include/net/netns/netfilter.h:37:2: warning: 'unused' attribute ignored [-Wattributes]
      37 |  u32 nf_max_table_jumps_netns __maybe_unused;
         |  ^~~
   flexfilelayout/flexfilelayoutdev.c: In function 'nfs4_ff_alloc_deviceid_node':
   flexfilelayout/flexfilelayoutdev.c:56:9: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
      56 |  int i, ret = -ENOMEM;
         |         ^~~


vim +/unused +37 include/net/netns/netfilter.h

    10	
    11	struct netns_nf {
    12	#if defined CONFIG_PROC_FS
    13		struct proc_dir_entry *proc_netfilter;
    14	#endif
    15		const struct nf_logger __rcu *nf_loggers[NFPROTO_NUMPROTO];
    16	#ifdef CONFIG_SYSCTL
    17		struct ctl_table_header *nf_log_dir_header;
    18		struct ctl_table_header *nf_limit_control_dir_header;
    19	#ifdef CONFIG_LWTUNNEL
    20		struct ctl_table_header *nf_lwtnl_dir_header;
    21	#endif
    22	#endif
    23		struct nf_hook_entries __rcu *hooks_ipv4[NF_INET_NUMHOOKS];
    24		struct nf_hook_entries __rcu *hooks_ipv6[NF_INET_NUMHOOKS];
    25	#ifdef CONFIG_NETFILTER_FAMILY_ARP
    26		struct nf_hook_entries __rcu *hooks_arp[NF_ARP_NUMHOOKS];
    27	#endif
    28	#ifdef CONFIG_NETFILTER_FAMILY_BRIDGE
    29		struct nf_hook_entries __rcu *hooks_bridge[NF_INET_NUMHOOKS];
    30	#endif
    31	#if IS_ENABLED(CONFIG_NF_DEFRAG_IPV4)
    32		unsigned int defrag_ipv4_users;
    33	#endif
    34	#if IS_ENABLED(CONFIG_NF_DEFRAG_IPV6)
    35		unsigned int defrag_ipv6_users;
    36	#endif
  > 37		u32 nf_max_table_jumps_netns __maybe_unused;

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




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux