Skip to contentSkip to conversation

memblock: Remove #ifdef __KERNEL__ from memblock.h

PATCH Applied Karolina Drobnik 2 participants 2 messages Jan 11, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 memblock: Remove #ifdef __KERNEL__ from memblock.h

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

---
 include/linux/memblock.h | 2 --
 1 file changed, 2 deletions(-)
include/linux/memblock.h +0 -2
index 9dc7cb239d21..50ad19662a32 100644
@@ -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 */
Signature · 1 line
2.30.2
maintainer Applied
#1 lore raw
Quoted 3 lines · Karolina Drobnik

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,

Signature · 2 lines
Sincerely yours,
Mike.