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@gmail.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
This commit is contained in:
Xenia Ragiadakou authored and Julien Grall committed 2022-06-23 19:46:26 +01:00
1 parent f8af00d1a6
commit ab6c273ebc
1 file changed
+1
+1
View File
@@ -16,6 +16,7 @@
*/
#include <xen/list.h>
#include <xen/list_sort.h>
#define MAX_LIST_LENGTH_BITS 20
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.