Commit 0f13b5e6 authored by Alex Elder's avatar Alex Elder Committed by David S. Miller

net: ipa: make ipa_table_hash_support() inline

In review, Alexander Duyck suggested that ipa_table_hash_support()
was trivial enough that it could be implemented as a static inline
function in the header file.  But the patch had already been
accepted.  Implement his suggestion.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Reviewed-by: default avatarAlexander Duyck <alexanderduyck@fb.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 6e3bac3e
...@@ -239,11 +239,6 @@ static void ipa_table_validate_build(void) ...@@ -239,11 +239,6 @@ static void ipa_table_validate_build(void)
#endif /* !IPA_VALIDATE */ #endif /* !IPA_VALIDATE */
bool ipa_table_hash_support(struct ipa *ipa)
{
return ipa->version != IPA_VERSION_4_2;
}
/* Zero entry count means no table, so just return a 0 address */ /* Zero entry count means no table, so just return a 0 address */
static dma_addr_t ipa_table_addr(struct ipa *ipa, bool filter_mask, u16 count) static dma_addr_t ipa_table_addr(struct ipa *ipa, bool filter_mask, u16 count)
{ {
......
...@@ -55,7 +55,10 @@ static inline bool ipa_filter_map_valid(struct ipa *ipa, u32 filter_mask) ...@@ -55,7 +55,10 @@ static inline bool ipa_filter_map_valid(struct ipa *ipa, u32 filter_mask)
* ipa_table_hash_support() - Return true if hashed tables are supported * ipa_table_hash_support() - Return true if hashed tables are supported
* @ipa: IPA pointer * @ipa: IPA pointer
*/ */
bool ipa_table_hash_support(struct ipa *ipa); static inline bool ipa_table_hash_support(struct ipa *ipa)
{
return ipa->version != IPA_VERSION_4_2;
}
/** /**
* ipa_table_reset() - Reset filter and route tables entries to "none" * ipa_table_reset() - Reset filter and route tables entries to "none"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment