From patchwork Mon Oct 17 03:22:00 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Le Moal X-Patchwork-Id: 13008143 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: , 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, From patchwork Mon Oct 17 03:22:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Le Moal X-Patchwork-Id: 13008145 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 1118FC4332F for ; Mon, 17 Oct 2022 03:23:43 +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=5WUus0XvF3RKM8N+m+KXFUQ3YgxqewNfXTyxzz6D9Z0=; b=k7ZrNqvyge60qs ed8htnuZ+mjz1FCz3BrPzVN6aZ3dY5EaDeULIVS2o6tidTx2lx7P5r+p70B/CCNPMYa/7g/rE1g0o QwZ8J6fqBfLBqotqf8SAOtP/2mIEBdNTEvlUPgwNVfl0o5M4O4waL/fVtsazpyESvhU1wNAqmyp4K ATh5GqrVwKVxvWmAi/dS6/trCEg3cKBa2s5cxpbokR3JhnhPqQTEM0Etxw9L2qBhHClu+HWDpK4Wo WWOjdAPT3pekaaRTFGyV3CO62EWxjre2pXfYTNHIbznl/kFssCO07hvsyEHc0V+pMecxldNIrvjWD fCYKrhfCgvJRqBUuDn9g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1okGi0-006QWZ-KZ; Mon, 17 Oct 2022 03:22:32 +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 1okGhh-006QMA-B6 for linux-arm-kernel@lists.infradead.org; Mon, 17 Oct 2022 03:22:14 +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=1665976933; x=1697512933; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qb90FWiWJqsBiM+rnnLq+ou+II9tNJdbJqeHntpNBfE=; b=q3uMJnMuUMPDCnNYfmFfyiFcGP2+knDr34832onjhlnFAp4cpiF+tOAw XeN6FooYUBPol2IsX9EdinBUFXWbcDtoOSvMMaSqHhfTxXGYQ7KNESqn+ WL9+OiRy3ngGgmvKsk0RxiGNYo9avwbDTjCOSwYkBaLtRibZo68ZcH9Jk r287Dm+XkiqiecUmpjXosWYlTmwTB3/aQ5aXmvKldgqPbwINntw2eylX6 sY96QAVuPDYIB4WKUKf+eMHekbVA5xUBmKKufcG6eKCMLvU0NYwQtyvqP JD701ZzCHSTjM/Ppde5Xvd6/dQKO+Bn54jEq/M0LbPEHjvr9hHqg0zhLh A==; X-IronPort-AV: E=Sophos;i="5.95,190,1661788800"; d="scan'208";a="214366010" 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:12 +0800 IronPort-SDR: hbZd+GinfrcemRoX+9/EzKLvWPFWtNqzZneQWmdcDjmOcxGXMbJobmMzTWkQIwlpsQ+qar3D+G NLTQkzPXG/6gHDUXmeSd2o3tcB064wahvOiGsJ4vo9W8fs6CMmFHidIJ0wlBVkbeuuInygSFg9 dyVVGvK2RehGAc2HAJFZP924gEZOpHaFcVZE8L2eGiUjif6qlGlOgKgEf7o3VhaDObF80bIDEo YH+InhF24U2zlbb64BA0F7IMX2W1pc72OuVBVUw/isc9IGktOvgV1kZni8AwLwZ8fbvMQqp3JA HVe9SaKt9MzI+JbDQN5CC4uB 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:45 -0700 IronPort-SDR: zdSnkjdfC0/Bypiaqg9uVuCrzQ85Mjh91cIHGpfEEOMoMSSy2JaPuiSHxRJG2Qi/A8Rcto1IGw eO4PRzi0uZqTYN6SzbYXC1F90iGrV99H74629SXlD72MXobtak0u3l2uW8Jcyi9u6Iw3k9ktf2 PSkSUu1+XzfgKJs2Vk97SLfUUdXjX9YE/sJHFweYpNQ1XOEey98VqYaifS4RjUAVTfO60KQuP8 GOxOCsZj6MM33m9G2R0KYIJrjqIP551rCD+NFt3tnn4GPvRnbkCUMH32wjIF9erBfdIx+JQgls Pdw= 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:12 -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 4MrMjw4GK3z1Rwtl for ; Sun, 16 Oct 2022 20:22:12 -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=1665976931; x=1668568932; bh=qb90FWiWJqsBiM+rnn Lq+ou+II9tNJdbJqeHntpNBfE=; b=pX4hETffpYuWnSM4cUy/mzy/YSWqKPaMN+ Y8s1HK5NKXdW5umftot/90hQibIvG85C/s5zeJYjEkqfDnKJ++WZg0LVqQE8MNK0 e0rF8aJ0Lfrw0lyfXjkxBcWQvdEg4CLF/b5QCFOH8RJkxAeVxRCg3sWyb8XnfTBj qx1Fr2nb5hBXdJ9c6NHU+nSaLg0sx9SUF9iT+qIUIK6wF2zB3luaRbvhc1/0QSW3 NRGNvl/hSFfynEbO+3JbxNejaNgbjU4ef6rS8x1LFHGHjhQ8OFGvVsa4UICJTc/5 HeGnQUtTb0Ux9RO0fosA1zThLypoNZvUP8GvViAWgUgLm1y5i2bA== 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 M48vNrt6mAWB for ; Sun, 16 Oct 2022 20:22:11 -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 4MrMjt4jtnz1RvLy; Sun, 16 Oct 2022 20:22:10 -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 2/6] ata: sata_rcar: Fix compilation warning Date: Mon, 17 Oct 2022 12:22:01 +0900 Message-Id: <20221017032205.2210188-3-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_202213_471907_7620F6B6 X-CRM114-Status: GOOD ( 15.99 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org When compiling with clang and W=1, the following warning is generated: drivers/ata/sata_rcar.c:878:15: error: cast to smaller integer type 'enum sata_rcar_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] priv->type = (enum sata_rcar_type)of_device_get_match_data(dev); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fix this by using a cast to unsigned long to match the "void *" type size returned by of_device_get_match_data(). Signed-off-by: Damien Le Moal Reviewed-by: Geert Uytterhoeven Reviewed-by: Sergey Shtylyov --- drivers/ata/sata_rcar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/sata_rcar.c b/drivers/ata/sata_rcar.c index 590ebea99601..0195eb29f6c2 100644 --- a/drivers/ata/sata_rcar.c +++ b/drivers/ata/sata_rcar.c @@ -875,7 +875,7 @@ static int sata_rcar_probe(struct platform_device *pdev) if (!priv) return -ENOMEM; - priv->type = (enum sata_rcar_type)of_device_get_match_data(dev); + priv->type = (unsigned long)of_device_get_match_data(dev); pm_runtime_enable(dev); ret = pm_runtime_get_sync(dev); From patchwork Mon Oct 17 03:22:02 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Le Moal X-Patchwork-Id: 13008144 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 52CCAC433FE for ; Mon, 17 Oct 2022 03:23:41 +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=CEYm8BtHGy05Ki+QNYjlcjEI79BxLv1A/ci5tEOan/8=; b=c1pPq2Vdsb3wK/ 0Q8q203eXtCA5DCtfLm8rMacZVYogBbkIzf1Giqt9m7zkepDIMkMA0GIVqtdJPHxOgqBvUGxE4Ko9 8ykDs882V9vusc8mQpM+dF054B6xoSSl5k6IfflTUDvI2Ulk+lbK8ERR9V+R84yBTxJ5KbtfTDL3b /6ZXao/hU+eecCt/xwBl881MvSp9FFSeWQK26Ok1oMGOZ6ZYHIhFt3o39TfoiTuVuNvRzmbBGqbmb 6ZeRT9B2+F3L4Yd55WzIKu/yQC0xMB/GBIt4Gv4dp+S2AFhsUEBqdKUOg7SpJ1Fd2SfN/2SAL7UR/ b86rLMrUiRt48yxFgZyw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1okGiA-006QbG-Cm; Mon, 17 Oct 2022 03:22:42 +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 1okGhj-006QMA-0g for linux-arm-kernel@lists.infradead.org; Mon, 17 Oct 2022 03:22:16 +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=1665976934; x=1697512934; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=P/VGei3mXd338tEnTEiU0+WWo95l65D0cCUal/7BcvY=; b=NWCw9nb81pqfiehpkrlQFkELjqSt6a48+8eEhm5sNh7wIYItFfC0OM4/ Z8NzIKPTRfK7zmnSABhy3zkzAru1p9ujKME9TZNZfiKQfMYYQwFbjzq8I xmknNzWmdF93aDPazYnxzZJz4t+vy/gzHaHKB7Jh0XSIKGvrfB/tqfU5z NNi1L0kswpClLBf46DpTsI/CU5npWslD/Z41QJNfZya0WGdh8amtKmLbf V1FenERVt1Q2bJq1myl2JLQyLFRpZoU2J1uNxeI9idRD21rbYIPWhTrPT Vs18Tj2Zz0AR+dbozU8axgCoVPDgInaL2stLAM82105ZJhbD7ezD5Hyv4 g==; X-IronPort-AV: E=Sophos;i="5.95,190,1661788800"; d="scan'208";a="214366016" 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:14 +0800 IronPort-SDR: T2iACHrZkoiQxVghbNu03mtY70VI9OduEjzWFP2CKQS3brNzvLdmtBzQa2KQ3h1X+dPwF1yeyi Jus1g3dc3Pb5L/cq1F79QfBAWfdK6lQitgkAqP4UmsXLtpI8eBz9v3K4tRnJ0cn3ObJDcItdHq myt13zFfNxMcR69791P4soe+cZCnpzd1FVtqCQIi6W+KRb86G3qkehe+6WpQdhV0zaxN9Lmxri K0nGuZ107BJfExQZuEz7fWy5XpTzVJMxtC+Cm3Q9NNV8MbXmZcBtjOKtccLb9Ez0CI23i+3kWb nv8CI5YnqX3dctXWaW+DSRIx 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:47 -0700 IronPort-SDR: L7gi/zPp8d1QlG7jCFWZfQY8AbRcvc8pycbn5EM1JrbVDzLM011UmwJ4iCZ+IZo7W8rHBIvhXS V4B+T73Ae3gDkp0nFsdwC6B51DF1+v5sZAgzhwhNTMZivHYjxdBF8l7rKYdOn6lOCO0Upm9VJJ FtePq+Zhq5PmA5pHkUPT7SwDTu+fM6n3bai6VJXnW/hqpNNGCa7FcbkneMeTitfwlbnGb/Uzak VNMGG1zIXmGQHLvdG3Q5JW3EUzUhYIr5AePyCST35EhFx4csDdbymuMGXmNdgXkUuxXXqRa6z9 Vuk= 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:14 -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 4MrMjy2Gn1z1RwvT for ; Sun, 16 Oct 2022 20:22:14 -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=1665976933; x=1668568934; bh=P/VGei3mXd338tEnTE iU0+WWo95l65D0cCUal/7BcvY=; b=iE3onShvPCfj/siEPXRQhrUS73RvlWqKoa sA/qAc/XmhHk0gw8di+mBTOxngD9CxgjSn7qhuVP9kSsXtbEHQmQMQKIv9zVD2su Et9CM3/roeD07CSf5kIcoMUH64kbtPlvb5aDjAS6m1XxR6JSPtdLqKtvncWA+QsG e5FHg6+akc8hsFv4oxeGqtWXU1DoNW4/rYxGwCDh7D39qb7Gy4AUvR+J1tqqsWDE SWsTa4wr3OwbpjI6g6TMBHEfADYY+q9FjJ5y5nzyLMS7GCwVp7/tf++61ou47Qgh M/XzgzULfo9dFfbU92yX9WD198Ny9sDc3s9pdRXCZYvbqF8Z3apg== 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 LFO7BV4WyjNX for ; Sun, 16 Oct 2022 20:22:13 -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 4MrMjw2TCXz1RvTp; Sun, 16 Oct 2022 20:22:12 -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 3/6] ata: ahci_brcm: Fix compilation warning Date: Mon, 17 Oct 2022 12:22:02 +0900 Message-Id: <20221017032205.2210188-4-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_202215_138266_8C508E38 X-CRM114-Status: GOOD ( 16.30 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org When compiling with clang and W=1, the following warning is generated: drivers/ata/ahci_brcm.c:451:18: error: cast to smaller integer type 'enum brcm_ahci_version' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] priv->version = (enum brcm_ahci_version)of_id->data; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fix this by using a cast to unsigned long to match the "void *" type size of of_id->data. Signed-off-by: Damien Le Moal --- drivers/ata/ahci_brcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/ahci_brcm.c b/drivers/ata/ahci_brcm.c index f61795c546cf..6f216eb25610 100644 --- a/drivers/ata/ahci_brcm.c +++ b/drivers/ata/ahci_brcm.c @@ -448,7 +448,7 @@ static int brcm_ahci_probe(struct platform_device *pdev) if (!of_id) return -ENODEV; - priv->version = (enum brcm_ahci_version)of_id->data; + priv->version = (unsigned long)of_id->data; priv->dev = dev; res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "top-ctrl"); From patchwork Mon Oct 17 03:22:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Le Moal X-Patchwork-Id: 13008146 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 68B66C4332F for ; Mon, 17 Oct 2022 03:23:57 +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=6oulD/zXN2LkAklgqrkA0ZHc/Awlvd6NwkSTn790eoM=; b=bno0sZyEVeDSxn uIC5r4KqS4H/MIrQbe4je2cSyWIRXf7wKcAdpAnbUWTpytuLinPBAaLcq345XuXBuhhEDrvqWZYsN 6IAam22tbx28IAwvYorEPExorKmtcY3/7h7Wos33BmZZfXW/K2LGpGjeOXa/B+D9tLy/F6qWYeGdz M3zdcF+wyRRDkj3zwj1ASyUQ7Tdfn6xaJOqBUtdxK0591b92Bin3O4DZ2gQy3JMqh3o+LPh82/b4o A0YBTCuS0P6p3LcLPTqKFLhNALEdDwdOeK+8W4YmsJJtRn1kk93lKcl/gPgV4h6fy+7a2TJ8CblqO I9x95h0EJFMtprS5osDg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1okGiP-006Qk7-Fm; Mon, 17 Oct 2022 03:22:57 +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 1okGhk-006QMA-G2 for linux-arm-kernel@lists.infradead.org; Mon, 17 Oct 2022 03:22:17 +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=1665976936; x=1697512936; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9oVd3kKUW3BD9R22KKr2B93jbr7Wn+zAbmF4qTKLCcU=; b=BeN29Pj2EL3R2FY1G2UXc34fEPysHI034fhMy9o8jLVDLiWw5KdgpYlb AjR4pMD0WCBFxQAdqlyZsBe+cShC9FGcXww5rIlexE2r9XgdU/Kcv6DyA PMf7czhszZS1QOgGyFyPYs2auktBmAcOZD1aBNrukqOKtFMh1X0ymIe24 nRePMLvVOHmFKDkXGGVIwebBHhH3OdsiNzyO+xcw0EGexxkH4BZ05ZeIO qlv2mEPu9jXV68OfMBq0MAv3gadEEaCGMJiTtyQ7xZ2D1pVbZhOYY+r84 Xu7li8A9p/4mFf0nCkU05DpUPtujfSM3MBpYkuAMyAK8HXfK0uXM7qdRF w==; X-IronPort-AV: E=Sophos;i="5.95,190,1661788800"; d="scan'208";a="214366019" 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:16 +0800 IronPort-SDR: ydA40sbXuGWBzLuSK/QnuXkYvr6BGwqXb/FGggGDMoCZEzQaEn96W9bGO1asYKTyIe5hsubvgs OlW/yj1Jd+B1QfV7bwZt3xAXQk73zNHPY+gzNRNFvR5iNUKdvY0hpihMA9Ztt04EvA0JtzgMub bcjHrMBBdpzVc7c624hbwOGDKG6yqsf2PJWD+rvTNZLdcOGm069PNtDSqPXaKfh24gT2SwXvUC pkJ/d5KGcKPAHxNPznHRDE9riOvcknK08/qfUpahVHs1wwy9tO5wtinaskOhd9rLjlY258DsOQ KSBy5/wki5VNMNeNGx6rlaXH 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:49 -0700 IronPort-SDR: nKmmHJrQMWeN1rbbfYESytmaz+BqxJANwpKwQ4ColU3zTCdZdy0jRYUa/SlCDGdcgIh8QQ/HbT AI0leap7tuzxgX09c9MXZg6vsvLTpbZVyuSxoODfi4M482Rupf3keLMLRajLSGQTaBg3X9MdzX 616FgLpbcp43fu/wWU9agWTCLrLrxrvTmMSW1x/aaSCFPQdzH1OG4wnKLeqXVdJU0n+Xeru/f5 iFfPJMG/ME/xLrlQamMM2uBR6uJpebNc3vIqqCWEdSZNMYEaReaJmswGGhBKFncuoxU6jBvbvp H04= 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:16 -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 4MrMjz6Vflz1RwvL for ; Sun, 16 Oct 2022 20:22:15 -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=1665976935; x=1668568936; bh=9oVd3kKUW3BD9R22KK r2B93jbr7Wn+zAbmF4qTKLCcU=; b=rF2LdUjZnJtL/Exkv3BjRLjLgXR0Qsi2ks X839gYzxXeTVjtVrsSqZmVtYhbB3rLOBr8UV2ZaOsW+Mr5lvjm3tHec8Tdqw20ly 0AdVo87lQxcGX1sUbNLWyYV00uG3MhrBiLRnHLd8v/KAz3nEHd02gYsjKm7S1+ET KBEIk8I6iN6fRZUPtkDVRiDlec4Mur3jfSkyXpu0wEvwr+g9attNMVVfR+bqNLCG UyrsC6UrC5D/T/lLv+VOnaoX0H95aeoljggjfuPzZ0hzwiOOFs17D8iQJg7pUCRd 62tyoLb2CWnRD40q9X9NVZwDeis9ij8vcvpRakte5QfxNtTdAwrg== 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 KFq41lZkzNLu for ; Sun, 16 Oct 2022 20:22:15 -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 4MrMjx74PXz1RvLy; Sun, 16 Oct 2022 20:22:13 -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 4/6] ata: ahci_xgene: Fix compilation warning Date: Mon, 17 Oct 2022 12:22:03 +0900 Message-Id: <20221017032205.2210188-5-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_202216_619889_0589B432 X-CRM114-Status: GOOD ( 16.30 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org When compiling with clang and W=1, the following warning is generated: drivers/ata/ahci_xgene.c:788:14: error: cast to smaller integer type 'enum xgene_ahci_version' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] version = (enum xgene_ahci_version) of_devid->data; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fix this by using a cast to unsigned long to match the "void *" type size of of_devid->data. Signed-off-by: Damien Le Moal --- drivers/ata/ahci_xgene.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/ahci_xgene.c b/drivers/ata/ahci_xgene.c index 7bb5db17f864..1e08704d5117 100644 --- a/drivers/ata/ahci_xgene.c +++ b/drivers/ata/ahci_xgene.c @@ -785,7 +785,7 @@ static int xgene_ahci_probe(struct platform_device *pdev) of_devid = of_match_device(xgene_ahci_of_match, dev); if (of_devid) { if (of_devid->data) - version = (enum xgene_ahci_version) of_devid->data; + version = (unsigned long) of_devid->data; } #ifdef CONFIG_ACPI else { From patchwork Mon Oct 17 03:22:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Le Moal X-Patchwork-Id: 13008147 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 6436AC4332F for ; Mon, 17 Oct 2022 03:24:25 +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=4wVwp7KPXEmdd3k2LZPVUzbEuyHh6YLRN+XtKJUIFi8=; b=HwXdAaxqnXXwkU AXO0DZzs5aFNrPxqi4dPCyfZrXOFwRaFV9hwc3Hd7zYxF/U6qcj2JYAZlnDt9yHBlGD38FvfzlTqq nx9TbmYMW2jIku1OP6FHfBlZAqE9agoYYd2Pv3/y9GmjTwAtp+LYkzoLcgcbvQQKFnfHBfNdWfyOt qtih34IkBa72PpHnISMuCOiq88K4q8CO96ZfiFhMKQO8mQjfRvOfkWE4t8zxH6QsCc9vAPpRnNGFg VKwoU/aGS8ok8IhC+KycMud9niQdavDtB79qxYUHNLOqG8zTczKLb2bmbpy9tGDeROYbX8mYU6Qj7 N4/wJsIpk8bzlFtkkB+Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1okGik-006QwH-UI; Mon, 17 Oct 2022 03:23:19 +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 1okGhm-006QMA-0g for linux-arm-kernel@lists.infradead.org; Mon, 17 Oct 2022 03:22:19 +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=1665976937; x=1697512937; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=AmpxHBtPrMCtfK9ErFiTCWFNTcLn+8gXnygCT8fikds=; b=pAjvWlr0R+vRGUSmRr+Q0MFv+cEjrmoCyB1Qq7HNGHjhjWus0B/f1Ib/ rnuHn9HIiP2z9ez8x8BUIgD9MXM0YdgLR4dFFDFmYpCfdjuchmxE+EA7S xoJAcboSqh2G9+kT0PECOsfR3coQYa71ZHToB6gABwzZv461DGu3vXOyD R23IBsAduD/GtPXYPRrStvaCUiP6rmv7FpeomY/tgmh4kbDJMvAACTKcu cw/cQciemcmdwo1jIXoNc29A/FYao1KxYGs1UwSD2q6bgHCWPT5PV/5W6 EDz13tGDtprZGZY19rORl3EKo9I0vIDu6hfWEaeB/rkHhf2+1YpqDZyKt A==; X-IronPort-AV: E=Sophos;i="5.95,190,1661788800"; d="scan'208";a="214366023" 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:17 +0800 IronPort-SDR: NElnBw6H4aMuGjESwRa+3J+DhA3FbCGiN7OVR6qZxBs9qN4WaTM2ykyWYgBhuTd/UQW4FTOtgK oYpGLrgoFf8U/BD6WXCv8EwGxagvAGRU0JC5ACL6KtrSRnBFVBT53S/cyTYYJpQNqpP7LQaKE5 IxE71HJDrPbqnylA/lkFIOZxrJSyz28ShgayLqIErOF8Kyt2SUVn+QgKTnjkkQNeaEImNIgWWG gSITm9NqrR4nBIhVb/Wj6dWk3bIEY6LAFnUZzfw61KtwsgSZTzLPcU5Fk4afii2y8JZzFuUXfb pqJeWgpjKtnv0iZ//Psm/2S9 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:50 -0700 IronPort-SDR: SSLGqRQAoVoQdPxG3pnzFHHRgY291IL+cbBI0w8cbb/cW3bygxSCShk3skL8XxHty95CgecwOY 4wlK7UrVm8/k4zgIP8QGBJ4ngzmC6GKfAQJg+XFvDKepxu+Em6EQjzqTYqgMUgU0DExVBZC6M/ hT/CiQOF6KKn2CqIK8y+J6HqYU2Nb99EI8GPdjq++qu7lndoJgTH1uSiAf3DdlTr73U+QAjWlT osDjGSXvxWRfc/d2fEvWZoKZyLOK7Kur+w6N6RYWuTgy+36aWDRoyqxDHnPKbydmd/L6gMSlh1 gYU= 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:17 -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 4MrMk13pY0z1RwvT for ; Sun, 16 Oct 2022 20:22:17 -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=1665976936; x=1668568937; bh=AmpxHBtPrMCtfK9ErF iTCWFNTcLn+8gXnygCT8fikds=; b=cUGWmPYrDgagYgHWORXg/qDECfoHwxItyT 6FtOBNK11hup6LwKhURPVTN2VFd3hkNKpcLSMmduiIUULQDzkpGVy1TCz3Iw/bVP nMBkHc/AC/7Z/22mRAam9MT6ccrLG3cjaxvi58I+YPjwf4mPxQpXQapVgALF/wAf YZ5cp/fRQZrqF6T7nthBzqcuQRy6ER7sOnxhIeq/YowFm1vyv19eNjkfh2F2Trdo rjn2JZqubruG3AnNoriueX/Vqg3WwapGKriB/1rxYGCbtK2IKlbJ1Yv5WsULdhnA pGat7l/k0VTGcv3sk2Kh2SDEwfitbEHYa0k4vZcOcmsHOL2NP+ow== 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 EuUGx8WH6YZh for ; Sun, 16 Oct 2022 20:22:16 -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 4MrMjz4F4Dz1RvTp; Sun, 16 Oct 2022 20:22:15 -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 5/6] ata: ahci_imx: Fix compilation warning Date: Mon, 17 Oct 2022 12:22:04 +0900 Message-Id: <20221017032205.2210188-6-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_202218_133962_FECDB9D2 X-CRM114-Status: GOOD ( 16.54 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org When compiling with clang and W=1, the following warning is generated: drivers/ata/ahci_imx.c:1070:18: error: cast to smaller integer type 'enum ahci_imx_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] imxpriv->type = (enum ahci_imx_type)of_id->data; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fix this by using a cast to unsigned long to match the "void *" type size of of_id->data. Signed-off-by: Damien Le Moal --- drivers/ata/ahci_imx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/ahci_imx.c b/drivers/ata/ahci_imx.c index 632caa301458..a950767f7948 100644 --- a/drivers/ata/ahci_imx.c +++ b/drivers/ata/ahci_imx.c @@ -1067,7 +1067,7 @@ static int imx_ahci_probe(struct platform_device *pdev) imxpriv->ahci_pdev = pdev; imxpriv->no_device = false; imxpriv->first_time = true; - imxpriv->type = (enum ahci_imx_type)of_id->data; + imxpriv->type = (unsigned long)of_id->data; imxpriv->sata_clk = devm_clk_get(dev, "sata"); if (IS_ERR(imxpriv->sata_clk)) { From patchwork Mon Oct 17 03:22:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Damien Le Moal X-Patchwork-Id: 13008148 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 C1080C4332F for ; Mon, 17 Oct 2022 03:24:51 +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=xtC9yL8Mnknwry6qAmoieGkVFZI6/ZMDbU8VfyZeZEg=; b=Xb5pWfyRAEEPhV QeU9VFMicwTeKUKnV/h8b2VMARRLuqdNJUZCMYgwea/CLCuNiQb1gy4/5n9PjGM8nVsdcNIZzNC05 ceYipxdnS0Gnqi4Uq3qhFzJa3P2NVoix//tMrjxFUGWkn5T0nuVRa/YUIzyOiEH7n2PjQgfkHObV/ IKtWhkRMocTq9wjVK/EsaYZb+yVCId7oq3xly4JPQjYLaFXb6uq5qNmwX16cHhAGjbG1RLDUMPxCj xUNcgZPOZeHEVceLTOshT7WxtxKUkP91bVJFTaUkxUdIxd2xCqnfUKipEKZo2gaOgNa+3QJhzAImC o92nFBeXM1JAkpNqRyxA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1okGj7-006R9w-UH; Mon, 17 Oct 2022 03:23:42 +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 1okGhn-006QMA-SZ for linux-arm-kernel@lists.infradead.org; Mon, 17 Oct 2022 03:22:21 +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=1665976939; x=1697512939; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=3O2DopF+MAK2Mx8ruuGInQ2SFsIiGXlyPCLzDG43pXY=; b=AOxVGXZHmlCoyReohD6F2KG+T6JEHPlBXzTWYrFaTW2KJTgaEpdeq3v9 qgsKcEN1yiG4X5vREvTEMa/xOEutpu424Az8NzyQEv8Xqsv3xkZJEt+Th PQsvM/STKz0EQlvvabn5vul8+AWp3Fglpt7UEeig9LWYMLiwOMkkEhyxg 8brXT4mdl5VeGL6U5lsHvAMzD1GZOC+0xW7Wac8VM4Qng+mnMXccJLSno u/4CH0uRqQVDgYQm62IMDT1Ba24cJ907lqEbdN9GyS0gQHTDjJgB9+IHT DapfTe5nZrvZeeIMAtYH3hxVdVYzlIZDR9tIsZwGdCxeTiTgOijqPdRS5 A==; X-IronPort-AV: E=Sophos;i="5.95,190,1661788800"; d="scan'208";a="214366027" 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:19 +0800 IronPort-SDR: tY5ipyeLT1BWJ3jw406zQFtJe4SyEXX/8a2bipB2YGp4VBMZGKERSHaQYd2jAjAlsyg8+2qNXV +0i8hynxeGJqQgqGPlb77jIVmpM2noYesgiuEfc6SDjEY0zfpkCGeNr3F4xJlZSD2hNsxHNX5R ZXgwv+cbnKPdFE+nAHz+1o37TY5/4PPOkWltn9no95Ff5Ppy7uv18HZasC3+l0ht1eQLu/Hm4F zurO63bVuCf/nMjN2JAFhCXLsZSCUzCOwhd+HIZMZesM0YaCo6ZN0t6jbMyP9Agr0OuXMp/xih H8XPeJfVK5MQB9zyAz4/3zxb 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:52 -0700 IronPort-SDR: weB+isJ8SYnaEg4oOfa+4HLv5tWu+HWJrIYQzp40GMhL0ZYqHvX2tBa7puJ0jqcszr+lutCJw8 a09g+gwbuBXFuZEg/mk12kP4Z9igAINHVV0ANaFBJUmk1sW4le0zcpe/6E0MGdZEgooY1QuS0G MCm9KudTswCQad5dA0OwmakCbDOI6rkPlBOs3pD9oXQ1LYjq0if4xvrdzDkYJo3c6051WEnT1E B0Rjz+NguzBo0Z02337CHGYwcU/1aBF4H1CMmwWk1tFm1U93UA3a5Iki47RPpbiAhcmTEV5jRq QYs= 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:19 -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 4MrMk317XXz1Rwtl for ; Sun, 16 Oct 2022 20:22:19 -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=1665976938; x=1668568939; bh=3O2DopF+MAK2Mx8ruu GInQ2SFsIiGXlyPCLzDG43pXY=; b=RCynmvaL5zaWltinvB5z52t6rBCY9W5gCi I/WilDl2DGdnhoXb2YGFg5XIov6R+Ol0M6DceWpYVEH2Tv1IuBzay406j/ynho5y nV/DiJh8OIHodf5bQSBmYOWs1YzHXjqmP1jBk4VTjj3KBtq7wSo76FAjBBtT6sbb 80b4VARwiTG7RBJEohD55a0aiocQGPxThs+XhoxfpHzPrnfy4izukCbLh8lb2K1A 9d3r4bv6IS/NAsXcUEeEnNjHm34zgIICA4ZmdLej0DJZWuMW7D4CcMnNPFzcCKQ2 LwEWZnqct5bx/RE5OjD3Uj0gfpabPCE/LlhBfIuypslx/2mhu9bA== 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 EwAmPPJIhXcQ for ; Sun, 16 Oct 2022 20:22:18 -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 4MrMk123nCz1RvLy; Sun, 16 Oct 2022 20:22:17 -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 6/6] ata: ahci_qoriq: Fix compilation warning Date: Mon, 17 Oct 2022 12:22:05 +0900 Message-Id: <20221017032205.2210188-7-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_202220_033427_D2C47432 X-CRM114-Status: GOOD ( 16.22 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org When compiling with clang and W=1, the following warning is generated: drivers/ata/ahci_qoriq.c:283:22: error: cast to smaller integer type 'enum ahci_qoriq_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] qoriq_priv->type = (enum ahci_qoriq_type)of_id->data; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Fix this by using a cast to unsigned long to match the "void *" type size of of_id->data. Signed-off-by: Damien Le Moal --- drivers/ata/ahci_qoriq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ata/ahci_qoriq.c b/drivers/ata/ahci_qoriq.c index 6cd61842ad48..9cf9bf36a874 100644 --- a/drivers/ata/ahci_qoriq.c +++ b/drivers/ata/ahci_qoriq.c @@ -280,7 +280,7 @@ static int ahci_qoriq_probe(struct platform_device *pdev) return -ENOMEM; if (of_id) - qoriq_priv->type = (enum ahci_qoriq_type)of_id->data; + qoriq_priv->type = (unsigned long)of_id->data; else qoriq_priv->type = (enum ahci_qoriq_type)acpi_id->driver_data;