From: Alexandre Ghiti <alexghiti@rivosinc.com>
To: Greg KH <gregkh@linuxfoundation.org>,
Jonathan Corbet <corbet@lwn.net>,
Richard Henderson <richard.henderson@linaro.org>,
Ivan Kokshaysky <ink@jurassic.park.msu.ru>,
Matt Turner <mattst88@gmail.com>,
Vineet Gupta <vgupta@kernel.org>,
Russell King <linux@armlinux.org.uk>,
Catalin Marinas <catalin.marinas@arm.com>,
Will Deacon <will@kernel.org>,
Huacai Chen <chenhuacai@kernel.org>,
WANG Xuerui <kernel@xen0n.name>,
Geert Uytterhoeven <geert@linux-m68k.org>,
Michal Simek <monstr@monstr.eu>,
Thomas Bogendoerfer <tsbogend@alpha.franken.de>,
"James E . J . Bottomley" <James.Bottomley@HansenPartnership.com>,
Helge Deller <deller@gmx.de>,
Michael Ellerman <mpe@ellerman.id.au>,
Nicholas Piggin <npiggin@gmail.com>,
Christophe Leroy <christophe.leroy@csg>
Cc: Palmer Dabbelt <palmerdabbelt@google.com>,
Palmer Dabbelt <palmer@rivosinc.com>,
Alexandre Ghiti <alexghiti@rivosinc.com>
Subject: [PATCH v5 13/26] asm-generic: Remove COMMAND_LINE_SIZE from uapi
Date: Mon, 6 Mar 2023 11:04:55 +0100 [thread overview]
Message-ID: <20230306100508.1171812-14-alexghiti__48424.4275650539$1678098021$gmane$org@rivosinc.com> (raw)
In-Reply-To: <20230306100508.1171812-1-alexghiti@rivosinc.com>
From: Palmer Dabbelt <palmerdabbelt@google.com>
As far as I can tell this is not used by userspace and thus should not
be part of the user-visible API. Since <uapi/asm-generic/setup.h> only
contains COMMAND_LINE_SIZE we can just move it out of uapi to hide the
definition and fix up the only direct use in Loongarch.
Signed-off-by: Palmer Dabbelt <palmerdabbelt@google.com>
Link: https://lore.kernel.org/r/20210423025545.313965-1-palmer@dabbelt.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
---
Documentation/admin-guide/kernel-parameters.rst | 2 +-
arch/loongarch/include/asm/setup.h | 2 +-
arch/sh/include/asm/setup.h | 2 +-
include/asm-generic/Kbuild | 1 +
include/{uapi => }/asm-generic/setup.h | 0
include/uapi/asm-generic/Kbuild | 1 -
6 files changed, 4 insertions(+), 4 deletions(-)
rename include/{uapi => }/asm-generic/setup.h (100%)
diff --git a/Documentation/admin-guide/kernel-parameters.rst b/Documentation/admin-guide/kernel-parameters.rst
index 19600c50277b..2b94d5a42bd6 100644
--- a/Documentation/admin-guide/kernel-parameters.rst
+++ b/Documentation/admin-guide/kernel-parameters.rst
@@ -207,7 +207,7 @@ The number of kernel parameters is not limited, but the length of the
complete command line (parameters including spaces etc.) is limited to
a fixed number of characters. This limit depends on the architecture
and is between 256 and 4096 characters. It is defined in the file
-./include/uapi/asm-generic/setup.h as COMMAND_LINE_SIZE.
+./include/asm-generic/setup.h as COMMAND_LINE_SIZE.
Finally, the [KMG] suffix is commonly described after a number of kernel
parameter values. These 'K', 'M', and 'G' letters represent the _binary_
diff --git a/arch/loongarch/include/asm/setup.h b/arch/loongarch/include/asm/setup.h
index 72ead58039f3..86c99b183ea0 100644
--- a/arch/loongarch/include/asm/setup.h
+++ b/arch/loongarch/include/asm/setup.h
@@ -7,7 +7,7 @@
#define _LOONGARCH_SETUP_H
#include <linux/types.h>
-#include <uapi/asm/setup.h>
+#include <asm-generic/setup.h>
#define VECSIZE 0x200
diff --git a/arch/sh/include/asm/setup.h b/arch/sh/include/asm/setup.h
index fc807011187f..ae09b1c29fd1 100644
--- a/arch/sh/include/asm/setup.h
+++ b/arch/sh/include/asm/setup.h
@@ -2,7 +2,7 @@
#ifndef _SH_SETUP_H
#define _SH_SETUP_H
-#include <uapi/asm/setup.h>
+#include <asm-generic/setup.h>
/*
* This is set up by the setup-routine at boot-time
diff --git a/include/asm-generic/Kbuild b/include/asm-generic/Kbuild
index 941be574bbe0..0fb55a119f54 100644
--- a/include/asm-generic/Kbuild
+++ b/include/asm-generic/Kbuild
@@ -49,6 +49,7 @@ mandatory-y += preempt.h
mandatory-y += rwonce.h
mandatory-y += sections.h
mandatory-y += serial.h
+mandatory-y += setup.h
mandatory-y += shmparam.h
mandatory-y += simd.h
mandatory-y += softirq_stack.h
diff --git a/include/uapi/asm-generic/setup.h b/include/asm-generic/setup.h
similarity index 100%
rename from include/uapi/asm-generic/setup.h
rename to include/asm-generic/setup.h
diff --git a/include/uapi/asm-generic/Kbuild b/include/uapi/asm-generic/Kbuild
index ebb180aac74e..0e7122339ee9 100644
--- a/include/uapi/asm-generic/Kbuild
+++ b/include/uapi/asm-generic/Kbuild
@@ -20,7 +20,6 @@ mandatory-y += posix_types.h
mandatory-y += ptrace.h
mandatory-y += resource.h
mandatory-y += sembuf.h
-mandatory-y += setup.h
mandatory-y += shmbuf.h
mandatory-y += sigcontext.h
mandatory-y += siginfo.h
--
2.37.2
next prev parent reply other threads:[~2023-03-06 10:04 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20230306100508.1171812-1-alexghiti@rivosinc.com>
2023-03-06 10:04 ` [PATCH v5 01/26] alpha: Remove COMMAND_LINE_SIZE from uapi Alexandre Ghiti
2023-03-06 10:04 ` [PATCH v5 02/26] arm64: " Alexandre Ghiti
2023-03-06 10:04 ` [PATCH v5 03/26] arm: " Alexandre Ghiti
2023-03-06 10:04 ` [PATCH v5 04/26] ia64: " Alexandre Ghiti
2023-03-06 10:04 ` [PATCH v5 05/26] m68k: " Alexandre Ghiti
2023-03-06 10:04 ` [PATCH v5 06/26] microblaze: " Alexandre Ghiti
2023-03-06 10:04 ` [PATCH v5 07/26] mips: " Alexandre Ghiti
2023-03-06 10:04 ` [PATCH v5 08/26] parisc: " Alexandre Ghiti
2023-03-06 10:04 ` [PATCH v5 09/26] powerpc: " Alexandre Ghiti
2023-03-06 10:04 ` [PATCH v5 10/26] sparc: " Alexandre Ghiti
2023-03-06 10:04 ` [PATCH v5 11/26] xtensa: " Alexandre Ghiti
2023-03-06 10:04 ` [PATCH v5 12/26] riscv: " Alexandre Ghiti
2023-03-06 10:04 ` Alexandre Ghiti [this message]
2023-03-06 10:04 ` [PATCH v5 14/26] alpha: Remove empty <uapi/asm/setup.h> Alexandre Ghiti
2023-03-06 10:04 ` [PATCH v5 15/26] arc: " Alexandre Ghiti
2023-03-06 10:04 ` [PATCH v5 16/26] m68k: " Alexandre Ghiti
2023-03-06 10:04 ` [PATCH v5 17/26] arm64: " Alexandre Ghiti
2023-03-06 10:05 ` [PATCH v5 18/26] microblaze: " Alexandre Ghiti
2023-03-06 10:05 ` [PATCH v5 19/26] sparc: " Alexandre Ghiti
2023-03-06 10:05 ` [PATCH v5 20/26] parisc: " Alexandre Ghiti
2023-03-06 10:05 ` [PATCH v5 21/26] x86: " Alexandre Ghiti
2023-03-06 10:05 ` [PATCH v5 22/26] xtensa: " Alexandre Ghiti
2023-03-06 10:05 ` [PATCH v5 23/26] powerpc: " Alexandre Ghiti
2023-03-06 10:05 ` [PATCH v5 24/26] mips: " Alexandre Ghiti
2023-03-06 10:05 ` [PATCH v5 25/26] s390: " Alexandre Ghiti
2023-03-06 10:05 ` [PATCH v5 26/26] riscv: " Alexandre Ghiti
2023-03-06 13:19 ` [PATCH v5 00/26] Remove COMMAND_LINE_SIZE from uapi Philippe Mathieu-Daudé
2023-05-09 7:06 ` Alexandre Ghiti
[not found] ` <20230306100508.1171812-15-alexghiti@rivosinc.com>
2023-05-16 0:53 ` [PATCH v5 14/26] alpha: Remove empty <uapi/asm/setup.h> Maciej W. Rozycki
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='20230306100508.1171812-14-alexghiti__48424.4275650539$1678098021$gmane$org@rivosinc.com' \
--to=alexghiti@rivosinc.com \
--cc=James.Bottomley@HansenPartnership.com \
--cc=catalin.marinas@arm.com \
--cc=chenhuacai@kernel.org \
--cc=christophe.leroy@csg \
--cc=corbet@lwn.net \
--cc=deller@gmx.de \
--cc=geert@linux-m68k.org \
--cc=gregkh@linuxfoundation.org \
--cc=ink@jurassic.park.msu.ru \
--cc=kernel@xen0n.name \
--cc=linux@armlinux.org.uk \
--cc=mattst88@gmail.com \
--cc=monstr@monstr.eu \
--cc=mpe@ellerman.id.au \
--cc=npiggin@gmail.com \
--cc=palmer@rivosinc.com \
--cc=palmerdabbelt@google.com \
--cc=richard.henderson@linaro.org \
--cc=tsbogend@alpha.franken.de \
--cc=vgupta@kernel.org \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).