Commit e882d6f7 authored by Thomas Huth's avatar Thomas Huth Committed by Brian Cain
Browse files

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: default avatarThomas Huth <thuth@redhat.com>
Link: https://lore.kernel.org/r/20240502173818.58152-1-thuth@redhat.com


Signed-off-by: default avatarBrian Cain <bcain@quicinc.com>
Signed-off-by: default avatarBrian Cain <brian.cain@oss.qualcomm.com>
parent e1e481ed
Loading
Loading
Loading
Loading
+20 −0
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
 * only version 2 as published by the Free Software Foundation.
 */

#ifndef _ASM_HEXAGON_SETUP_H
#define _ASM_HEXAGON_SETUP_H

#include <linux/init.h>
#include <uapi/asm/setup.h>

extern char external_cmdline_buffer;

void __init setup_arch_memory(void);

#endif
+2 −12
Original line number Diff line number Diff line
@@ -17,19 +17,9 @@
 * 02110-1301, USA.
 */

#ifndef _ASM_SETUP_H
#define _ASM_SETUP_H

#ifdef __KERNEL__
#include <linux/init.h>
#else
#define __init
#endif
#ifndef _UAPI_ASM_HEXAGON_SETUP_H
#define _UAPI_ASM_HEXAGON_SETUP_H

#include <asm-generic/setup.h>

extern char external_cmdline_buffer;

void __init setup_arch_memory(void);

#endif