common/sched: Fix ARM build following c/s 340edc3902
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 7 Mar 2018 19:36:50 +0000 (19:36 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 8 Mar 2018 10:43:25 +0000 (10:43 +0000)
commit9893f4e8c2d9f6c4fdb5f4775403c413467da9ec
treecd0bfdc15138649e0e7ffbc43adfca7b6536ae95
parentc9bd8a73656d7435b1055ee8825823aee995993e
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 <andrew.cooper3@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Reviewed-by: Dario Faggioli <dfaggioli@suse.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
xen/include/xen/sched-if.h