All of lore.kernel.org
 help / color / mirror / Atom feed
* include/linux/rio.h:204:34: sparse: sparse: array of flexible structures
@ 2020-10-07 23:32 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-10-07 23:32 UTC (permalink / raw)
  To: kbuild

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

CC: kbuild-all(a)lists.01.org
CC: linux-kernel(a)vger.kernel.org
TO: "Gustavo A. R. Silva" <gustavo@embeddedor.com>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   c85fb28b6f999db9928b841f63f1beeb3074eeca
commit: a1c4b9247ddfb62fe3a23eb53d250382e82fae77 rio.h: Replace zero-length array with flexible-array member
date:   6 months ago
:::::: branch date: 28 hours ago
:::::: commit date: 6 months ago
config: powerpc64-randconfig-s032-20201008 (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 9.3.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.2-218-gc0e96d6d-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a1c4b9247ddfb62fe3a23eb53d250382e82fae77
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout a1c4b9247ddfb62fe3a23eb53d250382e82fae77
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=powerpc64 

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

echo
echo "sparse warnings: (new ones prefixed by >>)"
echo
   drivers/rapidio/rio.c: note: in included file:
>> include/linux/rio.h:204:34: sparse: sparse: array of flexible structures
--
   drivers/rapidio/rio-driver.c: note: in included file:
>> include/linux/rio.h:204:34: sparse: sparse: array of flexible structures
--
   drivers/rapidio/rio-sysfs.c: note: in included file:
>> include/linux/rio.h:204:34: sparse: sparse: array of flexible structures
--
   drivers/rapidio/rio-scan.c: note: in included file:
>> include/linux/rio.h:204:34: sparse: sparse: array of flexible structures
--
   drivers/rapidio/switches/tsi57x.c: note: in included file:
>> include/linux/rio.h:204:34: sparse: sparse: array of flexible structures
--
   drivers/rapidio/switches/idtcps.c: note: in included file:
>> include/linux/rio.h:204:34: sparse: sparse: array of flexible structures

vim +204 include/linux/rio.h

b77a2030dface6 Alexandre Bounine   2016-03-22  142  
70a50ebd9a9453 Matt Porter         2005-11-07  143  /**
70a50ebd9a9453 Matt Porter         2005-11-07  144   * struct rio_dev - RIO device info
70a50ebd9a9453 Matt Porter         2005-11-07  145   * @global_list: Node in list of all RIO devices
70a50ebd9a9453 Matt Porter         2005-11-07  146   * @net_list: Node in list of RIO devices in a network
70a50ebd9a9453 Matt Porter         2005-11-07  147   * @net: Network this device is a part of
2ec3ba69faf301 Alexandre Bounine   2013-07-03  148   * @do_enum: Enumeration flag
70a50ebd9a9453 Matt Porter         2005-11-07  149   * @did: Device ID
70a50ebd9a9453 Matt Porter         2005-11-07  150   * @vid: Vendor ID
70a50ebd9a9453 Matt Porter         2005-11-07  151   * @device_rev: Device revision
70a50ebd9a9453 Matt Porter         2005-11-07  152   * @asm_did: Assembly device ID
70a50ebd9a9453 Matt Porter         2005-11-07  153   * @asm_vid: Assembly vendor ID
70a50ebd9a9453 Matt Porter         2005-11-07  154   * @asm_rev: Assembly revision
70a50ebd9a9453 Matt Porter         2005-11-07  155   * @efptr: Extended feature pointer
70a50ebd9a9453 Matt Porter         2005-11-07  156   * @pef: Processing element features
70a50ebd9a9453 Matt Porter         2005-11-07  157   * @swpinfo: Switch port info
70a50ebd9a9453 Matt Porter         2005-11-07  158   * @src_ops: Source operation capabilities
70a50ebd9a9453 Matt Porter         2005-11-07  159   * @dst_ops: Destination operation capabilities
97ef6f7449da6c Randy Dunlap        2010-05-28  160   * @comp_tag: RIO component tag
97ef6f7449da6c Randy Dunlap        2010-05-28  161   * @phys_efptr: RIO device extended features pointer
1ae842de1dd805 Alexandre Bounine   2016-08-02  162   * @phys_rmap: LP-Serial Register Map Type (1 or 2)
97ef6f7449da6c Randy Dunlap        2010-05-28  163   * @em_efptr: RIO Error Management features pointer
fa78cc51794912 Matt Porter         2005-11-07  164   * @dma_mask: Mask of bits of RIO address this device implements
70a50ebd9a9453 Matt Porter         2005-11-07  165   * @driver: Driver claiming this device
70a50ebd9a9453 Matt Porter         2005-11-07  166   * @dev: Device model device
70a50ebd9a9453 Matt Porter         2005-11-07  167   * @riores: RIO resources this device owns
97ef6f7449da6c Randy Dunlap        2010-05-28  168   * @pwcback: port-write callback function for this device
a93192a5d245a2 Alexandre Bounine   2011-01-12  169   * @destid: Network destination ID (or associated destid for switch)
a93192a5d245a2 Alexandre Bounine   2011-01-12  170   * @hopcount: Hopcount to this device
68fe4df5d21294 Alexandre Bounine   2010-10-27  171   * @prev: Previous RIO device connected to the current one
b77a2030dface6 Alexandre Bounine   2016-03-22  172   * @state: device state
ded05782719d0f Alexandre Bounine   2011-01-12  173   * @rswitch: struct rio_switch (if valid for this device)
70a50ebd9a9453 Matt Porter         2005-11-07  174   */
70a50ebd9a9453 Matt Porter         2005-11-07  175  struct rio_dev {
70a50ebd9a9453 Matt Porter         2005-11-07  176  	struct list_head global_list;	/* node in list of all RIO devices */
70a50ebd9a9453 Matt Porter         2005-11-07  177  	struct list_head net_list;	/* node in per net list */
70a50ebd9a9453 Matt Porter         2005-11-07  178  	struct rio_net *net;	/* RIO net this device resides in */
2ec3ba69faf301 Alexandre Bounine   2013-07-03  179  	bool do_enum;
70a50ebd9a9453 Matt Porter         2005-11-07  180  	u16 did;
70a50ebd9a9453 Matt Porter         2005-11-07  181  	u16 vid;
70a50ebd9a9453 Matt Porter         2005-11-07  182  	u32 device_rev;
70a50ebd9a9453 Matt Porter         2005-11-07  183  	u16 asm_did;
70a50ebd9a9453 Matt Porter         2005-11-07  184  	u16 asm_vid;
70a50ebd9a9453 Matt Porter         2005-11-07  185  	u16 asm_rev;
70a50ebd9a9453 Matt Porter         2005-11-07  186  	u16 efptr;
70a50ebd9a9453 Matt Porter         2005-11-07  187  	u32 pef;
ae05cbd5adef89 Alexandre Bounine   2010-10-27  188  	u32 swpinfo;
70a50ebd9a9453 Matt Porter         2005-11-07  189  	u32 src_ops;
70a50ebd9a9453 Matt Porter         2005-11-07  190  	u32 dst_ops;
e5cabeb3d60f9c Alexandre Bounine   2010-05-26  191  	u32 comp_tag;
e5cabeb3d60f9c Alexandre Bounine   2010-05-26  192  	u32 phys_efptr;
1ae842de1dd805 Alexandre Bounine   2016-08-02  193  	u32 phys_rmap;
e5cabeb3d60f9c Alexandre Bounine   2010-05-26  194  	u32 em_efptr;
fa78cc51794912 Matt Porter         2005-11-07  195  	u64 dma_mask;
70a50ebd9a9453 Matt Porter         2005-11-07  196  	struct rio_driver *driver;	/* RIO driver claiming this device */
70a50ebd9a9453 Matt Porter         2005-11-07  197  	struct device dev;	/* LDM device structure */
70a50ebd9a9453 Matt Porter         2005-11-07  198  	struct resource riores[RIO_MAX_DEV_RESOURCES];
e5cabeb3d60f9c Alexandre Bounine   2010-05-26  199  	int (*pwcback) (struct rio_dev *rdev, union rio_pw_msg *msg, int step);
70a50ebd9a9453 Matt Porter         2005-11-07  200  	u16 destid;
a93192a5d245a2 Alexandre Bounine   2011-01-12  201  	u8 hopcount;
68fe4df5d21294 Alexandre Bounine   2010-10-27  202  	struct rio_dev *prev;
b77a2030dface6 Alexandre Bounine   2016-03-22  203  	atomic_t state;
a1c4b9247ddfb6 Gustavo A. R. Silva 2020-03-23 @204  	struct rio_switch rswitch[];	/* RIO switch info */
70a50ebd9a9453 Matt Porter         2005-11-07  205  };
70a50ebd9a9453 Matt Porter         2005-11-07  206  

---
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: 28583 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-07 23:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-07 23:32 include/linux/rio.h:204:34: sparse: sparse: array of flexible structures kernel test robot

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.