ptdump.h (7ae9fb1b7ecbb5d85d07857943f677fd1a559b18) ptdump.h (a90f0a02f139a13d3c26dd20644b50fc731f17da)
1/* SPDX-License-Identifier: GPL-2.0 */
2/* Copyright (C) 2014 ARM Ltd. */
3#ifndef __ASM_PTDUMP_H
4#define __ASM_PTDUMP_H
5
6#ifdef CONFIG_ARM_PTDUMP_CORE
7
8#include <linux/mm_types.h>

--- 18 unchanged lines hidden (view full) ---

27static inline void ptdump_debugfs_register(struct ptdump_info *info,
28 const char *name) { }
29#endif /* CONFIG_ARM_PTDUMP_DEBUGFS */
30
31void ptdump_check_wx(void);
32
33#endif /* CONFIG_ARM_PTDUMP_CORE */
34
1/* SPDX-License-Identifier: GPL-2.0 */
2/* Copyright (C) 2014 ARM Ltd. */
3#ifndef __ASM_PTDUMP_H
4#define __ASM_PTDUMP_H
5
6#ifdef CONFIG_ARM_PTDUMP_CORE
7
8#include <linux/mm_types.h>

--- 18 unchanged lines hidden (view full) ---

27static inline void ptdump_debugfs_register(struct ptdump_info *info,
28 const char *name) { }
29#endif /* CONFIG_ARM_PTDUMP_DEBUGFS */
30
31void ptdump_check_wx(void);
32
33#endif /* CONFIG_ARM_PTDUMP_CORE */
34
35#ifdef CONFIG_DEBUG_WX
36#define debug_checkwx() ptdump_check_wx()
35#ifdef CONFIG_ARM_DEBUG_WX
36#define arm_debug_checkwx() ptdump_check_wx()
37#else
37#else
38#define debug_checkwx() do { } while (0)
38#define arm_debug_checkwx() do { } while (0)
39#endif
40
41#endif /* __ASM_PTDUMP_H */
39#endif
40
41#endif /* __ASM_PTDUMP_H */