linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Liviu Dudau <Liviu.Dudau@arm.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Peter Feiner <pfeiner@google.com>,
	Stephen Rothwell <sfr@canb.auug.org.au>,
	Bjorn Helgaas <bhelgaas@google.com>,
	"linux-next@vger.kernel.org" <linux-next@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: linux-next: manual merge of the akpm-current tree with the pci tree
Date: Fri, 26 Sep 2014 10:00:11 +0100	[thread overview]
Message-ID: <20140926090011.GH841@e106497-lin.cambridge.arm.com> (raw)
In-Reply-To: <20140925124744.b1e37bdbd5b4f4cfcfbb6505@linux-foundation.org>

On Thu, Sep 25, 2014 at 08:47:44PM +0100, Andrew Morton wrote:
> On Thu, 25 Sep 2014 12:30:00 -0700 Peter Feiner <pfeiner@google.com> wrote:
> 
> > On Thu, Sep 25, 2014 at 05:47:30PM +1000, Stephen Rothwell wrote:
> > > Hi Andrew,
> > > 
> > > Today's linux-next merge of the akpm-current tree got a conflict in
> > > include/asm-generic/pgtable.h between commit b766eafe6828 ("PCI: Add
> > > pci_remap_iospace() to map bus I/O resources") from the pci tree and
> > > commit 4cc2f91f2636 ("mm: softdirty: enable write notifications on VMAs
> > > after VM_SOFTDIRTY cleared") from the akpm-current tree.
> > > 
> > > I fixed it up (see below) and can carry the fix as necessary (no action
> > > is required).
> > > 
> > > -- 
> > > Cheers,
> > > Stephen Rothwell                    sfr@canb.auug.org.au
> > > 
> > > diff --cc include/asm-generic/pgtable.h
> > > index 977e545a64c3,f6acf1195182..000000000000
> > > --- a/include/asm-generic/pgtable.h
> > > +++ b/include/asm-generic/pgtable.h
> > > @@@ -249,10 -249,18 +249,22 @@@ static inline int pmd_same(pmd_t pmd_a
> > >   #define pgprot_writecombine pgprot_noncached
> > >   #endif
> > >   
> > >  +#ifndef pgprot_device
> > >  +#define pgprot_device pgprot_noncached
> > >  +#endif
> > >  +
> > > + #ifndef pgprot_modify
> > > + #define pgprot_modify pgprot_modify
> > > + static inline pgprot_t pgprot_modify(pgprot_t oldprot, pgprot_t newprot)
> > > + {
> > > + 	if (pgprot_val(oldprot) == pgprot_val(pgprot_noncached(oldprot)))
> > > + 		newprot = pgprot_noncached(newprot);
> > > + 	if (pgprot_val(oldprot) == pgprot_val(pgprot_writecombine(oldprot)))
> > > + 		newprot = pgprot_writecombine(newprot);
> > 
> > For completeness of the arch-independent pgprot-modify,
> > 
> > 	if (pgprot_val(oldprot) == pgprot_val(pgprot_device(oldprot)))
> > 		newprot = pgprot_device(newprot);
> > 
> > should be added here.
> > 

Thanks for noticing this Peter!

> 
> Tricky.  I've moved
> mm-softdirty-enable-write-notifications-on-vmas-after-vm_softdirty-cleared.paqtch
> to be staged after linux-next, so I'll merge it after PCI has merged. 
> And added this:
> 
> --- a/include/asm-generic/pgtable.h~mm-softdirty-enable-write-notifications-on-vmas-after-vm_softdirty-cleared-fix
> +++ a/include/asm-generic/pgtable.h
> @@ -261,6 +261,8 @@ static inline pgprot_t pgprot_modify(pgp
>  		newprot = pgprot_noncached(newprot);
>  	if (pgprot_val(oldprot) == pgprot_val(pgprot_writecombine(oldprot)))
>  		newprot = pgprot_writecombine(newprot);
> +	if (pgprot_val(oldprot) == pgprot_val(pgprot_device(oldprot)))
> +		newprot = pgprot_device(newprot);
>  	return newprot;
>  }
>  #endif
> _
> 

Thanks for the patch Andrew!

Best regards,
Liviu

-- 
====================
| I would like to |
| fix the world,  |
| but they're not |
| giving me the   |
 \ source code!  /
  ---------------
    ¯\_(ツ)_/¯

  reply	other threads:[~2014-09-26  9:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-25  7:47 linux-next: manual merge of the akpm-current tree with the pci tree Stephen Rothwell
2014-09-25 19:30 ` Peter Feiner
2014-09-25 19:47   ` Andrew Morton
2014-09-26  9:00     ` Liviu Dudau [this message]
  -- strict thread matches above, loose matches on Subject: below --
2018-07-10  6:57 Stephen Rothwell
2013-12-23  3:45 Stephen Rothwell

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=20140926090011.GH841@e106497-lin.cambridge.arm.com \
    --to=liviu.dudau@arm.com \
    --cc=akpm@linux-foundation.org \
    --cc=bhelgaas@google.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=pfeiner@google.com \
    --cc=sfr@canb.auug.org.au \
    /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).