Message ID | 20170127104919.21306-1-chris@chris-wilson.co.uk (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <intel-gfx-bounces@lists.freedesktop.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EE3F760429 for <patchwork-intel-gfx@patchwork.kernel.org>; Fri, 27 Jan 2017 10:49:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E54A42029C for <patchwork-intel-gfx@patchwork.kernel.org>; Fri, 27 Jan 2017 10:49:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA0C427F9F; Fri, 27 Jan 2017 10:49:25 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E79A72029C for <patchwork-intel-gfx@patchwork.kernel.org>; Fri, 27 Jan 2017 10:49:24 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6A9246ECF2; Fri, 27 Jan 2017 10:49:24 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wj0-x244.google.com (mail-wj0-x244.google.com [IPv6:2a00:1450:400c:c01::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id 3C4C16ECF2 for <intel-gfx@lists.freedesktop.org>; Fri, 27 Jan 2017 10:49:23 +0000 (UTC) Received: by mail-wj0-x244.google.com with SMTP id un2so5707120wjb.0 for <intel-gfx@lists.freedesktop.org>; Fri, 27 Jan 2017 02:49:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id; bh=AFZJ0ES7KQw5uz2wpn44fb8kWFhVcZAPgcUTcnU3gXo=; b=VPfzjkTqAterdO2ob6j+S+qS0KZK9SfGEgjKFM1WOX6N1QsdMHDPL0PVnzvROwKYVY uI2oeUElsPGAzwWodefGq+oeqA8tZh5vk6yg41znM9Ey7Rv/KMVT84kzHlgoZo4sxAVh PAvtY+j8k2lHzz/W3GOJEfa5w/7z0+AgFcVJaXmsrfWJ3Z+AxZBqZVS7OaVO+i8oLS2R ZeV+IzZX0JVSGnJCrRC49ftKMdTzB5xFh8CT5Fk5OzGd2Pgv4K18fzw/HNO8qZjTh4Fw etFaEJeVtBA5rJzXso6N/XRgll+uhZ/O0NKC2R1ZoinFxt4XgWhNzWhtkQuga2n5sxGG NIlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id; bh=AFZJ0ES7KQw5uz2wpn44fb8kWFhVcZAPgcUTcnU3gXo=; b=KPelpAIITZLzdeVxrKjruU/ZTnpOXsYHjNsh/fLPK7L5ZmL17wo9fYsXDOX3/SYmdB wLxjwtFrWRxP99u6IT7MvW1jHEq15kNY3Jq+sOrRULIAac+o1ibol8kQV5cZG//FLXCl 1q1Hr56PGOT++xI67eZlFf3sk4LyNJkAzuRs3OUYKmSeuYhJWonLMYnkVDH0CjwLHsKS u41OrAQkJ0u8Ua/SmsP8LXGgyENY29sjj0LoNznXW5CvU8O61hjVIvOAJ+l5Ay1Aq8i9 dTSgJSnw6v5NlxEx+rBVODqmoiwDjIQr0ZxxBHhicaRlh1PbwpPERruHGvbo/swU9ppw yUfA== X-Gm-Message-State: AIkVDXKOc60sYXoe72VGwdv1GMvkK8hYRbEh5Phvg3M0SWcnO68tXJ7dwipOGer7Tzki3w== X-Received: by 10.223.151.135 with SMTP id s7mr6537652wrb.51.1485514161841; Fri, 27 Jan 2017 02:49:21 -0800 (PST) Received: from haswell.alporthouse.com ([78.156.65.138]) by smtp.gmail.com with ESMTPSA id o143sm3233653wmd.3.2017.01.27.02.49.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 27 Jan 2017 02:49:21 -0800 (PST) From: Chris Wilson <chris@chris-wilson.co.uk> To: intel-gfx@lists.freedesktop.org Date: Fri, 27 Jan 2017 10:49:19 +0000 Message-Id: <20170127104919.21306-1-chris@chris-wilson.co.uk> X-Mailer: git-send-email 2.11.0 Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Subject: [Intel-gfx] [PATCH] drm/i915: Make uapi/i915_drm.h standalone X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development <intel-gfx.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/intel-gfx>, <mailto:intel-gfx-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/intel-gfx> List-Post: <mailto:intel-gfx@lists.freedesktop.org> List-Help: <mailto:intel-gfx-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/intel-gfx>, <mailto:intel-gfx-request@lists.freedesktop.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" <intel-gfx-bounces@lists.freedesktop.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/include/uapi/drm/i915_drm.h b/include/uapi/drm/i915_drm.h index 202790a3e8e2..5b12506683f1 100644 --- a/include/uapi/drm/i915_drm.h +++ b/include/uapi/drm/i915_drm.h @@ -29,6 +29,11 @@ #include "drm.h" +/* Disable unused sparse attributes from userspace */ +#ifndef __user +#define __user +#endif + #if defined(__cplusplus) extern "C" { #endif
In order for us to be able to simply copy our uapi/i915_drm.h into userspace it must be compilable as-is by userspace. For which we need to hide the sparse markup for __user. This does impose the limitation that we include our uapi/i915_drm.h last so that the attribute is properly defined inside the kernel. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> --- include/uapi/drm/i915_drm.h | 5 +++++ 1 file changed, 5 insertions(+)