projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8af00d
)
xen/lib: list-sort: Fix MISRA C 2012 Rule 8.4 violation
author
Xenia Ragiadakou
<burzalodowa@gmail.com>
Wed, 22 Jun 2022 15:15:13 +0000
(18:15 +0300)
committer
Julien Grall
<jgrall@amazon.com>
Thu, 23 Jun 2022 18:46:26 +0000
(19:46 +0100)
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@gmail.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/lib/list-sort.c
patch
|
blob
|
history
diff --git
a/xen/lib/list-sort.c
b/xen/lib/list-sort.c
index f8d8bbf2817821371e208f0ec899c6fb17a253be..de1af2ef8b0c279f3fbd9b93aa68619bb34dad51 100644
(file)
--- 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