Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp995623pxy; Thu, 22 Apr 2021 19:58:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzXDY5ur/olx71/LdZ0bGP+D/LW5FTInS3X54mi1v/0RJ4zrzUfCKAGRYOIBoyGBfZe2oa+ X-Received: by 2002:a17:906:944c:: with SMTP id z12mr1739150ejx.398.1619146738606; Thu, 22 Apr 2021 19:58:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619146738; cv=none; d=google.com; s=arc-20160816; b=qWwMYfGZm/VbQXzACqLo6Nnf/Y8iMIJcUm8OKdf6AV6axb6HAPaSFF8XJFL/D/8AJu 7DA3yPcLUDwxE51gdQwWkatn3Ruqp1Mnu6xqghaBmxN9c3WP4W8BjOIN3/SoNqBAaf+d 1n7mncwYGEPOKEdDAuCGkf8SqYiGasOEDLLg5NBKT0+KUWknLcEg9SZh6KmLz3mq0jUY iRL5KwzmzbPaYBVoKhHz49iqKObE/mD60tp1Vr9Eonv41ndhZ5IF4fMbnVP8ROu60mUt s4pIau50KlHAd2nByb6kZfr6kq5imILGLlozayo+1Ginr+1kKCJ2ikP2CX/xhSpbPgJi EWQw== 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:message-id:date:subject:dkim-signature; bh=UtQhf0AMGUbWT9+v2yf9kUp3nmfSVtohRhb6bLrpe3w=; b=lLRYkgkZArsAPPyh2y8E0TapHaWEAOBjm7fssR7Uxulg88gcoB664XaYSQvQT48XN1 Fl7LC337d3nWvdul+2S/UaMj6q36M/5XnJDN+lNqOeackZYyPsgnzd8/bZL8KBylt9rY jf8HruLE1oWdInhd/u1Sx56PMyzh7KT0IENifLUvO4ke7YszS0441faTi9xwWHZpFUWc X0uk1vaQpN+UCsWiMuH5q+SsoFyI8MxFus80IUINA8QAcDUpxC84qT3d/RMhBwAP2azc rMqvm4EPwRSd5czDRApT3RsiYVcXwlFHF1x0LxnhIHj9Fud2IeGNHtq+0hdewet1NRw8 eH0g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b="g//+B6F+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w16si4280739edd.471.2021.04.22.19.58.35; Thu, 22 Apr 2021 19:58:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@dabbelt-com.20150623.gappssmtp.com header.s=20150623 header.b="g//+B6F+"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236080AbhDWC45 (ORCPT + 99 others); Thu, 22 Apr 2021 22:56:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbhDWC45 (ORCPT ); Thu, 22 Apr 2021 22:56:57 -0400 Received: from mail-pj1-x1035.google.com (mail-pj1-x1035.google.com [IPv6:2607:f8b0:4864:20::1035]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F2DDC061574 for ; Thu, 22 Apr 2021 19:56:20 -0700 (PDT) Received: by mail-pj1-x1035.google.com with SMTP id u14-20020a17090a1f0eb029014e38011b09so469199pja.5 for ; Thu, 22 Apr 2021 19:56:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dabbelt-com.20150623.gappssmtp.com; s=20150623; h=subject:date:message-id:mime-version:content-transfer-encoding:cc :from:to; bh=UtQhf0AMGUbWT9+v2yf9kUp3nmfSVtohRhb6bLrpe3w=; b=g//+B6F+TXQhW76hcLtZtiPnhUoG4OKOoeXsITq/NnITlSIoZ/PSEkyiJBwjx1pzOJ b/bru8FIC5SXz4K1SStTS1wrvbNgZ9GOW48lVyUxKaO+1SVehz0ICVVFzTklw331xhjG SYZVHe9vBOMA2SzGyusWqV5V0DOepdOP26d3+HgKF1B371z9qMc5+XH2CI/ISZW9rJhO LcUJnRg5wcq4VBdUDV/WkD8UDrOWLLvUBHOVOmY55jzheZBUoqDnqhxj87IJ3d3H14QU oD8WIYr7Ch8+u757kgjJ9rVTih+G9Y98n+xTjNje/DpNFrFV1FvtKilSaqX+Nf1sBZG+ os/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:date:message-id:mime-version :content-transfer-encoding:cc:from:to; bh=UtQhf0AMGUbWT9+v2yf9kUp3nmfSVtohRhb6bLrpe3w=; b=Q17MamDEB7NpnYTYRQSJiFMPVhyWyKNGPVPUYI4FYQCDOyfLGcJuJmAyAlTNWEn3ft MIG90F1N0R6+xcPlPPhdaiiVShxrKVcx3h2ClgKNSGHE12c4YjrhgOL9E/iIhZNYySHl iGNIKI6a6xBoZi8+TE7+JjzNR5FEgksweqtgE7nO3c4hv9hS9nxlgQEUbqfhdk3d0Ian ppBpKciOUoW0DcYHCdpARLENqmg5YHtM4Qfs49unqkPNNHt/oMb+7saGoiN+3wjpuvW+ Rv1uYwy0VTKblEOsVt3kes4qdQRtZKqnaTk9UE5kFxuUXZh+Vxtgjow719ZPIajw3w6K VMuQ== X-Gm-Message-State: AOAM531pa5Jeq3xVLL3onuAkxl6BS593ZaSGf4MkuqIUYrtPN5msBW8l wYy+jsgvkYsdrZ1EB3Y1n0fnLw== X-Received: by 2002:a17:90a:9a85:: with SMTP id e5mr3107773pjp.201.1619146579609; Thu, 22 Apr 2021 19:56:19 -0700 (PDT) Received: from localhost (76-210-143-223.lightspeed.sntcca.sbcglobal.net. [76.210.143.223]) by smtp.gmail.com with ESMTPSA id a4sm3217271pff.140.2021.04.22.19.56.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Apr 2021 19:56:19 -0700 (PDT) Subject: [PATCH] asm-generic: Remove asm/setup.h from the UABI. Date: Thu, 22 Apr 2021 19:55:45 -0700 Message-Id: <20210423025545.313965-1-palmer@dabbelt.com> X-Mailer: git-send-email 2.31.1.498.g6c1eba8ee3d-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-team@android.com, Palmer Dabbelt From: Palmer Dabbelt To: Arnd Bergmann Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Palmer Dabbelt I honestly have no idea if this is sane. This all came up in the context of increasing COMMAND_LINE_SIZE in the RISC-V port. In theory that's a UABI break, as COMMAND_LINE_SIZE is the maximum length of /proc/cmdline and userspace could staticly rely on that to be correct. Usually I wouldn't mess around with changing this sort of thing, but PowerPC increased it with a5980d064fe2 ("powerpc: Bump COMMAND_LINE_SIZE to 2048"). There are also a handful of examples of COMMAND_LINE_SIZE increasing, but they're from before the UAPI split so I'm not quite sure what that means: e5a6a1c90948 ("powerpc: derive COMMAND_LINE_SIZE from asm-generic"), 684d2fd48e71 ("[S390] kernel: Append scpdata to kernel boot command line"), 22242681cff5 ("MIPS: Extend COMMAND_LINE_SIZE"), and 2b74b85693c7 ("sh: Derive COMMAND_LINE_SIZE from asm-generic/setup.h."). It seems to me like COMMAND_LINE_SIZE really just shouldn't have been part of the UABI to begin with, and userspace should be able to handle /proc/cmdline of whatever length it turns out to be. I don't see any references to COMMAND_LINE_SIZE anywhere but Linux via a quick Google search, but that's not really enough to consider it unused on my end. I couldn't think of a better way to ask about this then just sending the patch. Signed-off-by: Palmer Dabbelt --- include/{uapi => }/asm-generic/setup.h | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename include/{uapi => }/asm-generic/setup.h (100%) 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 -- 2.31.1.498.g6c1eba8ee3d-goog