mirror of
https://github.com/torvalds/linux.git
synced 2026-04-19 23:34:00 -04:00
ionic: clean up sparse complaints
The sparse complaints around the static_asserts were obscuring more useful complaints. So, don't check the static_asserts, and fix the remaining sparse complaints. Signed-off-by: Shannon Nelson <snelson@pensando.io> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
4f3391ce8f
commit
d701ec326a
@@ -29,6 +29,7 @@ struct ionic_dev_bar {
|
||||
int res_index;
|
||||
};
|
||||
|
||||
#ifndef __CHECKER__
|
||||
/* Registers */
|
||||
static_assert(sizeof(struct ionic_intr) == 32);
|
||||
|
||||
@@ -119,6 +120,7 @@ static_assert(sizeof(struct ionic_vf_setattr_cmd) == 64);
|
||||
static_assert(sizeof(struct ionic_vf_setattr_comp) == 16);
|
||||
static_assert(sizeof(struct ionic_vf_getattr_cmd) == 64);
|
||||
static_assert(sizeof(struct ionic_vf_getattr_comp) == 16);
|
||||
#endif /* __CHECKER__ */
|
||||
|
||||
struct ionic_devinfo {
|
||||
u8 asic_type;
|
||||
|
||||
Reference in New Issue
Block a user