From patchwork Sat Mar 11 11:16: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: 13170776 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C73387B for ; Sat, 11 Mar 2023 11:17:02 +0000 (UTC) Received: by mail-ed1-f43.google.com with SMTP id da10so30820671edb.3 for ; Sat, 11 Mar 2023 03:17:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533421; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=Dqe4tA01u8D6zg7qVVNxLh27ygPQ0D7vH2s6WJVZu1g=; b=hs+KTaByhaRR1Crrvl/6b7Pi+5fYgw3OGDij24beVPHGJ3OBSZd2iaAtQvl435zoEz TIAJ9/yjnEW/vbI+fI5bN8m0Gv0bfx0pJTDZCvvL/7YiwXCdftTPM9j1an+cfUzwjXpy eeKWWGgAuRlTeSjhytqdKpzqpWEz+bYEM4w8xux4YzWgsMLUxbQTMzP/6ejxkRp8B832 jKK65FakobFYuKa47JSpRFPgY8SdUGaHFWWKuJIG+tEY+A79f8xkImbMyPeetoZGZNVQ /qK1WGpBdfEU2vtexd3E1Kj1odc0bHgoXMoxEAnImUg9RaSuYG1kxkO1HJDqnCfPGg8n wZLg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533421; 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=Dqe4tA01u8D6zg7qVVNxLh27ygPQ0D7vH2s6WJVZu1g=; b=skyQt9O2C1kI84pnsx9/jN0s1ab1XmQd+4cAlsku0GeWCLXqQX1mUZhqNBLhhbLv7K 8GNbtyK6emT25d3THcqXYK7E055wD+TpvefpoC2Onfxv50d/fZTdj1q2iNhTBF5oyExr BHBH5sKU8lcMX4g7UIB4NCJO8U1fJqwF5H2zD54GLfk8x2IRH//39gwg/gjFA+3UtEsK Vi4vb+E0Ey79HICXhail/PkNx5Mh+e4Rq8+BhRwZfLFlC/YGDz5IGcc6SNAh2J7wpE4o a7f+F1GHH4pqHjQibeRUn/yx9pM/th7MXHGAKffW+CGcolkqA5ygcIY86ZeuAMEXhn8h YbbQ== X-Gm-Message-State: AO0yUKVA0k5jGyb2VAzbsoCKg9C5oEKN1w6Th8bAZc/ghMs/BIPi8YeW 3xBhTjJ+bP3k6ajmSo8Pl/2AJw== X-Google-Smtp-Source: AK7set9ps6Xl+ULaLLmt1Jk7XfUchILOeDp/mCfvP03IeYFsPT68lmc3NmDip9szz/n3mavp5ht89w== X-Received: by 2002:a17:906:1515:b0:8b1:279c:82c7 with SMTP id b21-20020a170906151500b008b1279c82c7mr27776179ejd.50.1678533421024; Sat, 11 Mar 2023 03:17:01 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id mp27-20020a1709071b1b00b008d398a4e687sm973975ejc.158.2023.03.11.03.17.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:17:00 -0800 (PST) From: Krzysztof Kozlowski To: Benson Leung , Guenter Roeck , Qii Wang , Matthias Brugger , AngeloGioacchino Del Regno , =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , Ard Biesheuvel , Michal Simek , linux-i2c@vger.kernel.org, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-actions@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/5] i2c: mt65xx: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 12:16:54 +0100 Message-Id: <20230311111658.251951-1-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: chrome-platform@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The driver can match only via the DT table so the table should be always used and the of_match_ptr does not have any sense (this also allows ACPI matching via PRP0001, even though it might not be relevant here). drivers/i2c/busses/i2c-mt65xx.c:514:34: error: ‘mtk_i2c_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Guenter Roeck Reviewed-by: AngeloGioacchino Del Regno --- drivers/i2c/busses/i2c-mt65xx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-mt65xx.c b/drivers/i2c/busses/i2c-mt65xx.c index 43dd966d5ef5..59eaefe999b1 100644 --- a/drivers/i2c/busses/i2c-mt65xx.c +++ b/drivers/i2c/busses/i2c-mt65xx.c @@ -1546,7 +1546,7 @@ static struct platform_driver mtk_i2c_driver = { .driver = { .name = I2C_DRV_NAME, .pm = &mtk_i2c_pm, - .of_match_table = of_match_ptr(mtk_i2c_of_match), + .of_match_table = mtk_i2c_of_match, }, }; From patchwork Sat Mar 11 11:16: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: 13170777 Received: from mail-ed1-f46.google.com (mail-ed1-f46.google.com [209.85.208.46]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D01D4E4D5 for ; Sat, 11 Mar 2023 11:17:03 +0000 (UTC) Received: by mail-ed1-f46.google.com with SMTP id cy23so30640741edb.12 for ; Sat, 11 Mar 2023 03:17:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533422; 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=PQMu1OBGcFAt/9oWZHzoRm8MXiI9ypYZwvYh5dmA858=; b=ghNsLS5SpFOkMhJwbC4XS8uoD5BFbmT7NzIgtfULzPzTvyI6QOO4HG8pFT6C5UGUat mPQjoT0+sT0CMzL6ME0C9Y7HgaZfd5r5Xw4O7S9SIWwXUXfVZTxxRURXoBMwbLdb9gGa HDdJT2S0B0Au5ZAlepE+GieSNxYU1miaru7gYjFtSzq0r4EAOOeYmyvSqOnuvYq3AZ+P cDsUDnxd/3IbWY4dvOjVfnM5uW1UsHGO4HjnbrWw78+Q4BG/Mgpam7LHpxHdbtD4Qg0u 6gMJzi0QokME5X3W0CknQVOhtzGKD1hmJ+bkvWUYiErUyxxO33PDCAakK4egTqj6Vg1i 5RYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533422; 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=PQMu1OBGcFAt/9oWZHzoRm8MXiI9ypYZwvYh5dmA858=; b=Y6InGFphM32bQRvEHGN54JWRA3fdKzWD8pmNAfKxrivSGN38dKfCMUGSrKygIr1RFS L/MAHIJB42xQWRO78nmLPx+aIA4Mfehoqm3NmiD1T5mrlEN6rBWtoFEcoO+uJUKV6iyZ 1MQJaLHho5TRxOYjveRmgKaQvBlYIQqcoUIURvs9sN1F+qOW5jEmN2oi46VGjCS1Xfps 8cfuV8VYmBuaKGc+flODetfVE+4woFqalGTvMk3nVmyytM/EdWT0w1kdNAhZPy5n/+8W SlQC9EkgkpOBPku1Xqhf37RNl1w7+UNe4MJcSP30rhkNtMRM+DKTZQv7BFT3qx0wVY+Z xcnw== X-Gm-Message-State: AO0yUKXdMazKvxvy0GeATWc6nriomwX4X/T0+tLcTOv8b4H8sUXjAxPY M0X4iYtU2Ok9EWXhLxJKVskLwQ== X-Google-Smtp-Source: AK7set9fN9lhkzsTcd/hCm+YqcO1tpXtDV/ErKyu7Dxn7TQH6PWFP0BxhlriXHSFNitMA1yqiFIQRQ== X-Received: by 2002:a17:906:1ed1:b0:8e9:6f9f:7c2d with SMTP id m17-20020a1709061ed100b008e96f9f7c2dmr4914227ejj.35.1678533422221; Sat, 11 Mar 2023 03:17:02 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id mp27-20020a1709071b1b00b008d398a4e687sm973975ejc.158.2023.03.11.03.17.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:17:01 -0800 (PST) From: Krzysztof Kozlowski To: Benson Leung , Guenter Roeck , Qii Wang , Matthias Brugger , AngeloGioacchino Del Regno , =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , Ard Biesheuvel , Michal Simek , linux-i2c@vger.kernel.org, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-actions@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/5] i2c: owl: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 12:16:55 +0100 Message-Id: <20230311111658.251951-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111658.251951-1-krzysztof.kozlowski@linaro.org> References: <20230311111658.251951-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: chrome-platform@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The driver can match only via the DT table so the table should be always used and the of_match_ptr does not have any sense (this also allows ACPI matching via PRP0001, even though it might not be relevant here). drivers/i2c/busses/i2c-owl.c:510:34: error: ‘owl_i2c_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Guenter Roeck --- drivers/i2c/busses/i2c-owl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-owl.c b/drivers/i2c/busses/i2c-owl.c index 98882fe4e965..99ddd8894964 100644 --- a/drivers/i2c/busses/i2c-owl.c +++ b/drivers/i2c/busses/i2c-owl.c @@ -519,7 +519,7 @@ static struct platform_driver owl_i2c_driver = { .probe = owl_i2c_probe, .driver = { .name = "owl-i2c", - .of_match_table = of_match_ptr(owl_i2c_of_match), + .of_match_table = owl_i2c_of_match, .probe_type = PROBE_PREFER_ASYNCHRONOUS, }, }; From patchwork Sat Mar 11 11:16: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: 13170778 Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D4CBE7B for ; Sat, 11 Mar 2023 11:17:04 +0000 (UTC) Received: by mail-ed1-f42.google.com with SMTP id da10so30820855edb.3 for ; Sat, 11 Mar 2023 03:17:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533423; 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=XeJqWZmIWIQYf/vyLenHeQ0JsQ8pjtOGtaM4WzEFmbc=; b=K4PlKgk6vphG7B8A+tKgwgLYu/eve2VtLYCEGfkUgVLwaOgCPb7AYrJKKgc58vohjO rzTftPa2ZxcY1mI64stQAL5MZ+JQPxTaEr1Y9AxaQYrbXROSwSQp5n05Z9wTPZYRFpmx Bx3zHVIcTIzCEjsajZ9GXEVo76iXFDZjOIW2qT5m5hbGmWcJdF+q6Sc+llFTkWrO6/9V duhkPfdmrunbmk+l25R3ueAi1TwDW72GfXGvCgamBE9c2PG9Rg1A0BPHsQOdMTqKJ21u X5qwUSuCcnDZb4uy/0MbHeF50kr+hbPu17toFAd8eu2Mm/u8Rj3Fbv+gwMYWmhA/wgTN 7xSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533423; 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=XeJqWZmIWIQYf/vyLenHeQ0JsQ8pjtOGtaM4WzEFmbc=; b=gR9mVusWgrqYgRTLs5kDEZXiOQYFbA66BY6aOUBktTx1kgq/65EX3Qsmv1ZowZ6Y57 OJ3Nt8ok7d5i9J2PvRbLwPdHiDNuXdjqLTftmoqFkih7gpL1i1vbKsFi5ct/0hg9pueh U559VZKPERaQEGKvPWbgfprOArS3t7jwK45s2MLhnnTAmWga30fuX3oOvJL7tKmFroet Amv1uHvvEY1cpJmZK31Aho1k1azpFtzmVPY3YuAEsiNMgV2SOg1D3lXsTQZcEgcOmQBg vOhUfqlN6j821IjwGkksUn44hVQpHzjeRzRa/xA6fOokiKdk4tPLCzIGMJMNpvnhFsgB HLbg== X-Gm-Message-State: AO0yUKUGJydGZfVtVil7oaqqpVOrjecmAHl6PJy7YDT72BtZczIr1/Sf rEY1pcDrsctZo2Xhs+1S/em1iw== X-Google-Smtp-Source: AK7set9OSxnoFK3vtZqGbIpUURfI1SqkV0jUsrsq7RgkKMadcVINTomgv4XfMX5TfGl07OS2xYV+hA== X-Received: by 2002:a17:906:b88c:b0:8cf:fda0:5b9b with SMTP id hb12-20020a170906b88c00b008cffda05b9bmr5146168ejb.22.1678533423260; Sat, 11 Mar 2023 03:17:03 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id mp27-20020a1709071b1b00b008d398a4e687sm973975ejc.158.2023.03.11.03.17.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:17:02 -0800 (PST) From: Krzysztof Kozlowski To: Benson Leung , Guenter Roeck , Qii Wang , Matthias Brugger , AngeloGioacchino Del Regno , =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , Ard Biesheuvel , Michal Simek , linux-i2c@vger.kernel.org, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-actions@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/5] i2c: xiic: hide OF related data for COMPILE_TEST Date: Sat, 11 Mar 2023 12:16:56 +0100 Message-Id: <20230311111658.251951-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111658.251951-1-krzysztof.kozlowski@linaro.org> References: <20230311111658.251951-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: chrome-platform@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/i2c/busses/i2c-xiic.c:1202:39: error: ‘xiic_2_00’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Guenter Roeck --- drivers/i2c/busses/i2c-xiic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-xiic.c b/drivers/i2c/busses/i2c-xiic.c index dbb792fc197e..806b447055fb 100644 --- a/drivers/i2c/busses/i2c-xiic.c +++ b/drivers/i2c/busses/i2c-xiic.c @@ -1199,11 +1199,11 @@ static const struct i2c_adapter xiic_adapter = { .algo = &xiic_algorithm, }; +#if defined(CONFIG_OF) static const struct xiic_version_data xiic_2_00 = { .quirks = DYNAMIC_MODE_READ_BROKEN_BIT, }; -#if defined(CONFIG_OF) static const struct of_device_id xiic_of_match[] = { { .compatible = "xlnx,xps-iic-2.00.a", .data = &xiic_2_00 }, { .compatible = "xlnx,axi-iic-2.1", }, From patchwork Sat Mar 11 11:16: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: 13170779 Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 17E91185C for ; Sat, 11 Mar 2023 11:17:06 +0000 (UTC) Received: by mail-ed1-f52.google.com with SMTP id k10so30652521edk.13 for ; Sat, 11 Mar 2023 03:17:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533424; 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=z8oeEF/AzQvtVXNpB84yj5TovVGMv/c0ViZXuwoTaQY=; b=COAYxq8AT0uqrQbCHXbkj/g3Qs5hDhVsuLTBYQ2bJxruNac6vrplyfs/UEmjVMq0dg xkvGkHlKUlM/BiBesQ4flwUDD8euDmOnvLogGgeauHDXcRaKY7MKeGsDSZ/GrGNU4qIz tH7FNf6A8uxdhY7kF2QOEiB+UsCAtS2q9xCNIlHIYYUMZYCJTNhi0tyWQu0fTSiQa/w6 rYdfiaalgA17snDR6+upjrCTTZb3oCrv+sFohA/UpdFo/7hzrimPTydZ8Gpzxk01kvnY 4hpevlULBOtb7zoQlhFr9SkubsB3XM05CAhGDqHeJjeUpRZPfeVhc/hLoUeRYM5krq4H 2EQA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533424; 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=z8oeEF/AzQvtVXNpB84yj5TovVGMv/c0ViZXuwoTaQY=; b=m5ZQJCamD/Rep7HyLYoirf6tVGjRu9AM99JHsPxXA+J8/+7usJI7BdhspMtTCdxsHB CwmyySuowpE+D1iPtQtO23uKHEwm/VU/rkMluMVTtW/4gI6uqiwc+CSRE6OMPDDpV86V GJv3nK0xC5wvvaof1l3RdA6p0e14VaTWIJ9uj6QcAlCMCSgvX5ImCaOXgNJNPonFGJSj wSR5N2NCJWkZE2yNQrgJQzv2xhwd4HI/o5/aF7qtzh/Kpd03vBszxUaIX4qIUqVT4g5i Kc5V1P+alp4QzEyTTjjshfTBo3jh73uY6+0jzH8VUrjH7TmuN0QWVvsyB51f1a3NClaA 7+zQ== X-Gm-Message-State: AO0yUKWIfSklRc8oX9SvgBrYABm0SKKPvTTwp+Ph6G85aKbuMo8T4Snd eScd+Eh8sH/b3olQ9hTrYxSIog== X-Google-Smtp-Source: AK7set+7reM6pcFdrkUari419jtBHFEUXuCxP/FHHAYCrdORM+/x//6YsjthlED3+SIQ+yWdonig6Q== X-Received: by 2002:a17:906:9f21:b0:884:3707:bd83 with SMTP id fy33-20020a1709069f2100b008843707bd83mr3376069ejc.69.1678533424385; Sat, 11 Mar 2023 03:17:04 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id mp27-20020a1709071b1b00b008d398a4e687sm973975ejc.158.2023.03.11.03.17.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:17:04 -0800 (PST) From: Krzysztof Kozlowski To: Benson Leung , Guenter Roeck , Qii Wang , Matthias Brugger , AngeloGioacchino Del Regno , =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , Ard Biesheuvel , Michal Simek , linux-i2c@vger.kernel.org, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-actions@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 4/5] i2c: cros-ec-tunnel: Mark ACPI and OF related data as maybe unused Date: Sat, 11 Mar 2023 12:16:57 +0100 Message-Id: <20230311111658.251951-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111658.251951-1-krzysztof.kozlowski@linaro.org> References: <20230311111658.251951-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: chrome-platform@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The driver can be compile tested with !CONFIG_OF or !CONFIG_ACPI making certain data unused: drivers/i2c/busses/i2c-cros-ec-tunnel.c:295:34: error: ‘cros_ec_i2c_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Guenter Roeck --- drivers/i2c/busses/i2c-cros-ec-tunnel.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/i2c/busses/i2c-cros-ec-tunnel.c b/drivers/i2c/busses/i2c-cros-ec-tunnel.c index 4e787dc709f9..8b3ff5bb14d8 100644 --- a/drivers/i2c/busses/i2c-cros-ec-tunnel.c +++ b/drivers/i2c/busses/i2c-cros-ec-tunnel.c @@ -292,13 +292,13 @@ static int ec_i2c_remove(struct platform_device *dev) return 0; } -static const struct of_device_id cros_ec_i2c_of_match[] = { +static const struct of_device_id cros_ec_i2c_of_match[] __maybe_unused = { { .compatible = "google,cros-ec-i2c-tunnel" }, {}, }; MODULE_DEVICE_TABLE(of, cros_ec_i2c_of_match); -static const struct acpi_device_id cros_ec_i2c_tunnel_acpi_id[] = { +static const struct acpi_device_id cros_ec_i2c_tunnel_acpi_id[] __maybe_unused = { { "GOOG0012", 0 }, { } }; From patchwork Sat Mar 11 11:16:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170780 Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2CBD7B for ; Sat, 11 Mar 2023 11:17:06 +0000 (UTC) Received: by mail-ed1-f51.google.com with SMTP id er25so2611578edb.5 for ; Sat, 11 Mar 2023 03:17:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533425; 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=wcJifq10PLRhKC9buL1zZTG6brvOgNimyFGPw1oZQ8g=; b=lKEQi5BZGiIsVpqyS3XtNgZoaI8gioPoWmR53UPyduIVkHVeBEbmWQaXemsy7pgoPS UnT7c+7ZyvKkk0HWLGJmgAwsttuT4HVispzrnMPyJqS5Np8eI3GRYyaG414K6oVMRNUm QVqgb3m4l83Le3oN3ft7CuJLwMHw+hjFZgSFgWC2j9v5by9CxRRgC5nDXDsaxyZluBqk IBiUAyVvuUjg9DW9Kn9dcYeNjBhKM6POvPlVnUnZ/vXpWzeI2pXo9U2pZhSrlCZILBwz d44tevPSOVgUvRM+45bqyA8UKyptBc/JrFkZ7kGJ3iXRmTNNXy16orqGNh57sQxmaXAQ wENA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533425; 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=wcJifq10PLRhKC9buL1zZTG6brvOgNimyFGPw1oZQ8g=; b=H0WTcWYGzsL/4iVyi2mocySGx5qQ3o6ggu8VILcimEGK5oewg1JLOyySdg3r5LDRBV DJZmJJ5VT8+CKJyFYCu4+lwvBAQgfP3D24WJiXOnqETbUf5YpJSyFSAo/zS/tURYKo3u o0Murd9ThyPSra8gFQgK+fhVP66xxEuJrCYDSdS7Ch7UNr/jSEZ96xBRXnkt3evMZqpy +SpnhSNQYSoEx2N4/fXiG61cOG7tEjiBkr1dO8GJpJzkdhbrTWjpeKEjTOu6l6ccaIzV 45Ec3PSwJ4a1ufXW0G39iw6cdrga9tnykZmuzC1lsYPHrSllRfbIioc5Afot83c3CEjy XrHA== X-Gm-Message-State: AO0yUKWPNNRhLF9H/fwKcfuU/3A2rN08x+VC3u5DxwdeNjN5jD9yaWZN KOn6QDNiq1uAAzIDnJZ0aVtKkQ== X-Google-Smtp-Source: AK7set90Rqx3sRtuOK2S/VP6FZHdkiLyZ5wFXMpa2VaqCReSCM1nTUR53MQaNMHyzGhGC7lvJVRG7Q== X-Received: by 2002:a17:906:e118:b0:8f5:2965:49f2 with SMTP id gj24-20020a170906e11800b008f5296549f2mr5109281ejb.23.1678533425339; Sat, 11 Mar 2023 03:17:05 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id mp27-20020a1709071b1b00b008d398a4e687sm973975ejc.158.2023.03.11.03.17.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:17:05 -0800 (PST) From: Krzysztof Kozlowski To: Benson Leung , Guenter Roeck , Qii Wang , Matthias Brugger , AngeloGioacchino Del Regno , =?utf-8?q?Andreas_F=C3=A4rber?= , Manivannan Sadhasivam , Ard Biesheuvel , Michal Simek , linux-i2c@vger.kernel.org, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-actions@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 5/5] i2c: synquacer: mark OF related data as maybe unused Date: Sat, 11 Mar 2023 12:16:58 +0100 Message-Id: <20230311111658.251951-5-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111658.251951-1-krzysztof.kozlowski@linaro.org> References: <20230311111658.251951-1-krzysztof.kozlowski@linaro.org> Precedence: bulk X-Mailing-List: chrome-platform@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/i2c/busses/i2c-synquacer.c:632:34: error: ‘synquacer_i2c_dt_ids’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski Reviewed-by: Guenter Roeck --- drivers/i2c/busses/i2c-synquacer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/i2c/busses/i2c-synquacer.c b/drivers/i2c/busses/i2c-synquacer.c index e4026c5416b1..50d19cf99a03 100644 --- a/drivers/i2c/busses/i2c-synquacer.c +++ b/drivers/i2c/busses/i2c-synquacer.c @@ -629,7 +629,7 @@ static int synquacer_i2c_remove(struct platform_device *pdev) return 0; }; -static const struct of_device_id synquacer_i2c_dt_ids[] = { +static const struct of_device_id synquacer_i2c_dt_ids[] __maybe_unused = { { .compatible = "socionext,synquacer-i2c" }, { /* sentinel */ } };