x86,swiotlb: Fix build warning after merge of the SWIOTLB bounce buffer adjustment patch
Subsystems (2)
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.
Signed-off-by Ashish Kalra <[email protected]>
--- include/linux/swiotlb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/swiotlb.h +1 -1
@@ -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
Quoted 4 lines · Ashish Kalra
From: Ashish Kalra <[email protected]>
Need to add "inline" to
swiotlb_adjust_size()whenCONFIG_SWIOTLBis not defined.
I am just going to squash that in. Thanks.
Quoted 22 lines
Signed-off-by Ashish Kalra <[email protected]>--- include/linux/swiotlb.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/linux/swiotlb.h +1
-1@@ -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