Hi Marcin, [auto build test WARNING on abelloni/rtc-next] [also build test WARNING on v4.8-rc5 next-20160908] [if your patch is applied to the wrong git tree, please drop us a note to help improve the system] [Suggest to use git(>=2.9.0) format-patch --base= (or --base=auto for convenience) to record what (public, well-known) commit your patch series was built on] [Check https://git-scm.com/docs/git-format-patch for more information] url: https://github.com/0day-ci/linux/commits/Marcin-Niestroj/rtc-omap-Support-ext_wakeup-configuration/20160908-190900 base: https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git rtc-next config: xtensa-allyesconfig (attached as .config) compiler: xtensa-linux-gcc (GCC) 4.9.0 reproduce: wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # save the attached .config to linux build tree make.cross ARCH=xtensa All warnings (new ones prefixed by >>): from drivers/rtc/rtc-omap.c:18: include/linux/bug.h:34:45: error: bit-field '' 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)) ^ drivers/rtc/rtc-omap.c:657:11: note: in expansion of macro 'ARRAY_SIZE' .npins = ARRAY_SIZE(rtc_pins_desc), ^ include/linux/bug.h:34:45: warning: excess elements in struct initializer #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)) ^ drivers/rtc/rtc-omap.c:657:11: note: in expansion of macro 'ARRAY_SIZE' .npins = ARRAY_SIZE(rtc_pins_desc), ^ include/linux/bug.h:34:45: warning: (near initialization for 'rtc_pinctrl_desc') #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)) ^ drivers/rtc/rtc-omap.c:657:11: note: in expansion of macro 'ARRAY_SIZE' .npins = ARRAY_SIZE(rtc_pins_desc), ^ drivers/rtc/rtc-omap.c:658:2: error: unknown field 'pctlops' specified in initializer .pctlops = &rtc_pinctrl_ops, ^ drivers/rtc/rtc-omap.c:658:2: warning: excess elements in struct initializer drivers/rtc/rtc-omap.c:658:2: warning: (near initialization for 'rtc_pinctrl_desc') drivers/rtc/rtc-omap.c:659:2: error: unknown field 'confops' specified in initializer .confops = &rtc_pinconf_ops, ^ drivers/rtc/rtc-omap.c:659:2: warning: excess elements in struct initializer drivers/rtc/rtc-omap.c:659:2: warning: (near initialization for 'rtc_pinctrl_desc') drivers/rtc/rtc-omap.c:660:2: error: unknown field 'custom_params' specified in initializer .custom_params = rtc_params, ^ drivers/rtc/rtc-omap.c:660:2: warning: excess elements in struct initializer drivers/rtc/rtc-omap.c:660:2: warning: (near initialization for 'rtc_pinctrl_desc') drivers/rtc/rtc-omap.c:661:2: error: unknown field 'num_custom_params' specified in initializer .num_custom_params = ARRAY_SIZE(rtc_params), ^ In file included from include/linux/thread_info.h:11:0, from arch/xtensa/include/asm/current.h:16, from include/linux/mutex.h:13, from include/linux/notifier.h:13, from include/linux/clk.h:17, from drivers/rtc/rtc-omap.c:18: include/linux/bug.h:34:45: warning: excess elements in struct initializer #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)) ^ drivers/rtc/rtc-omap.c:661:23: note: in expansion of macro 'ARRAY_SIZE' .num_custom_params = ARRAY_SIZE(rtc_params), ^ include/linux/bug.h:34:45: warning: (near initialization for 'rtc_pinctrl_desc') #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)) ^ drivers/rtc/rtc-omap.c:661:23: note: in expansion of macro 'ARRAY_SIZE' .num_custom_params = ARRAY_SIZE(rtc_params), ^ drivers/rtc/rtc-omap.c:663:2: error: unknown field 'custom_conf_items' specified in initializer .custom_conf_items = rtc_conf_items, ^ drivers/rtc/rtc-omap.c:663:2: warning: excess elements in struct initializer drivers/rtc/rtc-omap.c:663:2: warning: (near initialization for 'rtc_pinctrl_desc') drivers/rtc/rtc-omap.c:665:2: error: unknown field 'owner' specified in initializer .owner = THIS_MODULE, ^ In file included from include/linux/linkage.h:6:0, from include/linux/kernel.h:6, from include/linux/clk.h:16, from drivers/rtc/rtc-omap.c:18: include/linux/export.h:36:30: warning: excess elements in struct initializer #define THIS_MODULE ((struct module *)0) ^ >> drivers/rtc/rtc-omap.c:665:11: note: in expansion of macro 'THIS_MODULE' .owner = THIS_MODULE, ^ include/linux/export.h:36:30: warning: (near initialization for 'rtc_pinctrl_desc') #define THIS_MODULE ((struct module *)0) ^ >> drivers/rtc/rtc-omap.c:665:11: note: in expansion of macro 'THIS_MODULE' .owner = THIS_MODULE, ^ drivers/rtc/rtc-omap.c: In function 'omap_rtc_probe': drivers/rtc/rtc-omap.c:825:2: error: invalid use of undefined type 'struct pinctrl_desc' rtc_pinctrl_desc.name = dev_name(&pdev->dev); ^ drivers/rtc/rtc-omap.c:827:2: error: implicit declaration of function 'pinctrl_register' [-Werror=implicit-function-declaration] rtc->pctldev = pinctrl_register(&rtc_pinctrl_desc, &pdev->dev, rtc); ^ drivers/rtc/rtc-omap.c:827:15: warning: assignment makes pointer from integer without a cast rtc->pctldev = pinctrl_register(&rtc_pinctrl_desc, &pdev->dev, rtc); ^ drivers/rtc/rtc-omap.c: In function 'omap_rtc_remove': drivers/rtc/rtc-omap.c:877:2: error: implicit declaration of function 'pinctrl_unregister' [-Werror=implicit-function-declaration] pinctrl_unregister(rtc->pctldev); ^ drivers/rtc/rtc-omap.c: At top level: drivers/rtc/rtc-omap.c:535:38: warning: 'rtc_pins_desc' defined but not used [-Wunused-variable] static const struct pinctrl_pin_desc rtc_pins_desc[] = { ^ cc1: some warnings being treated as errors vim +/THIS_MODULE +665 drivers/rtc/rtc-omap.c 649 static const struct pinconf_ops rtc_pinconf_ops = { 650 .is_generic = true, 651 .pin_config_get = rtc_pinconf_get, 652 .pin_config_set = rtc_pinconf_set, 653 }; 654 655 static struct pinctrl_desc rtc_pinctrl_desc = { 656 .pins = rtc_pins_desc, 657 .npins = ARRAY_SIZE(rtc_pins_desc), 658 .pctlops = &rtc_pinctrl_ops, 659 .confops = &rtc_pinconf_ops, 660 .custom_params = rtc_params, 661 .num_custom_params = ARRAY_SIZE(rtc_params), 662 #ifdef CONFIG_DEBUG_FS 663 .custom_conf_items = rtc_conf_items, 664 #endif > 665 .owner = THIS_MODULE, 666 }; 667 668 static int omap_rtc_probe(struct platform_device *pdev) 669 { 670 struct omap_rtc *rtc; 671 struct resource *res; 672 u8 reg, mask, new_ctrl; 673 const struct platform_device_id *id_entry; --- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation -- You received this message because you are subscribed to "rtc-linux". Membership options at http://groups.google.com/group/rtc-linux . Please read http://groups.google.com/group/rtc-linux/web/checklist before submitting a driver. --- You received this message because you are subscribed to the Google Groups "rtc-linux" group. To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.