Skip to contentSkip to conversation

fix wrong function declaration

PATCH In review Juergen Gross 2 participants 2 messages Jan 19, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix wrong function declaration

Coverity spotted a wrong function declaration, fix it.

Coverity-Id: 1497423

---
 include/balloon.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/balloon.h +1 -1
index 8f7c8bd8..510e475a 100644
@@ -50,7 +50,7 @@ static inline int chk_free_pages(unsigned long needed)
 {
     return needed <= nr_free_pages;
 }
-static inline balloon_set_nr_pages(unsigned long pages, unsigned long pfn) { }
+static inline void balloon_set_nr_pages(unsigned long pages, unsigned long pfn) { }
 
 #endif /* CONFIG_BALLOON */
 #endif /* _BALLOON_H_ */
Signature · 1 line
2.31.1
Reviewed-by on v1 1/1
#1 lore raw

Hi Juergen,

Quoted 6 lines · Juergen Gross

Coverity spotted a wrong function declaration, fix it.

Coverity-Id: 1497423

Cheers
Bertrand

Quoted 21 lines

---
include/balloon.h | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)
include/balloon.h +1 -1
index 8f7c8bd8..510e475a 100644
@@ -50,7 +50,7 @@ static inline int chk_free_pages(unsigned long needed)
 {
    return needed <= nr_free_pages;
 }
-static inline balloon_set_nr_pages(unsigned long pages, unsigned long pfn) { }
+static inline void balloon_set_nr_pages(unsigned long pages, unsigned long pfn) { }
 
 #endif /* CONFIG_BALLOON */
 #endif /* _BALLOON_H_ */
Signature · 1 line
2.31.1