From nobody Mon Feb 9 15:07:11 2026 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 289CD82C76 for ; Wed, 3 Apr 2024 08:07:59 +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=1712131680; cv=none; b=uE49ILQ87C+d8Dd+Xoh2xyTBUf2vmAlBJJ0rf6jM6KbXTgk8/oGCHUk6AACWgqVwX4NGP+UVW5XCVmEMn6HvQg96lwGWh8saJbbW3XfzbsEpULHa3dvbmvFUCvGQSt5AQyhe1qJytrivcAYpbQoS0Lbx76Q3Cir+MiRNxB2Pmnc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712131680; c=relaxed/simple; bh=+RZZEkb1FuJEVe5kPWRemc+Kjc4SmXvUOzkLd/XEDLw=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=T3G0VKEgiHegotLctAld8LQB1Scuf1wXIonwUvJeHjrBcPvwn/3mPROTwKLb/OnWYxiHwFUkG1bnuvBGY91Nssm0LDCfYaZyp8yxgO2AP3DSpQDWHsPWW15StqdDjW22Ov/BJXAFgkzeiPzxJ1Z0e1bERjhuOSaieHqy0wHWoM4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=UAlVLpOE; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="UAlVLpOE" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 16C2CC433C7; Wed, 3 Apr 2024 08:07:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712131679; bh=+RZZEkb1FuJEVe5kPWRemc+Kjc4SmXvUOzkLd/XEDLw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UAlVLpOES8BpHSPX9xir8ZtWnkI77GoKSccDd8F6+Lk5tHErVvCS9G6JNPltXMnym rw6JRTNWTdPa5bZKdSJ0J85vD98lmiNtbSSQlOIX2sLHXEq5Sn2VUDYE3dYun2NXTX 69JmjTv/12GuEiqIxNPjAsBBfE3znOnNROub0nUFLF5j0n2ti8dQ1JmVenQn+YcJcn yACPEXgXsCS5/igxN4eicNYihVjW3GKeuNcp2rAc/hTetqC0CMP63kOVJKFP3f/iJv /TANOdMIz3qmKZX+lUUUhuDWVHO+koGyTXMsGF2dubT63flnfqpvQk4yUr36PZSPla cmPMc8C010LUw== From: Arnd Bergmann To: linux-kernel@vger.kernel.org, Alan Cox , Jason Hu , Greg Kroah-Hartman , Jin Qian Cc: Arnd Bergmann , =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Subject: [PATCH 03/34] platform: goldfish: remove ACPI_PTR() annotations Date: Wed, 3 Apr 2024 10:06:21 +0200 Message-Id: <20240403080702.3509288-4-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: quoted-printable Content-Type: text/plain; charset="utf-8" From: Arnd Bergmann On platforms without ACPI support, this causes a W=3D1 warning from gcc when the driver is built-in: drivers/platform/goldfish/goldfish_pipe.c:925:36: warning: 'goldfish_pipe_a= cpi_match' defined but not used [-Wunused-const-variable=3D] 925 | static const struct acpi_device_id goldfish_pipe_acpi_match[] =3D { | ^~~~~~~~~~~~~~~~~~~~~~~~ There is no real harm in just keeping the small table around, so rather than adding more #ifdef checks, just reference it unconditionally to avoid the warning. Fixes: d62f324b0ac8 ("goldfish: Enable ACPI-based enumeration for android p= ipe") Signed-off-by: Arnd Bergmann Reviewed-by: Andy Shevchenko --- drivers/platform/goldfish/goldfish_pipe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/goldfish/goldfish_pipe.c b/drivers/platform/g= oldfish/goldfish_pipe.c index 061aa9647c19..6a0a42887857 100644 --- a/drivers/platform/goldfish/goldfish_pipe.c +++ b/drivers/platform/goldfish/goldfish_pipe.c @@ -940,7 +940,7 @@ static struct platform_driver goldfish_pipe_driver =3D { .driver =3D { .name =3D "goldfish_pipe", .of_match_table =3D goldfish_pipe_of_match, - .acpi_match_table =3D ACPI_PTR(goldfish_pipe_acpi_match), + .acpi_match_table =3D goldfish_pipe_acpi_match, } }; =20 --=20 2.39.2