|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] xen/lib: list-sort: Fix MISRA C 2012 Rule 8.4 violation
commit ab6c273ebc2f238c7ecb5e8c985570cf1d8a28af
Author: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>
AuthorDate: Wed Jun 22 18:15:13 2022 +0300
Commit: Julien Grall <jgrall@xxxxxxxxxx>
CommitDate: Thu Jun 23 19:46:26 2022 +0100
xen/lib: list-sort: Fix MISRA C 2012 Rule 8.4 violation
Include header <xen/list_sort.h> so that the declaration of the function
list_sort(), which has external linkage, is visible before the function
definition.
Signed-off-by: Xenia Ragiadakou <burzalodowa@xxxxxxxxx>
Reviewed-by: Stefano Stabellini <sstabellini@xxxxxxxxxx>
Reviewed-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>
---
xen/lib/list-sort.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/xen/lib/list-sort.c b/xen/lib/list-sort.c
index f8d8bbf281..de1af2ef8b 100644
--- a/xen/lib/list-sort.c
+++ b/xen/lib/list-sort.c
@@ -16,6 +16,7 @@
*/
#include <xen/list.h>
+#include <xen/list_sort.h>
#define MAX_LIST_LENGTH_BITS 20
--
generated by git-patchbot for /home/xen/git/xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |