From: Lucas Stach Date: Thu, 4 Jan 2018 12:40:03 +0000 (+0100) Subject: drm/etnaviv: don't fail to build on arches without PHYS_OFFSET X-Git-Tag: v4.19~1144^2~15^2~20 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c09d7f7911aa35570b29674f72077e1342260970;p=platform%2Fkernel%2Flinux-rpi.git drm/etnaviv: don't fail to build on arches without PHYS_OFFSET Some architecture ports like ARC don't provide the PHYS_OFFSET symbol. Define it to 0 in that case, which is the most conservative default in the usage context of the etnaviv driver. Signed-off-by: Lucas Stach --- diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c index 21d0d22..dfac655 100644 --- a/drivers/gpu/drm/etnaviv/etnaviv_gpu.c +++ b/drivers/gpu/drm/etnaviv/etnaviv_gpu.c @@ -31,6 +31,10 @@ #include "state_hi.xml.h" #include "cmdstream.xml.h" +#ifndef PHYS_OFFSET +#define PHYS_OFFSET 0 +#endif + static const struct platform_device_id gpu_ids[] = { { .name = "etnaviv-gpu,2d" }, { },