From patchwork Thu Nov 26 13:42:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 333010 Delivered-To: patch@linaro.org Received: by 2002:a17:906:4755:0:0:0:0 with SMTP id j21csp156252ejs; Thu, 26 Nov 2020 05:44:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1Wtn3C0bT8m19j8aGSsqLjv8+FkV/pU58cP814TyuB0X7VB77Zl+1NUNQxffZNKzZCIxS X-Received: by 2002:a17:90a:1746:: with SMTP id 6mr3898931pjm.104.1606398239994; Thu, 26 Nov 2020 05:43:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606398239; cv=none; d=google.com; s=arc-20160816; b=nCNdghxIo3PbQZlQzoRBPzzr/ELRtynDTns85SzPLGBtjt6cuHiTxiCKuxH8ouKxtx FfB7KW4Jtqt4XmO8gsfbho+j4zaw9MIMIacV+QVYUQwNuMpmEJg0rctTe4sY6o6yTOTI EK+1oavD8/hpsCvAQiqAKXioMceJj2AJ+NNy8is7VJN7KrJrN4T/t31yvLwgst9YjhfM S8BEig4ctNV0H+O1K1UA1X/twQLuz3feYsDLF0eywHe/whs2XLe6HceEcYiHYJFIwESJ t7L7wOEi7dCkNXvtCqLj9xDMW35zDDhQmNHT5LVeDHSdwlVqL6kOrZ8ruZ5edYLQj+6R JPOw== 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=KOPaawYmTztNxP1S7rJdpTfpoX0kdM9lQMrUr1sqpXA=; b=VXOJaDy+eMXmWR2JaWKUWowmQDDkLfC9Cl7lnEBa70gkwstDQjU13ktKn8azX55YFL lz00Ulxxr/jjMQPy0mIhnNQe+PMzfZW2dDQJOsb2tdsdZNlnRDpr2z3VaKeHLhvJ2hyi FiRRjN6/5smkDKzktAiN8S9iWeP53OHcBi4rv9Af6lEzC7IjpHyWP6WYnkBc2xa0NSeP 7p0Jy7rlfc6x3BN2eD1VrYL7FV9UcW/vcxyXHS9CN1fljTjrMtAcNv8/WqpJYjWN3CMz wxKTp3mco+s3rHKODqJ3Sb6jQLgqKXgAk2bUCUjTxB3S+4xb02yq+VrBMg8RqVsQaBU6 H4aQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=WruioXcr; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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. [131.252.210.177]) by mx.google.com with ESMTPS id z125si5393588pgb.171.2020.11.26.05.43.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=WruioXcr; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 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 E15A76E951; Thu, 26 Nov 2020 13:43:37 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id B379F6E957 for ; Thu, 26 Nov 2020 13:43:35 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id m6so2186182wrg.7 for ; Thu, 26 Nov 2020 05:43:35 -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=MzRVFp8AO2A9mZrX3brzbvLyGgDmiC5m751T9imyCRc=; b=WruioXcrjaQXU228DJaADLs63/PeaAfgh5GoVhtS5sxDT1aaFya2f4AYcNpDv9u7bu GE1IyxUSraaGMfjae2iGxbtoeGDlaW+aiGQz0vg8TbLIY3ULpfiO0MK4dgdeEqpWqVx1 yjcfF20TWnnH0cv4oDwvCg85uHtK2SGSmK1YF38tJjmq8Q3LkjcNMsQhTX/53aLKtFf5 m/kX+iYDcOMeyHPxWub6ueiDU0b4zprEOJhekf0gK6T4eHQe+/Vq2GekDvnMHh8QrFzI xCL2JKIJXk2Yr/1uD0ZBcmLFk/2Tp0pKgKnkhHZPm825anEGjFCEYELdOff1mSgXjeKf GGZA== 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=MzRVFp8AO2A9mZrX3brzbvLyGgDmiC5m751T9imyCRc=; b=XZ5k+0YyCLuU+Wb1RFCJZRB9p7rd8IFBwJmfjt5/bRFT+cPhTCQT9Bv7Nv8E9NDFTf DfQhabiAufFLZii/FjrLN2u0bePI9OvxBRmj9nez0eF04nNzt1Lq8cwd+XvFoCd2H4pd yyyRsTR4reej9Z/mz8btJeCqY8q0yvVpLNrGzjLsjDeI3HE0U+IT/Ath3Y0lnWnuZP5G MaVS556VFH0VHmKQliGzmg586LBYddR+4zcRM9uvw6PT8zhwNikJO+Z54MiFfmty5m4a tqcwGDHIa+Yc0mOb3wROW6pPUXUTVNj+Aq4QREht/k94O9kL0LNveJTJt7x6vQ90aIYN v1mA== X-Gm-Message-State: AOAM530M5aA0S+6gx1cT5Gxhtb7gPYjnT5OXQcin23vS1SIw9dA/zRdg 9iVe9D2OqY1+J+JULPn3B09yDA== X-Received: by 2002:adf:f651:: with SMTP id x17mr3881849wrp.185.1606398214358; Thu, 26 Nov 2020 05:43:34 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id k205sm9275738wmk.4.2020.11.26.05.43.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2020 05:43:33 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 33/40] drm/amd/display/dc/inc/hw/dpp: Mark 'dpp_input_csc_matrix' as __maybe_unused Date: Thu, 26 Nov 2020 13:42:33 +0000 Message-Id: <20201126134240.3214176-34-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201126134240.3214176-1-lee.jones@linaro.org> References: <20201126134240.3214176-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: Leo Li , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 'dpp_input_csc_matrix' is used by some, but not all source files which include dpp.h. Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/inc/hw/dpp.h:50:42: warning: ‘dpp_input_csc_matrix’ defined but not used [-Wunused-const-variable=] NB: Snipped lots of these for brevity Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h b/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h index 6751186f6f904..ddbe4bb52724a 100644 --- a/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h +++ b/drivers/gpu/drm/amd/display/dc/inc/hw/dpp.h @@ -47,7 +47,7 @@ struct dpp_input_csc_matrix { uint16_t regval[12]; }; -static const struct dpp_input_csc_matrix dpp_input_csc_matrix[] = { +static const struct dpp_input_csc_matrix __maybe_unused dpp_input_csc_matrix[] = { {COLOR_SPACE_SRGB, {0x2000, 0, 0, 0, 0, 0x2000, 0, 0, 0, 0, 0x2000, 0} }, {COLOR_SPACE_SRGB_LIMITED,