lkml.org 
[lkml]   [2017]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] xen: cleanup xen.h
From
Date
On 07/27/2017 11:44 AM, Juergen Gross wrote:
> On 27/07/17 17:37, Boris Ostrovsky wrote:
>> On 07/27/2017 11:11 AM, Juergen Gross wrote:
>>> The macros for testing domain types are more complicated then they
>>> need to. Simplify them.
>>>
>>> Signed-off-by: Juergen Gross <jgross@suse.com>
>>> ---
>>> include/xen/xen.h | 20 +++++++++-----------
>>> 1 file changed, 9 insertions(+), 11 deletions(-)
>>>
>>> diff --git a/include/xen/xen.h b/include/xen/xen.h
>>> index 6e8b7fc79801..28c59ca529d7 100644
>>> --- a/include/xen/xen.h
>>> +++ b/include/xen/xen.h
>>> @@ -13,11 +13,16 @@ extern enum xen_domain_type xen_domain_type;
>>> #define xen_domain_type XEN_NATIVE
>>> #endif
>>>
>>> +#ifdef CONFIG_XEN_PVH
>>> +extern bool xen_pvh;
>>> +#else
>>> +#define xen_pvh 0
>>> +#endif
>>> +
>>> #define xen_domain() (xen_domain_type != XEN_NATIVE)
>>> -#define xen_pv_domain() (xen_domain() && \
>>> - xen_domain_type == XEN_PV_DOMAIN)
>>> -#define xen_hvm_domain() (xen_domain() && \
>>> - xen_domain_type == XEN_HVM_DOMAIN)
>>> +#define xen_pv_domain() (xen_domain_type == XEN_PV_DOMAIN)
>> Stray tab.
> No. This is just due to the '+' of the patch.


Applied to for-linus-4.14

-boris

\
 
 \ /
  Last update: 2017-08-16 16:57    [W:0.046 / U:3.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site