All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-review:UPDATE-20201019-112134/Srinivasan-Raju/wireless-Initial-driver-submission-for-pureLiFi-STA-devices/20201016-144105 1/1] drivers/net/wireless/purelifi/usb.c:1516:2: error: expected '}' before '.' token
Date: Tue, 20 Oct 2020 13:17:26 +0800	[thread overview]
Message-ID: <202010201322.fKdGCWeh-lkp@intel.com> (raw)

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

tree:   https://github.com/0day-ci/linux/commits/UPDATE-20201019-112134/Srinivasan-Raju/wireless-Initial-driver-submission-for-pureLiFi-STA-devices/20201016-144105
head:   6af27df93ddca3819f37f2c80554f72236d5043f
commit: 6af27df93ddca3819f37f2c80554f72236d5043f [1/1] wireless: Initial driver submission for pureLiFi STA devices
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # https://github.com/0day-ci/linux/commit/6af27df93ddca3819f37f2c80554f72236d5043f
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review UPDATE-20201019-112134/Srinivasan-Raju/wireless-Initial-driver-submission-for-pureLiFi-STA-devices/20201016-144105
        git checkout 6af27df93ddca3819f37f2c80554f72236d5043f
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from include/linux/kernel.h:11,
                    from drivers/net/wireless/purelifi/usb.c:3:
   include/linux/scatterlist.h: In function 'sg_set_buf':
   arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra]
     169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
         |                                                 ^~
   include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
      78 | # define unlikely(x) __builtin_expect(!!(x), 0)
         |                                          ^
   include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
     143 |  BUG_ON(!virt_addr_valid(buf));
         |  ^~~~~~
   include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
     143 |  BUG_ON(!virt_addr_valid(buf));
         |          ^~~~~~~~~~~~~~~
   In file included from include/uapi/linux/posix_types.h:5,
                    from include/uapi/linux/types.h:14,
                    from include/linux/types.h:6,
                    from include/linux/limits.h:6,
                    from include/linux/kernel.h:7,
                    from drivers/net/wireless/purelifi/usb.c:3:
   drivers/net/wireless/purelifi/usb.c: At top level:
>> include/linux/stddef.h:8:14: error: expected identifier before '(' token
       8 | #define NULL ((void *)0)
         |              ^
   drivers/net/wireless/purelifi/usb.c:1503:17: note: in expansion of macro 'NULL'
    1503 | #define suspend NULL
         |                 ^~~~
   drivers/net/wireless/purelifi/usb.c:1515:3: note: in expansion of macro 'suspend'
    1515 |  .suspend        = suspend,
         |   ^~~~~~~
>> drivers/net/wireless/purelifi/usb.c:1516:2: error: expected '}' before '.' token
    1516 |  .resume         = resume,
         |  ^
   drivers/net/wireless/purelifi/usb.c:1508:35: note: to match this '{'
    1508 | static struct usb_driver driver = {
         |                                   ^
   drivers/net/wireless/purelifi/usb.c:1457:29: warning: 'get_purelifi_usb' defined but not used [-Wunused-function]
    1457 | static struct purelifi_usb *get_purelifi_usb(struct usb_interface *intf)
         |                             ^~~~~~~~~~~~~~~~

vim +1516 drivers/net/wireless/purelifi/usb.c

  1502	
> 1503	#define suspend NULL
  1504	#define resume  NULL
  1505	
  1506	#endif
  1507	
  1508	static struct usb_driver driver = {
  1509		.name        = KBUILD_MODNAME,
  1510		.id_table    = usb_ids,
  1511		.probe        = probe,
  1512		.disconnect    = disconnect,
  1513		.pre_reset    = pre_reset,
  1514		.post_reset    = post_reset,
  1515		.suspend        = suspend,
> 1516		.resume         = resume,
  1517		.disable_hub_initiated_lpm = 1,
  1518	};
  1519	

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

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

                 reply	other threads:[~2020-10-20  5:17 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=202010201322.fKdGCWeh-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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.