From: Xenia Ragiadakou Date: Wed, 22 Jun 2022 15:15:13 +0000 (+0300) Subject: xen/lib: list-sort: Fix MISRA C 2012 Rule 8.4 violation X-Git-Tag: archive/raspbian/4.17.0-1+rpi1^2~33^2~516 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ab6c273ebc2f238c7ecb5e8c985570cf1d8a28af;p=xen.git xen/lib: list-sort: Fix MISRA C 2012 Rule 8.4 violation Include header so that the declaration of the function list_sort(), which has external linkage, is visible before the function definition. Signed-off-by: Xenia Ragiadakou Reviewed-by: Stefano Stabellini Reviewed-by: Bertrand Marquis --- 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 +#include #define MAX_LIST_LENGTH_BITS 20