From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753900AbdGJM2M (ORCPT ); Mon, 10 Jul 2017 08:28:12 -0400 Received: from mail.free-electrons.com ([62.4.15.54]:37121 "EHLO mail.free-electrons.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753233AbdGJM2L (ORCPT ); Mon, 10 Jul 2017 08:28:11 -0400 Date: Mon, 10 Jul 2017 14:28:09 +0200 From: Alexandre Belloni To: Arnd Bergmann Cc: Srinivas Kandagatla , linux-kernel@vger.kernel.org Subject: Re: [PATCH] nvmem: include linux/err.h from header Message-ID: <20170710122809.qvf4be5o2b2strh7@piout.net> References: <20170710112300.958195-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170710112300.958195-1-arnd@arndb.de> User-Agent: NeoMutt/20170609 (1.8.3) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/07/2017 at 13:22:50 +0200, Arnd Bergmann wrote: > The new support for nvmem devices from the rtc layer caused a build > error in some configurations: > > include/linux/nvmem-provider.h: In function 'nvmem_register': > include/linux/nvmem-provider.h:51:9: error: implicit declaration of function 'ERR_PTR' [-Werror=implicit-function-declaration] > > This adds the missing include to ensure we can always include > the header. > > Fixes: 697e5a47aa12 ("rtc: add generic nvmem support") > Signed-off-by: Arnd Bergmann > --- > I'd suggest adding this patch in the rtc tree on top of the > nvmem support there. > --- > include/linux/nvmem-provider.h | 3 +++ > 1 file changed, 3 insertions(+) > Applied, thanks. -- Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com