Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1637297pxb; Wed, 10 Feb 2021 13:01:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJyI5Sx6GRG08Jl33oBatD6EpvyXKgde9f8maePM8UPsp1yiBbPWCPBpS/+r34QzZLOBXwuk X-Received: by 2002:a17:907:2d93:: with SMTP id gt19mr4770554ejc.246.1612990888427; Wed, 10 Feb 2021 13:01:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612990888; cv=none; d=google.com; s=arc-20160816; b=0S3iq+OwuNZXkyTwqs3MnWR7p3qhZqX5xvmElCLq4PNNtE4Am3ED3bitbW/9zog62E eWR10JbP9F1T5HAi/QFXUEA38/7oIfpV4HoaG4alRqzReOVZji25GgKJXJkUvQcRgOao j9RGYHyHYbDIoZJafzWtY/aCVC+piPEsKXHNar2lZfRUjKjFp8m55kVlKlGbGk7RZdRt W5Ao3A32B8NAwZNC79v1WdQxjD4UCoT4+zsxLMyrJmSGOBIp3MW89BvFBh1bOcFAok8d gX+BCZ80GePJUlWHjHxaNjIefYJkShxguLTKXTV20kiFMakuzW/BP99JTZpkRYrA9sqU HikQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=UaVkikHF/Bf62RyIS0dZ1q98Uve1CNh4rbZ0IAID08A=; b=cc80Sf4NaEVOMXokIW7AXa//sAurRzxbf9f93LWsT50qVwamEZQXivLJCvSjF1Ggi+ bO310ykx9ZdV8uSqC8CNq4tZlp2f5wRbZU0AZnOt95gVcEzaq+TWYSatI+3bc0RW5GWx I4vnfraOYnqXk3aA4dXC4cmLB/N2Fw0dHgbXFB9uSiPPHF2D2cZiJX+nyO0oKU2P1Ix6 QwY3c12nTJ5JZBm9rrrz7yyLsw+tdUqbzkSZTikfmUJVOjiCUii8wwRJe6zrpC3GRUBE B52n+6BEIw5Lcb+A+p7dIApwVEGinboSPoR37L4mQdvQ387mMJNjiJasc1YFpilJSnMe hiUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="O/7DHup6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id r16si2042544ejs.580.2021.02.10.13.01.03; Wed, 10 Feb 2021 13:01:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="O/7DHup6"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232738AbhBJVAX (ORCPT + 99 others); Wed, 10 Feb 2021 16:00:23 -0500 Received: from mail.kernel.org ([198.145.29.99]:50990 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231193AbhBJVAV (ORCPT ); Wed, 10 Feb 2021 16:00:21 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 194F764DE7; Wed, 10 Feb 2021 20:59:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1612990779; bh=8UVcBcBHgwUxXmdgoCQ0LoimmZZgbh9qAu0ypgoozQM=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=O/7DHup661kD7BHH5z8EHVcdfxNpadTFO7zBNfdUcfayg7KJcoNwsnei/VmtDu/ft 1AS19f9C3h0nMWSbGTnpkesv0ACKcdsyIHojzH9BS7jm9gjm3E5ztstpUWbp7Y+fSY frQS1JoJptmgYK4O0A6BRfjqZIlt4MAshvlS/rigIUJyN+V0ZCmAFo95rCExXnBbkQ HY5CmLtckc/uf8pMorCohr9FpbWPGhAY2IrADVKhSHxkH9+3JCIndCsGOGftq3I8SB XQ2UxhFYd27xbTyjVALvg1r8pWPL8xIlpDtsM+vrm2pKVZY+zC3CnGGnd3t0s2fGU2 1Fp86/Btwq1UQ== Received: by mail-ed1-f47.google.com with SMTP id v7so4634444eds.10; Wed, 10 Feb 2021 12:59:39 -0800 (PST) X-Gm-Message-State: AOAM530fNqxxP8OqmMbiUV1IZIlYe4XfUJko0qmrJV/EBo+JeBSkcps1 YddUOJjkjNZ0HD9x7YgkLpnZ7B1tc3Y5VvGAEw== X-Received: by 2002:a50:ee10:: with SMTP id g16mr5022978eds.62.1612990777710; Wed, 10 Feb 2021 12:59:37 -0800 (PST) MIME-Version: 1.0 References: <20210210214720.02e6a6be@canb.auug.org.au> In-Reply-To: From: Rob Herring Date: Wed, 10 Feb 2021 14:59:26 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: linux-next: build failure after merge of the driver-core tree To: Saravana Kannan Cc: Greg KH , Stephen Rothwell , Linux Kernel Mailing List , Linux Next Mailing List Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 10, 2021 at 2:44 PM Saravana Kannan wrote: > > On Wed, Feb 10, 2021 at 12:15 PM Rob Herring wrote: > > > > On Wed, Feb 10, 2021 at 1:17 PM Saravana Kannan wrote: > > > > > > On Wed, Feb 10, 2021 at 11:06 AM Saravana Kannan wrote: > > > > > > > > On Wed, Feb 10, 2021 at 10:18 AM Greg KH wrote: > > > > > > > > > > On Wed, Feb 10, 2021 at 09:47:20PM +1100, Stephen Rothwell wrote: > > > > > > Hi all, > > > > > > > > > > > > After merging the driver-core tree, today's linux-next build (sparc64 > > > > > > defconfig) failed like this: > > > > > > > > > > > > drivers/of/property.o: In function `parse_interrupts': > > > > > > property.c:(.text+0x14e0): undefined reference to `of_irq_parse_one' > > > > > > > > > > > > Caused by commit > > > > > > > > > > > > f265f06af194 ("of: property: Fix fw_devlink handling of interrupts/interrupts-extended") > > > > > > > > > > > > CONFIG_OF_IRQ depends on !SPARC so of_irq_parse_one() needs a stub. > > > > It's always Sparc! > > > > > > > > I have added the following patch for today. > > > > > > > > > > > > From: Stephen Rothwell > > > > > > Date: Wed, 10 Feb 2021 21:27:56 +1100 > > > > > > Subject: [PATCH] of: irq: make a stub for of_irq_parse_one() > > > > > > > > > > > > Signed-off-by: Stephen Rothwell > > > > > > --- > > > > > > include/linux/of_irq.h | 9 +++++++-- > > > > > > 1 file changed, 7 insertions(+), 2 deletions(-) > > > > > > > > Thanks Stephen! > > > > > > Actually the stub needs to return an error. 0 indicates it found the interrupt. > > > > I have a slight preference if you could add an 'if > > (!IS_ENABLED(CONFIG_OF_IRQ))' at the caller instead. > > > > If you grep of_irq_parse_one, you'll see there's only a few users > > which means it's on my hit list to make it private. Stub functions > > give the impression 'use everywhere'. > > I already sent out a fix :( Okay, it's fine. I misread Greg's mail. > Will that check optimize out the code and not cause build errors? If > so, I can send out a patch later. Yes, it will not trigger link errors. You could still get compile errors if say a struct member is ifdef'ed out. Rob