Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hexagon: Move kernel prototypes out of uapi/asm/setup.h header

The kernel function prototypes are of no use for userspace and
shouldn't get exposed in an uapi header, so let's move them into
an internal header instead.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Link: https://lore.kernel.org/r/20240502173818.58152-1-thuth@redhat.com
Signed-off-by: Brian Cain <bcain@quicinc.com>
Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>

authored by

Thomas Huth and committed by
Brian Cain
e882d6f7 e1e481ed

+22 -12
+20
arch/hexagon/include/asm/setup.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0-only */ 2 + /* 3 + * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved. 4 + * 5 + * This program is free software; you can redistribute it and/or modify 6 + * it under the terms of the GNU General Public License version 2 and 7 + * only version 2 as published by the Free Software Foundation. 8 + */ 9 + 10 + #ifndef _ASM_HEXAGON_SETUP_H 11 + #define _ASM_HEXAGON_SETUP_H 12 + 13 + #include <linux/init.h> 14 + #include <uapi/asm/setup.h> 15 + 16 + extern char external_cmdline_buffer; 17 + 18 + void __init setup_arch_memory(void); 19 + 20 + #endif
+2 -12
arch/hexagon/include/uapi/asm/setup.h
··· 17 17 * 02110-1301, USA. 18 18 */ 19 19 20 - #ifndef _ASM_SETUP_H 21 - #define _ASM_SETUP_H 22 - 23 - #ifdef __KERNEL__ 24 - #include <linux/init.h> 25 - #else 26 - #define __init 27 - #endif 20 + #ifndef _UAPI_ASM_HEXAGON_SETUP_H 21 + #define _UAPI_ASM_HEXAGON_SETUP_H 28 22 29 23 #include <asm-generic/setup.h> 30 - 31 - extern char external_cmdline_buffer; 32 - 33 - void __init setup_arch_memory(void); 34 24 35 25 #endif