Skip to content

Commit

Permalink
asm-generic: Remove COMMAND_LINE_SIZE from uapi
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
palmer-dabbelt authored and intel-lab-lkp committed Dec 11, 2022
1 parent 4669d7e commit 650bf44
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Documentation/admin-guide/kernel-parameters.rst
Expand Up @@ -208,7 +208,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_
Expand Down
2 changes: 1 addition & 1 deletion arch/loongarch/include/asm/setup.h
Expand Up @@ -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

Expand Down
File renamed without changes.
1 change: 0 additions & 1 deletion include/uapi/asm-generic/Kbuild
Expand Up @@ -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
Expand Down

0 comments on commit 650bf44

Please sign in to comment.