All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Willem de Bruijn <willemb@google.com>
Cc: oe-kbuild-all@lists.linux.dev,
	Linux Memory Management List <linux-mm@kvack.org>,
	Florian Westphal <fw@strlen.de>
Subject: [linux-next:master 10512/13518] net/core/gso_test.c:52:34: error: initializer element is not constant
Date: Fri, 20 Oct 2023 03:26:39 +0800	[thread overview]
Message-ID: <202310200345.b3Y2A2k0-lkp@intel.com> (raw)

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

                 reply	other threads:[~2023-10-19 19:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202310200345.b3Y2A2k0-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=fw@strlen.de \
    --cc=linux-mm@kvack.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=willemb@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.