Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp6233595ybh; Wed, 7 Aug 2019 20:03:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxdGsudhLzchp3p6PIAwJsQ1NDrNr6+F/8Z89pNUahFJWpSbvCHV8k6uPZYnAPtO/iqCAqp X-Received: by 2002:a17:902:e40f:: with SMTP id ci15mr11361049plb.103.1565233401884; Wed, 07 Aug 2019 20:03:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565233401; cv=none; d=google.com; s=arc-20160816; b=Twn8ciezYnoQHKuYWDU8/wk6g/QeqSuvHa1ozgDLccXqtSgYcOjQhSvC5dS0Ls4Wry xkOLAstZC5MDd19gWmZRq70FzZD80q1yaCtHaYi4b0hfPhNpcwu93sdCiVvs9YtmS1K0 YahWAxx0cJ7gSJa0i0tt5zdtEAT3IVq7P/j+MK1LTMNlLKyhYpmTQf/HWlUzBFkTL7JU wtlBANbGg64cYvMgClV7L6+TXAW3vUfCQQMQYyA9ga/zK8WMn2nvnw1O0d0h8FcbsFCn XXdGgt82U56hogA7Rn7lgMaGdrWUCeeeED2idVZ/brCwh1As/O160dtyuTv+Iew2TpiQ HA8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=3H0/T5yW0pWt/jUxuGpfSgfUAU5RslPhHYUvpjYZvPE=; b=gdGNyWu8x2tjTtG/bFsb13cJvwqKUXCNfVRXBgEUZ/H9dGM+TKNTwRj53MzojWmXJZ ep3wYIkTYJzp/9tIw2ldTEgHo24ktYT2gMI97LJffT4HHvZy8WqkVKdiHVnn6SyYqhgK UiQhbTa6xg5apE2Wpw73VI1MlMXTpiRvAln4SYrCouukL0cfhz+pAHKPznkSJi57lfRB DiKLlMLs/zS8y9L34mPLw4/X0r28Q5FnqpT/Kn2ghBZs3taDWfeiWMsdzx6Bc1cuhlrf eTOU5lgZ7VgLIbEDeBVjGfjDhMLAAtbC9F+yeU/gI7tqAxQVqf3H2n7Ze2pdn2xpt69F R01Q== ARC-Authentication-Results: i=1; mx.google.com; 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 s19si50194251pgm.291.2019.08.07.20.03.05; Wed, 07 Aug 2019 20:03:21 -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; 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 S2389684AbfHHDCB (ORCPT + 99 others); Wed, 7 Aug 2019 23:02:01 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:58116 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389632AbfHHDCA (ORCPT ); Wed, 7 Aug 2019 23:02:00 -0400 Received: from gondolin.me.apana.org.au ([192.168.0.6] helo=gondolin.hengli.com.au) by fornost.hmeau.com with esmtps (Exim 4.89 #2 (Debian)) id 1hvYgg-0001B1-8I; Thu, 08 Aug 2019 13:01:58 +1000 Received: from herbert by gondolin.hengli.com.au with local (Exim 4.80) (envelope-from ) id 1hvYgf-0004H8-DD; Thu, 08 Aug 2019 13:01:57 +1000 Date: Thu, 8 Aug 2019 13:01:57 +1000 From: Herbert Xu To: Stephen Rothwell Cc: Linux Next Mailing List , Linux Kernel Mailing List , Chuhong Yuan Subject: Re: linux-next: build failure after merge of the crypto tree Message-ID: <20190808030156.GA15782@gondor.apana.org.au> References: <20190805145736.2d39f95b@canb.auug.org.au> <20190808115245.0c88c300@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190808115245.0c88c300@canb.auug.org.au> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 08, 2019 at 11:52:45AM +1000, Stephen Rothwell wrote: > Hi all, > > On Mon, 5 Aug 2019 14:57:36 +1000 Stephen Rothwell wrote: > > > > Hi all, > > > > After merging the crypto tree, today's linux-next build (sparc64 > > defconfig) failed like this: > > > > drivers/char/hw_random/n2-drv.c: In function 'n2rng_probe': > > drivers/char/hw_random/n2-drv.c:771:29: error: 'pdev' undeclared (first use in this function); did you mean 'cdev'? > > err = devm_hwrng_register(&pdev->dev, &np->hwrng); > > ^~~~ > > cdev > > drivers/char/hw_random/n2-drv.c:771:29: note: each undeclared identifier is reported only once for each function it appears in > > > > Caused by commit > > > > 3e75241be808 ("hwrng: drivers - Use device-managed registration API") > > > > I applied the following patch for today: > > > > From: Stephen Rothwell > > Date: Mon, 5 Aug 2019 14:49:59 +1000 > > Subject: [PATCH] hwrng: fix typo in n2-drv.c > > > > Fixes: 3e75241be808 ("hwrng: drivers - Use device-managed registration API") > > Signed-off-by: Stephen Rothwell > > --- > > drivers/char/hw_random/n2-drv.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/drivers/char/hw_random/n2-drv.c b/drivers/char/hw_random/n2-drv.c > > index 2d256b3470db..73e408146420 100644 > > --- a/drivers/char/hw_random/n2-drv.c > > +++ b/drivers/char/hw_random/n2-drv.c > > @@ -768,7 +768,7 @@ static int n2rng_probe(struct platform_device *op) > > np->hwrng.data_read = n2rng_data_read; > > np->hwrng.priv = (unsigned long) np; > > > > - err = devm_hwrng_register(&pdev->dev, &np->hwrng); > > + err = devm_hwrng_register(&op->dev, &np->hwrng); > > if (err) > > goto out_hvapi_unregister; > > > > -- > > 2.20.1 > > I am still applying that patch ... Sorry, I forgot about your patch as it wasn't cced to the crypto mailing list. It should be out there now. I've also added a compile test for this driver so at least it should fail for me on x86 too. Thanks, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt