Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp20287413rwd; Wed, 28 Jun 2023 23:37:41 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5p+WwHkfAekojMQkKHVeXULIHeTOS8j2a+JXTcPfAP0YI6kndVeGLx/w3guX5bc+/zK4x1 X-Received: by 2002:a05:6a00:1345:b0:676:399f:346b with SMTP id k5-20020a056a00134500b00676399f346bmr14770852pfu.1.1688020661142; Wed, 28 Jun 2023 23:37:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688020661; cv=none; d=google.com; s=arc-20160816; b=Gwae9xmjDEdWJljHFdAVMSTm+dUmXDF4xQ7nOHp2e6CsvgOTBdrTzY9Rcn5KZL4FDK Y5dk0UrULRS5etvegOeEgMJkoUIArBD3gtoxgOVREFBQHQIJywLY+d+0wvCzBjMfC/pJ ErAeHg5xPTHEeSWoZ5zYSD2ElRrnoPIpgaIlR9teTiZCpwoYkKDWfiZbOW2IM4uwbEOQ dD4VCGDxuKjy+qEApLaqJ/SqHq2x69+sEFFGe2QMp4tWD1uE1H34v+5/uOrvwsxbijVJ 3TnaAggOAB7hCdfIYk93G1soaBJU7Yb9U74CM7sqpT0jACUXUjIB0d4hGnI5YIUHFr4r 3PLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from:cc:to :content-language:subject:user-agent:mime-version:date:message-id; bh=t7E63bA0riBZNzq85bJ/OusrFZ7fYtNx6utEg/M59/k=; fh=wBZ3Q1ks2bUjG9DKNGaL6W2l03h83RXOXVpVZmCxTBg=; b=UtbWEqcY0ZdRoIE84reTrSioKYaFeDGX8Z0GD24YUjKrCxgwr/Wm77BIr60u6Z8CKq lIApulk59Tmbq2RTOYoLelboPiDUSXOUkoi0kMdX0RYlRTrgf6TLau/bJMbMZfVhiEOh GiR/v4gydg9LhoBMYsJXACtPRJVsDPcX5eiGlCAYJKN4mmJMKlSZYgQwM6BaiUeW5193 AEvnf2GPoWQ/MDUHlOqKn97eKudHSnloXot26WJ+AN03ixBnRQNFq+MpBoMkT5mG611T vOPVhMbvG24J+PyHEVetA/m8MX3rfBsuN5xB+s8ELU8Btjh+/xjz4u8myZYIsPRzjTmx RPcQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cp24-20020a056a00349800b006728f1913cfsi8400059pfb.336.2023.06.28.23.37.23; Wed, 28 Jun 2023 23:37:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231146AbjF2GTm (ORCPT + 99 others); Thu, 29 Jun 2023 02:19:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230222AbjF2GTk (ORCPT ); Thu, 29 Jun 2023 02:19:40 -0400 Received: from mail.nfschina.com (unknown [42.101.60.195]) by lindbergh.monkeyblade.net (Postfix) with SMTP id E891310B; Wed, 28 Jun 2023 23:19:38 -0700 (PDT) Received: from [172.30.11.106] (unknown [180.167.10.98]) by mail.nfschina.com (Maildata Gateway V2.8.8) with ESMTPSA id 2908D60562F6B; Thu, 29 Jun 2023 14:19:34 +0800 (CST) Message-ID: <05d56f16-a4fd-10ca-22af-3bc1c6395335@nfschina.com> Date: Thu, 29 Jun 2023 14:19:33 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH net-next 08/10] net: mdio: Remove unnecessary (void*) conversions Content-Language: en-US To: Dan Carpenter , "Russell King (Oracle)" Cc: iyappan@os.amperecomputing.com, keyur@os.amperecomputing.com, quan@os.amperecomputing.com, andrew@lunn.ch, hkallweit1@gmail.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org X-MD-Sfrom: yunchuan@nfschina.com X-MD-SrcIP: 180.167.10.98 From: yunchuan In-Reply-To: <3fda1d81-e350-42e9-8fec-6f107ae75932@kadam.mountain> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023/6/29 13:50, Dan Carpenter wrote: > On Thu, Jun 29, 2023 at 09:59:56AM +0800, yunchuan wrote: >> On 2023/6/28 17:50, Russell King (Oracle) wrote: >>> On Wed, Jun 28, 2023 at 10:45:17AM +0800, wuych wrote: >>>> @@ -211,7 +211,7 @@ static void xgene_enet_wr_mdio_csr(void __iomem *base_addr, >>>> static int xgene_xfi_mdio_write(struct mii_bus *bus, int phy_id, >>>> int reg, u16 data) >>>> { >>>> - void __iomem *addr = (void __iomem *)bus->priv; >>>> + void __iomem *addr = bus->priv; >>>> int timeout = 100; >>>> u32 status, val; >>>> @@ -234,7 +234,7 @@ static int xgene_xfi_mdio_write(struct mii_bus *bus, int phy_id, >>>> static int xgene_xfi_mdio_read(struct mii_bus *bus, int phy_id, int reg) >>>> { >>>> - void __iomem *addr = (void __iomem *)bus->priv; >>>> + void __iomem *addr = bus->priv; >>>> u32 data, status, val; >>>> int timeout = 100; >>> These probably cause Sparse to warn whether or not the cast is there. >> Hi, Russell King, >> >> I didn't notice this Sparse warning. >> Should I remove this cast although it cause Sparse warning? > No. Don't introduce new Sparse warnings. Got it, thanks for your answer! wuych > > regards, > dan carpenter >