From: Oleksandr Andrushchenko Date: Mon, 4 Oct 2021 14:11:41 +0000 (+0300) Subject: xen/arm: Fix dev_is_dt macro definition X-Git-Tag: archive/raspbian/4.16.0+51-g0941d6cb-1+rpi1~2^2~42^2~134 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d6bdad32cbb5dfbc68fac32078cc5882071c4f1d;p=xen.git xen/arm: Fix dev_is_dt macro definition This macro is not currently used, but still has an error in it: a missing parenthesis. Fix this, so the macro is properly defined. Fixes: 6c5d3075d97e ("xen/arm: Introduce a generic way to describe device") Signed-off-by: Oleksandr Andrushchenko Reviewed-by: Stefano Stabellini Reviewed-by: Michal Orzel --- diff --git a/xen/include/asm-arm/device.h b/xen/include/asm-arm/device.h index 5ecd5e7bd1..ebe84ea853 100644 --- a/xen/include/asm-arm/device.h +++ b/xen/include/asm-arm/device.h @@ -27,7 +27,7 @@ typedef struct device device_t; /* TODO: Correctly implement dev_is_pci when PCI is supported on ARM */ #define dev_is_pci(dev) ((void)(dev), 0) -#define dev_is_dt(dev) ((dev->type == DEV_DT) +#define dev_is_dt(dev) ((dev)->type == DEV_DT) enum device_class {