Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp388282pxk; Fri, 11 Sep 2020 09:34:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0/ojbUs5nC1rbC6CTPv7iMIkZqU3BW/icUIEIZN5qrf2sR9/jWkNPFoO3FHJcGAJfBpO2 X-Received: by 2002:a05:6402:1515:: with SMTP id f21mr3128763edw.175.1599842043059; Fri, 11 Sep 2020 09:34:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1599842043; cv=none; d=google.com; s=arc-20160816; b=xi2q0xY6mvmkzR8xkaSg+GbguLiBWhLKszmeUK1/PIr3hmuuv/SV1RFJPReZWIdWfv qOnzNjxsIqDdWpTzB6MHHlJxZRnfr+2jl8sxT5TLRAESLrU5XzDbQPuOkZDQW0MiDH36 pOnfiOPFeA1MukwPnDGarPgTH0V9cEfJ7pKP4fnKc02CTBULYk6vEjTEN+0TarZ7RmO0 a3MJ61z3/e4wGIrafW8Y/1xHPs5RLZBe5LVPdBiOulqz2zxNwmhmhdhAszwxe9lcF92a 4cztVBFFKq7jeoKvcTl9G6ICVdVurr0RK2icQnEmqYv3RVXuDbkiZc5jZSfjJXDl/xrN cZHg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature; bh=EB2Ty2526DjI0DX1xHn5idFKLHE5G8bZFvN5hfnjOzA=; b=haOGkAQp1JC7fuHpgcCVdUiDc/pjDlSE/+1CgeecTF9LUqE5gaJ7D3RUXOiGBw98VB RDWSceL1EQhPDtTuyfmvJOGTXkXs0VRNuZxnPe4JTgQ+q/5k9oAy30ItUNxM3RIiVag1 Cf3s5Q14BifX4PcxMTlyLLAalZZhnC/bdrHvHte4HvI95DiN1HuMJJLgeBphhDBBkIK2 wv3VJhxcRpJHSg3GdwpXl8Dsy4zElwWIcuC+P42QxAAXGd3Khw4wUb0JmjqNCl1n7vOD ITP9JD1iLVQbcpfgH5W4hD1ytuNP92um/7rgVvtgTQYWGImxAhTFsievkxNtpSOC6luC CKzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=p5w4DH3N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s10si1577681ejr.574.2020.09.11.09.33.40; Fri, 11 Sep 2020 09:34:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=p5w4DH3N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726572AbgIKQaz (ORCPT + 99 others); Fri, 11 Sep 2020 12:30:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:60662 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726613AbgIKQ1m (ORCPT ); Fri, 11 Sep 2020 12:27:42 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.174]) (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 79C56221EB; Fri, 11 Sep 2020 16:27:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1599841654; bh=iVrTsu1h/6XlgdpG7zNyUdsnzo/x/58Z/4c9hRJI3iM=; h=From:To:Cc:Subject:Date:From; b=p5w4DH3NWmRDXCmqROyjGb503AOrxeMLr3ldg0FtnhVLzvq4sRSHrK83BXXPNaxzZ Pd7c9Hq1BTErlyyx7oIMPEDJ3fCaKoOiOZM2uRdSyo5bEzOPoRcmOcGe/cmCAyBIzY bvQzUzzXqOCedLTOKikBMlt/6Ck/CdlDZDDRJN5g= From: Krzysztof Kozlowski To: Sebastian Reichel , Jonathan Bakker , linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/7] power: supply: bq24257: skip 'struct acpi_device_id' when !CONFIG_ACPI Date: Fri, 11 Sep 2020 18:27:23 +0200 Message-Id: <20200911162729.3022-1-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Since ACPI_PTR() is used to NULLify the value when !CONFIG_ACPI, the struct acpi_device_id becomes unused: drivers/power/supply/bq24257_charger.c:1155:36: warning: 'bq24257_acpi_match' defined but not used [-Wunused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/power/supply/bq24257_charger.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/power/supply/bq24257_charger.c b/drivers/power/supply/bq24257_charger.c index 8e60cb0f3c3f..96cb3290bcaa 100644 --- a/drivers/power/supply/bq24257_charger.c +++ b/drivers/power/supply/bq24257_charger.c @@ -1152,6 +1152,7 @@ static const struct of_device_id bq24257_of_match[] = { }; MODULE_DEVICE_TABLE(of, bq24257_of_match); +#ifdef CONFIG_ACPI static const struct acpi_device_id bq24257_acpi_match[] = { { "BQ242500", BQ24250 }, { "BQ242510", BQ24251 }, @@ -1159,6 +1160,7 @@ static const struct acpi_device_id bq24257_acpi_match[] = { {}, }; MODULE_DEVICE_TABLE(acpi, bq24257_acpi_match); +#endif static struct i2c_driver bq24257_driver = { .driver = { -- 2.17.1