linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] csky: delete redundant micro io_remap_pfn_range
@ 2020-03-18  4:47 Wang Wenhu
  2020-03-18  7:36 ` Mike Rapoport
  2020-03-21 11:22 ` Guo Ren
  0 siblings, 2 replies; 3+ messages in thread
From: Wang Wenhu @ 2020-03-18  4:47 UTC (permalink / raw)
  To: Guo Ren, Will Deacon, Thomas Gleixner, Andrew Morton,
	Mike Rapoport, Wang Wenhu, linux-csky, linux-kernel
  Cc: kernel, trivial

Same definition exists in "include/asm-generic/pgtable.h",
which is included just below the lines to be deleted.

#ifndef io_remap_pfn_range
#define io_remap_pfn_range remap_pfn_range
#endif

Signed-off-by: Wang Wenhu <wenhu.wang@vivo.com>
---
 arch/csky/include/asm/pgtable.h | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/csky/include/asm/pgtable.h b/arch/csky/include/asm/pgtable.h
index 9b7764cb7645..bde812a785c8 100644
--- a/arch/csky/include/asm/pgtable.h
+++ b/arch/csky/include/asm/pgtable.h
@@ -306,9 +306,6 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long address,
 /* Needs to be defined here and not in linux/mm.h, as it is arch dependent */
 #define kern_addr_valid(addr)	(1)
 
-#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
-	remap_pfn_range(vma, vaddr, pfn, size, prot)
-
 #include <asm-generic/pgtable.h>
 
 #endif /* __ASM_CSKY_PGTABLE_H */
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] csky: delete redundant micro io_remap_pfn_range
  2020-03-18  4:47 [PATCH] csky: delete redundant micro io_remap_pfn_range Wang Wenhu
@ 2020-03-18  7:36 ` Mike Rapoport
  2020-03-21 11:22 ` Guo Ren
  1 sibling, 0 replies; 3+ messages in thread
From: Mike Rapoport @ 2020-03-18  7:36 UTC (permalink / raw)
  To: Wang Wenhu
  Cc: Guo Ren, Will Deacon, Thomas Gleixner, Andrew Morton, linux-csky,
	linux-kernel, kernel, trivial

On Tue, Mar 17, 2020 at 09:47:01PM -0700, Wang Wenhu wrote:
> Same definition exists in "include/asm-generic/pgtable.h",
> which is included just below the lines to be deleted.
> 
> #ifndef io_remap_pfn_range
> #define io_remap_pfn_range remap_pfn_range
> #endif
> 
> Signed-off-by: Wang Wenhu <wenhu.wang@vivo.com>

Acked-by: Mike Rapoport <rppt@linux.ibm.com>

> ---
>  arch/csky/include/asm/pgtable.h | 3 ---
>  1 file changed, 3 deletions(-)
> 
> diff --git a/arch/csky/include/asm/pgtable.h b/arch/csky/include/asm/pgtable.h
> index 9b7764cb7645..bde812a785c8 100644
> --- a/arch/csky/include/asm/pgtable.h
> +++ b/arch/csky/include/asm/pgtable.h
> @@ -306,9 +306,6 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long address,
>  /* Needs to be defined here and not in linux/mm.h, as it is arch dependent */
>  #define kern_addr_valid(addr)	(1)
>  
> -#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
> -	remap_pfn_range(vma, vaddr, pfn, size, prot)
> -
>  #include <asm-generic/pgtable.h>
>  
>  #endif /* __ASM_CSKY_PGTABLE_H */
> -- 
> 2.17.1
> 

-- 
Sincerely yours,
Mike.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] csky: delete redundant micro io_remap_pfn_range
  2020-03-18  4:47 [PATCH] csky: delete redundant micro io_remap_pfn_range Wang Wenhu
  2020-03-18  7:36 ` Mike Rapoport
@ 2020-03-21 11:22 ` Guo Ren
  1 sibling, 0 replies; 3+ messages in thread
From: Guo Ren @ 2020-03-21 11:22 UTC (permalink / raw)
  To: Wang Wenhu
  Cc: Will Deacon, Thomas Gleixner, Andrew Morton, Mike Rapoport,
	linux-csky, Linux Kernel Mailing List, kernel, trivial

Thx

Acked and queued.

On Wed, Mar 18, 2020 at 12:47 PM Wang Wenhu <wenhu.wang@vivo.com> wrote:
>
> Same definition exists in "include/asm-generic/pgtable.h",
> which is included just below the lines to be deleted.
>
> #ifndef io_remap_pfn_range
> #define io_remap_pfn_range remap_pfn_range
> #endif
>
> Signed-off-by: Wang Wenhu <wenhu.wang@vivo.com>
> ---
>  arch/csky/include/asm/pgtable.h | 3 ---
>  1 file changed, 3 deletions(-)
>
> diff --git a/arch/csky/include/asm/pgtable.h b/arch/csky/include/asm/pgtable.h
> index 9b7764cb7645..bde812a785c8 100644
> --- a/arch/csky/include/asm/pgtable.h
> +++ b/arch/csky/include/asm/pgtable.h
> @@ -306,9 +306,6 @@ void update_mmu_cache(struct vm_area_struct *vma, unsigned long address,
>  /* Needs to be defined here and not in linux/mm.h, as it is arch dependent */
>  #define kern_addr_valid(addr)  (1)
>
> -#define io_remap_pfn_range(vma, vaddr, pfn, size, prot) \
> -       remap_pfn_range(vma, vaddr, pfn, size, prot)
> -
>  #include <asm-generic/pgtable.h>
>
>  #endif /* __ASM_CSKY_PGTABLE_H */
> --
> 2.17.1
>


-- 
Best Regards
 Guo Ren

ML: https://lore.kernel.org/linux-csky/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-03-21 11:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-18  4:47 [PATCH] csky: delete redundant micro io_remap_pfn_range Wang Wenhu
2020-03-18  7:36 ` Mike Rapoport
2020-03-21 11:22 ` Guo Ren

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).