printf: Remove unused 'bprintf'
[drm/drm-misc.git] / include / linux / secretmem.h
blobe918f96881f569a4c334346a274c342ff97834ed
1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
2 #ifndef _LINUX_SECRETMEM_H
3 #define _LINUX_SECRETMEM_H
5 #ifdef CONFIG_SECRETMEM
7 extern const struct address_space_operations secretmem_aops;
9 static inline bool secretmem_mapping(struct address_space *mapping)
11 return mapping->a_ops == &secretmem_aops;
14 bool vma_is_secretmem(struct vm_area_struct *vma);
15 bool secretmem_active(void);
17 #else
19 static inline bool vma_is_secretmem(struct vm_area_struct *vma)
21 return false;
24 static inline bool secretmem_mapping(struct address_space *mapping)
26 return false;
29 static inline bool secretmem_active(void)
31 return false;
34 #endif /* CONFIG_SECRETMEM */
36 #endif /* _LINUX_SECRETMEM_H */