All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] memblock: remove stale #else and the code it protects
@ 2018-09-27 17:03 Mike Rapoport
  2018-10-19  8:17 ` Wei Yang
  0 siblings, 1 reply; 4+ messages in thread
From: Mike Rapoport @ 2018-09-27 17:03 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Alexander Duyck, Michal Hocko, linux-mm, linux-kernel, Mike Rapoport

During removal of HAVE_MEMBLOCK definition, the #else clause of the

	#ifdef CONFIG_HAVE_MEMBLOCK
		...
	#else
		...
	#endif

conditional was not removed.

Remove it now.

Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Reported-by: Alexander Duyck <alexander.duyck@gmail.com>
Cc: Michal Hocko <mhocko@suse.com>
---
 include/linux/memblock.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/include/linux/memblock.h b/include/linux/memblock.h
index d3bc270..d4d0e01 100644
--- a/include/linux/memblock.h
+++ b/include/linux/memblock.h
@@ -597,11 +597,6 @@ static inline void early_memtest(phys_addr_t start, phys_addr_t end)
 {
 }
 #endif
-#else
-static inline phys_addr_t memblock_alloc(phys_addr_t size, phys_addr_t align)
-{
-	return 0;
-}
 
 #endif /* __KERNEL__ */
 
-- 
2.7.4


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

end of thread, other threads:[~2018-10-22  1:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-27 17:03 [PATCH] memblock: remove stale #else and the code it protects Mike Rapoport
2018-10-19  8:17 ` Wei Yang
2018-10-21  7:30   ` Mike Rapoport
2018-10-22  1:35     ` Wei Yang

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.