Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2559655lqz; Wed, 3 Apr 2024 01:22:17 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW51WCrQiw8ADBOws0/xKD0YjPaf8O4EIqZsd65RiVrJ8W44Q5/5dwbxLXiMWJBPAM091qPHkvEe7WBhhszmA3M6QdqY6rzWZPLmxkRZw== X-Google-Smtp-Source: AGHT+IGVBCJApJB1Mjc/HyrrgsKME6myTvf4JyuriRGjvYL382ijM3kbFz024IBPtQx2vVsHC5C4 X-Received: by 2002:a05:6a20:43a9:b0:1a3:bc78:fd1 with SMTP id i41-20020a056a2043a900b001a3bc780fd1mr17964762pzl.59.1712132536797; Wed, 03 Apr 2024 01:22:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712132536; cv=pass; d=google.com; s=arc-20160816; b=naCgcsWqmbzyMxxp5n6gOnLPvYunjhrRO7z7+TZV3uB41mH+/+7xCpjCCSnY58SD+O tN+/s/ShxOe7hmxL1PUcGxL5Q9FywHgoSm9LUsGbpQMmIb9LfUmigEItHrJWm65bg44S 3ekYtgb2ok5/opQ6ni7oJDXlCIOhr8S83Nt07Tsfyvdpq6vXHK358QLv+EZ+02U1vVXF cbAbwPf64S0JU6TS63IBR35hCVR610aXm3jNcYm3JMk3rq/PcL06rGNG8McLbSIIMYNm Slm/+bFY8iu98JKOxUYrgeAsmZMFSBDTv98q40WDNnXJZZ/pFP8upx3K2OrHnHU1G1LS i2+Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=YpfJCDd7rZu/fQfucF0Yzc+XLg/fIVMLBOD7Nh98Jkg=; fh=15OSwqS6F6J0i4l7+ONQG+Lsn8ikSmq4uEGwdUr87yo=; b=vT2k0w7eokMpd5wFOR7wNWeDqd9Af4YlYNRcrA5kvq5IcvkLEuC/Dwr4eq2EninleH Xcmx/4LeDR0JqgTVpmubq4W0VzvuOH8nbEXxmXWPY7Vyfv/d2FbDMepB+nM7Ms+lC0Da huEOgO5+RiAWK4sOSn4tlRx6mgoZ1DZanmdD2SDke5pmoaOwRBEvfds91O4vW5fviwxd c8cswnZJckeoveGvL1wRQJlfEg2Mci+l10obClQM/M3PdhUPmo/3d4gBHeejxJqlJkUO WGPazIdjtEskrYM8g5LD5dka4BD5FAH4CJfMqB+bd5bq33M4sW5g3HOgpdW+hlMsH2jA aI3g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k4jY7OjU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-129281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129281-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id nh24-20020a17090b365800b002a246ed9e54si3067376pjb.36.2024.04.03.01.22.16 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Apr 2024 01:22:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-129281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=k4jY7OjU; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-129281-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-129281-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 4D1B828ABC9 for ; Wed, 3 Apr 2024 08:16:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7D7C382D9D; Wed, 3 Apr 2024 08:08:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="k4jY7OjU" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9D81082C76; Wed, 3 Apr 2024 08:08:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712131691; cv=none; b=mHybvi4QBenUL9DfiAVEr3dZghyB1UxnWd1IDTSp6rC3iQyEMNbD3pzhCQkJlplzGyV90mYl2YXAM315giJRn1J5w4qTQtRcYG1PgKSLGzRKY33tV5qy5JqgI2I6fDpQjJvhOIZ7c8YyINxJmq4CRGXF9l8zWF5pUfiWGrA+bps= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712131691; c=relaxed/simple; bh=nBMKcbCHM6WSePIKZgnN+NmyDRmfcmwdi7Q6UrA4R0s=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=QJJAzcHhKYzW8yQ8XH/5nDD3mshVRG4eK6x4SilGQt02nS+uoGH5CDjtxC28y1/9zN0quCd8v+hg4X+vXfZ6NAtkCjO7cAtrWYfhNRgr11v8v73nE/Tk+BPhCXGcO9dFyH5dFs2y0YDfPy2ufbw+W62DbplzURy3VUKpHg61Yms= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=k4jY7OjU; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DB065C433C7; Wed, 3 Apr 2024 08:08:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712131691; bh=nBMKcbCHM6WSePIKZgnN+NmyDRmfcmwdi7Q6UrA4R0s=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=k4jY7OjUHYSY173pVi7rXHQ/+qCdzAB94GAS0OIudJs8w1C5MNgJM5F/DWrpAsXbr +viQNaZ3Mx2NwGj2Gp9Udbo2+/Z6sdBJpSexHqFLT9J09VE/8sMJVROyWyfIjc4+0a DY1wWn54ExMb1B2r49X2T0djEZAhQbkykDGH+9Oiqku4LJxDq8R9UnqPDw4ZvB/ImD jmIq2XfMa0x+NRh57QyUE3qFSPP3T3NtiuG9u/em6ujBNDdR/VVQeWha5Ad+u49JdI syuhZlrYyG5MgcWtiVnX+sHvxOOrO+9e1Qa9eRXW66OIaFRDCpCYklDjECafr6LVna PDjNa9kHcKhsA== From: Arnd Bergmann To: linux-kernel@vger.kernel.org, Andi Shyti , Russell King , Holger Schurig Cc: Arnd Bergmann , Wolfram Sang , Linus Walleij , Geert Uytterhoeven , Heiko Stuebner , Yangtao Li , Robert Marko , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Liao Chang , Paul Cercueil , Rob Herring , linux-i2c@vger.kernel.org Subject: [PATCH 04/34] i2c: pxa: hide unused icr_bits[] variable Date: Wed, 3 Apr 2024 10:06:22 +0200 Message-Id: <20240403080702.3509288-5-arnd@kernel.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240403080702.3509288-1-arnd@kernel.org> References: <20240403080702.3509288-1-arnd@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Arnd Bergmann The function using this is hidden in an #ifdef, so the variable needs the same one for a clean W=1 build: drivers/i2c/busses/i2c-pxa.c:327:26: error: 'icr_bits' defined but not used [-Werror=unused-const-variable=] Fixes: d6a7b5f84b5c ("[ARM] 4827/1: fix two warnings in drivers/i2c/busses/i2c-pxa.c") Signed-off-by: Arnd Bergmann --- drivers/i2c/busses/i2c-pxa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-pxa.c b/drivers/i2c/busses/i2c-pxa.c index 76f79b68cef8..888ca636f3f3 100644 --- a/drivers/i2c/busses/i2c-pxa.c +++ b/drivers/i2c/busses/i2c-pxa.c @@ -324,6 +324,7 @@ static void decode_ISR(unsigned int val) decode_bits(KERN_DEBUG "ISR", isr_bits, ARRAY_SIZE(isr_bits), val); } +#ifdef CONFIG_I2C_PXA_SLAVE static const struct bits icr_bits[] = { PXA_BIT(ICR_START, "START", NULL), PXA_BIT(ICR_STOP, "STOP", NULL), @@ -342,7 +343,6 @@ static const struct bits icr_bits[] = { PXA_BIT(ICR_UR, "UR", "ur"), }; -#ifdef CONFIG_I2C_PXA_SLAVE static void decode_ICR(unsigned int val) { decode_bits(KERN_DEBUG "ICR", icr_bits, ARRAY_SIZE(icr_bits), val); -- 2.39.2