xen/trace: Fix build with !CONFIG_TRACEBUFFER
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 18 Jul 2019 13:29:35 +0000 (14:29 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 18 Jul 2019 15:51:16 +0000 (16:51 +0100)
commite18840589f03d0f969457dfbdfcd5f3b62f48ad4
tree58a75788d911befbd46106e13780df85006af1ca
parentd764460350055f17fe7be9e9748c4162ed0c6ecc
xen/trace: Fix build with !CONFIG_TRACEBUFFER

GCC reports:

In file included from hvm.c:24:0:
/local/xen.git/xen/include/xen/trace.h: In function ‘tb_control’:
/local/xen.git/xen/include/xen/trace.h:60:13: error: ‘ENOSYS’
undeclared (first use in this function)
     return -ENOSYS;
             ^~~~~~

Include xen/errno.h to resolve the issue.  While tweaking this, add comments
to the #else and #endif, as they are a fair distance apart.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/include/xen/trace.h