linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
From: Mike Rapoport <rppt@kernel.org>
To: Thorsten Blum <thorsten.blum@linux.dev>
Cc: Russell King <linux@armlinux.org.uk>,
	David Hildenbrand <david@redhat.com>,
	Andrew Morton <akpm@linux-foundation.org>,
	linux-arm-kernel@lists.infradead.org,
	linux-kernel@vger.kernel.org
Subject: Re: [RESEND PATCH] arm/pgtable: Remove duplicate included header file
Date: Wed, 25 Dec 2024 15:42:15 +0200	[thread overview]
Message-ID: <Z2wLt6V1zwtGnJYk@kernel.org> (raw)
In-Reply-To: <20241225123037.444716-2-thorsten.blum@linux.dev>

On Wed, Dec 25, 2024 at 01:30:35PM +0100, Thorsten Blum wrote:
> The header file asm-generic/pgtable-nopud.h is included whether
> CONFIG_MMU is defined or not.
> 
> Include it only once before the #ifndef/#else/#endif preprocessor
> directives and remove the following make includecheck warning:
> 
>   asm-generic/pgtable-nopud.h is included more than once
> 
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>

Reviewed-by: Mike Rapoport (Microsoft) <rppt@kernel.org>

> ---
>  arch/arm/include/asm/pgtable.h | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/include/asm/pgtable.h b/arch/arm/include/asm/pgtable.h
> index be91e376df79..6b986ef6042f 100644
> --- a/arch/arm/include/asm/pgtable.h
> +++ b/arch/arm/include/asm/pgtable.h
> @@ -19,14 +19,13 @@ extern struct page *empty_zero_page;
>  #define ZERO_PAGE(vaddr)	(empty_zero_page)
>  #endif
>  
> -#ifndef CONFIG_MMU
> -
>  #include <asm-generic/pgtable-nopud.h>
> +
> +#ifndef CONFIG_MMU
>  #include <asm/pgtable-nommu.h>
>  
>  #else
>  
> -#include <asm-generic/pgtable-nopud.h>
>  #include <asm/page.h>
>  #include <asm/pgtable-hwdef.h>
>  
> -- 
> 2.47.1
> 

-- 
Sincerely yours,
Mike.


  reply	other threads:[~2024-12-25 13:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-12-25 12:30 [RESEND PATCH] arm/pgtable: Remove duplicate included header file Thorsten Blum
2024-12-25 13:42 ` Mike Rapoport [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-01-07 10:47 Thorsten Blum
2025-02-04 15:55 Thorsten Blum
2025-02-19 11:24 Thorsten Blum

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=Z2wLt6V1zwtGnJYk@kernel.org \
    --to=rppt@kernel.org \
    --cc=akpm@linux-foundation.org \
    --cc=david@redhat.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux@armlinux.org.uk \
    --cc=thorsten.blum@linux.dev \
    /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).