Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp180413ybp; Thu, 10 Oct 2019 16:09:11 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSqGKgM99PrEWqGNb5JhNk+ieD05GR3MHdkWAW7FSB2mx+5G1H1+H98YwFZXxEGmqYvfzb X-Received: by 2002:a17:906:5381:: with SMTP id g1mr10674019ejo.159.1570748951214; Thu, 10 Oct 2019 16:09:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570748951; cv=none; d=google.com; s=arc-20160816; b=vXvkWGs16/1OoMmPZmjITvvK04H82HQ1MhC4C0BInZuN/XrAFMv5QkodjZu4lkB+h9 sudvyXzYpKhqs2LMGmUo3d+7f1sX/mzI+UakxfW9v2ThDpspuAzIUdVlhLFPs4iicNKd aDtsKAwRElzp4eo5Vloj35247rHL8W5NZ5ntDANT1PiSTVPcwHgmbFbA3YMiRT+/G0R9 5vJ4aGLK1TTatEFh33uHi2vbuUjFWz8RDSZH3alR9ijNFIsCGV5B26wm2FYzR/assXqf Vp4U7ba+ZDt/eoPNNPKsCkslV0xrVeSSSf8dJsde/x5WyWryFwtx60hv70cUM6E9b11T JfWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=dYnCAzmD3179JkW0E6N8o5l09Fg+PCFocJZQOrrariI=; b=JiVa5C6XeN+p7n35BmWYcgghFdSpODWBdjbr1RvHIlN/yRh8hlRFEaaK3bM7j9ACKN SpdYSPO3J8Hm6BSV/4WdeG4O70HWU7G+8mZ1LQ6APiwQcNB9WHrBRjAvT6wsw5U8aaC/ parmf5FWCGNnk0wU8KqSApZ6Bd6/3aMb2K7brep50bLoPP/vWQbQREG++u4ciw/v4FA1 hhs5gZa2Z0XFlbpdUoX8YSCMDn29c2cQt8YMWqRjp18P/LlZzCcaryr2ZssogWlRVfrs 7V+fnRQOqtKIkasgtLt0GYiT0RcoT0oMBc8yx13j22OvS502Du3E7x5jAKlaCZcZWqId a5sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=XPQ801Ez; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 17si4014798ejt.419.2019.10.10.16.08.47; Thu, 10 Oct 2019 16:09:11 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=XPQ801Ez; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726830AbfJJXI2 (ORCPT + 99 others); Thu, 10 Oct 2019 19:08:28 -0400 Received: from mail-qk1-f196.google.com ([209.85.222.196]:44231 "EHLO mail-qk1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725959AbfJJXI2 (ORCPT ); Thu, 10 Oct 2019 19:08:28 -0400 Received: by mail-qk1-f196.google.com with SMTP id u22so7170207qkk.11 for ; Thu, 10 Oct 2019 16:08:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=dYnCAzmD3179JkW0E6N8o5l09Fg+PCFocJZQOrrariI=; b=XPQ801EzPkG17GtmU1S/+KK8zhmpjyB/xBW0Sd4RJf7vwIJ0liylR5xxzgUrkN/0h2 uJW87DASagG5yucss5IrAV9YQQtALoM4cIMNoEZRZ7w2KBG9h7Hs9saBiMarbioO0QRq Vq3mb1n0ru5sD65vh5SpkmMJnpgylTemb7Agl3N9cG+hxckq7RNt9B92uNS6QHP4Kh5N rpQPLfnAfc2o8c2TXqIfdD3yYaO43G9A4A3Ip2Nz5QU4keuiWDiUcrn7Ko/IavpjzswR nB1YnXUEmcjwdELpAVxgPoqqz+xSu90qzzFOksFXZ1xzbPjljVxuY3xbEeKKrCLHJCbF OQ5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:organization:mime-version:content-transfer-encoding; bh=dYnCAzmD3179JkW0E6N8o5l09Fg+PCFocJZQOrrariI=; b=jTMycr8u5vATKFIhDoPtkjMG+fWqjQ6YyolDu90XhK3l+37WWekcS4Xp+SrGSbWMmr sE6ydJLSnPSL7gXqbMxgtYXilpMfb/WX85EFgSt6GWwva9RstmVI3dHW71OO5o97ZOP9 FJQyraq4vvNNf/UapdZN0oPIB2TKOZJHVcxR6Cbb68Cagj/g4sgYmFMfn9QBTIyuwdHJ 1R6ZrZWa1+YujG91vhVogr4kqP9L+KZ1wKAHkMmmAmudZ7kpQGjsU0nzOoMM9cTLj19n cGMzr6opW8OxGe81vUchUpVW/W469kmPGWq6c5NpTg/TFl7YhOzv47BytqvfPAArqs7I f1aQ== X-Gm-Message-State: APjAAAXy772OG7sHPQb14aSM9MTsmL8zFD3PpjXXHhS37Dnmu4B3f+FR n6YzTo1Dm/jplzfKk0RDVJPVPg== X-Received: by 2002:a37:bd03:: with SMTP id n3mr12653858qkf.47.1570748907378; Thu, 10 Oct 2019 16:08:27 -0700 (PDT) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id x76sm3228371qkb.29.2019.10.10.16.08.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2019 16:08:27 -0700 (PDT) Date: Thu, 10 Oct 2019 16:08:11 -0700 From: Jakub Kicinski To: Anson Huang Cc: fugang.duan@nxp.com, davem@davemloft.net, gregkh@linuxfoundation.org, andy.shevchenko@gmail.com, rafael.j.wysocki@intel.com, swboyd@chromium.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Linux-imx@nxp.com Subject: Re: [PATCH 1/2] net: fec_main: Use platform_get_irq_byname_optional() to avoid error message Message-ID: <20191010160811.7775c819@cakuba.netronome.com> In-Reply-To: <1570616148-11571-1-git-send-email-Anson.Huang@nxp.com> References: <1570616148-11571-1-git-send-email-Anson.Huang@nxp.com> Organization: Netronome Systems, Ltd. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 9 Oct 2019 18:15:47 +0800, Anson Huang wrote: > Failed to get irq using name is NOT fatal as driver will use index > to get irq instead, use platform_get_irq_byname_optional() instead > of platform_get_irq_byname() to avoid below error message during > probe: >=20 > [ 0.819312] fec 30be0000.ethernet: IRQ int0 not found > [ 0.824433] fec 30be0000.ethernet: IRQ int1 not found > [ 0.829539] fec 30be0000.ethernet: IRQ int2 not found >=20 > Fixes: 7723f4c5ecdb ("driver core: platform: Add an error message to plat= form_get_irq*()") > Signed-off-by: Anson Huang Hi Anson, looks like there may be some dependency which haven't landed in the networking tree yet? Because this doesn't build: drivers/net/ethernet/freescale/fec_main.c: In function =E2=80=98fec_probe= =E2=80=99: drivers/net/ethernet/freescale/fec_main.c:3561:9: error: implicit declarati= on of function =E2=80=98platform_get_irq_byname_optional=E2=80=99; did you = mean =E2=80=98platform_get_irq_optional=E2=80=99? [-Werror=3Dimplicit-funct= ion-declaration] 3561 | irq =3D platform_get_irq_byname_optional(pdev, irq_name); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | platform_get_irq_optional cc1: some warnings being treated as errors Could you please repost once that's resolved? Please add Andy's and Stephen's acks when reposting. Thank you!