From patchwork Mon Jan 14 08:54:07 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Emil Velikov X-Patchwork-Id: 10761765 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BE5766C2 for ; Mon, 14 Jan 2019 08:57:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AFD4C289AD for ; Mon, 14 Jan 2019 08:57:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A3F3C289C4; Mon, 14 Jan 2019 08:57:42 +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=-5.2 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED 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 657B3289AD for ; Mon, 14 Jan 2019 08:57:42 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id BDFDC6E5F7; Mon, 14 Jan 2019 08:57:40 +0000 (UTC) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id CFFE76E5F7; Mon, 14 Jan 2019 08:57:39 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id p4so21839450wrt.7; Mon, 14 Jan 2019 00:57:39 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=QHmMsS/MldYLGle/SYxHsMRUogOBdgVDLkWTEn79/do=; b=QX+0oZYC0USmrqykKtRhbz9Ylb9NLL/5qDjsqWT/fcQ/BZ/5UL32YPPm7wy/qL1Jby 74bkh73jj5BM1OfI7J/nhHtA8pKzvTJ1JqNZXRAXN7XiStbiJUTL6xCiy1f6WZwOJxii fpTUnBlPcYG6CFmLtrK8YbwgyFToi/topotykLizzbz/yTIs8FTQBn9Wh8Atw6GfnC59 oI4ENuzFE4Zf4atbFNX2Z7AjHFJFSA6S1bcJ2qu4ONCLV5yVoYjIggSTt/qr5W/t9Tqe D1Gs/enypw6EHR8dfKg0hhgoYEAvPBwWO+EaUh2l/4/dhNkWrG6u5Ij9MdEXEQXw38t/ 6IVg== X-Gm-Message-State: AJcUukcw4dHPRxgk3nsSvicPfaUutLAPA7byMXe1xPNlZMmV4EfzPO4z 3MB3uX1G7Yq0+OAfSrik9lIF3xvU X-Google-Smtp-Source: ALg8bN6Qa5m2DbVdSD5S+TfbIumUbw9hThGvufzIhT6vkckxy4R6xr3T4JF4EqmQG2wcYxYrscNyDg== X-Received: by 2002:adf:c108:: with SMTP id r8mr24181429wre.233.1547456258337; Mon, 14 Jan 2019 00:57:38 -0800 (PST) Received: from localhost.localdomain (cpc91192-cmbg18-2-0-cust374.5-4.cable.virginm.net. [80.6.113.119]) by smtp.gmail.com with ESMTPSA id c21sm16173102wre.71.2019.01.14.00.57.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Jan 2019 00:57:37 -0800 (PST) From: Emil Velikov To: dri-devel@lists.freedesktop.org Date: Mon, 14 Jan 2019 08:54:07 +0000 Message-Id: <20190114085408.15933-1-emil.l.velikov@gmail.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Intel-gfx] [PATCH v2 1/2] drm: annotate drm_core_check_feature() dev arg. as const X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Daniel Vetter , intel-gfx@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Emil Velikov This static inline function doesn't modify any state. Cc: intel-gfx@lists.freedesktop.org Signed-off-by: Emil Velikov Reviewed-by: Daniel Vetter --- include/drm/drm_drv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm/drm_drv.h b/include/drm/drm_drv.h index 3199ef70c007..211d2bfd0b94 100644 --- a/include/drm/drm_drv.h +++ b/include/drm/drm_drv.h @@ -658,7 +658,7 @@ static inline bool drm_dev_is_unplugged(struct drm_device *dev) * * Returns true if the @feature is supported, false otherwise. */ -static inline bool drm_core_check_feature(struct drm_device *dev, u32 feature) +static inline bool drm_core_check_feature(const struct drm_device *dev, u32 feature) { return dev->driver->driver_features & dev->driver_features & feature; }