All of lore.kernel.org
 help / color / mirror / Atom feed
* [mac80211-next:genl 2/2] net/netlink/genetlink.c:693:9: error: 'genl_ctrl_ops' undeclared here (not in a function)
@ 2016-10-24  7:53 kbuild test robot
  0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2016-10-24  7:53 UTC (permalink / raw)
  To: Johannes Berg; +Cc: kbuild-all, linux-wireless

[-- Attachment #1: Type: text/plain, Size: 4121 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/jberg/mac80211-next.git genl
head:   e406d0fb91172c4dc5364b4a2228679cb07e512c
commit: e406d0fb91172c4dc5364b4a2228679cb07e512c [2/2] genetlink: statically initialize families
config: i386-randconfig-x004-201643 (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        git checkout e406d0fb91172c4dc5364b4a2228679cb07e512c
        # save the attached .config to linux build tree
        make ARCH=i386 

All error/warnings (new ones prefixed by >>):

>> net/netlink/genetlink.c:693:9: error: 'genl_ctrl_ops' undeclared here (not in a function)
     .ops = genl_ctrl_ops,
            ^~~~~~~~~~~~~
   In file included from include/linux/thread_info.h:11:0,
                    from arch/x86/include/asm/preempt.h:6,
                    from include/linux/preempt.h:59,
                    from include/linux/spinlock.h:50,
                    from include/linux/seqlock.h:35,
                    from include/linux/time.h:5,
                    from include/linux/stat.h:18,
                    from include/linux/module.h:10,
                    from net/netlink/genetlink.c:9:
   include/linux/bug.h:37:45: error: bit-field '<anonymous>' width not an integer constant
    #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
                                                ^
   include/linux/compiler-gcc.h:64:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
    #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
                               ^~~~~~~~~~~~~~~~~
   include/linux/kernel.h:53:59: note: in expansion of macro '__must_be_array'
    #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                                                              ^~~~~~~~~~~~~~~
>> net/netlink/genetlink.c:694:11: note: in expansion of macro 'ARRAY_SIZE'
     .n_ops = ARRAY_SIZE(genl_ctrl_ops),
              ^~~~~~~~~~
>> net/netlink/genetlink.c:695:12: error: 'genl_ctrl_groups' undeclared here (not in a function)
     .mcgrps = genl_ctrl_groups,
               ^~~~~~~~~~~~~~~~
   In file included from include/linux/thread_info.h:11:0,
                    from arch/x86/include/asm/preempt.h:6,
                    from include/linux/preempt.h:59,
                    from include/linux/spinlock.h:50,
                    from include/linux/seqlock.h:35,
                    from include/linux/time.h:5,
                    from include/linux/stat.h:18,
                    from include/linux/module.h:10,
                    from net/netlink/genetlink.c:9:
   include/linux/bug.h:37:45: error: bit-field '<anonymous>' width not an integer constant
    #define BUILD_BUG_ON_ZERO(e) (sizeof(struct { int:-!!(e); }))
                                                ^
   include/linux/compiler-gcc.h:64:28: note: in expansion of macro 'BUILD_BUG_ON_ZERO'
    #define __must_be_array(a) BUILD_BUG_ON_ZERO(__same_type((a), &(a)[0]))
                               ^~~~~~~~~~~~~~~~~
   include/linux/kernel.h:53:59: note: in expansion of macro '__must_be_array'
    #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr))
                                                              ^~~~~~~~~~~~~~~
   net/netlink/genetlink.c:696:14: note: in expansion of macro 'ARRAY_SIZE'
     .n_mcgrps = ARRAY_SIZE(genl_ctrl_groups),
                 ^~~~~~~~~~

vim +/genl_ctrl_ops +693 net/netlink/genetlink.c

   687	/**************************************************************************
   688	 * Controller
   689	 **************************************************************************/
   690	
   691	static struct genl_family genl_ctrl = {
   692		.module = THIS_MODULE,
 > 693		.ops = genl_ctrl_ops,
 > 694		.n_ops = ARRAY_SIZE(genl_ctrl_ops),
 > 695		.mcgrps = genl_ctrl_groups,
   696		.n_mcgrps = ARRAY_SIZE(genl_ctrl_groups),
   697		.id = GENL_ID_CTRL,
   698		.name = "nlctrl",

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 35732 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-10-24  7:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-24  7:53 [mac80211-next:genl 2/2] net/netlink/genetlink.c:693:9: error: 'genl_ctrl_ops' undeclared here (not in a function) kbuild test robot

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.