All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Gleixner <tglx@linutronix.de>
To: Baoyou Xie <baoyou.xie@linaro.org>
Cc: ralf@linux-mips.org, mingo@redhat.com, hpa@zytor.com,
	x86@kernel.org, arnd@arndb.de, akpm@linux-foundation.org,
	paul.burton@imgtec.com, chenhc@lemote.com,
	david.daney@cavium.com, kumba@gentoo.org,
	yamada.masahiro@socionext.com, kirill.shutemov@linux.intel.com,
	dave.hansen@linux.intel.com, toshi.kani@hpe.com,
	dan.j.williams@intel.com, luto@kernel.org, JBeulich@suse.com,
	linux-mips@linux-mips.org, linux-kernel@vger.kernel.org,
	linux-arch@vger.kernel.org, xie.baoyou@zte.com.cn
Subject: Re: [PATCH v2] mm: move phys_mem_access_prot_allowed() declaration to pgtable.h
Date: Tue, 13 Sep 2016 14:50:12 +0200 (CEST)	[thread overview]
Message-ID: <alpine.DEB.2.20.1609131449460.6233@nanos> (raw)
In-Reply-To: <1473751597-12139-1-git-send-email-baoyou.xie@linaro.org>

On Tue, 13 Sep 2016, Baoyou Xie wrote:

> We get 1 warning when building kernel with W=1:
> drivers/char/mem.c:220:12: warning: no previous prototype for 'phys_mem_access_prot_allowed' [-Wmissing-prototypes]
>  int __weak phys_mem_access_prot_allowed(struct file *file,
> 
> In fact, its declaration is spreading to several header files
> in different architecture, but need to be declare in common
> header file.
> 
> So this patch moves phys_mem_access_prot_allowed() to pgtable.h.
> 
> Signed-off-by: Baoyou Xie <baoyou.xie@linaro.org>
> ---
>  arch/mips/include/asm/pgtable.h      | 2 --
>  arch/x86/include/asm/pgtable_types.h | 2 --
>  include/asm-generic/pgtable.h        | 3 +++
>  3 files changed, 3 insertions(+), 4 deletions(-)

Acked-by: Thomas Gleixner <tglx@linutronix.de>

  reply	other threads:[~2016-09-13 12:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-13  7:26 Baoyou Xie
2016-09-13 12:50 ` Thomas Gleixner [this message]
2016-09-16 13:55 ` Ralf Baechle

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=alpine.DEB.2.20.1609131449460.6233@nanos \
    --to=tglx@linutronix.de \
    --cc=JBeulich@suse.com \
    --cc=akpm@linux-foundation.org \
    --cc=arnd@arndb.de \
    --cc=baoyou.xie@linaro.org \
    --cc=chenhc@lemote.com \
    --cc=dan.j.williams@intel.com \
    --cc=dave.hansen@linux.intel.com \
    --cc=david.daney@cavium.com \
    --cc=hpa@zytor.com \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=kumba@gentoo.org \
    --cc=linux-arch@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-mips@linux-mips.org \
    --cc=luto@kernel.org \
    --cc=mingo@redhat.com \
    --cc=paul.burton@imgtec.com \
    --cc=ralf@linux-mips.org \
    --cc=toshi.kani@hpe.com \
    --cc=x86@kernel.org \
    --cc=xie.baoyou@zte.com.cn \
    --cc=yamada.masahiro@socionext.com \
    --subject='Re: [PATCH v2] mm: move phys_mem_access_prot_allowed() declaration to pgtable.h' \
    /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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.