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 8E12CCDB47E for ; Wed, 18 Oct 2023 11:27:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229690AbjJRL1H (ORCPT ); Wed, 18 Oct 2023 07:27:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229908AbjJRL1H (ORCPT ); Wed, 18 Oct 2023 07:27:07 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 36940112 for ; Wed, 18 Oct 2023 04:27:06 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EAB87C433C7; Wed, 18 Oct 2023 11:27:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697628425; bh=VPd3dNhUEmZFXtITkpQzFS1TASvG6VdmVTe37B/we34=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=l6yl07hGFV6tcoLemF7fp6G/GxLXkdJabzIWoKIHCQcvrZypQtSLhp6Pokuu6fHJE FTIl0ZnZPVivdgJNOYFdcpAeMaSdruX4fLSXX9n9akVg4lkjfJyE6BSUQD0Nl+K+wN pJCQB1Er98jfNLP5p7dTsAvgT1nLV1yE7HKh+YUlvo2ss7kO9h8F6AUdM+D9D1gvQs eu8fqjEDNkr072XRgFtOxnb3qCXtOGXIbVdw1hKqSCIErxFjm11OL6Cwvrp6jRlHti xEAzm/NoqbNxCKUUQHZ6A/2uJwaL+MhrjeIiEBlQ7UtZ30MLUVyrmlHj2Vte3spfgf 1PrelXFzCl6cw== Date: Wed, 18 Oct 2023 13:26:58 +0200 From: Simon Horman To: Yoshihiro Shimoda Cc: s.shtylyov@omp.ru, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org Subject: Re: [PATCH net-next v3 1/2] rswitch: Use unsigned int for port related array index Message-ID: <20231018112658.GK1940501@kernel.org> References: <20231017113402.849735-1-yoshihiro.shimoda.uh@renesas.com> <20231017113402.849735-2-yoshihiro.shimoda.uh@renesas.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231017113402.849735-2-yoshihiro.shimoda.uh@renesas.com> Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org On Tue, Oct 17, 2023 at 08:34:01PM +0900, Yoshihiro Shimoda wrote: > Array index should not be negative, so modify the condition of > rswitch_for_each_enabled_port_continue_reverse() macro, and then > use unsigned int instead. > > Signed-off-by: Yoshihiro Shimoda Reviewed-by: Simon Horman