Re: [PATCH v2 2/2] lib/test_bitmap: Fix address space when test user buffer

From: Guenter Roeck
Date: Thu Jan 09 2020 - 18:00:44 EST


On Thu, Jan 09, 2020 at 01:52:53PM -0800, Andrew Morton wrote:
> On Thu, 9 Jan 2020 23:04:59 +0200 Andy Shevchenko <andy.shevchenko@xxxxxxxxx> wrote:
>
> > On Thu, Jan 9, 2020 at 10:53 PM Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:
> > >
> > > On Thu, 9 Jan 2020 12:36:01 +0200 Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx> wrote:
> > >
> > > > Force address space to avoid the following warning:
> > > >
> > > > lib/test_bitmap.c:461:53: warning: incorrect type in argument 1 (different address spaces)
> > > > lib/test_bitmap.c:461:53: expected char const [noderef] <asn:1> *ubuf
> > > > lib/test_bitmap.c:461:53: got char const *in
> > >
> > > We did this in
> > >
> > > commit 17b6753ff08bc47f50da09f5185849172c598315
> > > Author: Andy Shevchenko <andriy.shevchenko@xxxxxxxxxxxxxxx>
> > > AuthorDate: Wed Dec 4 16:53:06 2019 -0800
> > > Commit: Linus Torvalds <torvalds@xxxxxxxxxxxxxxxxxxxx>
> > > CommitDate: Wed Dec 4 19:44:14 2019 -0800
> > >
> > > lib/test_bitmap: force argument of bitmap_parselist_user() to proper address space
> >
> > This is for "parseLIST", while new patch for "parse".
>
> Oh. This is a fix against the mm patch
> lib-add-test-for-bitmap_parse.patch. Please tell us such things!
>
> But [patch 1/2] is applicable to current mainline, yes?
>
Yes

Guenter