linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: Chen Gang <xili_gchen_5257@hotmail.com>
To: Arnd Bergmann <arnd@arndb.de>, linux-mm@kvack.org
Cc: linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org, akpm@linux-foundation.org,
	Chen Gang <gang.chen.5i5j@gmail.com>,
	Oleg Nesterov <oleg@redhat.com>
Subject: Re: [PATCH] mm: include linux/pfn.h for PHYS_PFN definition
Date: Fri, 20 Nov 2015 03:13:39 +0800	[thread overview]
Message-ID: <BLU436-SMTP20633C03AB00B1A9777C8C8B91B0@phx.gbl> (raw)
In-Reply-To: <5841074.QcbTqgbsZz@wuerfel>


On 11/19/15 20:41, Arnd Bergmann wrote:
> A change to asm-generic/memory_model.h caused a new build error
> in some configurations:
> 
> mach-clps711x/common.c:39:10: error: implicit declaration of function 'PHYS_PFN'
>    .pfn  = __phys_to_pfn(CLPS711X_PHYS_BASE),
> 
> This includes the linux/pfn.h header from the same file to avoid the
> error.
> 
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
> Fixes: bf1c6c9895de ("mm: add PHYS_PFN, use it in __phys_to_pfn()")
> ---
> I was listed as 'Cc' on the original patch, but don't see it in my inbox.
> 
> I can queue up the fixed version in the asm-generic tree if you like that,
> otherwise please fold this fixup into the patch, or drop it if we want to
> avoid the extra #include.
> 
> diff --git a/include/asm-generic/memory_model.h b/include/asm-generic/memory_model.h
> index c785a79d9385..5148150cc80b 100644
> --- a/include/asm-generic/memory_model.h
> +++ b/include/asm-generic/memory_model.h
> @@ -1,6 +1,8 @@
>  #ifndef __ASM_MEMORY_MODEL_H
>  #define __ASM_MEMORY_MODEL_H
>  
> +#include <linux/pfn.h>
> +

For me, it is OK, thanks.

>  #ifndef __ASSEMBLY__
>  
>  #if defined(CONFIG_FLATMEM)
> 

-- 
Chen Gang (陈刚)

Open, share, and attitude like air, water, and life which God blessed

--
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-11-19 19:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-19 12:41 Arnd Bergmann
2015-11-19 19:13 ` Chen Gang [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=BLU436-SMTP20633C03AB00B1A9777C8C8B91B0@phx.gbl \
    --to=xili_gchen_5257@hotmail.com \
    --cc=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=gang.chen.5i5j@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mm@kvack.org \
    --cc=oleg@redhat.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