From patchwork Wed Oct 5 12:33:36 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tvrtko Ursulin X-Patchwork-Id: 9362847 Return-Path: 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 B30346075E for ; Wed, 5 Oct 2016 12:34:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A47F9287FD for ; Wed, 5 Oct 2016 12:34:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 994B22893E; Wed, 5 Oct 2016 12:34:18 +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 5D41A287FD for ; Wed, 5 Oct 2016 12:34:18 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 6048C6E83B; Wed, 5 Oct 2016 12:34:13 +0000 (UTC) X-Original-To: Intel-gfx@lists.freedesktop.org Delivered-To: Intel-gfx@lists.freedesktop.org Received: from mail-wm0-x244.google.com (mail-wm0-x244.google.com [IPv6:2a00:1450:400c:c09::244]) by gabe.freedesktop.org (Postfix) with ESMTPS id E3F426E830 for ; Wed, 5 Oct 2016 12:34:08 +0000 (UTC) Received: by mail-wm0-x244.google.com with SMTP id b184so24370347wma.3 for ; Wed, 05 Oct 2016 05:34:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ursulin-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ntoQSY3nDbvj44VNZsmhjymY6sWfIcftPA0Dcj1H8Qc=; b=P9BL+RRT+lWtkhorTpsJj2W+ILCvkOevi9ASdUu2YLG3mxNpsf1Uv/ENdcxvL+jwCl N3KN2Z1PGG8ESr7AkVeuTNHN/o+m0L4p5ii4gjxwNVWaatLWSoy5QBODr8jRXwrp4ETH BA7o11v9XfN5yuUt/ad4SQ7FuVxi79TVla5KRHXDYz8H01uy4C5gqjE22Kb/MCww43Ut wr0/b6RTJWZwZfLdWvKv84B+q1V45KdNAi/4SMqlBfny7zpS4hzqEwRowfjJRfDDQcmr MTXs0lYOhvmgiHsoOZAaCdzLjWVmAcDZoZjWbNEH0qeTptM7qodWuJLLU5xoyS0ISNTH 6F5w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ntoQSY3nDbvj44VNZsmhjymY6sWfIcftPA0Dcj1H8Qc=; b=FNOCIkgqeNfRx7EniE/gxyqrZO99Not0aNwDjCo7OjZfL36PR1Q2BOTovGy8M1ivG6 gbklDGGdQX6MJXQDuoMAUEEyH/tCMAsQSdhnlCTcKClONtJu9z7vDfk4d07l0xSMKR1d tM9H1Z+xscLtdf3VeD2JUDiOVwE1dMDcNfeUw6bQ5S+7a9Wzb5PLdVKwzrgKtMvlvbdd Jf1ASnn9OO9U/FXY3i8E4cJn1+4dJsBoBbSbuOM2Xfahf4JYHZyKjIEyrmngzTIoKr+M TJFMrYvhCWG+wqhmA+0xgM9dSDHbHT5+eCYHjX+NMiCdE1dHo9MVuYZ82yOLeaObuaoG 14vQ== X-Gm-Message-State: AA6/9RmRfI+0TIX4kjAshzUkNgxPqE6WEHYfVd9qc5wGbtLceu5xtbexw1o/zIUuGp/EaQ== X-Received: by 10.194.123.197 with SMTP id mc5mr6643969wjb.231.1475670847393; Wed, 05 Oct 2016 05:34:07 -0700 (PDT) Received: from e31.Home ([2a02:c7d:9b6d:e300:916a:6cab:ac67:71c2]) by smtp.gmail.com with ESMTPSA id t138sm29428317wmt.5.2016.10.05.05.34.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Oct 2016 05:34:06 -0700 (PDT) From: Tvrtko Ursulin X-Google-Original-From: Tvrtko Ursulin To: Intel-gfx@lists.freedesktop.org Date: Wed, 5 Oct 2016 13:33:36 +0100 Message-Id: <1475670829-14025-10-git-send-email-tvrtko.ursulin@linux.intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1475670829-14025-1-git-send-email-tvrtko.ursulin@linux.intel.com> References: <1475670829-14025-1-git-send-email-tvrtko.ursulin@linux.intel.com> Subject: [Intel-gfx] [PATCH 09/22] drm/i915: Make IS_GEN-range macro only take dev_priv X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" X-Virus-Scanned: ClamAV using ClamSMTP From: Tvrtko Ursulin Saves 944 bytes of .rodata strings. Signed-off-by: Tvrtko Ursulin --- drivers/gpu/drm/i915/i915_drv.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_drv.h b/drivers/gpu/drm/i915/i915_drv.h index 619bec953b0d..06320001f3a8 100644 --- a/drivers/gpu/drm/i915/i915_drv.h +++ b/drivers/gpu/drm/i915/i915_drv.h @@ -2628,7 +2628,7 @@ struct drm_i915_cmd_table { __e = BITS_PER_LONG - 1; \ else \ __e = (e) - 1; \ - !!(INTEL_INFO(p)->gen_mask & GENMASK((__e), (__s))); \ + !!(dev_priv->info.gen_mask & GENMASK((__e), (__s))); \ }) /*