[PATCH] Staging: comedi: ni_daq_dio24.c: Fix block comments use * on subsequent lines.

kbuild test robot lkp at intel.com
Sun Sep 4 11:08:01 UTC 2016


Hi Amit,

[auto build test WARNING on v4.8-rc4]
[cannot apply to staging/staging-testing next-20160825]
[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/Amit-Ghadge/Staging-comedi-ni_daq_dio24-c-Fix-block-comments-use-on-subsequent-lines/20160904-170303
config: i386-allyesconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-9) 6.1.1 20160705
reproduce:
        # save the attached .config to linux build tree
        make ARCH=i386 

All warnings (new ones prefixed by >>):

   drivers/staging/comedi/drivers/dac02.c:66:3: error: implicit declaration of function 'RANGE_mA' [-Werror=implicit-function-declaration]
      RANGE_mA(4, 20),
      ^~~~~~~~
   drivers/staging/comedi/drivers/dac02.c:66:3: error: initializer element is not constant
   drivers/staging/comedi/drivers/dac02.c:66:3: note: (near initialization for 'das02_ao_ranges.range[4].min')
   drivers/staging/comedi/drivers/dac02.c:67:3: warning: braces around scalar initializer
      RANGE_ext(0, 1)
      ^
   drivers/staging/comedi/drivers/dac02.c:67:3: note: (near initialization for 'das02_ao_ranges.range[4].max')
>> drivers/staging/comedi/drivers/dac02.c:67:15: warning: excess elements in scalar initializer
      RANGE_ext(0, 1)
                  ^
   drivers/staging/comedi/drivers/dac02.c:67:15: note: (near initialization for 'das02_ao_ranges.range[4].max')
   drivers/staging/comedi/drivers/dac02.c:67:26: warning: excess elements in scalar initializer
      RANGE_ext(0, 1)
                             ^    
   drivers/staging/comedi/drivers/dac02.c:67:26: note: (near initialization for 'das02_ao_ranges.range[4].max')
   drivers/staging/comedi/drivers/dac02.c:61:5: warning: missing braces around initializer [-Wmissing-braces]
     6, {
        ^
   drivers/staging/comedi/drivers/dac02.c:61:5: note: (near initialization for 'das02_ao_ranges.range')
   drivers/staging/comedi/drivers/dac02.c:60:53: warning: missing braces around initializer [-Wmissing-braces]
    static const struct comedi_lrange das02_ao_ranges = {
                                                        ^
   drivers/staging/comedi/drivers/dac02.c:60:53: note: (near initialization for 'das02_ao_ranges')
   cc1: some warnings being treated as errors

vim +67 drivers/staging/comedi/drivers/dac02.c

99999e27 H Hartley Sweeten 2014-03-11  60  static const struct comedi_lrange das02_ao_ranges = {
99999e27 H Hartley Sweeten 2014-03-11  61  	6, {
99999e27 H Hartley Sweeten 2014-03-11  62  		UNI_RANGE(5),
99999e27 H Hartley Sweeten 2014-03-11  63  		UNI_RANGE(10),
99999e27 H Hartley Sweeten 2014-03-11  64  		BIP_RANGE(5),
99999e27 H Hartley Sweeten 2014-03-11  65  		BIP_RANGE(10),
99999e27 H Hartley Sweeten 2014-03-11 @66  		RANGE_mA(4, 20),
99999e27 H Hartley Sweeten 2014-03-11 @67  		RANGE_ext(0, 1)
99999e27 H Hartley Sweeten 2014-03-11  68  	}
99999e27 H Hartley Sweeten 2014-03-11  69  };
99999e27 H Hartley Sweeten 2014-03-11  70  

:::::: The code at line 67 was first introduced by commit
:::::: 99999e27475c9cbed2d59ac33f1d6f21bf9e260d staging: comedi: dac02: introduce comedi driver for DAC02 boards

:::::: TO: H Hartley Sweeten <hartleys at visionengravers.com>
:::::: CC: Greg Kroah-Hartman <gregkh at linuxfoundation.org>

---
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/octet-stream
Size: 55146 bytes
Desc: not available
URL: <http://driverdev.linuxdriverproject.org/pipermail/driverdev-devel/attachments/20160904/79121343/attachment-0001.obj>


More information about the devel mailing list