linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Oleg Nesterov <oleg@redhat.com>
To: "Kirill A. Shutemov" <kirill@shutemov.name>
Cc: kbuild test robot <fengguang.wu@intel.com>,
	kbuild-all@01.org, Johannes Weiner <hannes@cmpxchg.org>,
	"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>,
	Paul Gortmaker <paul.gortmaker@windriver.com>
Subject: Re: [mmotm:master 371/385] mm/nommu.c:1248:30: error: 'vm_flags' redeclared as different kind of symbol
Date: Sun, 26 Jul 2015 15:57:21 +0200	[thread overview]
Message-ID: <20150726135721.GA23533@redhat.com> (raw)
In-Reply-To: <20150724093546.GA22732@node.dhcp.inet.fi>

Oh. I am really sorry. I broke NOMMU again, and this time I was really stupid.

And thanks a lot Kirill!

I am travelling till the end of the next week, can't be responsive until I return :/



On 07/24, Kirill A. Shutemov wrote:
>
> On Fri, Jul 24, 2015 at 06:46:09AM +0800, kbuild test robot wrote:
> > tree:   git://git.cmpxchg.org/linux-mmotm.git master
> > head:   61f5f835b6f06fbc233481b5d3c0afd71ecf54e8
> > commit: b9e95c5dd1134d35b6c9aeaa3967ab5b3945ba73 [371/385] mm, mpx: add "vm_flags_t vm_flags" arg to do_mmap_pgoff()
> > config: microblaze-nommu_defconfig (attached as .config)
> > reproduce:
> >   wget https://git.kernel.org/cgit/linux/kernel/git/wfg/lkp-tests.git/plain/sbin/make.cross -O ~/bin/make.cross
> >   chmod +x ~/bin/make.cross
> >   git checkout b9e95c5dd1134d35b6c9aeaa3967ab5b3945ba73
> >   # save the attached .config to linux build tree
> >   make.cross ARCH=microblaze 
> > 
> > All error/warnings (new ones prefixed by >>):
> > 
> >    mm/nommu.c: In function 'do_mmap':
> > >> mm/nommu.c:1248:30: error: 'vm_flags' redeclared as different kind of symbol
> >      unsigned long capabilities, vm_flags, result;
> >                                  ^
> >    mm/nommu.c:1241:15: note: previous definition of 'vm_flags' was here
> >        vm_flags_t vm_flags,
> >                   ^
> > 
> 
> This should fix the issue:
> 
> diff --git a/mm/nommu.c b/mm/nommu.c
> index 530eea5af989..af2196e35013 100644
> --- a/mm/nommu.c
> +++ b/mm/nommu.c
> @@ -1245,7 +1245,7 @@ unsigned long do_mmap(struct file *file,
>         struct vm_area_struct *vma;
>         struct vm_region *region;
>         struct rb_node *rb;
> -       unsigned long capabilities, vm_flags, result;
> +       unsigned long capabilities, result;
>         int ret;
>  
>         *populate = 0;
> @@ -1263,7 +1263,7 @@ unsigned long do_mmap(struct file *file,
>  
>         /* we've determined that we can make the mapping, now translate what we
>          * now know into VMA flags */
> -       vm_flags = determine_vm_flags(file, prot, flags, capabilities);
> +       vm_flags |= determine_vm_flags(file, prot, flags, capabilities);
>  
>         /* we're going to need to record the mapping */
>         region = kmem_cache_zalloc(vm_region_jar, GFP_KERNEL);
> -- 
>  Kirill A. Shutemov

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

      reply	other threads:[~2015-07-26 13:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-23 22:46 [mmotm:master 371/385] mm/nommu.c:1248:30: error: 'vm_flags' redeclared as different kind of symbol kbuild test robot
2015-07-24  9:35 ` Kirill A. Shutemov
2015-07-26 13:57   ` Oleg Nesterov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150726135721.GA23533@redhat.com \
    --to=oleg@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=fengguang.wu@intel.com \
    --cc=hannes@cmpxchg.org \
    --cc=kbuild-all@01.org \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=kirill@shutemov.name \
    --cc=linux-mm@kvack.org \
    --cc=paul.gortmaker@windriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).