Skip to contentSkip to conversation

x86,swiotlb: Fix build warning after merge of the SWIOTLB bounce buffer adjustment patch

PATCH In review Ashish Kalra 2 participants 2 messages Dec 11, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86,swiotlb: Fix build warning after merge of the SWIOTLB bounce buffer adjustment patch

From: Ashish Kalra <[email protected]>

Need to add "inline" to swiotlb_adjust_size() when CONFIG_SWIOTLB is not defined.

---
 include/linux/swiotlb.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/swiotlb.h +1 -1
index 075748f367ea..e8074ff1b8c7 100644
@@ -104,7 +104,7 @@ static inline bool is_swiotlb_active(void)
 	return false;
 }
 
-static void swiotlb_adjust_size(unsigned long new_size)
+static inline void swiotlb_adjust_size(unsigned long new_size)
 {
 }
 #endif /* CONFIG_SWIOTLB */
Signature · 1 line
2.17.1
#1 lore raw
Quoted 4 lines · Ashish Kalra

From: Ashish Kalra <[email protected]>

Need to add "inline" to swiotlb_adjust_size() when CONFIG_SWIOTLB is not defined.

I am just going to squash that in. Thanks.

Quoted 22 lines
---
 include/linux/swiotlb.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/swiotlb.h +1 -1
index 075748f367ea..e8074ff1b8c7 100644
@@ -104,7 +104,7 @@ static inline bool is_swiotlb_active(void)
 	return false;
 }
 
-static void swiotlb_adjust_size(unsigned long new_size)
+static inline void swiotlb_adjust_size(unsigned long new_size)
 {
 }
 #endif /* CONFIG_SWIOTLB */
Signature · 1 line
2.17.1