Linux RTC
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Marcin Niestroj <m.niestroj@grinn-global.com>
Cc: kbuild-all@01.org, Tony Lindgren <tony@atomide.com>,
	Rob Herring <robh+dt@kernel.org>,
	Grygorii Strashko <grygorii.strashko@ti.com>,
	Alexandre Belloni <alexandre.belloni@free-electrons.com>,
	Keerthy <j-keerthy@ti.com>, Pawel Moll <pawel.moll@arm.com>,
	Alessandro Zummo <a.zummo@towertech.it>,
	rtc-linux@googlegroups.com, linux-omap@vger.kernel.org,
	devicetree@vger.kernel.org,
	Marcin Niestroj <m.niestroj@grinn-global.com>
Subject: [rtc-linux] Re: [PATCH v5] rtc: omap: Support ext_wakeup configuration
Date: Thu, 8 Sep 2016 23:03:53 +0800	[thread overview]
Message-ID: <201609082314.rd2eODRA%fengguang.wu@intel.com> (raw)
In-Reply-To: <20160908105203.8641-1-m.niestroj@grinn-global.com>

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

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=<commit> (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 '<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))
                                                              ^
   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.

[-- Attachment #2: .config.gz --]
[-- Type: application/octet-stream, Size: 46072 bytes --]

  parent reply	other threads:[~2016-09-08 15:05 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-08 10:52 [rtc-linux] [PATCH v5] rtc: omap: Support ext_wakeup configuration Marcin Niestroj
2016-09-08 14:20 ` [rtc-linux] " kbuild test robot
2016-09-12  9:01   ` Marcin Niestroj
2016-09-13 21:58     ` Alexandre Belloni
2016-09-14  9:21       ` Marcin Niestroj
2016-09-15 12:08         ` Alexandre Belloni
2016-09-08 14:27 ` kbuild test robot
2016-09-08 15:03 ` kbuild test robot [this message]
2016-09-16 15:37 ` Rob Herring

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=201609082314.rd2eODRA%fengguang.wu@intel.com \
    --to=lkp@intel.com \
    --cc=a.zummo@towertech.it \
    --cc=alexandre.belloni@free-electrons.com \
    --cc=devicetree@vger.kernel.org \
    --cc=grygorii.strashko@ti.com \
    --cc=j-keerthy@ti.com \
    --cc=kbuild-all@01.org \
    --cc=linux-omap@vger.kernel.org \
    --cc=m.niestroj@grinn-global.com \
    --cc=pawel.moll@arm.com \
    --cc=robh+dt@kernel.org \
    --cc=rtc-linux@googlegroups.com \
    --cc=tony@atomide.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox