]> xenbits.xensource.com Git - mini-os.git/commitdiff
fix wrong function declaration
authorJuergen Gross <jgross@suse.com>
Wed, 19 Jan 2022 13:06:00 +0000 (14:06 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 21 Jan 2022 12:09:33 +0000 (12:09 +0000)
Coverity spotted a wrong function declaration, fix it.

Coverity-Id: 1497423
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
include/balloon.h

index 8f7c8bd8fa158602b5e8143704a5452f429206d7..510e475a8c1f2eac7ba8e2991512e6e833848b2a 100644 (file)
@@ -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_ */