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=-3.8 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS 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 C04A6C43603 for ; Tue, 17 Dec 2019 03:20:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9C9D521835 for ; Tue, 17 Dec 2019 03:20:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727224AbfLQDUu (ORCPT ); Mon, 16 Dec 2019 22:20:50 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:59272 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726296AbfLQDUr (ORCPT ); Mon, 16 Dec 2019 22:20:47 -0500 Received: from localhost (unknown [IPv6:2601:601:9f00:1c3::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 4BBC414249633; Mon, 16 Dec 2019 19:20:46 -0800 (PST) Date: Mon, 16 Dec 2019 19:20:45 -0800 (PST) Message-Id: <20191216.192045.2284012320875217079.davem@davemloft.net> To: o.rempel@pengutronix.de Cc: jcliburn@gmail.com, chris.snook@gmail.com, andrew@lunn.ch, kernel@pengutronix.de, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] net: ag71xx: fix compile warnings From: David Miller In-Reply-To: <20191216064407.32310-1-o.rempel@pengutronix.de> References: <20191216064407.32310-1-o.rempel@pengutronix.de> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Mon, 16 Dec 2019 19:20:46 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Oleksij Rempel Date: Mon, 16 Dec 2019 07:44:07 +0100 > drivers/net/ethernet/atheros/ag71xx.c: In function 'ag71xx_probe': > drivers/net/ethernet/atheros/ag71xx.c:1776:30: warning: passing argument 2 of > 'of_get_phy_mode' makes pointer from integer without a cast [-Wint-conversion] > In file included from drivers/net/ethernet/atheros/ag71xx.c:33: > ./include/linux/of_net.h:15:69: note: expected 'phy_interface_t *' > {aka 'enum *'} but argument is of type 'int' > > Fixes: 0c65b2b90d13c1 ("net: of_get_phy_mode: Change API to solve int/unit warnings") > Signed-off-by: Oleksij Rempel This patch does not apply to the net tree.