Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp1259857pxb; Sun, 19 Sep 2021 11:09:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz14uQBa1i8dXRfgVZ+n4Ozhg4QyKCOEanQPkXjTpjWEkQjeK6qKUeEHI8hwTvIhUEyQyAT X-Received: by 2002:a17:907:2658:: with SMTP id ar24mr25195958ejc.329.1632074974424; Sun, 19 Sep 2021 11:09:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632074974; cv=none; d=google.com; s=arc-20160816; b=CDlb37nP6pCodzBoUG5u2dUMmZdt9nH0CQRl6fl+fZlTDWTCN39XzWitWCVpzSo8II GtwxFqHZ292FbPzU3k1+xZIyAnYUGw3WjtGrd/19vbrOT5/UPBKShbUSvpFo/pqV4n+g bxIh/tf9Iz91QQLLtiEImtTEdxf1emaueAhkh54uo1yNwZKnLKq8HHvi2Yor390Z23Ij YxFbHeRXtY9erzT4sLjDLlBAaE5KDnYr5xKMXGr6Mc2v31HZxl0L/r3+HmrDxmpU3PNf jRGOmwA8OmWRsIsGwMCL0cVg56Do+uUTk39RfOEE3O688l7hyMBV+WlwquaVaf1WSAP1 98GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=zznDZg/yrZOq7HdL0AW0HEuTHLEpoRN9URyVjlcVcak=; b=eCG648Lw0hSXxUvfgk9eApay67Rs0XVSBjZRmkgvMCXRp0oRRPfRjZMpXTttiOchbe pUH7O9P2xuiTWLdrHHu5QZFcfmbT54DTVuR6ekXRBVfGXAB54SvPooYa1RxvKY/vLIbb dglLwdMvsxDaDC3w07/QwiwEovci6nld10YAhx3xa031vv6I1ObXJ48doO269Xh+yEGy 2OCO0iszAsE6OIp7Sh2K1W1lOsji+q5ICq9ziRlsvVRU9qJQsiYW6i2BmFEm8a9R6Rsy MP+Viq4cOfaPD90nouahIAmcb68hr9OshuNsjISJvUabse9PWPBk2/SHZ3QpxHOv3JXN qJLg== ARC-Authentication-Results: i=1; mx.google.com; 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 m11si13023960edv.241.2021.09.19.11.09.09; Sun, 19 Sep 2021 11:09:34 -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; 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 S233705AbhISQBR (ORCPT + 99 others); Sun, 19 Sep 2021 12:01:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:33568 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229933AbhISQBQ (ORCPT ); Sun, 19 Sep 2021 12:01:16 -0400 Received: from jic23-huawei (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E16FC6101B; Sun, 19 Sep 2021 15:59:49 +0000 (UTC) Date: Sun, 19 Sep 2021 17:03:30 +0100 From: Jonathan Cameron To: Daniel Palmer Cc: lars@metafoo.de, linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iio: accel: mma7660: Mark acpi match table as maybe unused Message-ID: <20210919170330.0b79cb0e@jic23-huawei> In-Reply-To: <20210919072616.3849723-1-daniel@0x0f.com> References: <20210919072616.3849723-1-daniel@0x0f.com> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.30; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, 19 Sep 2021 16:26:16 +0900 Daniel Palmer wrote: > When building kernels without ACPI support the table is declared > but is not used because ACPI_PTR() turns it into a NULL. > > Add the __maybe_unused attribute to stop the compiler whining. > > Signed-off-by: Daniel Palmer Applied to the togreg branch of iio.git which is initially pushed out as testing to let 0-day poke at it and see if we missed anything. Thanks, Jonathan > --- > drivers/iio/accel/mma7660.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/iio/accel/mma7660.c b/drivers/iio/accel/mma7660.c > index 47f5cd66e996..cd6cdf2c51b0 100644 > --- a/drivers/iio/accel/mma7660.c > +++ b/drivers/iio/accel/mma7660.c > @@ -254,7 +254,7 @@ static const struct of_device_id mma7660_of_match[] = { > }; > MODULE_DEVICE_TABLE(of, mma7660_of_match); > > -static const struct acpi_device_id mma7660_acpi_id[] = { > +static const struct acpi_device_id __maybe_unused mma7660_acpi_id[] = { > {"MMA7660", 0}, > {} > };