tree:   https://git.kernel.org/pub/scm/linux/kernel/git/abelloni/linux.git 
rtc-next
head:   686fef81a6969cd25138448d5f96b91ad8ea31db
commit: 00c36d73171b81563c9c73a5501743995a12fba6 [53/55] rtc: add support for 
the MediaTek MT2712 RTC
config: xtensa-allmodconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 9.2.0
reproduce:
        wget 
https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O 
~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 00c36d73171b81563c9c73a5501743995a12fba6
        # save the attached .config to linux build tree
        GCC_VERSION=9.2.0 make.cross ARCH=xtensa 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <l...@intel.com>

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

   drivers/rtc/rtc-mt2712.c: In function 'mt2712_rtc_set_alarm':
   drivers/rtc/rtc-mt2712.c:235:6: warning: unused variable 'irqen' 
[-Wunused-variable]
     235 |  u16 irqen;
         |      ^~~~~
   drivers/rtc/rtc-mt2712.c: At top level:
>> drivers/rtc/rtc-mt2712.c:409:1: error: expected ',' or ';' before 'static'
     409 | static struct platform_driver mt2712_rtc_driver = {
         | ^~~~~~
   In file included from drivers/rtc/rtc-mt2712.c:14:
   drivers/rtc/rtc-mt2712.c: In function 'mt2712_rtc_driver_init':
>> drivers/rtc/rtc-mt2712.c:418:24: error: 'mt2712_rtc_driver' undeclared 
>> (first use in this function); did you mean 'mt2712_rtc_probe'?
     418 | module_platform_driver(mt2712_rtc_driver);
         |                        ^~~~~~~~~~~~~~~~~
   include/linux/platform_device.h:214:29: note: in definition of macro 
'platform_driver_register'
     214 |  __platform_driver_register(drv, THIS_MODULE)
         |                             ^~~
   include/linux/platform_device.h:244:2: note: in expansion of macro 
'module_driver'
     244 |  module_driver(__platform_driver, platform_driver_register, \
         |  ^~~~~~~~~~~~~
>> drivers/rtc/rtc-mt2712.c:418:1: note: in expansion of macro 
>> 'module_platform_driver'
     418 | module_platform_driver(mt2712_rtc_driver);
         | ^~~~~~~~~~~~~~~~~~~~~~
   drivers/rtc/rtc-mt2712.c:418:24: note: each undeclared identifier is 
reported only once for each function it appears in
     418 | module_platform_driver(mt2712_rtc_driver);
         |                        ^~~~~~~~~~~~~~~~~
   include/linux/platform_device.h:214:29: note: in definition of macro 
'platform_driver_register'
     214 |  __platform_driver_register(drv, THIS_MODULE)
         |                             ^~~
   include/linux/platform_device.h:244:2: note: in expansion of macro 
'module_driver'
     244 |  module_driver(__platform_driver, platform_driver_register, \
         |  ^~~~~~~~~~~~~
>> drivers/rtc/rtc-mt2712.c:418:1: note: in expansion of macro 
>> 'module_platform_driver'
     418 | module_platform_driver(mt2712_rtc_driver);
         | ^~~~~~~~~~~~~~~~~~~~~~
   In file included from include/linux/device.h:31,
                    from include/linux/platform_device.h:13,
                    from drivers/rtc/rtc-mt2712.c:14:
   drivers/rtc/rtc-mt2712.c: In function 'mt2712_rtc_driver_exit':
>> drivers/rtc/rtc-mt2712.c:418:24: error: 'mt2712_rtc_driver' undeclared 
>> (first use in this function); did you mean 'mt2712_rtc_probe'?
     418 | module_platform_driver(mt2712_rtc_driver);
         |                        ^~~~~~~~~~~~~~~~~
   include/linux/device/driver.h:266:17: note: in definition of macro 
'module_driver'
     266 |  __unregister(&(__driver) , ##__VA_ARGS__); \
         |                 ^~~~~~~~
>> drivers/rtc/rtc-mt2712.c:418:1: note: in expansion of macro 
>> 'module_platform_driver'
     418 | module_platform_driver(mt2712_rtc_driver);
         | ^~~~~~~~~~~~~~~~~~~~~~
   drivers/rtc/rtc-mt2712.c: In function 'mt2712_rtc_driver_init':
>> drivers/rtc/rtc-mt2712.c:418:1: warning: control reaches end of non-void 
>> function [-Wreturn-type]
     418 | module_platform_driver(mt2712_rtc_driver);
         | ^~~~~~~~~~~~~~~~~~~~~~
   At top level:
   drivers/rtc/rtc-mt2712.c:312:12: warning: 'mt2712_rtc_probe' defined but not 
used [-Wunused-function]
     312 | static int mt2712_rtc_probe(struct platform_device *pdev)
         |            ^~~~~~~~~~~~~~~~

vim +409 drivers/rtc/rtc-mt2712.c

   408  
 > 409  static struct platform_driver mt2712_rtc_driver = {
   410          .driver = {
   411                  .name = "mt2712-rtc",
   412                  .of_match_table = mt2712_rtc_of_match,
   413                  .pm = &mt2712_pm_ops,
   414          },
   415          .probe  = mt2712_rtc_probe,
   416  };
   417  
 > 418  module_platform_driver(mt2712_rtc_driver);
   419  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-...@lists.01.org

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rtc-linux/202003161805.ClVSkcRP%25lkp%40intel.com.

Attachment: .config.gz
Description: application/gzip

Reply via email to