From patchwork Mon Mar 6 10:04:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexandre Ghiti X-Patchwork-Id: 13160874 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 bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 0F49CC61DA4 for ; Mon, 6 Mar 2023 10:19:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=050xTa9qD2bgyXjmYID4F1CsV3dOkblm1H7pnn+SUKA=; b=IAvcFBBtykkRoN UxnhSdZzXYAdy5lEXn5K+qweC3RcWaSRe7W6utwgEjyE7mjHz/rHisX6lGYmAiRXwuU9RQZgkSZyQ /V9/WX8AVMnS7nervlLlEoOONcn0ANvTtxVrtKroUyN/VJpyxIlYbcLx1km2B1hI8PIH1P/soq7Tx QCpPH/CBJWeDsjZxFEP4st3R49ZrNwZFFIju7i4UpAOTgib52dC97YSn3UdSO9CmPSt2OhoHuX7fw bqOj0nRlItr2hu52MZFZmCd9fI+GF0JMt266AxN/pSekpKfUYVO6D38qLXYZ3+wGkN64Ces74jJs4 xOSYSQYknI8aZckXZO8Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZ7w0-00CHMH-KO; Mon, 06 Mar 2023 10:19:12 +0000 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pZ7vv-00CHK8-Pn for linux-riscv@lists.infradead.org; Mon, 06 Mar 2023 10:19:11 +0000 Received: by mail-wr1-x42b.google.com with SMTP id v16so8269998wrn.0 for ; Mon, 06 Mar 2023 02:19:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20210112.gappssmtp.com; s=20210112; t=1678097946; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=pLdQZ5oKz9wvQ1p1cXiC+Rc2izcglTCWsjsdF15FoKI=; b=Kj4O690HpZR8Sg0W3lAeVf6DOHtzKBoDNyQ8OGTKBw14Wjfpn0Wju0B+FpDiYA8PzR 1SK3dHst7KOj0N+0ZdU9LRXXJPgWjIQvUl7lwdexklGZmiH/9eWFkN2m+07l8+qdYgYn kukzgyj29WsCG+Dizw+E3+ylQA49rLGBzJupDUBzgH1AUGejJ99hzptXZhzadNPHrw8a kqPUpCzf76ZylFoEBRZeW/QziXd1ld+gq3yUiUzq/xkqWL3W2bsgNB+rwLCMUy+8gq4a 5mvibSwPlQSxb0CjuIlt4ROssZfIxfhTWOJXET9izb1mXM+v4cTSm1Gk5tTSjSBDqHvO VDDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678097946; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=pLdQZ5oKz9wvQ1p1cXiC+Rc2izcglTCWsjsdF15FoKI=; b=cCJ39sMNTHG4YQlxAPQEwb4tAfxkzlKGZyeUcIbsE4JICkxwvWTKbzfdSzgtf/wajM n+3i2aWKSHLtUS7SyIVKp5oXn4uQAMmxp4FfAGqIDNONA+IkPpwMdBXvp6i/RfsjuaMF 4zu6y+c1mhTfbA8aK4KxwdPAobTrKctKz0jQPlW+BJJGNCbBCV9nYfXbnyigXPeWsa9Q 8eoN9ag/t0WM25uPjE3Ri99OjBdfHRlRXK9gBDKg604yt+VL8+QcLCMaIJitgbEjhPeD 2R229l/KG9kGUp2z/bNFM/emXvFEINjGim2/WIeLlGWiW547TjfHXt2EF5p/+lnrMg2x 0JCQ== X-Gm-Message-State: AO0yUKW3FIGOFdK9zpdHipEW8EWe1g6SRztycIOy8V/mpCpue9f7jTUT rw9jtFHKw4C6gfS3QcxlCcMNBg== X-Google-Smtp-Source: AK7set/TREvsXpAbKK0JDdjBamcN83MfOaX3qMSgOeZ5/JPROVTq6d3QjjA2KvWEmZwjcBu6Rd56Yg== X-Received: by 2002:adf:db92:0:b0:2c8:6db5:156b with SMTP id u18-20020adfdb92000000b002c86db5156bmr5713223wri.65.1678097946356; Mon, 06 Mar 2023 02:19:06 -0800 (PST) Received: from alex-rivos.ba.rivosinc.com (amontpellier-656-1-456-62.w92-145.abo.wanadoo.fr. [92.145.124.62]) by smtp.gmail.com with ESMTPSA id f12-20020a5d58ec000000b002c71b4d476asm9396495wrd.106.2023.03.06.02.19.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Mar 2023 02:19:06 -0800 (PST) From: Alexandre Ghiti To: Greg KH , Jonathan Corbet , Richard Henderson , Ivan Kokshaysky , Matt Turner , Vineet Gupta , Russell King , Catalin Marinas , Will Deacon , Huacai Chen , WANG Xuerui , Geert Uytterhoeven , Michal Simek , Thomas Bogendoerfer , "James E . J . Bottomley" , Helge Deller , Michael Ellerman , Nicholas Piggin , Christophe Leroy , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Sven Schnelle , Yoshinori Sato , Rich Felker , "David S . Miller" , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H . Peter Anvin" , Chris Zankel , Max Filippov , Arnd Bergmann , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-alpha@vger.kernel.org, linux-snps-arc@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-ia64@vger.kernel.org, loongarch@lists.linux.dev, linux-m68k@lists.linux-m68k.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-riscv@lists.infradead.org, linux-s390@vger.kernel.org, linux-sh@vger.kernel.org, sparclinux@vger.kernel.org, linux-xtensa@linux-xtensa.org, linux-arch@vger.kernel.org Cc: Palmer Dabbelt , Palmer Dabbelt , Alexandre Ghiti Subject: [PATCH v5 13/26] asm-generic: Remove COMMAND_LINE_SIZE from uapi Date: Mon, 6 Mar 2023 11:04:55 +0100 Message-Id: <20230306100508.1171812-14-alexghiti@rivosinc.com> X-Mailer: git-send-email 2.37.2 In-Reply-To: <20230306100508.1171812-1-alexghiti@rivosinc.com> References: <20230306100508.1171812-1-alexghiti@rivosinc.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230306_021907_954267_34F6F980 X-CRM114-Status: GOOD ( 16.50 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.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 Signed-off-by: Alexandre Ghiti --- 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 -#include +#include #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 +#include /* * 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