linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] memblock: Remove #ifdef __KERNEL__ from memblock.h
@ 2022-01-11 10:28 Karolina Drobnik
  2022-01-11 11:51 ` Mike Rapoport
  0 siblings, 1 reply; 2+ messages in thread
From: Karolina Drobnik @ 2022-01-11 10:28 UTC (permalink / raw)
  To: linux-mm, akpm, rppt; +Cc: linux-kernel, Karolina Drobnik

memblock.h is not a uAPI header, so __KERNEL__ guard can be deleted

Signed-off-by: Karolina Drobnik <karolinadrobnik@gmail.com>
---
 include/linux/memblock.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/linux/memblock.h b/include/linux/memblock.h
index 9dc7cb239d21..50ad19662a32 100644
--- a/include/linux/memblock.h
+++ b/include/linux/memblock.h
@@ -1,7 +1,6 @@
 /* SPDX-License-Identifier: GPL-2.0-or-later */
 #ifndef _LINUX_MEMBLOCK_H
 #define _LINUX_MEMBLOCK_H
-#ifdef __KERNEL__
 
 /*
  * Logical memory blocks.
@@ -605,6 +604,5 @@ static inline void early_memtest(phys_addr_t start, phys_addr_t end)
 }
 #endif
 
-#endif /* __KERNEL__ */
 
 #endif /* _LINUX_MEMBLOCK_H */
-- 
2.30.2


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

* Re: [PATCH] memblock: Remove #ifdef __KERNEL__ from memblock.h
  2022-01-11 10:28 [PATCH] memblock: Remove #ifdef __KERNEL__ from memblock.h Karolina Drobnik
@ 2022-01-11 11:51 ` Mike Rapoport
  0 siblings, 0 replies; 2+ messages in thread
From: Mike Rapoport @ 2022-01-11 11:51 UTC (permalink / raw)
  To: akpm, linux-mm, Karolina Drobnik; +Cc: Mike Rapoport, linux-kernel

On Tue, 11 Jan 2022 10:28:47 +0000, Karolina Drobnik wrote:
> memblock.h is not a uAPI header, so __KERNEL__ guard can be deleted
> 
> 

Applied, thanks!

[1/1] memblock: Remove #ifdef __KERNEL__ from memblock.h
      commit: a59466ee91aaa9d43889a4c51e01de087d188448

Best regards,
-- 
Sincerely yours,
Mike.


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

end of thread, other threads:[~2022-01-11 11:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-11 10:28 [PATCH] memblock: Remove #ifdef __KERNEL__ from memblock.h Karolina Drobnik
2022-01-11 11:51 ` Mike Rapoport

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