From patchwork Sat Mar 11 11:14:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170737 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B5112C7618B for ; Sat, 11 Mar 2023 11:17:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229956AbjCKLRV (ORCPT ); Sat, 11 Mar 2023 06:17:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47942 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230095AbjCKLQh (ORCPT ); Sat, 11 Mar 2023 06:16:37 -0500 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [IPv6:2a00:1450:4864:20::52a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E1A4B3E2F for ; Sat, 11 Mar 2023 03:15:28 -0800 (PST) Received: by mail-ed1-x52a.google.com with SMTP id ec29so30739623edb.6 for ; Sat, 11 Mar 2023 03:15:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533301; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=QbuERcpEYZZP8DGMBzAh4rdJ1ALZ/Zuq4Tpuw7i37QU=; b=s1xUOQhcbhWhG1M5xwYIVLhZzW8yYgXze58GEm8I9tqSPr4cDP1sIZqWFOmshus417 cuQTec9FPallYt2WywWTMeP69LfZiVSoGJpdge4ApFV89YZNPV+xwxDVlDQmlTnXb8wU 13PbVGrC+6T4iQU5dhn5xDIkk4a/QMR74HCsLRGwQgMkNBO7Ir7Fdt39aLFbGE+tsLbV I+69e+kJFFlIAt1VCvx+3F+Go7BWib3wx29fLQonHklHjg5PVDB9zwBdgX+P+qYNqiSP ufmCh1/sFukPceHV3LzRFgaXTLjpavu6HffksjCEaUAQ7NEXAYg2D2e1F5SDiutcZKZ0 2T1w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533301; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=QbuERcpEYZZP8DGMBzAh4rdJ1ALZ/Zuq4Tpuw7i37QU=; b=IBWRVvJUapLaPTsH8eotkDK9Q3MvnOJan6SY0IX3dfKWzOCHow4ODWBp+IIUPVJjDv HwXJjnzj0JNuOqlALNf7Kb01yyYp6nJAeP9GvgdUhJk1/GSeFvD+s2VOfUxmQIzVmgB0 lQDOSlS6Xd5i8GT3vfVH6Km0EZffkSP15oKQdwYA4JRdJOt5OGm8flxEEmVzxqCcoAls xHItIU3WD9NJI7DYyNaczVXOJm3EKMTM2qN6ogjedAAOmsXf3W17nmcCcZQTj8S/nKfk Jt9zSHBJnlG2PgIv9AfVBKTJcHL8A5u4hIURu36gBxtGBM85HVHOJXpcb2rsFLWiVD3N Mk7Q== X-Gm-Message-State: AO0yUKW3ScPFb+LbJQIm+ggGv6sLTTTb411329cyNhjkCDfRQooTq1W1 6R93F3l9A9Vcq9KHYn0sgO9WIbWfh51GbKO/RPc= X-Google-Smtp-Source: AK7set/SvdvndrUH7v4K4asorZK728UuGdUey1pkP4ms8CL3ApHZAV0xRJzv86TrDbUh979XIWnklA== X-Received: by 2002:a17:906:dd7:b0:87e:a34b:9e2b with SMTP id p23-20020a1709060dd700b0087ea34b9e2bmr28951517eji.28.1678533301747; Sat, 11 Mar 2023 03:15:01 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id lc22-20020a170906dff600b00922b009fc79sm223427ejc.164.2023.03.11.03.15.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:15:01 -0800 (PST) From: Krzysztof Kozlowski To: Marek Vasut , Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Robert Eshleman , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/4] iio: adc: rcar-gyroadc: mark OF related data as maybe unused Date: Sat, 11 Mar 2023 12:14:54 +0100 Message-Id: <20230311111457.251475-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/iio/adc/rcar-gyroadc.c:286:34: error: ‘rcar_gyroadc_child_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/iio/adc/rcar-gyroadc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/adc/rcar-gyroadc.c b/drivers/iio/adc/rcar-gyroadc.c index 27d9e147b4b7..b8972f673c9d 100644 --- a/drivers/iio/adc/rcar-gyroadc.c +++ b/drivers/iio/adc/rcar-gyroadc.c @@ -283,7 +283,7 @@ static const struct of_device_id rcar_gyroadc_match[] = { MODULE_DEVICE_TABLE(of, rcar_gyroadc_match); -static const struct of_device_id rcar_gyroadc_child_match[] = { +static const struct of_device_id rcar_gyroadc_child_match[] __maybe_unused = { /* Mode 1 ADCs */ { .compatible = "fujitsu,mb88101a", From patchwork Sat Mar 11 11:14:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170738 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 15BAFC76195 for ; Sat, 11 Mar 2023 11:17:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230001AbjCKLRY (ORCPT ); Sat, 11 Mar 2023 06:17:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48006 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230096AbjCKLQh (ORCPT ); Sat, 11 Mar 2023 06:16:37 -0500 Received: from mail-ed1-x52b.google.com (mail-ed1-x52b.google.com [IPv6:2a00:1450:4864:20::52b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 599FCA3B52 for ; Sat, 11 Mar 2023 03:15:28 -0800 (PST) Received: by mail-ed1-x52b.google.com with SMTP id r15so3545805edq.11 for ; Sat, 11 Mar 2023 03:15:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533302; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=TWDnMi7QDZcdU4X1J04rb9K92AwZUFTrHqFetObZuyA=; b=FPB6LP9qGChtUK7gsfHHUoQz9aOtglbfyIbyXKjx+q88Uc7gEE//joK7NgZoHsVQId Q3SW4vnMZ7Mi7REyHsmktqkrH4LfkEJOSOih3tcOOiRlQWr7oi3m3aPv+dSNJa+6OKg5 PS1sfqnBPBvFHObJy+cLm2EkysAX+jQQozk7oM1uahf4fg0le3hH4AshRYN16o3RTX2Z ops6O9KHRmxXB9sLZZXBeZye9/NVgqoQEhJdYWc3gbO/U7xpju7CSlCG5u5fvzPXCgFI MPgSb/RwDWBY8OHc2kNbtoEEA9/Fj+SWIIojRJVBKNqRGtO5isIsFnV7KCTV8c6uHvDj 9JAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533302; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=TWDnMi7QDZcdU4X1J04rb9K92AwZUFTrHqFetObZuyA=; b=q7TB8VeaeawCwz/SrBwX1zVojZm/Bb6WsT1G0eFYBi0N38YzfG5Ut2qh9XmbtU3lOs sTwORTh+gstKF00G82Grlm3O+Jp4f2Jh66puj5UwvGgEKdNy6q8JOP6ke7p9uVWsDBlF mx7GYievhQS4de6XH9ijBG2GzhkDWs9TssQzrCStijdLg7xCWGE5J6AcPakIl9faRotS /j+W5ZYuKqV5jARc3B7EeUBlk/ab+QMQgSoYFq+isMAqBc7daSHn02CqzDJzaZo3jle1 n5l2Ns0GBFHnG5GH95UWP3WwuwGb3BC7KFPzNRHWBlfMy7hFbflw/mawBH1bo/mfg+m8 jZqQ== X-Gm-Message-State: AO0yUKWzXGFX9C0oNAuwJVSpplVYhZZtCMGNhQNvUYYgssHFYU+EiDP/ hnGGr5oK/AkEkvCYXV31Ic2C/w== X-Google-Smtp-Source: AK7set/CMxwbblIW2mcgQdrWF+nrSueg14JbkoTX1/WzgpY9XADsiMemFhpivXEjozp2h9uVjs1CIQ== X-Received: by 2002:a17:907:86a5:b0:8b1:7fe9:ac69 with SMTP id qa37-20020a17090786a500b008b17fe9ac69mr37804712ejc.75.1678533302588; Sat, 11 Mar 2023 03:15:02 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id lc22-20020a170906dff600b00922b009fc79sm223427ejc.164.2023.03.11.03.15.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:15:02 -0800 (PST) From: Krzysztof Kozlowski To: Marek Vasut , Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Robert Eshleman , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/4] iio: dac: ad5755: mark OF related data as maybe unused Date: Sat, 11 Mar 2023 12:14:55 +0100 Message-Id: <20230311111457.251475-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111457.251475-1-krzysztof.kozlowski@linaro.org> References: <20230311111457.251475-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The driver can be compile tested with !CONFIG_OF making certain data unused (of_device_id is not used for device matching): drivers/iio/dac/ad5755.c:865:34: error: ‘ad5755_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/iio/dac/ad5755.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/iio/dac/ad5755.c b/drivers/iio/dac/ad5755.c index beadfa938d2d..a6dc8a0bfc29 100644 --- a/drivers/iio/dac/ad5755.c +++ b/drivers/iio/dac/ad5755.c @@ -862,7 +862,7 @@ static const struct spi_device_id ad5755_id[] = { }; MODULE_DEVICE_TABLE(spi, ad5755_id); -static const struct of_device_id ad5755_of_match[] = { +static const struct of_device_id ad5755_of_match[] __maybe_unused = { { .compatible = "adi,ad5755" }, { .compatible = "adi,ad5755-1" }, { .compatible = "adi,ad5757" }, From patchwork Sat Mar 11 11:14:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170736 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 8A6DBC7618A for ; Sat, 11 Mar 2023 11:17:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229981AbjCKLRX (ORCPT ); Sat, 11 Mar 2023 06:17:23 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230110AbjCKLQi (ORCPT ); Sat, 11 Mar 2023 06:16:38 -0500 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9A32CB7D92 for ; Sat, 11 Mar 2023 03:15:28 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id y4so1273808edo.2 for ; Sat, 11 Mar 2023 03:15:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533303; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ioe8ZckxjU6ZpVzZshacUS/R7WK/EtFfWhV8AADv5Wg=; b=Qv3harmSc0C7cxjkUe4JkVM0K/zqBD/g5+YAM2euRlrw8xX9TtFYm1YF4TxtMuZUkS KddiDQs4AxZ4oNSKk/hCwv/2HPLrXqTeYIHKxTpmLs3P0VxQQ2KBSkBvJndHyrn2cbPv Yq/Bw/XCnaq41hxusKGD2fSxsTGLVFjW4B7ePAXQwuYIRMRjao2jwTMuMNeLXqmul8ZQ HcNALQGblX05u6BQOZhavjAJaRdg16ZsoPlDFz/Q1rxBieqBFQQCmkqscDVJa9xSOEoE XmZ84y/i2Vgi0jpcgFp86RQtE4uvcAmfwRng1/zFlGATzAiWuIDmYztx8wsbEHidWywD wnDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533303; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ioe8ZckxjU6ZpVzZshacUS/R7WK/EtFfWhV8AADv5Wg=; b=iqrj5V6SywvXYY+L06a3yyzKAaBuWu0lBCteqtgy1jvQ90pZxIKEy7XuMylbWE3LYj mSdJ7TD9JG4+VM2gS57eZ+hKypX1MdANnyKqQZmor/D0tvP68W/rq90o+B/CZqfrBpZH YpXjDr5TrJMLxGUrswu/EnNbYApc+cqpml7J3vB9AL0iSScssdUk77MMor26O+DtzWLJ q8Augq11fQ1m0hX8NNhITJq4JJbOMDa67kv/j6TB6VvVdPoqL4LFuSQjPz6Fxx7zJ2DP ztgrcIZYtip+35YuYwp46yeruPLPK6ui7KqxOs8pO5jBDrWeZYcx2Mq4h/4O7LXu+WUr 9KTg== X-Gm-Message-State: AO0yUKV3E3+DmcqL1KEEaPJrxFTNGzxhDFjDMByGhK/0DYGgSrGkleuW ap8TVjdtg3dHJMfQBSNz0VadtA== X-Google-Smtp-Source: AK7set9KXK3WwLIZBF8yLLjllA+Ij/w+p8024nzo/7ze3PwqULG7UodI6iA2HWhh7v2qxVqVtuujPg== X-Received: by 2002:aa7:d60b:0:b0:4c1:a7fa:99dd with SMTP id c11-20020aa7d60b000000b004c1a7fa99ddmr22806738edr.38.1678533303506; Sat, 11 Mar 2023 03:15:03 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id lc22-20020a170906dff600b00922b009fc79sm223427ejc.164.2023.03.11.03.15.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:15:03 -0800 (PST) From: Krzysztof Kozlowski To: Marek Vasut , Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Robert Eshleman , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/4] iio: light: max44009: add missing OF device matching Date: Sat, 11 Mar 2023 12:14:56 +0100 Message-Id: <20230311111457.251475-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111457.251475-1-krzysztof.kozlowski@linaro.org> References: <20230311111457.251475-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The driver currently matches only via i2c_device_id, but also has of_device_id table: drivers/iio/light/max44009.c:545:34: error: ‘max44009_of_match’ defined but not used [-Werror=unused-const-variable=] Fixes: 6aef699a7d7e ("iio: light: add driver for MAX44009") Signed-off-by: Krzysztof Kozlowski --- drivers/iio/light/max44009.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/drivers/iio/light/max44009.c b/drivers/iio/light/max44009.c index 3dadace09fe2..274e0b679ca2 100644 --- a/drivers/iio/light/max44009.c +++ b/drivers/iio/light/max44009.c @@ -527,6 +527,12 @@ static int max44009_probe(struct i2c_client *client) return devm_iio_device_register(&client->dev, indio_dev); } +static const struct of_device_id max44009_of_match[] __maybe_unused = { + { .compatible = "maxim,max44009" }, + { } +}; +MODULE_DEVICE_TABLE(of, max44009_of_match); + static const struct i2c_device_id max44009_id[] = { { "max44009", 0 }, { } @@ -536,18 +542,13 @@ MODULE_DEVICE_TABLE(i2c, max44009_id); static struct i2c_driver max44009_driver = { .driver = { .name = MAX44009_DRV_NAME, + .of_match_table = of_match_ptr(max44009_of_match), }, .probe_new = max44009_probe, .id_table = max44009_id, }; module_i2c_driver(max44009_driver); -static const struct of_device_id max44009_of_match[] = { - { .compatible = "maxim,max44009" }, - { } -}; -MODULE_DEVICE_TABLE(of, max44009_of_match); - MODULE_AUTHOR("Robert Eshleman "); MODULE_LICENSE("GPL v2"); MODULE_DESCRIPTION("MAX44009 ambient light sensor driver"); From patchwork Sat Mar 11 11:14:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170735 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 56EDDC74A44 for ; Sat, 11 Mar 2023 11:17:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229933AbjCKLRU (ORCPT ); Sat, 11 Mar 2023 06:17:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45226 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230111AbjCKLQi (ORCPT ); Sat, 11 Mar 2023 06:16:38 -0500 Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7D795A6D6 for ; Sat, 11 Mar 2023 03:15:30 -0800 (PST) Received: by mail-ed1-x52e.google.com with SMTP id g10so1863905eda.1 for ; Sat, 11 Mar 2023 03:15:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533304; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=QkQ93ugInkPpe3EPUwb7aGvfZMjL9q8ZpB0fY5f8jKo=; b=XQHEU5fAyON0vwZZc62gyPq4Sy+fd+RyFUbsV4vy1brKHUhuicHAAM3ykR8/lJxA5M FeQU2hHzfyYWr+daojlvdYgOSdiy85KzmPs2hATdnOO1LedgyLGlbbqmAZ4LmExBU4Zo vzqvIlza0evLN1j79EANAnwcvF0fCLHWDV20rc04T8OdnqTjSCTcr5baGT1yHqtVr1Ru tQ/wmkUCX24MvH3wssfFeQ0xdIRThGWUyEFI3MH68a9MtdWkNHyjVLjLgeQBjk/j3fOG kXWvgLEnNm9DYJV/2vHOgu/pXy4I0s9QwC72bTd0ncn4sMRpEu8+XWWjtTS9ldp/N/Fx 9VUA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533304; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QkQ93ugInkPpe3EPUwb7aGvfZMjL9q8ZpB0fY5f8jKo=; b=TuOrhYxsPdVYnfMeDMevfxT9S61FbGsoQYgWbFaU+aFD4K+lTkDayyrzPe9hch/EFT XLn7W8kGa6d6+laHK8QG3yYbJbiEpzK+aWHw7TsDdDH+i+bOektcNe33Fp/FDTeW9NOb REzeC4HjulQfmf+1AYVDCNITTlgfMbtn/sJ+dnsynI09CBAWAWD7alFQR+kQiuon6Z51 wCMwJ2RsTf6OHD0REoYazSZWZFh9tkCpGUIyjOHgdb3TfOonLOC/aofgfm/biPaAy+ST Bh0mIbkVEDlkA6a79GAPAuwxfKrGPtHOnn/ZYBZ3gZTt8+jAri7fArRPKUK9I8JsCmvK yx3A== X-Gm-Message-State: AO0yUKXoWa/r5dqH1GAaU44RqH4AP9SLOW9AJwYXbQmsMWxibRXBJLML osIaNkIUVW9PsdWyoN6+7jUWyw== X-Google-Smtp-Source: AK7set+z4zxyOf7CpZVLt0gglQ5DB998s3uuWJhfpQFzYH02HmfMrZpH5iRqWTeANabxmkeP7ronfA== X-Received: by 2002:a17:907:6f12:b0:8f3:9ee9:f1bc with SMTP id sy18-20020a1709076f1200b008f39ee9f1bcmr5368673ejc.13.1678533304460; Sat, 11 Mar 2023 03:15:04 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id lc22-20020a170906dff600b00922b009fc79sm223427ejc.164.2023.03.11.03.15.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:15:04 -0800 (PST) From: Krzysztof Kozlowski To: Marek Vasut , Jonathan Cameron , Lars-Peter Clausen , Michael Hennerich , Robert Eshleman , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski Subject: [PATCH 4/4] iio: proximity: sx9500: Mark ACPI and OF related data as maybe unused Date: Sat, 11 Mar 2023 12:14:57 +0100 Message-Id: <20230311111457.251475-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111457.251475-1-krzysztof.kozlowski@linaro.org> References: <20230311111457.251475-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org The driver can be compile tested with !CONFIG_OF or !CONFIG_ACPI making certain data unused: drivers/iio/proximity/sx9500.c:1039:34: error: ‘sx9500_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/iio/proximity/sx9500.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/iio/proximity/sx9500.c b/drivers/iio/proximity/sx9500.c index 8794e75e5bf9..840db1953998 100644 --- a/drivers/iio/proximity/sx9500.c +++ b/drivers/iio/proximity/sx9500.c @@ -1036,13 +1036,13 @@ static const struct acpi_device_id sx9500_acpi_match[] = { }; MODULE_DEVICE_TABLE(acpi, sx9500_acpi_match); -static const struct of_device_id sx9500_of_match[] = { +static const struct of_device_id sx9500_of_match[] __maybe_unused = { { .compatible = "semtech,sx9500", }, { } }; MODULE_DEVICE_TABLE(of, sx9500_of_match); -static const struct i2c_device_id sx9500_id[] = { +static const struct i2c_device_id sx9500_id[] __maybe_unused = { {"sx9500", 0}, { }, };