From patchwork Wed Jan 13 14:49:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 362113 Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp597892jap; Wed, 13 Jan 2021 06:50:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJzgKNgAMRjMK6nMOogsJiCXtLnZr6NDfrQbGfd9vC32uV3lc4DD12S+YSilI/1sd4JZQnAQ X-Received: by 2002:a63:50a:: with SMTP id 10mr2398765pgf.273.1610549428519; Wed, 13 Jan 2021 06:50:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610549428; cv=none; d=google.com; s=arc-20160816; b=APgVe5+TcyhtB6a6skNKCzVmTeootFUYb/XzHeeErqLE3X9dxSaq8CECKQ5JN0H6Jo /lFyFkEweW42NXQm2or4oS+0qPVTtTVRESddB6G3TTyTqrcNZhkLJaZh9KCD6kcIas3W 2HYz/gHfcje1g20RFrkDLXC67lKF/ONqXGIzdOBYh0yZaBYQdHk6cloWvZISDG2sJpTY 0Fn2FH6CvyLo3CkGVE45WP2qDoywp2IkxfAJrwPi5shulWqchgXyASdw6J2Rfi7xFGkS c98kOEm0H/bXGZTw9PxTOGdXh1jM7sjP0tyJ1D8YEJpW3ImkJGV4iZQneZjO6wGz3f8Y Xnuw== 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=C2yXBCYCSd265Ecj8RTRY25I5NDT8ffHDT+47FWD5ec=; b=otIvVQOszFYRz3ot+3S+VMu982iLDeDaunKylQlSrtnkC0q8WFgSOL3EyEBrr54tB2 2ps/ZL29w+ZxR84GUTSWiVDxpfOA5zvloG2accPBvDDSzASrtYL6ehTDt9OURhTPVA0U folWi8HJ+M/iYHnuANDRLGX1XOYyGrnPPwI7RMt8GaNdJERYhVds4YCX8w4ntIn322+h CZX/JRcR/ZkxlCDb38BcWkDUAVFsEnlb9O4oRj31UUCe5X04QVjyT6udpq4JzgengHre Nkf32111U4xXtcYy3Jn6nqNxVmq+eh/GqHhidFPDCMP8hP0OnmBiONtRJRjKxnP85j/M 27eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=U7XZpCyn; 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 c15si3037486pgn.211.2021.01.13.06.50.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:28 -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=U7XZpCyn; 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 8D4726EA54; Wed, 13 Jan 2021 14:50:22 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by gabe.freedesktop.org (Postfix) with ESMTPS id 7F1256EA4B for ; Wed, 13 Jan 2021 14:50:20 +0000 (UTC) Received: by mail-wr1-x42a.google.com with SMTP id i9so2417752wrc.4 for ; Wed, 13 Jan 2021 06:50:20 -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=qvE9T1Sdi1RAuyfyFAKYPhv+PIZJRg/gdw+xAA12HNM=; b=U7XZpCynbw9Y5AThFO42Dm2JoFqWJsr9KG6TgiBESTQlNc3fAWqvrv/vV8/bWuW37L 5Fjmhghbx5eL6EY4Moqeeu/yko+J0D69QRMZW6dhXQ+Nm9vDb4yEtKNNPUG+swW/GUbD nAaRi2O/qE3tCVsaODzksTZRhF5TfWSJtIznTgVmbKSYSnmBQqobEUxuFMK2YTYRo0L7 5w6ysuaaYARhRutz78Bmdnh6Kc8gc9Z/V8eH/apGCKxMK7Ke/jwJuBK4NTtqahNEJg7W TA2E0XY8ZoQAjFera38Ev01dBrJEDrnnCeyVsmeOs34OMOGtHvVAEe9zC9dc+VdMb3Ui iGGg== 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=qvE9T1Sdi1RAuyfyFAKYPhv+PIZJRg/gdw+xAA12HNM=; b=m5LS+s18cDIdewop85viIN2e8c46Z5kexVMrzrCta6URJ6sJv3MPdD/tHLBATPxFqA XzzT5bq2EmBspme6dx6iQ0s2hNRhILierVuaovyIn8xKZwNn5eWBci1mM6du28DEC7fN xXrjUSMa2Ua4LfwnuV3m6kzBZgJTXtW9MlQeef/pumun56F4mpWtqxa/t3C0IS7jJmXw AprpCVkP2xDI6ZOy4+THR4oiHaTsvz0LEfk0kL76k/7nr1PvAsPsmCjI8zvJC/qcyJjX arp9JQco8wV4n6YgZBfXu6GPg6AMFSU4TgqAMwyRqms9G5UwGX1qnxvsMgq+L4JE3MYm b/9w== X-Gm-Message-State: AOAM530BmjULUzOqyGuOPtnFZaAuYEYBD9oCFNWQmeyqyktVeBZ5zo34 bpDtKUx1bJNlzzWFP55+YeBbfA== X-Received: by 2002:adf:f18a:: with SMTP id h10mr3187110wro.244.1610549419211; Wed, 13 Jan 2021 06:50:19 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id t188sm3273433wmf.9.2021.01.13.06.50.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:18 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 04/31] video: fbdev: aty: atyfb_base: Mark 'dac_type' as __maybe_unused Date: Wed, 13 Jan 2021 14:49:42 +0000 Message-Id: <20210113145009.1272040-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210113145009.1272040-1-lee.jones@linaro.org> References: <20210113145009.1272040-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: "Eddie C. Dost" , linux-fbdev@vger.kernel.org, Anthony Tong , Alex Kern , Vaibhav Gupta , linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 'dac_type' is only used in the '#ifdef CONFIG_ATARI' clause. Fixes the following W=1 kernel build warning(s): drivers/video/fbdev/aty/atyfb_base.c: In function ‘aty_init’: drivers/video/fbdev/aty/atyfb_base.c:2363:6: warning: variable ‘dac_type’ set but not used [-Wunused-but-set-variable] Cc: Vaibhav Gupta Cc: Alex Kern Cc: "Eddie C. Dost" Cc: Anthony Tong Cc: dri-devel@lists.freedesktop.org Cc: linux-fbdev@vger.kernel.org Signed-off-by: Lee Jones --- drivers/video/fbdev/aty/atyfb_base.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/video/fbdev/aty/atyfb_base.c b/drivers/video/fbdev/aty/atyfb_base.c index 11c328f0585ce..9b056b49f2807 100644 --- a/drivers/video/fbdev/aty/atyfb_base.c +++ b/drivers/video/fbdev/aty/atyfb_base.c @@ -2360,7 +2360,7 @@ static int aty_init(struct fb_info *info) #ifdef CONFIG_FB_ATY_GX if (!M64_HAS(INTEGRATED)) { u32 stat0; - u8 dac_type, dac_subtype, clk_type; + u8 __maybe_unused dac_type, dac_subtype, clk_type; stat0 = aty_ld_le32(CNFG_STAT0, par); par->bus_type = (stat0 >> 0) & 0x07; par->ram_type = (stat0 >> 3) & 0x07;