[Bisected] [1b4fa28a8b07] Build failure "net/core/gso_test.c"

From: Tasmiya Nalatwad
Date: Thu Oct 12 2023 - 03:38:07 EST


Greetings,

[net-next] [6.6-rc4] Build failure "net/core/gso_test.c"

--- Traces ---

make -j 33 -s && make modules_install && make install
net/core/gso_test.c:58:48: error: initializer element is not constant
   58 |                 .segs = (const unsigned int[]) { gso_size },
      |                                                ^
net/core/gso_test.c:58:48: note: (near initialization for ‘cases[0]’)
net/core/gso_test.c:65:48: error: initializer element is not constant
   65 |                 .segs = (const unsigned int[]) { gso_size, gso_size, 1 },
      |                                                ^
net/core/gso_test.c:65:48: note: (near initialization for ‘cases[1]’)
net/core/gso_test.c:72:49: error: initializer element is not constant
   72 |                 .frags = (const unsigned int[]) { gso_size, 1 },
      |                                                 ^
net/core/gso_test.c:72:49: note: (near initialization for ‘cases[2]’)
net/core/gso_test.c:74:48: error: initializer element is not constant
   74 |                 .segs = (const unsigned int[]) { gso_size, gso_size, 1 },
      |                                                ^
net/core/gso_test.c:74:48: note: (near initialization for ‘cases[2]’)
net/core/gso_test.c:80:49: error: initializer element is not constant
   80 |                 .frags = (const unsigned int[]) { gso_size, gso_size, 2 },
      |                                                 ^
net/core/gso_test.c:80:49: note: (near initialization for ‘cases[3]’)
net/core/gso_test.c:82:48: error: initializer element is not constant
   82 |                 .segs = (const unsigned int[]) { gso_size, gso_size, 2 },
      |                                                ^
net/core/gso_test.c:82:48: note: (near initialization for ‘cases[3]’)
net/core/gso_test.c:89:49: error: initializer element is not constant
   89 |                 .frags = (const unsigned int[]) { gso_size, 3 },
      |                                                 ^
net/core/gso_test.c:89:49: note: (near initialization for ‘cases[4]’)
net/core/gso_test.c:91:48: error: initializer element is not constant
   91 |                 .segs = (const unsigned int[]) { 2 * gso_size, 3 },
      |                                                ^
net/core/gso_test.c:91:48: note: (near initialization for ‘cases[4]’)
net/core/gso_test.c:99:53: error: initializer element is not constant
   99 |                 .frag_skbs = (const unsigned int[]) { gso_size, gso_size },
      |                                                     ^
net/core/gso_test.c:99:53: note: (near initialization for ‘cases[5]’)
net/core/gso_test.c:101:48: error: initializer element is not constant
  101 |                 .segs = (const unsigned int[]) { gso_size, gso_size, gso_size },
      |                                                ^
net/core/gso_test.c:101:48: note: (near initialization for ‘cases[5]’)
net/core/gso_test.c:107:53: error: initializer element is not constant
  107 |                 .frag_skbs = (const unsigned int[]) { gso_size, gso_size },
      |                                                     ^
net/core/gso_test.c:107:53: note: (near initialization for ‘cases[6]’)
net/core/gso_test.c:109:48: error: initializer element is not constant
  109 |                 .segs = (const unsigned int[]) { gso_size, gso_size },
      |                                                ^
net/core/gso_test.c:109:48: note: (near initialization for ‘cases[6]’)
net/core/gso_test.c:117:53: error: initializer element is not constant
  117 |                 .frag_skbs = (const unsigned int[]) { gso_size, 1, gso_size, 2 },
      |                                                     ^
net/core/gso_test.c:117:53: note: (near initialization for ‘cases[7]’)
net/core/gso_test.c:119:48: error: initializer element is not constant
  119 |                 .segs = (const unsigned int[]) { gso_size, gso_size, gso_size, 3 },
      |                                                ^
net/core/gso_test.c:119:48: note: (near initialization for ‘cases[7]’)
make[4]: *** [scripts/Makefile.build:243: net/core/gso_test.o] Error 1
make[4]: *** Waiting for unfinished jobs....
make[3]: *** [scripts/Makefile.build:480: net/core] Error 2
make[3]: *** Waiting for unfinished jobs....

make[2]: *** [scripts/Makefile.build:480: net] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [/root/net-next/Makefile:1913: .] Error 2
make: *** [Makefile:234: __sub-make] Error 2

gitbisect points to below commit, reverting the below commit resolves the issue

commit 1b4fa28a8b07eb331aeb7fbfc806c0d2e3dc3627
    net: parametrize skb_segment unit test to expand coverage

--
Regards,
Tasmiya Nalatwad
IBM Linux Technology Center