From patchwork Sat Mar 11 11:13:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170743 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 AB711C6FD1F for ; Sat, 11 Mar 2023 11:15:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230263AbjCKLPk (ORCPT ); Sat, 11 Mar 2023 06:15:40 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48238 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230199AbjCKLPI (ORCPT ); Sat, 11 Mar 2023 06:15:08 -0500 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 F2CA6222E5 for ; Sat, 11 Mar 2023 03:14:11 -0800 (PST) Received: by mail-ed1-x52c.google.com with SMTP id ec29so30734421edb.6 for ; Sat, 11 Mar 2023 03:14:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533244; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=c6tUGFbQ7oA7pUDn55v/Wy+VlBUMSyXyYmPtvu2ws50=; b=yWfJY7Out3CLSvURy2RybRjEidhVO/LsVGJFdgbAa+h5D9jYNoCZ+WWjRxJaEMNzR5 AHF/txrarIzqBQpbDHB6p2t9Z0JwTpECwOXzA5w/E7PPtfMuPamhT1gIwV9XCNd/k0TO guxePCLFhaVFSGDvnrej+2XHiSUfzbhVSjL9QGo7h57wM0/vi0ZYj/T/b64nP0ebtiAf FNCk/8F01LYXJGArb0gGwbV4KGUZ1VER6U3OFRW6MawsoLY4ZYPmnlk3UhbeRFXCfDjh riSSaZixfero/LblE/wyYAnZc8e9BKjFNu8VrvEbnWHGV/6AMzdNUPzeExmRLbwh3XTV xBqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533244; 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=c6tUGFbQ7oA7pUDn55v/Wy+VlBUMSyXyYmPtvu2ws50=; b=Sys3/W31qVUouSR0uQMc3+g1cmJBLjuj0XxMJykPm3QxNqtt0SbUDNICxcAwrdvn6T fzLjDJqrcHMaHUVUbMpYl1CA0MAuJxmmyLZ75rDzE9ush+cS77izcmyk+TUhyI/uiHpV B/eqExTKFWMHAnLEWQpnNThtrlDjsfNbBM9H7B3rpcFfexu9OkR1E3sv5w3XnVHUq131 bbTj9IADDJ5d3kWGX9kQm12kyjp7OFmNx4VsXENneocBz5CoQUF1ydr2ieCPvsf5tbWZ 4mHIeZMIG41LDlq+Rr0lVR3TrzbLgJ+L3ZMPdmn6ipzJi2rwBnN1a+XCA79EJ5V4Txw3 Ihlw== X-Gm-Message-State: AO0yUKUCWh//FwLg1Kje0j1Mpb5P5wmFyyvMQ+xbZWtrDvdQphgrNIpr xxewS0zeH2d3BBdEzQ4XOHsgKQ== X-Google-Smtp-Source: AK7set/Ym4uNmH4ker5UTWxzfE7MOeCqeY26Mt3utH2TftFJqHph2kbqZKF7D3tT1nW8fuqt1SHCRA== X-Received: by 2002:aa7:c6c6:0:b0:4bf:1989:9e87 with SMTP id b6-20020aa7c6c6000000b004bf19899e87mr28871962eds.20.1678533244417; Sat, 11 Mar 2023 03:14:04 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id q12-20020a50c34c000000b004bf2d58201fsm1053859edb.35.2023.03.11.03.14.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:14:04 -0800 (PST) From: Krzysztof Kozlowski To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 1/4] Bluetooth: hci_ll: drop of_match_ptr for ID table Date: Sat, 11 Mar 2023 12:13:51 +0100 Message-Id: <20230311111354.251316-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-bluetooth@vger.kernel.org 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/bluetooth/hci_ll.c:769:34: error: ‘hci_ti_of_match’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/bluetooth/hci_ll.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bluetooth/hci_ll.c b/drivers/bluetooth/hci_ll.c index 5abc01a2acf7..4a0b5c3160c2 100644 --- a/drivers/bluetooth/hci_ll.c +++ b/drivers/bluetooth/hci_ll.c @@ -786,7 +786,7 @@ MODULE_DEVICE_TABLE(of, hci_ti_of_match); static struct serdev_device_driver hci_ti_drv = { .driver = { .name = "hci-ti", - .of_match_table = of_match_ptr(hci_ti_of_match), + .of_match_table = hci_ti_of_match, }, .probe = hci_ti_probe, .remove = hci_ti_remove, From patchwork Sat Mar 11 11:13:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170744 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 44E58C74A44 for ; Sat, 11 Mar 2023 11:15:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230281AbjCKLPl (ORCPT ); Sat, 11 Mar 2023 06:15:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48242 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230200AbjCKLPJ (ORCPT ); Sat, 11 Mar 2023 06:15:09 -0500 Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 320B91E9E8 for ; Sat, 11 Mar 2023 03:14:12 -0800 (PST) Received: by mail-ed1-x533.google.com with SMTP id cy23so30624495edb.12 for ; Sat, 11 Mar 2023 03:14:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533245; 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=fqnFWHdK7OkL6s/x+Horh58nZE+IP653IunDnJQbJV4=; b=wn7FVQFl7D3LMIfw29Qi1jtJ1MVwkM0EDx7SDmMVlQpPZ5Z8OlHgNky0ImuXoqfRPH HOIBqaVfLiMYyvenIsfFpJilxjljVUcOfIlgnqBk+mRvo/SWhWQF64W2CdhCzeQ68l+c JLHt6bAMGJVOWiphYP/YUW7qz0QALjbqRPxYK8QTi4EL1dX4/vYfi145nYdkd5ioNFPx YcV3bsrvZ41Q6CCxd73yqKiSRoOL8cHmuIzg1R/Co0Y5ryPOtRY4bb72pGfD5Arr7eoq /i5vHp2yfNDSzSrc/YDFxPvyaX2mx/q7nkH/1KSTA46KnLsPcmcJgDngsRDyam/mWby1 GFLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533245; 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=fqnFWHdK7OkL6s/x+Horh58nZE+IP653IunDnJQbJV4=; b=q3oKk7EkQOpOu8gaDmPeRt793scD/9IJ/LqrQ4npIAqaNQBXkhfDqVjzY/9ie0/4AO r1Zl2QPSth5oXyvEytDSI51BGo1YXO9fx7gH7H8lkiG4L7Gm4riR0uH315fCsIpJJGXd cqtYW2W7nn+PgFnkzrGbzGKOLZg28SjQOxUUP8xQaRO/oC1e6OQmERtshqc02taoKIx2 OC/YT9dx4C0M2Zdjzmr8LGZtPzDqso/2I3ApztE8HgAmtOfSdUUWWvC7Mz6K72OGmcMl VoBHV7d9hNVd6spt8FKSetWbwX/ze6r2Sx2lBSbhO8yuOjmDCmHq1YswZyVoOgTCj29t 0g5Q== X-Gm-Message-State: AO0yUKW7ud4ra8E+mTufAnPst6qgJIq+1mbaKLF9YT8IM5Qwl18II+Q/ 9qxicwPZPBq45SgZQdtev/mFpw== X-Google-Smtp-Source: AK7set8FKt7DgZJCxADdonM8M5e0Zncbtd5P2PQt9Jg/NcC9iy3KbzD1PtBGcdMWo1JVDQsA6rHrqQ== X-Received: by 2002:a17:907:7f87:b0:881:44e3:baae with SMTP id qk7-20020a1709077f8700b0088144e3baaemr4671177ejc.54.1678533245427; Sat, 11 Mar 2023 03:14:05 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id q12-20020a50c34c000000b004bf2d58201fsm1053859edb.35.2023.03.11.03.14.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:14:05 -0800 (PST) From: Krzysztof Kozlowski To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 2/4] Bluetooth: btmrvl_sdio: mark OF related data as maybe unused Date: Sat, 11 Mar 2023 12:13:52 +0100 Message-Id: <20230311111354.251316-2-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111354.251316-1-krzysztof.kozlowski@linaro.org> References: <20230311111354.251316-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/bluetooth/btmrvl_sdio.c:43:34: error: ‘btmrvl_sdio_of_match_table’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/bluetooth/btmrvl_sdio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/bluetooth/btmrvl_sdio.c b/drivers/bluetooth/btmrvl_sdio.c index ba057ebfda5c..d76c799553aa 100644 --- a/drivers/bluetooth/btmrvl_sdio.c +++ b/drivers/bluetooth/btmrvl_sdio.c @@ -40,7 +40,7 @@ static struct memory_type_mapping mem_type_mapping_tbl[] = { {"EXTLAST", NULL, 0, 0xFE}, }; -static const struct of_device_id btmrvl_sdio_of_match_table[] = { +static const struct of_device_id btmrvl_sdio_of_match_table[] __maybe_unused = { { .compatible = "marvell,sd8897-bt" }, { .compatible = "marvell,sd8997-bt" }, { } From patchwork Sat Mar 11 11:13:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 13170745 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 2B3CEC61DA4 for ; Sat, 11 Mar 2023 11:16:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230219AbjCKLPo (ORCPT ); Sat, 11 Mar 2023 06:15:44 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43968 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230204AbjCKLPK (ORCPT ); Sat, 11 Mar 2023 06:15:10 -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 C4261CA1FD for ; Sat, 11 Mar 2023 03:14:13 -0800 (PST) Received: by mail-ed1-x530.google.com with SMTP id k10so30636053edk.13 for ; Sat, 11 Mar 2023 03:14:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533246; 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=HfgCmRHhyuo5ShiG6WferUkA8idmPyC77QHmmLyRsDA=; b=Ai+YLS2y4PGHC/9uJ4BYXqU5tqHi1DFst28xlaZKWWk9gVF3EsLVrdL0yWig3YEsEi gnXeHIs3lmu0ACB//f1T0iLrRF8wPLkXBAnIFeExpOIJk9VaIMaYY8CvoHCS+8XGfrt4 pWgDo7akzGrq9lBaPKCziSeN3YuM6vHTc7MJyDymuOK6hNCvTC/oE2zIartOpjjoQ4YH 0xU4yzxssXi+MKm1fODdikQ7QG4RhDRP/Pw8TpTZFwZxM2/FuGv+JOfajSbPAUKTB5T7 16knGigsXQVyzxrjTtuDqUe0m7Wj2NDqNVGOrVSdkocENqWx9qk4betrEFkRoIfeSSBC 3vzg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533246; 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=HfgCmRHhyuo5ShiG6WferUkA8idmPyC77QHmmLyRsDA=; b=b9on+YT7D4nHfkqro4WAvkZiU0m1ECFfHEEI87WPzY4Ww4dog+R23xYWekBXTqKAvX qFvXJJzozL0bThukJDLN5hGFZEbgqHWPGMBsuC+Et7n2KzdfeI7GUWaUoBbyGuvgrMq3 2wGTXZytWFq4o3ZjfvK5RDfG0/hllVpWd6X7ae2N/voBw+Amk4GBPloIHi+VRVs8zYZs DZjz1wcnnQD+bsAnI1obTvakA4MD++PP5WwX9TTpgoJLzlqd4+EAgkz0vXF+5BsR6OFa AwznEeEDg4lM5hOhDfyQnj+YDNkq9+C9suo3xiDbyoAmpAwWOg5CjqWBcIRNH1CTzIge 53Mw== X-Gm-Message-State: AO0yUKXWfN7zZ3Ai1Nr8h5rRu9YyspQIr6cQN+5nLE/B8VOOQkdep3EM NwE1CwcoCkKySFkGmasg7iAbew== X-Google-Smtp-Source: AK7set8PoInSY9NcKc9iYDRrupBgkkVpQ/KTRtw7UUXM703e5cPSAELCnEraa7b6ZjIBERltsVtOIA== X-Received: by 2002:a17:906:948f:b0:8f6:c7cc:92ad with SMTP id t15-20020a170906948f00b008f6c7cc92admr30328442ejx.43.1678533246400; Sat, 11 Mar 2023 03:14:06 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id q12-20020a50c34c000000b004bf2d58201fsm1053859edb.35.2023.03.11.03.14.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:14:06 -0800 (PST) From: Krzysztof Kozlowski To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 3/4] Bluetooth: hci_qca: mark OF related data as maybe unused Date: Sat, 11 Mar 2023 12:13:53 +0100 Message-Id: <20230311111354.251316-3-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111354.251316-1-krzysztof.kozlowski@linaro.org> References: <20230311111354.251316-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/bluetooth/hci_qca.c:1869:37: error: ‘qca_soc_data_wcn6750’ defined but not used [-Werror=unused-const-variable=] drivers/bluetooth/hci_qca.c:1853:37: error: ‘qca_soc_data_wcn3998’ defined but not used [-Werror=unused-const-variable=] drivers/bluetooth/hci_qca.c:1841:37: error: ‘qca_soc_data_wcn3991’ defined but not used [-Werror=unused-const-variable=] drivers/bluetooth/hci_qca.c:1830:37: error: ‘qca_soc_data_wcn3990’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/bluetooth/hci_qca.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/bluetooth/hci_qca.c b/drivers/bluetooth/hci_qca.c index 3df8c3606e93..a199ed52d76d 100644 --- a/drivers/bluetooth/hci_qca.c +++ b/drivers/bluetooth/hci_qca.c @@ -1827,7 +1827,7 @@ static const struct hci_uart_proto qca_proto = { .dequeue = qca_dequeue, }; -static const struct qca_device_data qca_soc_data_wcn3990 = { +static const struct qca_device_data qca_soc_data_wcn3990 __maybe_unused = { .soc_type = QCA_WCN3990, .vregs = (struct qca_vreg []) { { "vddio", 15000 }, @@ -1838,7 +1838,7 @@ static const struct qca_device_data qca_soc_data_wcn3990 = { .num_vregs = 4, }; -static const struct qca_device_data qca_soc_data_wcn3991 = { +static const struct qca_device_data qca_soc_data_wcn3991 __maybe_unused = { .soc_type = QCA_WCN3991, .vregs = (struct qca_vreg []) { { "vddio", 15000 }, @@ -1850,7 +1850,7 @@ static const struct qca_device_data qca_soc_data_wcn3991 = { .capabilities = QCA_CAP_WIDEBAND_SPEECH | QCA_CAP_VALID_LE_STATES, }; -static const struct qca_device_data qca_soc_data_wcn3998 = { +static const struct qca_device_data qca_soc_data_wcn3998 __maybe_unused = { .soc_type = QCA_WCN3998, .vregs = (struct qca_vreg []) { { "vddio", 10000 }, @@ -1861,12 +1861,12 @@ static const struct qca_device_data qca_soc_data_wcn3998 = { .num_vregs = 4, }; -static const struct qca_device_data qca_soc_data_qca6390 = { +static const struct qca_device_data qca_soc_data_qca6390 __maybe_unused = { .soc_type = QCA_QCA6390, .num_vregs = 0, }; -static const struct qca_device_data qca_soc_data_wcn6750 = { +static const struct qca_device_data qca_soc_data_wcn6750 __maybe_unused = { .soc_type = QCA_WCN6750, .vregs = (struct qca_vreg []) { { "vddio", 5000 }, From patchwork Sat Mar 11 11:13: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: 13170746 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 1E346C61DA4 for ; Sat, 11 Mar 2023 11:16:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229835AbjCKLQQ (ORCPT ); Sat, 11 Mar 2023 06:16:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44532 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230221AbjCKLPM (ORCPT ); Sat, 11 Mar 2023 06:15:12 -0500 Received: from mail-ed1-x535.google.com (mail-ed1-x535.google.com [IPv6:2a00:1450:4864:20::535]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 98BFA139D24 for ; Sat, 11 Mar 2023 03:14:14 -0800 (PST) Received: by mail-ed1-x535.google.com with SMTP id i34so30684245eda.7 for ; Sat, 11 Mar 2023 03:14:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1678533247; 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=PCTTb92AAoMVvXQ5aE8pDO5aVyOUz4eqvmWQp2fU5mw=; b=Xm4ZuJCCS7mm2qZMe06Jl5IFxegK2jOFxBFzdXD8adzQQtzra9b3D+2gZVDsRL2Z5p yKPHBv6EJz23Gldjk7JeKL3y+HQs5vwr3j8MxArHRdmbHUQezhso5hmxKI33oTpC+Bgj aDXRVDrPiOOypiDuaQxjGFJXba0ILv5OrgB6VuKgrKQz10PrvoMlWWxPmqURmzDVHen/ fyO51YknvUUS058ozWRq4+5eu6XAl+yz1G6TmFFWHlQPhDVhQzLhReWj/Mgy0/cKxtZK 86n7P0CqmxRaPazE944YAf1PnuEpRFCjnxffXywf+Ol07IZWuz6jP+rOAx/hZgzfAF3t mNUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678533247; 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=PCTTb92AAoMVvXQ5aE8pDO5aVyOUz4eqvmWQp2fU5mw=; b=pXDbn/VT/3/V2ktgvNZ6W6llN2vRM0qXKFmwMZsbjTEWItDBpYVoH7GDFy7/NuiGAj 3px32RWw8mpMMqBnlfjVXZpYz1Oa2t9Ic2F0hFwByrREEUM4Tzcd4CDZ8Qn15yIKeE+U 9I+CN3ZOPq5Tv0CNro+7pHIy5kUbBXHcdoqKeLxE1REcUcO/uAd3HMdzb5iELbMW9s9P VpNdcpjK0Cew16L4pCRwvh1gBgXePYttKP5KCf4b0lyvSjPXKGfPNcrHmTw48ZSD1cFY oZ/hJduVScG6UjUUUvTpwGjfYV/lJSHTs91pA2LuNtCk57hG0A2o165XZEd1dhF1RyZl /lzw== X-Gm-Message-State: AO0yUKWmF81STiIoVHD7rzOtcN/2MItcQ3J9cAI86ixyMyL29AP7Lhgv SMloDg2JXroQIPoBf4Vg0QxrMw== X-Google-Smtp-Source: AK7set8VUBCC++0rZKvVuN9HoT+LHcQIhyp29YmG0D+xXFTSWOFjLW7ajPk00csdW30mYzCxwGXf6w== X-Received: by 2002:a17:906:d54d:b0:91d:a049:17a9 with SMTP id cr13-20020a170906d54d00b0091da04917a9mr3961752ejc.36.1678533247256; Sat, 11 Mar 2023 03:14:07 -0800 (PST) Received: from krzk-bin.. ([2a02:810d:15c0:828:fa97:2d7c:bdd7:e1b]) by smtp.gmail.com with ESMTPSA id q12-20020a50c34c000000b004bf2d58201fsm1053859edb.35.2023.03.11.03.14.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 Mar 2023 03:14:06 -0800 (PST) From: Krzysztof Kozlowski To: Marcel Holtmann , Johan Hedberg , Luiz Augusto von Dentz , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , linux-bluetooth@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org Cc: Krzysztof Kozlowski Subject: [PATCH 4/4] Bluetooth: btmtkuart: mark OF related data as maybe unused Date: Sat, 11 Mar 2023 12:13:54 +0100 Message-Id: <20230311111354.251316-4-krzysztof.kozlowski@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230311111354.251316-1-krzysztof.kozlowski@linaro.org> References: <20230311111354.251316-1-krzysztof.kozlowski@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org The driver can be compile tested with !CONFIG_OF making certain data unused: drivers/bluetooth/btmtkuart.c:971:36: error: ‘mt7668_data’ defined but not used [-Werror=unused-const-variable=] drivers/bluetooth/btmtkuart.c:966:36: error: ‘mt7663_data’ defined but not used [-Werror=unused-const-variable=] drivers/bluetooth/btmtkuart.c:962:36: error: ‘mt7622_data’ defined but not used [-Werror=unused-const-variable=] Signed-off-by: Krzysztof Kozlowski --- drivers/bluetooth/btmtkuart.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/bluetooth/btmtkuart.c b/drivers/bluetooth/btmtkuart.c index c98691cdbbd5..7680c67cdb35 100644 --- a/drivers/bluetooth/btmtkuart.c +++ b/drivers/bluetooth/btmtkuart.c @@ -959,16 +959,16 @@ static void btmtkuart_remove(struct serdev_device *serdev) hci_free_dev(hdev); } -static const struct btmtkuart_data mt7622_data = { +static const struct btmtkuart_data mt7622_data __maybe_unused = { .fwname = FIRMWARE_MT7622, }; -static const struct btmtkuart_data mt7663_data = { +static const struct btmtkuart_data mt7663_data __maybe_unused = { .flags = BTMTKUART_FLAG_STANDALONE_HW, .fwname = FIRMWARE_MT7663, }; -static const struct btmtkuart_data mt7668_data = { +static const struct btmtkuart_data mt7668_data __maybe_unused = { .flags = BTMTKUART_FLAG_STANDALONE_HW, .fwname = FIRMWARE_MT7668, };