From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759494AbaCUG6y (ORCPT ); Fri, 21 Mar 2014 02:58:54 -0400 Received: from mail-lb0-f175.google.com ([209.85.217.175]:58716 "EHLO mail-lb0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754174AbaCUG6w (ORCPT ); Fri, 21 Mar 2014 02:58:52 -0400 Date: Fri, 21 Mar 2014 09:55:02 +0300 From: Sergey Senozhatsky To: Andrew Morton Cc: Sergey Senozhatsky , Minchan Kim , Nitin Gupta , Arnd Bergmann , Jerome Marchand , linux-kernel@vger.kernel.org Subject: Re: [PATCH] zram: include err.h in zram_drv Message-ID: <20140321065502.GB442@swordfish> References: <1395349323-18838-1-git-send-email-sergey.senozhatsky@gmail.com> <20140320144441.68662e5efa9c5d6f4abd581e@linux-foundation.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140320144441.68662e5efa9c5d6f4abd581e@linux-foundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On (03/20/14 14:44), Andrew Morton wrote: > > zcomp returns error-valued pointer, also include err.h header > > in zram_drv. > > > > Per Arnd Bergmann: > > The zram driver uses the ERR_PTR macro defined in > > and relies on this header to be included implicitly through > > other headers, which is not (always) the case on the ARM architecture. > > > > ... > > > > --- a/drivers/block/zram/zram_drv.c > > +++ b/drivers/block/zram/zram_drv.c > > @@ -31,6 +31,7 @@ > > #include > > #include > > #include > > +#include > > > > #include "zram_drv.h" > > I can find no occurrence of ERR_PTR in any version of > drivers/block/zram/zram_drv.c which I can find. > > zram-return-error-valued-pointer-from-zcomp_create.patch adds IS_ERR to > drivers/block/zram/zram_drv.c which is presumably what you meant. > yes. sorry for inconvenience. > zram-return-error-valued-pointer-from-zcomp_create.patch also adds > ERR_PTR() calls into drivers/block/zram/zcomp.c so that file should > include err.h also. > missing direct include of err.h in zcomp.h was reported and fixed by Arnd Bergmann https://lkml.org/lkml/2014/3/15/39 -ss > > Here's what I added, as > zram-return-error-valued-pointer-from-zcomp_create-fix-2.patch > > From: Sergey Senozhatsky > Subject: zram: include err.h > > [akpm@linux-foundation.org: fix zcomp.h as well] > Signed-off-by: Sergey Senozhatsky > Reported-by: Arnd Bergmann > Signed-off-by: Andrew Morton > --- > > drivers/block/zram/zcomp.c | 1 + > drivers/block/zram/zram_drv.c | 1 + > 2 files changed, 2 insertions(+) > > diff -puN drivers/block/zram/zram_drv.c~zram-include-errh-in-zram_drv drivers/block/zram/zram_drv.c > --- a/drivers/block/zram/zram_drv.c~zram-include-errh-in-zram_drv > +++ a/drivers/block/zram/zram_drv.c > @@ -31,6 +31,7 @@ > #include > #include > #include > +#include > > #include "zram_drv.h" > > diff -puN drivers/block/zram/zcomp.c~zram-include-errh-in-zram_drv drivers/block/zram/zcomp.c > --- a/drivers/block/zram/zcomp.c~zram-include-errh-in-zram_drv > +++ a/drivers/block/zram/zcomp.c > @@ -9,6 +9,7 @@ > > #include > #include > +#include > #include > #include > #include > _ >