Re: [PATCH] Staging: comedidev.h comedi_lrange should be const struct
From: kbuild test robot
Date: Sun Apr 09 2017 - 12:24:10 EST
Hi Arthur,
[auto build test WARNING on staging/staging-testing]
[also build test WARNING on v4.11-rc5 next-20170407]
[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/Arthur-Brainville-Ybalrid/Staging-comedidev-h-comedi_lrange-should-be-const-struct/20170409-224503
config: x86_64-allyesdebian (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=x86_64
All warnings (new ones prefixed by >>):
In file included from drivers/staging/comedi/comedi_fops.c:34:0:
>> drivers/staging/comedi/comedidev.h:629:1: warning: useless type qualifier in empty declaration
};
^
vim +629 drivers/staging/comedi/comedidev.h
ed9eccbe8 David Schleef 2008-11-04 613 #define range_digital range_unipolar5
ed9eccbe8 David Schleef 2008-11-04 614
5459bc128 Ian Abbott 2015-09-21 615 /**
5459bc128 Ian Abbott 2015-09-21 616 * struct comedi_lrange - Describes a COMEDI range table
5459bc128 Ian Abbott 2015-09-21 617 * @length: Number of entries in the range table.
5459bc128 Ian Abbott 2015-09-21 618 * @range: Array of &struct comedi_krange, one for each range.
5459bc128 Ian Abbott 2015-09-21 619 *
5459bc128 Ian Abbott 2015-09-21 620 * Each element of @range[] describes the minimum and maximum physical range
5459bc128 Ian Abbott 2015-09-21 621 * range and the type of units. Typically, the type of unit is %UNIT_volt
5459bc128 Ian Abbott 2015-09-21 622 * (i.e. volts) and the minimum and maximum are in millionths of a volt.
5459bc128 Ian Abbott 2015-09-21 623 * There may also be a flag that indicates the minimum and maximum are merely
5459bc128 Ian Abbott 2015-09-21 624 * scale factors for an unknown, external reference.
5459bc128 Ian Abbott 2015-09-21 625 */
540e454c2 Arthur Brainville (Ybalrid 2017-04-09 626) const struct comedi_lrange {
ed9eccbe8 David Schleef 2008-11-04 627 int length;
3358a0ca2 Cheah Kok Cheong 2016-12-22 628 struct comedi_krange range[];
ed9eccbe8 David Schleef 2008-11-04 @629 };
ed9eccbe8 David Schleef 2008-11-04 630
42e558399 Ian Abbott 2015-09-21 631 /**
42e558399 Ian Abbott 2015-09-21 632 * comedi_range_is_bipolar() - Test if subdevice range is bipolar
42e558399 Ian Abbott 2015-09-21 633 * @s: COMEDI subdevice.
42e558399 Ian Abbott 2015-09-21 634 * @range: Index of range within a range table.
42e558399 Ian Abbott 2015-09-21 635 *
42e558399 Ian Abbott 2015-09-21 636 * Tests whether a range is bipolar by checking whether its minimum value
42e558399 Ian Abbott 2015-09-21 637 * is negative.
:::::: The code at line 629 was first introduced by commit
:::::: ed9eccbe8970f6eedc1b978c157caf1251a896d4 Staging: add comedi core
:::::: TO: David Schleef <ds@xxxxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxx>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
Attachment:
.config.gz
Description: application/gzip