From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id EE57AC001B2 for ; Sun, 11 Dec 2022 06:19:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230224AbiLKGT1 (ORCPT ); Sun, 11 Dec 2022 01:19:27 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230109AbiLKGS0 (ORCPT ); Sun, 11 Dec 2022 01:18:26 -0500 Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E79F6141 for ; Sat, 10 Dec 2022 22:17:44 -0800 (PST) Received: by mail-pg1-x52f.google.com with SMTP id v3so6178725pgh.4 for ; Sat, 10 Dec 2022 22:17:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; h=to:from:cc:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:from:to:cc:subject:date :message-id:reply-to; bh=GKoO61y1D5Fc3JAsT335OlXBmbeAtig1hKjfXnIQFN8=; b=ppwMAmfq0vj3RT+9g4Dtvbz5MLdO6zpF3ph3yn8rPhNRloGZcb8A1WcQpTH8P0FFfU U7F7ASJc4eKLY58bBejeAI4zdTF7KBVDnzI8xFKzLgqb/LSGU/3FPwKaUkOUyUWc98fc ectUowvJ4L+nhPM5PLsoLoFnBlFZP6v/zCSigWDiE3xM9N2vK+SWI5wTfZ7r3ranMop/ 9vnmOseFziJnPSWBOeqAvIOlLpmZZREHtVkaJuD08cqpV19xcMDxu/0NU/Qbwvsn7dpY fvgJRhfD7MkQHL57ke4vRUFswgcXDtH2yWWSTjO/vn7H1BCbq/qUbOXV64n+g2BejGdK sl/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:from:cc:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=GKoO61y1D5Fc3JAsT335OlXBmbeAtig1hKjfXnIQFN8=; b=6E0WdDDnKGXAWhjw+9Aq6mWMJ/d2xrwtaCa4B6fIgOibIZTj2OJj6l4vcGcBtujI3e joeiyXHOjiFvU07zDCPQW680THnExzrJq6qtOrP31BD5A7vEvS0KZX3fa/NUxL9/vXo1 3s254if0PT3grjQGmwTeBYbUkX8qJyRO0bYa+uJegpt9/vK+fp24/8UPK0ORSFRJV4FN jpI+QYStRF/qMNYRDPVufL6tlJqLox47h7fEfqtOSSrdN7QPvb+MXxbMZveUJdWJt0GE dADQPb+4pNqSZaPIU7yq7kyXYyqt1unmPp578HhQJn12E4RqZpn0TmWBKfEwj89zNp8K iufQ== X-Gm-Message-State: ANoB5pmBL/smE0E1ETCQFMnskxgGHrCfJKsSndD6pvUleei9BPxOjpMc 0VFDR55iXt3wcTY8E3x0BDKrUA== X-Google-Smtp-Source: AA0mqf6t27hPYqiZYgJWsMkysnZ60J/iBmswbu3w2XBWCpgWsC4ttNvM594aSxL78zWit3NJ2RLsuA== X-Received: by 2002:a62:1c97:0:b0:56b:b3f1:55a7 with SMTP id c145-20020a621c97000000b0056bb3f155a7mr11114471pfc.21.1670739463913; Sat, 10 Dec 2022 22:17:43 -0800 (PST) Received: from localhost ([135.180.226.51]) by smtp.gmail.com with ESMTPSA id q1-20020aa79821000000b00574ee8d8779sm3528342pfl.65.2022.12.10.22.17.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 10 Dec 2022 22:17:43 -0800 (PST) Subject: [PATCH v2 12/24] asm-generic: Remove COMMAND_LINE_SIZE from uapi Date: Sat, 10 Dec 2022 22:13:46 -0800 Message-Id: <20221211061358.28035-13-palmer@rivosinc.com> X-Mailer: git-send-email 2.38.1 In-Reply-To: <20221211061358.28035-1-palmer@rivosinc.com> References: <20221211061358.28035-1-palmer@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Palmer Dabbelt , Palmer Dabbelt From: Palmer Dabbelt To: Arnd Bergmann , linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Palmer Dabbelt As far as I can tell this is not used by userspace and thus should not be part of the user-visible API. Since 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 Link: https://lore.kernel.org/r/20210423025545.313965-1-palmer@dabbelt.com Signed-off-by: Palmer Dabbelt --- The various empty will soon be removed. --- Documentation/admin-guide/kernel-parameters.rst | 2 +- arch/loongarch/include/asm/setup.h | 2 +- include/{uapi => }/asm-generic/setup.h | 0 include/uapi/asm-generic/Kbuild | 1 - 4 files changed, 2 insertions(+), 3 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 959f73a32712..3ba84ef68c4d 100644 --- a/Documentation/admin-guide/kernel-parameters.rst +++ b/Documentation/admin-guide/kernel-parameters.rst @@ -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_ diff --git a/arch/loongarch/include/asm/setup.h b/arch/loongarch/include/asm/setup.h index ca373f8e3c4d..7a2afc95cc25 100644 --- a/arch/loongarch/include/asm/setup.h +++ b/arch/loongarch/include/asm/setup.h @@ -7,7 +7,7 @@ #define _LOONGARCH_SETUP_H #include -#include +#include #define VECSIZE 0x200 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.38.1