Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5114365rwb; Sat, 10 Dec 2022 23:41:38 -0800 (PST) X-Google-Smtp-Source: AA0mqf4cQNSJtgRimab1hJPcyNaVJap4NAoM1us0yNZ1mzsow38lh9RibJZKVptPw/DAjs9YQw1u X-Received: by 2002:a05:6402:5303:b0:462:7b87:c6d with SMTP id eo3-20020a056402530300b004627b870c6dmr10302984edb.2.1670744497858; Sat, 10 Dec 2022 23:41:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670744497; cv=none; d=google.com; s=arc-20160816; b=tTBr1K2KhdnItlna2jS/rRQiK/Zg7XM7WAUBB7ktq4Gq5o4Dhqr/Ja3mJGgBlj9yC/ M2Q7VbTlkIbfkGP98VnIlTxX0UYDJq0GdjLeF3dEo2DM+rsmd+J7WzN4p+6EILQuSFxS gAijtD65q7Ohx3+xdSuubSbae1R3VZfrG0rt2QCyVsEAv9Tj4FFONa+qQrOgFXP4n4Ay NoXQbnhChDLF1BQasUDGAhWhKpMgwB1UrrspgzBmMnICD7k1O8UWqkqSoFHH4MoWdLeM DrDvxtBgmNI6mNAw7tNLtIptKnQO/k0xd3G1Ua1VrPOouC3jdgCtqQds+miwkGmYmYMf gLIA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:from:cc:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject :dkim-signature; bh=GKoO61y1D5Fc3JAsT335OlXBmbeAtig1hKjfXnIQFN8=; b=LB3qkZ4OyYxaHMhYwJPTaqt7JYj+IX2dUrGHJNLyf+n2gt+lyV0TF5ZL6ZHvCY8AJ2 XKpzC1ZjHffw21Zz+DnqsfHhj37a0d53M5ww+fbKRH1II/fBKyvs44e/Uh7g7hJvJlho j6Jc9xP6L7GL9X63bg8d3CB/nbaMWsOhCC6ZfRJvRMHoFywhiIZU+QxU/xfaGngk7Jjf 6zotcZ4ZQdwnO2nUV+/TTFz7QJ+pCy0oEIEDgI3FT3pmc6ANsUjtFPIcYItZVM0Mf4j6 l7yzF8jKtP8aGC4mkQD2s2evLVBd43XYnoeBy37oxHi32Bsxav28QdAMtHSeRvKCl6hv zXJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=ppwMAmfq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xd4-20020a170907078400b0078dd12d0a9fsi3647133ejb.548.2022.12.10.23.41.20; Sat, 10 Dec 2022 23:41:37 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20210112.gappssmtp.com header.s=20210112 header.b=ppwMAmfq; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230146AbiLKGT0 (ORCPT + 75 others); Sun, 11 Dec 2022 01:19:26 -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-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 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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