mirror of
				https://github.com/torvalds/linux.git
				synced 2025-10-31 16:48:26 +02:00 
			
		
		
		
	 50fb0a7f43
			
		
	
	
		50fb0a7f43
		
			
		
	
	
	
	
		
			
			Attempting to build orangefs with W=1 currently reports errors like:
In file included from ../fs/orangefs/protocol.h:287,
                 from ../fs/orangefs/waitqueue.c:16:
../fs/orangefs/orangefs-debug.h:86:18: error: ‘num_kmod_keyword_mask_map’ defined but not used [-Werror=unused-const-variable=]
Move num_kmod_keyword_mask_map, s_kmod_keyword_mask_map and
struct __keyword_mask_s to orangefs-debugfs.c which is the only file
they're used in.
Signed-off-by: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Link: https://lore.kernel.org/r/20250305204734.1475264-3-willy@infradead.org
Tested-by: Mike Marshall <hubcap@omnibond.com>
Signed-off-by: Christian Brauner <brauner@kernel.org>
		
	
			
		
			
				
	
	
		
			46 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
	
		
			1.4 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /* SPDX-License-Identifier: GPL-2.0 */
 | |
| /*
 | |
|  * (C) 2001 Clemson University and The University of Chicago
 | |
|  *
 | |
|  * See COPYING in top-level directory.
 | |
|  */
 | |
| 
 | |
| /* This file just defines debugging masks to be used with the gossip
 | |
|  * logging utility.  All debugging masks for ORANGEFS are kept here to make
 | |
|  * sure we don't have collisions.
 | |
|  */
 | |
| 
 | |
| #ifndef __ORANGEFS_DEBUG_H
 | |
| #define __ORANGEFS_DEBUG_H
 | |
| 
 | |
| #ifdef __KERNEL__
 | |
| #include <linux/types.h>
 | |
| #include <linux/kernel.h>
 | |
| #else
 | |
| #include <stdint.h>
 | |
| #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
 | |
| #endif
 | |
| 
 | |
| #define	GOSSIP_NO_DEBUG			(__u64)0
 | |
| 
 | |
| #define GOSSIP_SUPER_DEBUG		((__u64)1 << 0)
 | |
| #define GOSSIP_INODE_DEBUG		((__u64)1 << 1)
 | |
| #define GOSSIP_FILE_DEBUG		((__u64)1 << 2)
 | |
| #define GOSSIP_DIR_DEBUG		((__u64)1 << 3)
 | |
| #define GOSSIP_UTILS_DEBUG		((__u64)1 << 4)
 | |
| #define GOSSIP_WAIT_DEBUG		((__u64)1 << 5)
 | |
| #define GOSSIP_ACL_DEBUG		((__u64)1 << 6)
 | |
| #define GOSSIP_DCACHE_DEBUG		((__u64)1 << 7)
 | |
| #define GOSSIP_DEV_DEBUG		((__u64)1 << 8)
 | |
| #define GOSSIP_NAME_DEBUG		((__u64)1 << 9)
 | |
| #define GOSSIP_BUFMAP_DEBUG		((__u64)1 << 10)
 | |
| #define GOSSIP_CACHE_DEBUG		((__u64)1 << 11)
 | |
| #define GOSSIP_DEBUGFS_DEBUG		((__u64)1 << 12)
 | |
| #define GOSSIP_XATTR_DEBUG		((__u64)1 << 13)
 | |
| #define GOSSIP_INIT_DEBUG		((__u64)1 << 14)
 | |
| #define GOSSIP_SYSFS_DEBUG		((__u64)1 << 15)
 | |
| 
 | |
| #define GOSSIP_MAX_NR                 16
 | |
| #define GOSSIP_MAX_DEBUG              (((__u64)1 << GOSSIP_MAX_NR) - 1)
 | |
| 
 | |
| #endif /* __ORANGEFS_DEBUG_H */
 |