Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp87794rwd; Fri, 19 May 2023 15:58:00 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7IjkoCK1YEGG+IhZ5yDAY8zggh7LraW3uQsRkXkOuNrV0D6IxJ+Sk+W8+19/eVYTZCfoGm X-Received: by 2002:a17:902:da81:b0:1ae:40ed:4b8 with SMTP id j1-20020a170902da8100b001ae40ed04b8mr4474282plx.22.1684537080741; Fri, 19 May 2023 15:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684537080; cv=none; d=google.com; s=arc-20160816; b=dI6b/HAcIcEsocyV2voy4/j87m54U8M03y8kdo7Me/gtBkuMx8OlGcSEcuOsTzOTR0 zFnPmzIEmIVHiUo5cB1D5SZawuhyxxp0pFUsiWfIKgj9SQfRx/35LT3Nd2yvJtDwksWf 711J8NnQFpc0HJUofmYvKN1B7/zRjCa8I3lq0ESzfYAI7L+Yn6325VygN6zBUiP/ZbpK jzjlObDglje0tgnRbbry1AlEUWNhiGj5gZWsatnZPrW1v9vGxXQ3p5DXvT3/zgpip1n4 MjMIwz/PERBpeqw7RaMT91r9ymeePboreXGmWt3m4DIA8JnpCxZse7ks4igeEEOsSmVe sQPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=EpftxE1upYPN3oU+tm8YzZFv/Rlhz6RbrTw/cMpKMWM=; b=FzaEsOriqcNxoUKpEvPrqq+Zt6+AvO/VOQVc3XzzJ/DJ7ovJa5rHd+jxfCrdAp1WyB u861ZIGHz6d1foganmCDvQNkhQMWWWaka7FuEn4tB0CVO/VjfehTU8pZpimMMREzG3ej Qkd7hKLqtTqKMGqum0uo+GUYB6+8/5go8XNXD5Z4KCkSaNDzD2mlsIfaWqyhYrFxdL05 /sp3toO5A6MXX49ulEJkvq07zJTBcu2qkLOb6uk7BsWkCghzPooCwQMVG3nJ12+DJrAt 3nFd351SZYAQo7e/St0Nb846yFchAnO657gPpIZIvqHVCm+T2Y72DmXJvgB3oU4fZDgC Y30A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=pMNQ+KnS; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x5-20020a170902ec8500b001adb60b1332si226989plg.623.2023.05.19.15.57.48; Fri, 19 May 2023 15:58:00 -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=@kernel.org header.s=k20201202 header.b=pMNQ+KnS; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230204AbjESW1U (ORCPT + 99 others); Fri, 19 May 2023 18:27:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbjESW1T (ORCPT ); Fri, 19 May 2023 18:27:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C7BAB1A8 for ; Fri, 19 May 2023 15:27:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6529B65B7A for ; Fri, 19 May 2023 22:27:18 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 46EB8C433D2; Fri, 19 May 2023 22:27:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1684535237; bh=3++Hz/H0Ny8iNnJK/HwTOxVy8iKIyU2vlNFkX6To6V8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=pMNQ+KnSqIGNuGe3uYk1BjH4DhXTj3M0pEM6ts97Oe75qGoI4/bM7UJ81xFdYa01/ 28QeawEBbtM6Ou0uajuvn0QxJuWgODz3qt/84ZM5TDU5ZMAmrMzNW//56/tPSHI5yR DEgaNOKopY4SR0Zf/rw+81uy8zk+qRItdlE/WesPVVbQRc2OAYOJIqlBsAqNQPMEPo WC2oIi13vw709nUDVb48rqMMBjWwfojI1SgsVv3Xg0ManDOdMtIinOCKdXeHoYuiS9 1ifR2XvFgM3XuVICy2X5RVtCXDlD21fS50Q5udLIhvdsGkyLDtEWTYInCEx3MTkyos YntJnPPLrqioA== Date: Fri, 19 May 2023 15:27:15 -0700 From: Jakub Kicinski To: Min-Hua Chen Cc: Giuseppe Cavallaro , Alexandre Torgue , Jose Abreu , "David S. Miller" , Eric Dumazet , Paolo Abeni , Maxime Coquelin , Simon Horman , netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] net: stmmac: compare p->des0 and p->des1 with __le32 type values Message-ID: <20230519152715.7d1c3a49@kernel.org> In-Reply-To: <20230519115030.74493-1-minhuadotchen@gmail.com> References: <20230519115030.74493-1-minhuadotchen@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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, 19 May 2023 19:50:28 +0800 Min-Hua Chen wrote: > - if ((p->des0 == 0xffffffff) && (p->des1 == 0xffffffff)) > + if (p->des0 == cpu_to_le32(0xffffffff) && > + p->des1 == cpu_to_le32(0xffffffff)) Can you try to fix the sparse tool instead? I believe it already ignores such errors for the constant of 0, maybe it can be taught to ignore all "isomorphic" values? By "isomorphic" I mean that 0xffffffff == cpu_to_le32(0xffffffff) so there's no point complaining. -- pw-bot: reject