diff options
| author | Weihang Li <[email protected]> | 2021-06-21 16:00:36 +0800 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2021-06-21 15:03:41 -0300 |
| commit | fe331da0f210c60342b042a03fe53f1b564b412b (patch) | |
| tree | 6ef1df6ea54760c1b04df44308b8706290c6cc5e /tools/perf/scripts/python/bin | |
| parent | 78c1da52704853bcc57399ca76b5b6e9e08ca627 (diff) | |
RDMA/hns: Add a check to ensure integer mtu is positive
GCC may reports an running time assert error when a value calculated from
ib_mtu_enum_to_int() is using as 'val' in FIELD_PREDP:
include/linux/compiler_types.h:328:38: error: call to
'__compiletime_assert_1524' declared with attribute error: FIELD_PREP:
value too large for the field
So a check is added about whether integer mtu from ib_mtu_enum_to_int() is
negative to avoid this warning.
Link: https://lore.kernel.org/r/[email protected]
Reported-by: kernel test robot <[email protected]>
Signed-off-by: Weihang Li <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions