From mboxrd@z Thu Jan 1 00:00:00 1970 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 6CA1DC4332F for ; Mon, 17 Oct 2022 03:22:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232184AbiJQDWO (ORCPT ); Sun, 16 Oct 2022 23:22:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59056 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232176AbiJQDWM (ORCPT ); Sun, 16 Oct 2022 23:22:12 -0400 Received: from esa3.hgst.iphmx.com (esa3.hgst.iphmx.com [216.71.153.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5615B4D83D for ; Sun, 16 Oct 2022 20:22:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1665976931; x=1697512931; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JyUFxOvPYH/k0WxEU3ZawwvhoXKhUga9w0a/EIhr1go=; b=nUL3B3DEnLicp65tYuP2VEEhivJZRnFTlTg+budxkcjazUM59OPdhfcp pRCr5o2iZVhwHnqjjvGBniLlD+ybwv7HZQYlKT+7iBxZTffjNBAIJG8vf NlvXFosmGVTeG81ucM29O55jvzmjzAVZU9Dz8KPmq3WFv8S+mWew6Yjcz p8Xz3sv4RSWMtE6v533Ce7xhzpduW67vb1z0dpe/ECiYulK7bpknywfhS whfHm/B0ZxlQn0HBhD0KVtjvivrw+Rf6xZJ9YeLsMBq7ySn/+o0bNiBAf HpjZySXk4rljeYuWsQIwVmzDdYaVlIDlBb31DWk+UnbwTeEZroLBpOhp2 A==; X-IronPort-AV: E=Sophos;i="5.95,190,1661788800"; d="scan'208";a="219135002" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 17 Oct 2022 11:22:11 +0800 IronPort-SDR: MpEslyp0fNqaxkS26l1SDZ5yjiypS8GTn1JmEkrxptDrOgXWgxcZn01lw3sYRCGSB+V9e3xjm2 sMGsT1HuqII/FrK/1JY+zfUyv4tagT7SzgTa4SX5O71OBQtrRQrKFfQNxPYQusNAxEEf194UAz FxTs7+omAm7BeIxOxmpa2zUFNHgmPUZGBO/dZi/IqAKTxfH1HKetALQg1RrMUcMkdssQSodN0B bvr61m3equdbPVLXXrLa1sHE1hLMWXuxiyLFNtp8I70ZARLztT8V8Y2CDO46/uPDJBvknl63p1 jWDdyD4uN2ccQigeHUQtvni6 Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 16 Oct 2022 19:41:44 -0700 IronPort-SDR: MV6rcHP6RSUpOVCh13RgBFfu3arH8/gxqxqBDRBEk3Hu4DHSLrQa3RZlW9ppUwmYbIN+cAQ9pe ajpJY8WqZAqhKVTGl6ciNg38Iyfnd8wg+9VPZdb6QvFsgt0QlKVn/HuxrBjji0aENuaga2P0ar 60WBS7rebcgpTKDS3tLrt3gI9q+qKZlC7PQsZauQZPPpSEgQdhvbB059iXBHeXC2yitA5pUxw5 tYrBu2zYMeDNlfPqIg0M2mODU8b0wBVkl2DiKbymejGv09fq5SxD/PP5E42sUyfQtwtKSxf/uV Xq8= WDCIronportException: Internal Received: from usg-ed-osssrv.wdc.com ([10.3.10.180]) by uls-op-cesaip02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 16 Oct 2022 20:22:11 -0700 Received: from usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTP id 4MrMjt5q8Nz1Rwt8 for ; Sun, 16 Oct 2022 20:22:10 -0700 (PDT) Authentication-Results: usg-ed-osssrv.wdc.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=opensource.wdc.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= opensource.wdc.com; h=content-transfer-encoding:mime-version :references:in-reply-to:x-mailer:message-id:date:subject:to :from; s=dkim; t=1665976930; x=1668568931; bh=JyUFxOvPYH/k0WxEU3 ZawwvhoXKhUga9w0a/EIhr1go=; b=WjlQiBdui+TY48sfLGw+1VckJjeCfXyJIl TTXweBVIJ0Z+xgP444rNjTwdVF5SYWxVm9GYbeI4NLhHSCyovLKPh8wXs2bJDvqr a3IVz38vSGP7z2OZyvzHoIfo8WItAK5WP40xgDXvPEOxlFH8a5Gap+ifL6k37VMN /i0//Y8AyfPuMTWJapL3yJL2zSY8RGa49+OKmJUcTwOcs9NvYoAWOlC6h2I6ee5G FB6cP0/KhT6H3NadpliRKCac8/Sf8EKQxQUgujPTySZJUqEpBeKVzBpQx53Sfd2/ ivqoM2gTuYCbKcGshG6WTrxp5QiBizh3XRx3epNYD+fYY/naAbgA== X-Virus-Scanned: amavisd-new at usg-ed-osssrv.wdc.com Received: from usg-ed-osssrv.wdc.com ([127.0.0.1]) by usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id r7J1-0mRpJDv for ; Sun, 16 Oct 2022 20:22:10 -0700 (PDT) Received: from washi.fujisawa.hgst.com (washi.fujisawa.hgst.com [10.149.53.254]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4MrMjr6sMvz1RvTp; Sun, 16 Oct 2022 20:22:08 -0700 (PDT) From: Damien Le Moal To: linux-ide@vger.kernel.org Cc: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, Patrice Chotard , linux-renesas-soc@vger.kernel.org, Sergey Shtylyov , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team Subject: [PATCH 1/6] ata: ahci_st: Fix compilation warning Date: Mon, 17 Oct 2022 12:22:00 +0900 Message-Id: <20221017032205.2210188-2-damien.lemoal@opensource.wdc.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221017032205.2210188-1-damien.lemoal@opensource.wdc.com> References: <20221017032205.2210188-1-damien.lemoal@opensource.wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org If CONFIG_OF is disabled and the ahci_st driver is builtin (or CONFIG_MODULES is disabled), then using the macro of_match_ptr() results in the st_ahci_match variable being unused, which generates a compilation warning and a compilation error if CONFIG_WERROR is enabled. Fix this by directly assigning st_ahci_match to .of_match_table in the st_ahci_driver platform driver definition. Reported-by: kernel test robot Signed-off-by: Damien Le Moal --- drivers/ata/ahci_st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c index 5a2cac60a29a..8607b68eee53 100644 --- a/drivers/ata/ahci_st.c +++ b/drivers/ata/ahci_st.c @@ -236,7 +236,7 @@ static struct platform_driver st_ahci_driver =3D { .driver =3D { .name =3D DRV_NAME, .pm =3D &st_ahci_pm_ops, - .of_match_table =3D of_match_ptr(st_ahci_match), + .of_match_table =3D st_ahci_match, }, .probe =3D st_ahci_probe, .remove =3D ata_platform_remove_one, --=20 2.37.3 From mboxrd@z Thu Jan 1 00:00:00 1970 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 026B9C433FE for ; Mon, 17 Oct 2022 03:23:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=CojggFecBzzxe4cfaSdWimEs/nxPcFZ30prJyI/Uj1k=; b=klZmcNxVo6p3J4 W3J9AA+5xKnWvCt1RSnnLDvf00CijsgnAFtX96kLiV6A+yNxY1uysUZKD69FXDVto8Esh9eDp39pk rgzwdkB8B8RonC0UKjUmRqtnunV+ylDZ8yws/n9xNmgbaiDrE+U5rVi4awMW0hFfL1Uts2KQgyrrR oMc2oTbF5cnToFsQkM8Z2G8+rnAQ27+d6lsif1p3Byas4Tmj5iXziDhmueZdmCN1lPmVe18glMASE rm5//1OZR4r9lY8LAf/9Dmss/Z6cM8OuwlRSI11yPtJQTF8abN11ycTY9jnsXV6sBFFtRQkIDqfIb LK3D1tVjlR9Rlyr32gbQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1okGhr-006QUb-Jm; Mon, 17 Oct 2022 03:22:23 +0000 Received: from esa6.hgst.iphmx.com ([216.71.154.45]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1okGhf-006QMc-Sb for linux-arm-kernel@lists.infradead.org; Mon, 17 Oct 2022 03:22:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1665976931; x=1697512931; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=JyUFxOvPYH/k0WxEU3ZawwvhoXKhUga9w0a/EIhr1go=; b=nUL3B3DEnLicp65tYuP2VEEhivJZRnFTlTg+budxkcjazUM59OPdhfcp pRCr5o2iZVhwHnqjjvGBniLlD+ybwv7HZQYlKT+7iBxZTffjNBAIJG8vf NlvXFosmGVTeG81ucM29O55jvzmjzAVZU9Dz8KPmq3WFv8S+mWew6Yjcz p8Xz3sv4RSWMtE6v533Ce7xhzpduW67vb1z0dpe/ECiYulK7bpknywfhS whfHm/B0ZxlQn0HBhD0KVtjvivrw+Rf6xZJ9YeLsMBq7ySn/+o0bNiBAf HpjZySXk4rljeYuWsQIwVmzDdYaVlIDlBb31DWk+UnbwTeEZroLBpOhp2 A==; X-IronPort-AV: E=Sophos;i="5.95,190,1661788800"; d="scan'208";a="214366005" Received: from uls-op-cesaip01.wdc.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 17 Oct 2022 11:22:11 +0800 IronPort-SDR: vHwwRKmBDFWDtl0rB5ehXOO/e1WZVSdINwL6dTFVoPWc2T/SnlRj/SZKnYdhzKd2yzOGgHbd8w /5C/wOth6JxKbRbnl5pwXGYR9fuh/e28Pwg5gsEzfyQOlALHwUfCEffwzLDgwXF0nt/hMvHMIT mD9E2fY6gOCMDJRIoO6fUKDJ98Xc9RIuF1L8Ll2AWx+3uCsIaW5RgivWzCsRehompOu0tN1XwI 9OjY+ge+HYk3dCnYZplmhA6SZTELPcd0S7N/VFUu7C2wddkzGxUFYnNgZQEyisOl24Zv5KD+V4 woQ/VHKOnFJERvyirSrlMk8m Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 16 Oct 2022 19:41:44 -0700 IronPort-SDR: fsyHzX1Sf1JA4Nk9ZTdLzDfdf4tEWelgorqBOs69CuBIweWl/P4xsmszPC93q24BBoaOID6z+K 75bHNHpKIqCIvpeIzMaNd/t1JU7blH1yskIlA0RNW86s3LNv1yOzgaZ1nPkWrdGCeykhnTTqdx ybtfkxD9Ih2AUxqjftlRK13dc+mbgTLmf3yd/XfwHTqqCvqrDNJKfsBuZx/DAj+/HGtGDy6TXt BN/MrC0FrtIG+5Gv+QwIh2vP58qd1cIuJatKmvuANRE3Fx6hEWWVv3j0xkqmLygcVL8EzXUXMU OfM= WDCIronportException: Internal Received: from usg-ed-osssrv.wdc.com ([10.3.10.180]) by uls-op-cesaip02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 16 Oct 2022 20:22:11 -0700 Received: from usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTP id 4MrMjt5lPzz1RwqL for ; Sun, 16 Oct 2022 20:22:10 -0700 (PDT) Authentication-Results: usg-ed-osssrv.wdc.com (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=opensource.wdc.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d= opensource.wdc.com; h=content-transfer-encoding:mime-version :references:in-reply-to:x-mailer:message-id:date:subject:to :from; s=dkim; t=1665976930; x=1668568931; bh=JyUFxOvPYH/k0WxEU3 ZawwvhoXKhUga9w0a/EIhr1go=; b=WjlQiBdui+TY48sfLGw+1VckJjeCfXyJIl TTXweBVIJ0Z+xgP444rNjTwdVF5SYWxVm9GYbeI4NLhHSCyovLKPh8wXs2bJDvqr a3IVz38vSGP7z2OZyvzHoIfo8WItAK5WP40xgDXvPEOxlFH8a5Gap+ifL6k37VMN /i0//Y8AyfPuMTWJapL3yJL2zSY8RGa49+OKmJUcTwOcs9NvYoAWOlC6h2I6ee5G FB6cP0/KhT6H3NadpliRKCac8/Sf8EKQxQUgujPTySZJUqEpBeKVzBpQx53Sfd2/ ivqoM2gTuYCbKcGshG6WTrxp5QiBizh3XRx3epNYD+fYY/naAbgA== X-Virus-Scanned: amavisd-new at usg-ed-osssrv.wdc.com Received: from usg-ed-osssrv.wdc.com ([127.0.0.1]) by usg-ed-osssrv.wdc.com (usg-ed-osssrv.wdc.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id OdFxgPBab4m4 for ; Sun, 16 Oct 2022 20:22:10 -0700 (PDT) Received: from washi.fujisawa.hgst.com (washi.fujisawa.hgst.com [10.149.53.254]) by usg-ed-osssrv.wdc.com (Postfix) with ESMTPSA id 4MrMjr6sMvz1RvTp; Sun, 16 Oct 2022 20:22:08 -0700 (PDT) From: Damien Le Moal To: linux-ide@vger.kernel.org Cc: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, Patrice Chotard , linux-renesas-soc@vger.kernel.org, Sergey Shtylyov , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team Subject: [PATCH 1/6] ata: ahci_st: Fix compilation warning Date: Mon, 17 Oct 2022 12:22:00 +0900 Message-Id: <20221017032205.2210188-2-damien.lemoal@opensource.wdc.com> X-Mailer: git-send-email 2.37.3 In-Reply-To: <20221017032205.2210188-1-damien.lemoal@opensource.wdc.com> References: <20221017032205.2210188-1-damien.lemoal@opensource.wdc.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221016_202212_048451_71924C0A X-CRM114-Status: GOOD ( 18.56 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org If CONFIG_OF is disabled and the ahci_st driver is builtin (or CONFIG_MODULES is disabled), then using the macro of_match_ptr() results in the st_ahci_match variable being unused, which generates a compilation warning and a compilation error if CONFIG_WERROR is enabled. Fix this by directly assigning st_ahci_match to .of_match_table in the st_ahci_driver platform driver definition. Reported-by: kernel test robot Signed-off-by: Damien Le Moal --- drivers/ata/ahci_st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/ahci_st.c b/drivers/ata/ahci_st.c index 5a2cac60a29a..8607b68eee53 100644 --- a/drivers/ata/ahci_st.c +++ b/drivers/ata/ahci_st.c @@ -236,7 +236,7 @@ static struct platform_driver st_ahci_driver = { .driver = { .name = DRV_NAME, .pm = &st_ahci_pm_ops, - .of_match_table = of_match_ptr(st_ahci_match), + .of_match_table = st_ahci_match, }, .probe = st_ahci_probe, .remove = ata_platform_remove_one, -- 2.37.3 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel