Skip to content

Commit

Permalink
common/sfc_efx/base: remove warnings about inline specifiers
Browse files Browse the repository at this point in the history
[ upstream commit c87fa31 ]

Windows build of the current libefx rejects these specifiers.
They're unneeded anyway; the compiler should decide inlining.

Fixes: 34285fd ("common/sfc_efx/base: add match spec validate API")

Signed-off-by: Ivan Malov <ivan.malov@oktetlabs.ru>
Reviewed-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Andy Moreton <amoreton@xilinx.com>
  • Loading branch information
ol-ivanmal authored and bluca committed Feb 2, 2021
1 parent ed18af7 commit 6b2b02c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/common/sfc_efx/base/efx_mae.c
Expand Up @@ -760,7 +760,7 @@ efx_mae_match_specs_equal(
((_mask)[(_bit) / (_mask_page_nbits)] & \
(1ULL << ((_bit) & ((_mask_page_nbits) - 1))))

static inline boolean_t
static boolean_t
efx_mask_is_prefix(
__in size_t mask_nbytes,
__in_bcount(mask_nbytes) const uint8_t *maskp)
Expand All @@ -780,7 +780,7 @@ efx_mask_is_prefix(
return B_TRUE;
}

static inline boolean_t
static boolean_t
efx_mask_is_all_ones(
__in size_t mask_nbytes,
__in_bcount(mask_nbytes) const uint8_t *maskp)
Expand All @@ -794,7 +794,7 @@ efx_mask_is_all_ones(
return (t == (uint8_t)(~0));
}

static inline boolean_t
static boolean_t
efx_mask_is_all_zeros(
__in size_t mask_nbytes,
__in_bcount(mask_nbytes) const uint8_t *maskp)
Expand Down

0 comments on commit 6b2b02c

Please sign in to comment.