Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp12671548rwd; Fri, 23 Jun 2023 09:04:57 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5nKljXRo1M/qf4pqYiB6uyHJ0ScR5ohVLI/sa+5/qJGkYA4WTq4oXyiCc/yGTx7WGB1Ssf X-Received: by 2002:a17:902:a3cc:b0:1b3:ee49:8334 with SMTP id q12-20020a170902a3cc00b001b3ee498334mr16300361plb.52.1687536296656; Fri, 23 Jun 2023 09:04:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1687536296; cv=none; d=google.com; s=arc-20160816; b=kf1aM07UwiUbcHyab4begpInyOpEVuAL5fabLRiq5Jpj6v8v815UCqd59OIU8Chtd5 LDBVP+oyHmV5tPDv6gZt0Q1X8qyfpyos3gsitHCvmkv1AjqdYeEsvt4c8dqywEn/ikmv Yc52s/3ir7h8jFvBRJOpMXoOaHBcBWE+6RcGfRsa++KD5YHayd5BhSfPGE6Q3Pi117JO XP+JZdOsb5QpY2SmHynxay7zSY7RKQGnNwxp0ll/i1ZgMyKq08fv0FWfYNjhHCNg+3TJ bSSSdCFFrj/FFa8ve+84an3V5git1DOwBBVaOrjg1XzH34HnRSOkN5YkEe/TutXngl+O H63A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Eaai/2aq87jv39+4nAJAoxKbCvsMFKJK4WRa82NziSY=; b=hFbhT5KQ0fQ1furm8vhyOC5ZIA/IoqJSTfXnDPKynxany64CCCo5I6WTnvYayR62vp 8RmSVwrLGjH9yky6NPAbrrQulgV1qja8gnkHOUl65meG6Q3fYSIUlbn1n7E2NjQKhIj3 QXj/8PQ91XZzri01/cQYKSMt1D01SBFfV1pq8UhBv2EukS5cYc5Ha2xapPPBYT62Ty25 50dcMatJYGOCB/GdAOkc6pi6AKw+DKB9tmhCnOWPe+Ghj8ArGXwSeYDpcCdZDbzACo27 GhwE5Gh0T2faLn8v5XXpIwmO5iERV0qHdmZLdV2+S3T1mc34K6/9G/n3OZj05UvmvxLV i6gA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=xTJ+PaaH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u18-20020a170903125200b001b212ecbd17si10182578plh.233.2023.06.23.09.04.39; Fri, 23 Jun 2023 09:04:56 -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; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=xTJ+PaaH; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232645AbjFWPjK (ORCPT + 99 others); Fri, 23 Jun 2023 11:39:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232617AbjFWPi4 (ORCPT ); Fri, 23 Jun 2023 11:38:56 -0400 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 600D22126; Fri, 23 Jun 2023 08:38:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=Eaai/2aq87jv39+4nAJAoxKbCvsMFKJK4WRa82NziSY=; b=xTJ+PaaHmLU0TXGAu3Lh10OkQS PQbBNyqDwbxlG3M5FODc72rEZf1AEvVGVkDdwXzKAlGtemmmisAobREPgMuAobacj5+3ihfqAXDEO IpwIhdRXhH4VZ8sCAexv/l037yG7Ku7ioNZj2cMPHq9iDBd7yPpT++8QpNc51o4Fq1Lg=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1qCirq-00HN9f-Td; Fri, 23 Jun 2023 17:38:34 +0200 Date: Fri, 23 Jun 2023 17:38:34 +0200 From: Andrew Lunn To: Nicolas Ferre Cc: Ben Dooks , netdev@vger.kernel.org, pabeni@redhat.com, kuba@kernel.org, edumazet@google.com, davem@davemloft.net, linux-kernel@vger.kernel.org, claudiu.beznea@microchip.com Subject: Re: net: macb: sparse warning fixes Message-ID: References: <20230622130507.606713-1-ben.dooks@codethink.co.uk> <66f00ffc-571b-86b3-5c35-b9ce566cc149@microchip.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <66f00ffc-571b-86b3-5c35-b9ce566cc149@microchip.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham 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 Fri, Jun 23, 2023 at 03:16:23PM +0200, Nicolas Ferre wrote: > Hi Ben, > > On 22/06/2023 at 15:05, Ben Dooks wrote: > > These are 3 hopefully easy patches for fixing sparse errors due to > > endian-ness warnings. There are still some left, but there are not > > as easy as they mix host and network fields together. > > > > For example, gem_prog_cmp_regs() has two u32 variables that it does > > bitfield manipulation on for the tcp ports and these are __be16 into > > u32, so not sure how these are meant to be changed. I've also no hardware > > to test on, so even if these did get changed then I can't check if it is > > working pre/post change. > > Do you know if there could be any impact on performance (even if limited)? Hi Nicolas This is inside a netdev_dbg(). So 99% of the time it is compiled out. The other 1% of the time, your 115200 baud serial port is probably the bottleneck, not an endianness swap. Andrew