From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E84F61B909 for ; Fri, 2 Jun 2023 16:05:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1F442C433D2; Fri, 2 Jun 2023 16:05:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1685721940; bh=4sswC/KO7WS/nNG1kv1Txkpug4QgL5N0WE8G9sOlGzY=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ZbKiFxYtXX85JY5+AVzF4GkfxLBoXNjLvgUm7pVcW1nV/JjyjxxnhMJqEOTg7jaZ/ t8RU8jecvAgq0+GYGQqAwjsAEVm2/A1RaMk/dYn0KPBmk2fJ82W3+626cenlnjhJLA XiGRi86zmd8nEaxwZoxozNxZX22zyzj2Fb4d1g6YCoNUbmSSo2JETd7zZRmTxgOYpg E0S5iiLLQYiU+Ts4AfNrcFbrUph8GTr415bn2lHxRZqi8hF4oVUri3Da8u5NH3C2lQ 9ZyOieK11Q9WbDSjhfOcK4YJiWLKU2yMEhd+opeXNQEw40/pnrRUC9jYVltOc1HmSq hYKkejtWoYr+g== Date: Fri, 2 Jun 2023 09:05:39 -0700 From: Jakub Kicinski To: "Russell King (Oracle)" Cc: Andrew Lunn , Heiner Kallweit , "David S. Miller" , Eric Dumazet , Paolo Abeni , Dan Carpenter , Oleksij Rempel , netdev@vger.kernel.org Subject: Re: [PATCH net-next] net: phylib: fix phy_read*_poll_timeout() Message-ID: <20230602090539.6a4fa374@kernel.org> In-Reply-To: References: <20230601213345.3aaee66a@kernel.org> <20230601213509.7ef8f199@kernel.org> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 2 Jun 2023 09:53:09 +0100 Russell King (Oracle) wrote: > > Yes it is :) All this to save the single line of assignment > > after the read_poll_timeout() "call" ? > > Okay, so it seems you don't like it. We can't fix it then, and we'll > have to go with the BUILD_BUG_ON() forcing all users to use a signed > varable (which better be larger than a s8 so negative errnos can fit) > or we just rely on Dan to report the problems. Wait, did the version I proposed not work? https://lore.kernel.org/all/20230530121910.05b9f837@kernel.org/ I just think the assignment inside the first argument is unnecessarily unreadable. Maybe it's just me.