Skip to content

Commit e882d6f

Browse files
huthandrom3da
authored andcommitted
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>
1 parent e1e481e commit e882d6f

File tree

2 files changed

+22
-12
lines changed

2 files changed

+22
-12
lines changed

arch/hexagon/include/asm/setup.h

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

arch/hexagon/include/uapi/asm/setup.h

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,9 @@
1717
* 02110-1301, USA.
1818
*/
1919

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
2822

2923
#include <asm-generic/setup.h>
3024

31-
extern char external_cmdline_buffer;
32-
33-
void __init setup_arch_memory(void);
34-
3525
#endif

0 commit comments

Comments
 (0)