From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E4C16C2D0A3 for ; Thu, 29 Oct 2020 16:43:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8D3E220825 for ; Thu, 29 Oct 2020 16:43:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603989791; bh=Dhl956BimS53xTQsVQBFS9A2KaCmEJWe4BIHgTaal0w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=oV7CxjpLiPp6bREWwLfIG+eVNo5DdhCzvMxQcKBO1hAvt0bfm7dn/QlQHz19kMxpr X/g7Pslxai5loREv1Hd4R5aMC63qUogQk6b6yn0CDoGbUIG8eVd1IyTet9+qLKfNU6 jzYLxRLs3rh9LNuDiDskGftn2kOrrhGrm+2maBJE= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726817AbgJ2QnK (ORCPT ); Thu, 29 Oct 2020 12:43:10 -0400 Received: from mail.kernel.org ([198.145.29.99]:51566 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726449AbgJ2QnI (ORCPT ); Thu, 29 Oct 2020 12:43:08 -0400 Received: from localhost.localdomain (adsl-84-226-167-205.adslplus.ch [84.226.167.205]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D8AEA214DB; Thu, 29 Oct 2020 16:43:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603989787; bh=Dhl956BimS53xTQsVQBFS9A2KaCmEJWe4BIHgTaal0w=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ZlZTvl+l+UQ9Y5MJfNXWbQ2IbOG1PPAS5ROOyG/OP31KzyTfIYDMVetjXuhhn0VwD tb4ny9BwSaFwb32dpX+QkrqvH/8ODHurSTXaCa3hZtd3TJjXUc+9hnQWz9Ow4Bvfra ViodVUPWNwAzli//4GySrMwWZkq/IheEG8RCDM/Q= From: Krzysztof Kozlowski To: Pavel Machek , Sakari Ailus , Mauro Carvalho Chehab , Lars-Peter Clausen , Tianshu Qiu , Dongchun Zhu , Shawn Tu , Ricardo Ribalda , Dave Stevenson , Manivannan Sadhasivam , Bingbu Cao , Rui Miguel Silva , Shunqian Zheng , Chiranjeevi Rapolu , Hyungwoo Yang , Wenyou Yang , Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [RESEND PATCH 05/25] media: i2c: imx319: silence unused acpi_device_id warning Date: Thu, 29 Oct 2020 17:42:19 +0100 Message-Id: <20201029164239.84240-5-krzk@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201029164239.84240-1-krzk@kernel.org> References: <20201029164239.84240-1-krzk@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If driver is built without ACPI, the struct acpi_device_id won't be used: drivers/media/i2c/imx319.c:2536:36: warning: 'imx319_acpi_ids' defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/media/i2c/imx319.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/imx319.c b/drivers/media/i2c/imx319.c index 8b86fc65364e..8473c0bbb35d 100644 --- a/drivers/media/i2c/imx319.c +++ b/drivers/media/i2c/imx319.c @@ -2533,7 +2533,7 @@ static const struct dev_pm_ops imx319_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(imx319_suspend, imx319_resume) }; -static const struct acpi_device_id imx319_acpi_ids[] = { +static const struct acpi_device_id imx319_acpi_ids[] __maybe_unused = { { "SONY319A" }, { /* sentinel */ } }; -- 2.25.1