Re: [PATCH] netfilter: uapi: Merge xt_*.h/c and ipt_*.h which has same name.
From: kernel test robot
Date: Wed Jan 01 2025 - 17:31:39 EST
Hi,
kernel test robot noticed the following build errors:
[auto build test ERROR on netfilter-nf/main]
[also build test ERROR on linus/master v6.13-rc5 next-20241220]
[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/egyszeregy-freemail-hu/netfilter-uapi-Merge-xt_-h-c-and-ipt_-h-which-has-same-name/20250102-032847
base: https://git.kernel.org/pub/scm/linux/kernel/git/netfilter/nf.git main
patch link: https://lore.kernel.org/r/20250101192015.1577-1-egyszeregy%40freemail.hu
patch subject: [PATCH] netfilter: uapi: Merge xt_*.h/c and ipt_*.h which has same name.
config: arm64-randconfig-001-20250102 (https://download.01.org/0day-ci/archive/20250102/202501020613.zfPO1hvh-lkp@xxxxxxxxx/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project ed572f2003275da8e06a634b4d6658b7921e8334)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250102/202501020613.zfPO1hvh-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/202501020613.zfPO1hvh-lkp@xxxxxxxxx/
All errors (new ones prefixed by >>):
In file included from net/ipv4/netfilter/ipt_ECN.c:9:
In file included from include/linux/skbuff.h:17:
In file included from include/linux/bvec.h:10:
In file included from include/linux/highmem.h:8:
In file included from include/linux/cacheflush.h:5:
In file included from arch/arm64/include/asm/cacheflush.h:11:
In file included from include/linux/kgdb.h:19:
In file included from include/linux/kprobes.h:28:
In file included from include/linux/ftrace.h:13:
In file included from include/linux/kallsyms.h:13:
In file included from include/linux/mm.h:2223:
include/linux/vmstat.h:504:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
504 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
505 | item];
| ~~~~
include/linux/vmstat.h:511:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
511 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
512 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
include/linux/vmstat.h:518:36: warning: arithmetic between different enumeration types ('enum node_stat_item' and 'enum lru_list') [-Wenum-enum-conversion]
518 | return node_stat_name(NR_LRU_BASE + lru) + 3; // skip "nr_"
| ~~~~~~~~~~~ ^ ~~~
include/linux/vmstat.h:524:43: warning: arithmetic between different enumeration types ('enum zone_stat_item' and 'enum numa_stat_item') [-Wenum-enum-conversion]
524 | return vmstat_text[NR_VM_ZONE_STAT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~ ^
525 | NR_VM_NUMA_EVENT_ITEMS +
| ~~~~~~~~~~~~~~~~~~~~~~
In file included from net/ipv4/netfilter/ipt_ECN.c:17:
>> include/uapi/linux/netfilter_ipv4/ipt_ecn.h:19:2: error: expected identifier
19 | IPT_ECN_IP_MASK = XT_ECN_IP_MASK,
| ^
include/uapi/linux/netfilter_ipv4/ipt_ecn.h:11:25: note: expanded from macro 'IPT_ECN_IP_MASK'
11 | #define IPT_ECN_IP_MASK (~XT_DSCP_MASK)
| ^
4 warnings and 1 error generated.
vim +19 include/uapi/linux/netfilter_ipv4/ipt_ecn.h
4b5f2ebf33bae9 include/uapi/linux/netfilter_ipv4/ipt_ecn.h Benjamin Szőke 2025-01-01 17
a4c6f9d3636db5 include/linux/netfilter_ipv4/ipt_ecn.h Jan Engelhardt 2011-06-09 18 enum {
a4c6f9d3636db5 include/linux/netfilter_ipv4/ipt_ecn.h Jan Engelhardt 2011-06-09 @19 IPT_ECN_IP_MASK = XT_ECN_IP_MASK,
a4c6f9d3636db5 include/linux/netfilter_ipv4/ipt_ecn.h Jan Engelhardt 2011-06-09 20 IPT_ECN_OP_MATCH_IP = XT_ECN_OP_MATCH_IP,
a4c6f9d3636db5 include/linux/netfilter_ipv4/ipt_ecn.h Jan Engelhardt 2011-06-09 21 IPT_ECN_OP_MATCH_ECE = XT_ECN_OP_MATCH_ECE,
a4c6f9d3636db5 include/linux/netfilter_ipv4/ipt_ecn.h Jan Engelhardt 2011-06-09 22 IPT_ECN_OP_MATCH_CWR = XT_ECN_OP_MATCH_CWR,
a4c6f9d3636db5 include/linux/netfilter_ipv4/ipt_ecn.h Jan Engelhardt 2011-06-09 23 IPT_ECN_OP_MATCH_MASK = XT_ECN_OP_MATCH_MASK,
a4c6f9d3636db5 include/linux/netfilter_ipv4/ipt_ecn.h Jan Engelhardt 2011-06-09 24 };
a4c6f9d3636db5 include/linux/netfilter_ipv4/ipt_ecn.h Jan Engelhardt 2011-06-09 25
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki