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 B32EBC433FE for ; Mon, 17 Oct 2022 19:09:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230210AbiJQTJI (ORCPT ); Mon, 17 Oct 2022 15:09:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46604 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230185AbiJQTJH (ORCPT ); Mon, 17 Oct 2022 15:09:07 -0400 Received: from mx01.omp.ru (mx01.omp.ru [90.154.21.10]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AA2725FDD7; Mon, 17 Oct 2022 12:09:04 -0700 (PDT) Received: from [192.168.1.103] (31.173.86.181) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.986.14; Mon, 17 Oct 2022 22:08:57 +0300 Subject: Re: [PATCH 2/6] ata: sata_rcar: Fix compilation warning To: Damien Le Moal , CC: Arnd Bergmann , , Patrice Chotard , , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team References: <20221017032205.2210188-1-damien.lemoal@opensource.wdc.com> <20221017032205.2210188-3-damien.lemoal@opensource.wdc.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: <551daf5a-383e-acf9-1482-05a9d91d912e@omp.ru> Date: Mon, 17 Oct 2022 22:08:56 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20221017032205.2210188-3-damien.lemoal@opensource.wdc.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [31.173.86.181] X-ClientProxiedBy: msexch01.omp.ru (10.188.4.12) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.20, Database issued on: 10/17/2022 18:44:50 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 19 X-KSE-AntiSpam-Info: Lua profiles 173167 [Oct 17 2022] X-KSE-AntiSpam-Info: Version: 5.9.20.0 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 501 501 55f57d011f6e23cf0fa58aafb8628737e84a764f X-KSE-AntiSpam-Info: {rep_avail} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: {SMTP from is not routable} X-KSE-AntiSpam-Info: {Found in DNSBL: 31.173.86.181 in (user) b.barracudacentral.org} X-KSE-AntiSpam-Info: {Found in DNSBL: 31.173.86.181 in (user) dbl.spamhaus.org} X-KSE-AntiSpam-Info: 127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;omp.ru:7.1.1 X-KSE-AntiSpam-Info: ApMailHostAddress: 31.173.86.181 X-KSE-AntiSpam-Info: {DNS response errors} X-KSE-AntiSpam-Info: Rate: 19 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dmarc=temperror header.from=omp.ru;spf=temperror smtp.mailfrom=omp.ru;dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 10/17/2022 18:48:00 X-KSE-AttachmentFiltering-Interceptor-Info: protection disabled X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 10/17/2022 4:12:00 PM X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit Precedence: bulk List-ID: X-Mailing-List: linux-ide@vger.kernel.org On 10/17/22 6:22 AM, Damien Le Moal wrote: > 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: Sergey Shtylyov [...] MBR, Sergey 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 A3A06C433FE for ; Mon, 17 Oct 2022 19:10:36 +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:In-Reply-To:MIME-Version:Date: Message-ID:From:References:CC:To:Subject:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=OyIaJ6eGgHtkSb/miiZ+5FSY4vSUZyZHRH5t/PIQrqU=; b=Gy6NrSDFJqnVMVmarO5ymkWT+T HXcx1pnUgrbSSVDkMCKpIYEZGRbGC4FZRMXU23G5YdFz7YC9882+wXqYrBAHYDrHqPJOHg49oTgW3 COJiJ4Us75IEuhurqkzOBtPgdYWFuz36zVMuMhpUJ16z4Yce3G9+pchVA9asPXLvsHgc+xXss4Gi/ ZmwEyYsi8zoeXweW4LHaetyfLkdHvuqqPtn/UBZiwI2su7rHM1IFsIx/H2xQVj4fZYkhXY5ufghfj MQDzRempqP3x5wnyOGpfMOrevtyzTMTButRU4KSyEVHysEEtaaAgCiwd48G04wPPDZeIqpwdxP7dv SJ9u7V4w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1okVUH-00EPgX-OE; Mon, 17 Oct 2022 19:09:21 +0000 Received: from mx01.omp.ru ([90.154.21.10]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1okVUE-00EPdF-6m for linux-arm-kernel@lists.infradead.org; Mon, 17 Oct 2022 19:09:20 +0000 Received: from [192.168.1.103] (31.173.86.181) by msexch01.omp.ru (10.188.4.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.2.986.14; Mon, 17 Oct 2022 22:08:57 +0300 Subject: Re: [PATCH 2/6] ata: sata_rcar: Fix compilation warning To: Damien Le Moal , CC: Arnd Bergmann , , Patrice Chotard , , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team References: <20221017032205.2210188-1-damien.lemoal@opensource.wdc.com> <20221017032205.2210188-3-damien.lemoal@opensource.wdc.com> From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: <551daf5a-383e-acf9-1482-05a9d91d912e@omp.ru> Date: Mon, 17 Oct 2022 22:08:56 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: <20221017032205.2210188-3-damien.lemoal@opensource.wdc.com> Content-Language: en-US X-Originating-IP: [31.173.86.181] X-ClientProxiedBy: msexch01.omp.ru (10.188.4.12) To msexch01.omp.ru (10.188.4.12) X-KSE-ServerInfo: msexch01.omp.ru, 9 X-KSE-AntiSpam-Interceptor-Info: scan successful X-KSE-AntiSpam-Version: 5.9.20, Database issued on: 10/17/2022 18:44:50 X-KSE-AntiSpam-Status: KAS_STATUS_NOT_DETECTED X-KSE-AntiSpam-Method: none X-KSE-AntiSpam-Rate: 19 X-KSE-AntiSpam-Info: Lua profiles 173167 [Oct 17 2022] X-KSE-AntiSpam-Info: Version: 5.9.20.0 X-KSE-AntiSpam-Info: Envelope from: s.shtylyov@omp.ru X-KSE-AntiSpam-Info: LuaCore: 501 501 55f57d011f6e23cf0fa58aafb8628737e84a764f X-KSE-AntiSpam-Info: {rep_avail} X-KSE-AntiSpam-Info: {Tracking_from_domain_doesnt_match_to} X-KSE-AntiSpam-Info: {SMTP from is not routable} X-KSE-AntiSpam-Info: {Found in DNSBL: 31.173.86.181 in (user) b.barracudacentral.org} X-KSE-AntiSpam-Info: {Found in DNSBL: 31.173.86.181 in (user) dbl.spamhaus.org} X-KSE-AntiSpam-Info: 127.0.0.199:7.1.2;d41d8cd98f00b204e9800998ecf8427e.com:7.1.1;omp.ru:7.1.1 X-KSE-AntiSpam-Info: ApMailHostAddress: 31.173.86.181 X-KSE-AntiSpam-Info: {DNS response errors} X-KSE-AntiSpam-Info: Rate: 19 X-KSE-AntiSpam-Info: Status: not_detected X-KSE-AntiSpam-Info: Method: none X-KSE-AntiSpam-Info: Auth:dmarc=temperror header.from=omp.ru;spf=temperror smtp.mailfrom=omp.ru;dkim=none X-KSE-Antiphishing-Info: Clean X-KSE-Antiphishing-ScanningType: Heuristic X-KSE-Antiphishing-Method: None X-KSE-Antiphishing-Bases: 10/17/2022 18:48:00 X-KSE-AttachmentFiltering-Interceptor-Info: protection disabled X-KSE-Antivirus-Interceptor-Info: scan successful X-KSE-Antivirus-Info: Clean, bases: 10/17/2022 4:12:00 PM X-KSE-BulkMessagesFiltering-Scan-Result: InTheLimit X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221017_120918_297119_A201183D X-CRM114-Status: UNSURE ( 8.21 ) X-CRM114-Notice: Please train this message. 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 On 10/17/22 6:22 AM, Damien Le Moal wrote: > 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: Sergey Shtylyov [...] MBR, Sergey _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel