From patchwork Mon Sep 21 16:23:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11790437 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id A9F23618 for ; Mon, 21 Sep 2020 16:24:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9209E235FA for ; Mon, 21 Sep 2020 16:24:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600705489; bh=ktQpm1/c6hMxf+7bSnCZAwdBXVtxcU32rqZ4E3N6TuA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=tDtkuLLPVgK5mzIClF43b1Q1+L2S0FqIoYfGjSfagBL1KvbTPZrh24w4ptdq1B8Lx aQnB52mL/RLQd+8hovjva9B2lrc0jSX1PKDUXnzt8jtM/u4s4PpaQ/0iu2U3SRiRL/ hzb56IUdAXLaUev6/Edy40zm02pT3s3l595XsWiQ= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727885AbgIUQYq (ORCPT ); Mon, 21 Sep 2020 12:24:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:51554 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726457AbgIUQYp (ORCPT ); Mon, 21 Sep 2020 12:24:45 -0400 Received: from localhost.localdomain (unknown [194.230.155.191]) (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 B1163235F8; Mon, 21 Sep 2020 16:24:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600705485; bh=ktQpm1/c6hMxf+7bSnCZAwdBXVtxcU32rqZ4E3N6TuA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=BPb8zz/UJm4zKdYR5mtgPRtcigIP8zJszpkVA2TkLpUMFQtVDn0DHobBJd+byXYD3 KddxT1gLTQ71tUo1bPkc1yOPvQX+ExmVzpO6capjRoWHNLbvuSqvHYP4+7RKHTl10e ZCokIdhd0gEzVZsIw+IOR9pdIpXff46KwjN0fyF4= 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 , Marco Felsch , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 07/25] media: i2c: imx355: silence unused acpi_device_id warning Date: Mon, 21 Sep 2020 18:23:24 +0200 Message-Id: <20200921162342.7348-7-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200921162342.7348-1-krzk@kernel.org> References: <20200921162342.7348-1-krzk@kernel.org> Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org If driver is built without ACPI, the struct acpi_device_id won't be used: drivers/media/i2c/imx355.c:1836:36: warning: 'imx355_acpi_ids' defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/media/i2c/imx355.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/i2c/imx355.c b/drivers/media/i2c/imx355.c index 51245e71b411..8db287251f49 100644 --- a/drivers/media/i2c/imx355.c +++ b/drivers/media/i2c/imx355.c @@ -1833,7 +1833,7 @@ static const struct dev_pm_ops imx355_pm_ops = { SET_SYSTEM_SLEEP_PM_OPS(imx355_suspend, imx355_resume) }; -static const struct acpi_device_id imx355_acpi_ids[] = { +static const struct acpi_device_id imx355_acpi_ids[]__maybe_unused = { { "SONY355A" }, { /* sentinel */ } };