[PATCH] staging: sm750fb: fix function definition argument style warning

kbuild test robot lkp at intel.com
Sun Nov 27 19:51:25 UTC 2016


Hi Andrea,

[auto build test ERROR on staging/staging-testing]
[also build test ERROR on next-20161125]
[cannot apply to v4.9-rc6]
[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/Andrea-Ghittino/staging-sm750fb-fix-function-definition-argument-style-warning/20161128-004817
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.2.0-3) 6.2.0 20160901
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All errors (new ones prefixed by >>):

   In file included from drivers/staging/sm750fb/sm750.c:18:0:
>> drivers/staging/sm750fb/sm750.h:187:49: error: expected declaration specifiers or '...' before ',' token
    int hw_sm750_inithw(struct sm750_dev *sm750_dev,, struct pci_dev *pdev);
                                                    ^
   drivers/staging/sm750fb/sm750.c: In function 'lynxfb_resume':
>> drivers/staging/sm750fb/sm750.c:475:2: error: implicit declaration of function 'hw_sm750_inithw' [-Werror=implicit-function-declaration]
     hw_sm750_inithw(sm750_dev, pdev);
     ^~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors
--
   In file included from drivers/staging/sm750fb/sm750_hw.c:22:0:
>> drivers/staging/sm750fb/sm750.h:187:49: error: expected declaration specifiers or '...' before ',' token
    int hw_sm750_inithw(struct sm750_dev *sm750_dev,, struct pci_dev *pdev);
                                                    ^

vim +187 drivers/staging/sm750fb/sm750.h

   181		/* 10^12 / picosecond period gives frequency in Hz */
   182		do_div(numerator, psvalue);
   183		return (unsigned long)numerator;
   184	}
   185	
   186	int hw_sm750_map(struct sm750_dev *sm750_dev, struct pci_dev *pdev);
 > 187	int hw_sm750_inithw(struct sm750_dev *sm750_dev,, struct pci_dev *pdev);
   188	void hw_sm750_initAccel(struct sm750_dev *sm750_dev);
   189	int hw_sm750_deWait(void);
   190	int hw_sm750le_deWait(void);

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: .config.gz
Type: application/gzip
Size: 56914 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20161128/00ff6d19/attachment-0001.bin>


More information about the devel mailing list