From patchwork Thu Aug 10 11:19:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349301 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 61EEDC001E0 for ; Thu, 10 Aug 2023 11:19:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234424AbjHJLTr (ORCPT ); Thu, 10 Aug 2023 07:19:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45680 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234570AbjHJLTn (ORCPT ); Thu, 10 Aug 2023 07:19:43 -0400 Received: from mail-lf1-x12a.google.com (mail-lf1-x12a.google.com [IPv6:2a00:1450:4864:20::12a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F53826B6 for ; Thu, 10 Aug 2023 04:19:37 -0700 (PDT) Received: by mail-lf1-x12a.google.com with SMTP id 2adb3069b0e04-4fe0fe622c3so1130852e87.2 for ; Thu, 10 Aug 2023 04:19:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691666375; x=1692271175; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=PD2GRNX1Jjay8puie92l6jb2A21ZGy6pa02WKtpuhVk=; b=S02JNx4QRwltGeoDYVjXQDIOUw8v9lQF+D32SZpaS95wTNH5dkOXsew/5f0gKG04ON 7HUbhywzmTslFJmFQkSa7eEn1US11DSDbPY3MH1vxyKiWSgxtzPCRz1HLU4L3nfyIogc B2FInlZ285KdB81z+mUyUWBUTjdwSnERThIP4mnbZilfZAwvF1Jj6kb9vHmOLhFGnJ1J ku8KIVsmrQo18RHqaIm+NgDON8NvpfYK/j83ql4GE8+krocSLS3xtpMAynVBylKsamuh xkqAmxmUrDCvzN4L1RsQbwEAMeQytjKWCKSjTYh+/MrQQox7E8YX1tqNkFq4Pp4TkV2P qYpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691666375; x=1692271175; 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=PD2GRNX1Jjay8puie92l6jb2A21ZGy6pa02WKtpuhVk=; b=FOFeTYxweHkZkz5DnJHEnkCzgDJJ5VDWeD9QxTSDwmE+YESQzWgFy8eUgIpUC/0T1z lne1zwr8xIDuVtct5Scg2SuxxHG3usytxlNVWN9q4N9gu1lvYCpHJI7872c6TjND1erQ QgoPR6XWDHz3RvnrMzMMIbjg9bHZLLKRONf6Jdhazy5eNf6UmVVucZklSYrOwl8Xyl9p 2sxC8K3gSbnfOqJ/Dz62ipb19LZlVvdcVRGPrWILrk52zFkuMmFyB1ot0h/HF8Levw78 Yqv8UUNUTHdT5DMzxoDGjo25dU1UP5R1u1jv/abA84u9IaTOqOZu1ITYurZt1WZDAZgz I5Dw== X-Gm-Message-State: AOJu0Yxir0zCMfruL4jLR9Ao+qMfSUmPLjkl2A9sBeFJCtCzKzHb6QrC Pkb0g/2I/uqNg4eQkgtoMQju2kG9oRNWhmy7QRU1kg== X-Google-Smtp-Source: AGHT+IFzEoQ+JLrkxCj7YDAT+5ma5m9CP/aItpuP7f2CS0c8OIH4fEoXIC8cct3iBWAhAfSq3bEuZA== X-Received: by 2002:a05:6512:33d2:b0:4f8:7124:6803 with SMTP id d18-20020a05651233d200b004f871246803mr2375378lfg.35.1691666375646; Thu, 10 Aug 2023 04:19:35 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id u26-20020aa7d0da000000b0051e0cb4692esm668779edo.17.2023.08.10.04.19.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 04:19:35 -0700 (PDT) From: Krzysztof Kozlowski To: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 1/2] iio: dac: ad5755: mark OF related data as maybe unused Date: Thu, 10 Aug 2023 13:19:32 +0200 Message-Id: <20230810111933.205619-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 When compile tested with W=1 on x86_64 with driver as built-in: ad5755.c:866:34: error: unused variable 'ad5755_of_match' [-Werror,-Wunused-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 404865e35460..823049ce2686 100644 --- a/drivers/iio/dac/ad5755.c +++ b/drivers/iio/dac/ad5755.c @@ -863,7 +863,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 Thu Aug 10 11:19:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13349302 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 96B77C04A94 for ; Thu, 10 Aug 2023 11:19:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234401AbjHJLTt (ORCPT ); Thu, 10 Aug 2023 07:19:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45738 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234077AbjHJLTp (ORCPT ); Thu, 10 Aug 2023 07:19:45 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6300926BD for ; Thu, 10 Aug 2023 04:19:38 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-52364e9daceso937031a12.2 for ; Thu, 10 Aug 2023 04:19:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1691666377; x=1692271177; 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=/V6DFLyPW5fTIkeZjgzXaCtA05evTZi9HkMiecIQIJk=; b=yB54i3REUJbfaQLBZhuqVUpmrZXczDHxzG6U3nYFJfE4z2FNWo3kSa7jt9xHN+lEPK AJ3WsOhR5RO/5jgkkRRT48LaeqE8lIjB7Lh0GQ8NxfLGnaBnoNs2Nqq0LdslCmSjylVE trhwtL3pXOdYB1rFcdoWRyfIXvRZSjL0SWlwapBpjRBsrJiF/SH3ikZXXdZLVTbKpbMV qby8IoA9fC+QLrBMXhLnvsvtaHTnSehSxpwxBkF2Oc+Rdu3U9pPz0eg2Ze+grqBtCJAp uvfcz0eakNfSylysYASjhw968yy4eeB+g4s2jNrM4zzQ7ZOAzgdn06hGd37lLHji64Wj rUDA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691666377; x=1692271177; 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=/V6DFLyPW5fTIkeZjgzXaCtA05evTZi9HkMiecIQIJk=; b=iAPlT1z37aQcpo+h+kqorAMMgZXePoU+ed/GNjXVJRM1fxocA7kUDC8tS1K4RTC8km JzsFm+v0XVi718i3JmLpk6c/d3U8cHnxkPpg+3g2CQ/Kutj5GDH9/1TnvLmEOrpuQoeI 2sOCJdmoSwDBc7PuBnyNJV1Ae4RkxDrCpX7rBuf0yehN6VFKazEogyb4lTLIq/hJtzM/ sFFQWIKGg+fo5/4Nqb1DkrzeKBWN4IL9TMjuF8xZvBtQoNTM/0RFUb+WZsndcmHYZWDZ zscRscQc5S6CmPwqIxP/ikkG1L2ADhmBntHiuZ7NvxiC9lcorriC24j8GYNjnSzW5+1+ sX5Q== X-Gm-Message-State: AOJu0YwAoh7z56wd6YH9JMF1lKlS/rOA5z3wpCjPs/v3oRUAMsV10gLg iFdp/Y8W8Myfq0UV8fqeiJStWA== X-Google-Smtp-Source: AGHT+IE8C/ksKHsUFHvfS4u+TFmP/rNkNAi2JFULxgwWftS0stnaq9gp19bC/dbH3dKjCsWoNt4k0Q== X-Received: by 2002:aa7:d60e:0:b0:523:3853:e01a with SMTP id c14-20020aa7d60e000000b005233853e01amr1921580edr.36.1691666376985; Thu, 10 Aug 2023 04:19:36 -0700 (PDT) Received: from krzk-bin.. ([178.197.222.113]) by smtp.gmail.com with ESMTPSA id u26-20020aa7d0da000000b0051e0cb4692esm668779edo.17.2023.08.10.04.19.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Aug 2023 04:19:36 -0700 (PDT) From: Krzysztof Kozlowski To: Lars-Peter Clausen , Michael Hennerich , Jonathan Cameron , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Andi Shyti , Krzysztof Kozlowski Subject: [PATCH 2/2] iio: proximity: isl29501: mark OF related data as maybe unused Date: Thu, 10 Aug 2023 13:19:33 +0200 Message-Id: <20230810111933.205619-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230810111933.205619-1-krzysztof.kozlowski@linaro.org> References: <20230810111933.205619-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-iio@vger.kernel.org When compile tested with W=1 on x86_64 with driver as built-in: isl29501.c:999:34: error: unused variable 'isl29501_i2c_matches' [-Werror,-Wunused-const-variable] The if defined(CONFIG_OF) is also not needed in such case. Signed-off-by: Krzysztof Kozlowski --- drivers/iio/proximity/isl29501.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/iio/proximity/isl29501.c b/drivers/iio/proximity/isl29501.c index bcebacaf3dab..9e34224b5775 100644 --- a/drivers/iio/proximity/isl29501.c +++ b/drivers/iio/proximity/isl29501.c @@ -995,13 +995,11 @@ static const struct i2c_device_id isl29501_id[] = { MODULE_DEVICE_TABLE(i2c, isl29501_id); -#if defined(CONFIG_OF) -static const struct of_device_id isl29501_i2c_matches[] = { +static const struct of_device_id isl29501_i2c_matches[] __maybe_unused = { { .compatible = "renesas,isl29501" }, { } }; MODULE_DEVICE_TABLE(of, isl29501_i2c_matches); -#endif static struct i2c_driver isl29501_driver = { .driver = {