]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: ipa: make ipa_table_hash_support() inline
authorAlex Elder <elder@linaro.org>
Mon, 15 Mar 2021 15:01:18 +0000 (10:01 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 15 Mar 2021 21:51:53 +0000 (14:51 -0700)
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: Alex Elder <elder@linaro.org>
Reviewed-by: Alexander Duyck <alexanderduyck@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/ipa_table.c
drivers/net/ipa/ipa_table.h

index baaab3dd0e63cff75b34f71a33672561e65fa129..7450e27068f1951588182eae0e4a3f60c7b3e05b 100644 (file)
@@ -239,11 +239,6 @@ static void ipa_table_validate_build(void)
 
 #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 */
 static dma_addr_t ipa_table_addr(struct ipa *ipa, bool filter_mask, u16 count)
 {
index 1a68d20f19d6aeacefbfc6094f4bb35297eea6ad..889c2e93b1223834db7e0a8ab35f6dc467c1967c 100644 (file)
@@ -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:       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"