From patchwork Thu Nov 12 19:00:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324223 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp588798ils; Thu, 12 Nov 2020 11:00:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJzFHEBHy9SlYH4q+DBBTNzbhKbbus4RzrpTVwuz8oMyQmmTPUqZXM/6QuxcxchOwo/G/xed X-Received: by 2002:a63:5b63:: with SMTP id l35mr816489pgm.70.1605207658760; Thu, 12 Nov 2020 11:00:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605207658; cv=none; d=google.com; s=arc-20160816; b=yQKuYMxilEJhHb02cX7OhegjGh0y3cZjpNUTiGT0QRVJzGXrhlt/UiKKY4gzTfTazs DHdCZQf6yY0I8x94lkly1SECGoAMbb0b26lK6QIkBi56B3/637kIrwQ6LmZnWa7ORgP1 fUVk6dyyWL7uLy0mSbrM6mk8DI96kSdLdYCQRA2Z6kwHB8YTmNl80+CxSXe2HfMv0aEY 2N5TAv2LHpus2/g+NBGXwp+RkvoLHhadvYZxz9jcbK4hRi3743dYtnUVyV9gYB60uOQo BGUrmZfGwseY8+Q18ddkl8cYLcwJ6AKBcO7uiyWvfqBv/b2M/KI9IDke3fqgPKXmvF1T +Lvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=IZFJKWKHgJ5vcRU5Lup8djGs7k6XjQuXnPxV6T983rY=; b=oV22HWT0z/8tN2ZWp6ynrWNDmTybew22jBwpNdf9Kome9fLxzUpB58JoRTtWZK4srW px3pT4dniGz1d4Z9XMHnCYzGU8VHZnWdJi1nDMJxklCYXDcwsCcgfnxwLzsx4SYypRm/ mnYKCFVBnBgWfLopZO6xXz/C9YWB+107AAlxlMmNQCeQUUHlXsNgmc42w/Ev2rZe6q05 e8IgcgSOb7Ke+5qZJKCKXvyVSrsmkylvW82+2Qco2AW9KALrfDbxJslcX3k8Tfgor41+ RuPA/GNZf33o7iKNt2dFR7ijyxF+5O9Z8Qh5NjxbYezBROZjCZ8UCRiKuqFK+kqCQIRh j2DQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=lIeJaH1s; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id a15si6229061pgi.1.2020.11.12.11.00.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 11:00:58 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=lIeJaH1s; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id A065A6E314; Thu, 12 Nov 2020 19:00:51 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id D32596E32A for ; Thu, 12 Nov 2020 19:00:47 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id b6so7165153wrt.4 for ; Thu, 12 Nov 2020 11:00:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GyM5JNiQS/TCpKPZ3DWBp4SZS9wc27h4cJ1y7RFnvhI=; b=lIeJaH1sJ0c1LM26yrpDKAxEDYUbG4Qz2oeYJNpP6jReLdw9bluHNlUYAurtH3+wsq NNLobHm0u3kMZifdyt7HVxNMh8ClFEpk7lZdlMqhV4NsDXQp+aMYGZvvAUCv88iApJRZ zPXG2q0tNCfjV65gUknv9dKZnvakZ8LZ1wZkIPd9xKW7yER+zLd4QsQXkjuBzEZhAxxJ Wd2LU2rsnVOericwQUFs5I8hMGbi4uT29ojkij6DG1ECBTuIC7g8iP5+sZfK2hN7iYoU F3VaOJhuXUHVIIIBlpBi3UdK0haK9+clEPTrM/j6F7oR2Nk9A81IgWvpeUXtJSoE+Sjc V0Jw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=GyM5JNiQS/TCpKPZ3DWBp4SZS9wc27h4cJ1y7RFnvhI=; b=tb8DFm01U7Kl11td/C7n4IvUZQFAm9+PcPwEMXfRmAeRzk9u35LzDke1VTcYq4JJfk 9UC2MKiT7gwfWLqTlThoU0pA83jqOw7Epp8A3Q/E8SAtF5Iqxr+1u9gDRMb+kkAWNBNU JCBxFC1s3GA4mod50285kX+cmC3rMB4ldvBrZQTIMoJ8BZ5AJsWrQDEPl3dDaIdFfrsm nV4ain6ZlxPBZ/bHABsPTET5ztuquWj4+Lb+4BjLjRgxg7X27Y27Aan3oArVIvziNQ2N IIahWX4RDWVb5/lSXO+LzXDt0DAdOy2Z0ZC+v7mRaTsPxn+4O5BDRnPIB99NY8EoMnXH u9TQ== X-Gm-Message-State: AOAM533L5QbOjkVZLuqwv5VBMLtvb6fAQ/odFzFuFKcfVvNE2T8bxsx8 mOg1pey9WRHIZ6Y/xPGlYnqZ0xJWULzpNk5k X-Received: by 2002:a5d:6550:: with SMTP id z16mr1117972wrv.266.1605207646576; Thu, 12 Nov 2020 11:00:46 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id p4sm8105214wrm.51.2020.11.12.11.00.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 11:00:45 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 02/30] include: drm: drm_atomic: Artificially use 'crtc' to avoid 'not used' warning Date: Thu, 12 Nov 2020 19:00:11 +0000 Message-Id: <20201112190039.2785914-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201112190039.2785914-1-lee.jones@linaro.org> References: <20201112190039.2785914-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Thomas Zimmermann Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" The precedent has already been set by other macros in the same file. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/vkms/vkms_drv.c:55:19: warning: variable ‘crtc’ set but not used [-Wunused-but-set-variable] 55 | struct drm_crtc *crtc; | ^~~~ Cc: Maarten Lankhorst Cc: Maxime Ripard Cc: Thomas Zimmermann Cc: David Airlie Cc: Daniel Vetter Cc: Rob Clark Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- include/drm/drm_atomic.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h index 413fd0ca56a8f..dc5e0fbecc04e 100644 --- a/include/drm/drm_atomic.h +++ b/include/drm/drm_atomic.h @@ -802,6 +802,7 @@ void drm_state_dump(struct drm_device *dev, struct drm_printer *p); (__i)++) \ for_each_if ((__state)->crtcs[__i].ptr && \ ((crtc) = (__state)->crtcs[__i].ptr, \ + (void)(crtc) /* Only to avoid unused-but-set-variable warning */, \ (old_crtc_state) = (__state)->crtcs[__i].old_state, 1)) /**