* [linux-next:master 10512/13518] net/core/gso_test.c:52:34: error: initializer element is not constant
@ 2023-10-19 19:26 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2023-10-19 19:26 UTC (permalink / raw)
To: Willem de Bruijn
Cc: oe-kbuild-all, Linux Memory Management List, Florian Westphal
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: 4230ea146b1e64628f11e44290bb4008e391bc24
commit: 1b4fa28a8b07eb331aeb7fbfc806c0d2e3dc3627 [10512/13518] net: parametrize skb_segment unit test to expand coverage
config: x86_64-randconfig-071-20231020 (https://download.01.org/0day-ci/archive/20231020/202310200345.b3Y2A2k0-lkp@intel.com/config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231020/202310200345.b3Y2A2k0-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/202310200345.b3Y2A2k0-lkp@intel.com/
Note: the linux-next/master HEAD 4230ea146b1e64628f11e44290bb4008e391bc24 builds fine.
It may have been fixed somewhere.
All errors (new ones prefixed by >>):
>> net/core/gso_test.c:52:34: error: initializer element is not constant
52 | .segs = (const unsigned int[]) { gso_size },
| ^
net/core/gso_test.c:52:34: note: (near initialization for 'cases[0]')
net/core/gso_test.c:59:34: error: initializer element is not constant
59 | .segs = (const unsigned int[]) { gso_size, gso_size, 1 },
| ^
net/core/gso_test.c:59:34: note: (near initialization for 'cases[1]')
net/core/gso_test.c:66:35: error: initializer element is not constant
66 | .frags = (const unsigned int[]) { gso_size, 1 },
| ^
net/core/gso_test.c:66:35: note: (near initialization for 'cases[2]')
net/core/gso_test.c:68:34: error: initializer element is not constant
68 | .segs = (const unsigned int[]) { gso_size, gso_size, 1 },
| ^
net/core/gso_test.c:68:34: note: (near initialization for 'cases[2]')
net/core/gso_test.c:74:35: error: initializer element is not constant
74 | .frags = (const unsigned int[]) { gso_size, gso_size, 2 },
| ^
net/core/gso_test.c:74:35: note: (near initialization for 'cases[3]')
net/core/gso_test.c:76:34: error: initializer element is not constant
76 | .segs = (const unsigned int[]) { gso_size, gso_size, 2 },
| ^
net/core/gso_test.c:76:34: note: (near initialization for 'cases[3]')
net/core/gso_test.c:83:35: error: initializer element is not constant
83 | .frags = (const unsigned int[]) { gso_size, 3 },
| ^
net/core/gso_test.c:83:35: note: (near initialization for 'cases[4]')
net/core/gso_test.c:85:34: error: initializer element is not constant
85 | .segs = (const unsigned int[]) { 2 * gso_size, 3 },
| ^
net/core/gso_test.c:85:34: note: (near initialization for 'cases[4]')
vim +52 net/core/gso_test.c
45
46 static struct gso_test_case cases[] = {
47 {
48 .id = GSO_TEST_NO_GSO,
49 .name = "no_gso",
50 .linear_len = gso_size,
51 .nr_segs = 1,
> 52 .segs = (const unsigned int[]) { gso_size },
53 },
54 {
55 .id = GSO_TEST_LINEAR,
56 .name = "linear",
57 .linear_len = gso_size + gso_size + 1,
58 .nr_segs = 3,
59 .segs = (const unsigned int[]) { gso_size, gso_size, 1 },
60 },
61 {
62 .id = GSO_TEST_FRAGS,
63 .name = "frags",
64 .linear_len = gso_size,
65 .nr_frags = 2,
66 .frags = (const unsigned int[]) { gso_size, 1 },
67 .nr_segs = 3,
68 .segs = (const unsigned int[]) { gso_size, gso_size, 1 },
69 },
70 {
71 .id = GSO_TEST_FRAGS_PURE,
72 .name = "frags_pure",
73 .nr_frags = 3,
74 .frags = (const unsigned int[]) { gso_size, gso_size, 2 },
75 .nr_segs = 3,
76 .segs = (const unsigned int[]) { gso_size, gso_size, 2 },
77 },
78 {
79 .id = GSO_TEST_GSO_PARTIAL,
80 .name = "gso_partial",
81 .linear_len = gso_size,
82 .nr_frags = 2,
83 .frags = (const unsigned int[]) { gso_size, 3 },
84 .nr_segs = 2,
85 .segs = (const unsigned int[]) { 2 * gso_size, 3 },
86 },
87 };
88
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-19 19:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-19 19:26 [linux-next:master 10512/13518] net/core/gso_test.c:52:34: error: initializer element is not constant kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox