From: Andrew Cooper Date: Wed, 7 Mar 2018 19:36:50 +0000 (+0000) Subject: common/sched: Fix ARM build following c/s 340edc3902 X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~446 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=9893f4e8c2d9f6c4fdb5f4775403c413467da9ec;p=xen.git common/sched: Fix ARM build following c/s 340edc3902 The OSSTest smoke tests reports: sched_credit2.c: In function 'csched2_alloc_domdata': sched_credit2.c:3015:9: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration] return ERR_PTR(-ENOMEM); ^ sched_credit2.c:3015:9: error: nested extern declaration of 'ERR_PTR' [-Werror=nested-externs] As the ERR infrastructure is part of the main scheduler interface now, include it from xen/sched-if.h Signed-off-by: Andrew Cooper Reviewed-by: Stefano Stabellini Reviewed-by: Dario Faggioli Acked-by: George Dunlap --- diff --git a/xen/include/xen/sched-if.h b/xen/include/xen/sched-if.h index 48952425fa..c5dd43ed9c 100644 --- a/xen/include/xen/sched-if.h +++ b/xen/include/xen/sched-if.h @@ -9,6 +9,7 @@ #define __XEN_SCHED_IF_H__ #include +#include /* A global pointer to the initial cpupool (POOL0). */ extern struct cpupool *cpupool0;