setup.h (4f2c0a4acffbec01079c28f839422e64ddeff004) | setup.h (acfa60dbe03802d6afd28401aa47801270e82021) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2 3#ifndef __ARM64_ASM_SETUP_H 4#define __ARM64_ASM_SETUP_H 5 6#include <linux/string.h> 7 8#include <uapi/asm/setup.h> --- 7 unchanged lines hidden (view full) --- 16extern phys_addr_t __fdt_pointer __initdata; 17extern u64 __cacheline_aligned boot_args[4]; 18 19static inline bool arch_parse_debug_rodata(char *arg) 20{ 21 extern bool rodata_enabled; 22 extern bool rodata_full; 23 | 1// SPDX-License-Identifier: GPL-2.0 2 3#ifndef __ARM64_ASM_SETUP_H 4#define __ARM64_ASM_SETUP_H 5 6#include <linux/string.h> 7 8#include <uapi/asm/setup.h> --- 7 unchanged lines hidden (view full) --- 16extern phys_addr_t __fdt_pointer __initdata; 17extern u64 __cacheline_aligned boot_args[4]; 18 19static inline bool arch_parse_debug_rodata(char *arg) 20{ 21 extern bool rodata_enabled; 22 extern bool rodata_full; 23 |
24 if (arg && !strcmp(arg, "full")) { | 24 if (!arg) 25 return false; 26 27 if (!strcmp(arg, "full")) { 28 rodata_enabled = rodata_full = true; 29 return true; 30 } 31 32 if (!strcmp(arg, "off")) { 33 rodata_enabled = rodata_full = false; 34 return true; 35 } 36 37 if (!strcmp(arg, "on")) { |
25 rodata_enabled = true; | 38 rodata_enabled = true; |
26 rodata_full = true; | 39 rodata_full = false; |
27 return true; 28 } 29 30 return false; 31} 32#define arch_parse_debug_rodata arch_parse_debug_rodata 33 34#endif | 40 return true; 41 } 42 43 return false; 44} 45#define arch_parse_debug_rodata arch_parse_debug_rodata 46 47#endif |