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 X-Spam-Level: X-Spam-Status: No, score=-2.0 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 44A59C4360C for ; Thu, 26 Sep 2019 13:25:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0D8A3222C2 for ; Thu, 26 Sep 2019 13:25:09 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.b="YK1CmwZf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726956AbfIZNZI (ORCPT ); Thu, 26 Sep 2019 09:25:08 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:39036 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726152AbfIZNZI (ORCPT ); Thu, 26 Sep 2019 09:25:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=68EUeIcqzm0IDdui4uPgc7+UzIGgJxLM3+5RWzrkNwE=; b=YK1CmwZfwg6eeemCn2ElCGJgdY NozcH3EE6/qRLVUs7Fg4CqJ8T+F51fxwBpYzogSQ2sxDV0GQla5QvtMecFwQYLymANLdEn2dXrmyD 0k4vScol/2OBcc/fTNVEA6r7rYIde5/4xCYZ6VCcU+RuiGygWlvGfg/s+l+rc2qxtTfc=; Received: from andrew by vps0.lunn.ch with local (Exim 4.89) (envelope-from ) id 1iDTlS-0002X1-92; Thu, 26 Sep 2019 15:24:58 +0200 Date: Thu, 26 Sep 2019 15:24:58 +0200 From: Andrew Lunn To: Dan Carpenter Cc: "Alvaro G. M" , Radhey Shyam Pandey , "David S. Miller" , Michal Simek , Russell King , netdev@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: Re: [PATCH net] net: axienet: fix a signedness bug in probe Message-ID: <20190926132458.GC20927@lunn.ch> References: <20190925105911.GI3264@mwanda> <20190925110542.GA21923@salem.gmr.ssr.upm.es> <20190926131811.GG29696@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190926131811.GG29696@kadam> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org > The get_phy_mode() function seem like they lend themselves to creating > these bugs. The ->phy_mode variables tend to be declared in the driver > so it would require quite a few patches to make them all int and I'm not > sure that's more beautiful. Andrew Lunn's idea to update the API would > probably be a good idea. Hi Dan I started on it. Once net-next has opened, and 0-day has compile tested my changes, i will post the code for review. Andrew