From patchwork Sun Dec 11 06:13:46 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Palmer Dabbelt X-Patchwork-Id: 32145 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:f944:0:0:0:0:0 with SMTP id q4csp1640450wrr; Sat, 10 Dec 2022 22:20:05 -0800 (PST) X-Google-Smtp-Source: AA0mqf6MLc4CJB30/G8gzkLq20hEXAu1WKH1O6rkLkiJc4HGUxPOxzE8Okj5EYcohhZe/sQixZ6c X-Received: by 2002:a62:870d:0:b0:576:f02e:d0ef with SMTP id i13-20020a62870d000000b00576f02ed0efmr10867838pfe.4.1670739604772; Sat, 10 Dec 2022 22:20:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670739604; cv=none; d=google.com; s=arc-20160816; b=KqfpM1O7pQ9vYF/5+UjunvjYlK+gyQ75nWNgzn+/xd496N8bSPZB5YSyNeZsCGN+ZM poSztb61M3g6HOeUP+MwCKFqKSMWFX0i+OgjpPN1bRLV4d8HW3+85gxBYDIH3447rHYU 2nyh56e3x5CdgXK9qiCG4qGrz1MUKYI8dPItbs4AHKKO3IG1Dd5DSy7HISv/+FmDd7Zv Q73GGc0Jwj5vjgrkGM/7SR8ZytcV5vxZ/oZECChWN2WjtLfzcGu9A5J84qElGn+6q+Xg +h1j757RRDEJH9kf7m9s2K+989i0CfoLSvzXlkXPsKrJFqIFJD/xK/56iII25rUfjwnr 3hmw== 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h14-20020a056a00218e00b00578091fdf32si5357930pfi.110.2022.12.10.22.19.51; Sat, 10 Dec 2022 22:20:04 -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 + 99 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1751897451803612787?= X-GMAIL-MSGID: =?utf-8?q?1751897451803612787?= 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