diff options
author | Bart Van Assche <[email protected]> | 2015-08-03 10:01:52 -0700 |
---|---|---|
committer | Doug Ledford <[email protected]> | 2015-10-30 17:57:49 -0400 |
commit | db7489e07669073970358b6cacf6a9dd8dc9275e (patch) | |
tree | 74ff570c9b3e633c4323b1cffa0617e37a090124 /lib/string_helpers.c | |
parent | 39bfc271bd687be2c8e396e976c0fb9a97963400 (diff) |
IB/core, cma: Make __attribute_const__ declarations sparse-friendly
Move the __attribute_const__ declarations such that sparse understands
that these apply to the function itself and not to the return type.
This avoids that sparse reports error messages like the following:
drivers/infiniband/core/verbs.c:73:12: error: symbol 'ib_event_msg' redeclared with different type (originally declared at include/rdma/ib_verbs.h:470) - different modifiers
Fixes: 2b1b5b601230 ("IB/core, cma: Nice log-friendly string helpers")
Signed-off-by: Bart Van Assche <[email protected]>
Cc: Sagi Grimberg <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions