Search Linux Wireless

Re: [PATCH 1/2] brcmfmac: modify __brcmf_err() to take bus as a parameter

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Rafał,

I love your patch! Yet something to improve:

[auto build test ERROR on wireless-drivers-next/master]
[also build test ERROR on v5.0-rc2 next-20190115]
[if your patch is applied to the wrong git tree, please drop us a note to help improve the system]

url:    https://github.com/0day-ci/linux/commits/Rafa-Mi-ecki/brcmfmac-modify-__brcmf_err-to-take-bus-as-a-parameter/20190115-183015
base:   https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/wireless-drivers-next.git master
config: i386-randconfig-x006-201902 (attached as .config)
compiler: gcc-7 (Debian 7.3.0-1) 7.3.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.c: In function '__brcmf_err':
>> drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.c:34:3: error: implicit declaration of function 'dev_err'; did you mean 'xa_err'? [-Werror=implicit-function-declaration]
      dev_err(bus->dev, "%s: %pV", func, &vaf);
      ^~~~~~~
      xa_err
>> drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.c:34:14: error: dereferencing pointer to incomplete type 'struct brcmf_bus'
      dev_err(bus->dev, "%s: %pV", func, &vaf);
                 ^~
   cc1: some warnings being treated as errors

vim +34 drivers/net/wireless/broadcom/brcm80211/brcmfmac/tracepoint.c

    23	
    24	void __brcmf_err(struct brcmf_bus *bus, const char *func, const char *fmt, ...)
    25	{
    26		struct va_format vaf = {
    27			.fmt = fmt,
    28		};
    29		va_list args;
    30	
    31		va_start(args, fmt);
    32		vaf.va = &args;
    33		if (bus)
  > 34			dev_err(bus->dev, "%s: %pV", func, &vaf);
    35		else
    36			pr_err("%s: %pV", func, &vaf);
    37		trace_brcmf_err(func, &vaf);
    38		va_end(args);
    39	}
    40	

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

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Wireless Regulations]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux