Received: by 2002:a05:6a10:6d25:0:0:0:0 with SMTP id gq37csp2050332pxb; Mon, 13 Sep 2021 10:50:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyO/S+2FZQX/ZONwFQ9uDUmGAAwzXPVMvUFtM2brEtF72qeukbydNsanHZjmERFrQXUGJg X-Received: by 2002:a05:6402:4389:: with SMTP id o9mr14654647edc.306.1631555445200; Mon, 13 Sep 2021 10:50:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631555445; cv=none; d=google.com; s=arc-20160816; b=dW0WLY1djbp6JwhxXe9UhZEwkhaxxBRv9+4mc/dTpduh/fOnxWM87ew4ooVMZ9QWjU k4Lt8b/XqAwbrrdfhvKLXRpW3C7wrGk1ptmbREipbsFfQkz9Eil70lQpCOpfg56pDhfP g8IugiFScj38Mriey3RdFTbEU4q6fupCgscVHHlMDT4i79Hc5MeI1/n41wOwpXeZFcdi 8EDN1WW1Xyw0JqCstSSO/6Z0sw5HNR+JrUTTtxwDpDiV8W2vxdfhP6LeVYt3SrLpTsfQ t8U+UMOSJCJSZfNx7lK5qD/T8juEWW/xyN4lEKvkw8a9Q5BMB6JZWaCK/i9ctECRMu92 HOUQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=XxGGH396yqKFz9F5OWRNHSsNaRXLO9ooc/L9AlOkzKQ=; b=moPFQXgIIG0L4HoA6/vQbqxu21hFbP3vOlovQ6irrYkDHNptvRdNeeq1vYF1aQg/i3 lQaEAHtIJxWeZw4BIV8RxlJlpf4//CFUGQeDVmUcWVM3tnZPsoeBcgdjt6mADrKKeP13 O9YVEe5UN00bxWwYJU5ZMx/tJ7VR/jTMWqnbcEVj3TuU8LMyKwDMCUYAmG9JBhvlpFCq f+o8eCurzKsn0uuszHrjqtqeeaSBLRGGGZvJXZbpOFEB4seCU5+HeC155UST1nRYQUpd IuQqTXmoGKd7deA8B5ACt33DpXLS9jcZqjerIL42HEyr/9pi6/mpDRd0MXpSA8E7jGxh 6pdw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@0x0f.com header.s=google header.b=QxWZtqYG; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l1si7892521edt.613.2021.09.13.10.50.20; Mon, 13 Sep 2021 10:50:45 -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=@0x0f.com header.s=google header.b=QxWZtqYG; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239433AbhIMLPJ (ORCPT + 99 others); Mon, 13 Sep 2021 07:15:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57442 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238383AbhIMLPJ (ORCPT ); Mon, 13 Sep 2021 07:15:09 -0400 Received: from mail-pf1-x42b.google.com (mail-pf1-x42b.google.com [IPv6:2607:f8b0:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 83446C061574 for ; Mon, 13 Sep 2021 04:13:53 -0700 (PDT) Received: by mail-pf1-x42b.google.com with SMTP id q22so8506975pfu.0 for ; Mon, 13 Sep 2021 04:13:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=0x0f.com; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XxGGH396yqKFz9F5OWRNHSsNaRXLO9ooc/L9AlOkzKQ=; b=QxWZtqYGlOGpSOGBS4dUjJX2STngIdVu9tALWqKwJ7b8hYjpl8RcdVW/0X1vzuc2Ec qSqYceB2e9nKjZ5He5OFHyh+JO+gUv9h37mURskCyV0xZxneNSFG9HuGdQdFA7WZOxSF 0jH3StCqwyJqFDGdkbN/iG9CNYkf+d/+RBYGc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=XxGGH396yqKFz9F5OWRNHSsNaRXLO9ooc/L9AlOkzKQ=; b=dIL46uIFQ+jrj+HsHAkk3nc2sX9cmg8oSegbAq+Xyu9KiI5CedD2sZvnPl7DWp3CSM 8TImgXElvS3KXCn6lA+pZMrr1eOHnuIkOSGnwY12SPjKcjpvaR4jOA8WxJo4MxS96GLa tzQKLT5pJ+ERhQ+j9MaHUJB8XIt2dsnpryFRxMSRAO7FK6ZVnY/ObQLZVwH0l2PGlUrS JSetI3z8yaeJ6G3P8mBQgt1csk7faf7ZENxmoVJFw4hYnN5Uyhfduw3As5oAcfBUhrld L+QJlzFe4xeZ98oxCYK64wiUf/JLpS3CuVCIEVI6TjGwirpe/qHrltHF+uKNSn0z+ZI0 e12g== X-Gm-Message-State: AOAM531BmWDBk54+N1fA5TcsD218INsZNHUqhEk8wehZ3BpLiUWyYxxj xpNZb2iFT2Hkn+Pq/9nxNXXzUQ== X-Received: by 2002:a63:e510:: with SMTP id r16mr10781699pgh.34.1631531633041; Mon, 13 Sep 2021 04:13:53 -0700 (PDT) Received: from shiro.work (p864106-ipngn200510sizuokaden.shizuoka.ocn.ne.jp. [180.9.58.106]) by smtp.googlemail.com with ESMTPSA id p24sm8340153pgm.54.2021.09.13.04.13.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 13 Sep 2021 04:13:52 -0700 (PDT) From: Daniel Palmer To: jic23@kernel.org, lars@metafoo.de, jmaneyrol@invensense.com, linux-iio@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Daniel Palmer Subject: [PATCH] iio: imu: inv_mpu6050: Mark acpi match table as maybe unused Date: Mon, 13 Sep 2021 20:13:46 +0900 Message-Id: <20210913111346.1957635-1-daniel@0x0f.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c index 95f16951c8f4..dbd613178f01 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c @@ -249,7 +249,7 @@ static const struct of_device_id inv_of_match[] = { }; MODULE_DEVICE_TABLE(of, inv_of_match); -static const struct acpi_device_id inv_acpi_match[] = { +static const struct __maybe_unused acpi_device_id inv_acpi_match[] = { {"INVN6500", INV_MPU6500}, { }, }; -- 2.33.0