mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	The shared radix-tree build is not correctly recompiling when
lib/maple_tree.c and lib/test_maple_tree.c are modified - fix this by
adding these core components to the SHARED_DEPS list.
Additionally, add missing header guards to shared header files.
Link: https://lkml.kernel.org/r/20240924180724.112169-1-lorenzo.stoakes@oracle.com
Fixes: 74579d8dab ("tools: separate out shared radix-tree components")
Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Tested-by: Sidhartha Kumar <sidhartha.kumar@oracle.com>
Cc: "Liam R. Howlett" <Liam.Howlett@oracle.com>
Cc: Matthew Wilcox <willy@infradead.org>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
		
	
			
		
			
				
	
	
		
			37 lines
		
	
	
	
		
			598 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
	
		
			598 B
		
	
	
	
		
			C
		
	
	
	
	
	
/* SPDX-License-Identifier: GPL-2.0 */
 | 
						|
#ifndef __SHARED_H__
 | 
						|
#define __SHARED_H__
 | 
						|
 | 
						|
#include <linux/types.h>
 | 
						|
#include <linux/bug.h>
 | 
						|
#include <linux/kernel.h>
 | 
						|
#include <linux/bitops.h>
 | 
						|
 | 
						|
#include <linux/gfp.h>
 | 
						|
#include <linux/rcupdate.h>
 | 
						|
 | 
						|
#ifndef module_init
 | 
						|
#define module_init(x)
 | 
						|
#endif
 | 
						|
 | 
						|
#ifndef module_exit
 | 
						|
#define module_exit(x)
 | 
						|
#endif
 | 
						|
 | 
						|
#ifndef MODULE_AUTHOR
 | 
						|
#define MODULE_AUTHOR(x)
 | 
						|
#endif
 | 
						|
 | 
						|
#ifndef MODULE_LICENSE
 | 
						|
#define MODULE_LICENSE(x)
 | 
						|
#endif
 | 
						|
 | 
						|
#ifndef MODULE_DESCRIPTION
 | 
						|
#define MODULE_DESCRIPTION(x)
 | 
						|
#endif
 | 
						|
 | 
						|
#ifndef dump_stack
 | 
						|
#define dump_stack()	assert(0)
 | 
						|
#endif
 | 
						|
 | 
						|
#endif /* __SHARED_H__ */
 |