Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp1218764rwe; Thu, 1 Sep 2022 14:42:50 -0700 (PDT) X-Google-Smtp-Source: AA6agR77yVPxpIsQs1VfWvvDWKbfihJWE0bBGj/YVyBzFxwbmiLTrEhx9NtUQzETDoeTIJajyF1O X-Received: by 2002:a05:6402:530d:b0:446:e22:cca2 with SMTP id eo13-20020a056402530d00b004460e22cca2mr30271255edb.237.1662068570407; Thu, 01 Sep 2022 14:42:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662068570; cv=none; d=google.com; s=arc-20160816; b=meH5kq568U3Eyk8Wy5PbWiaW0xPTGTmgyh6DZ8XNOeQZP6928GCCws2ofM7rqXrv3D 3TE42RihAyuN7qipUOVPLrC2QN4pBMFrn2yq4l6r2jHugoGHSbHzB7TXlWpmud5aVsdD Sev8vAchW62Ln7GHnHYuu+pl3ukiFg9atnA0duM9EdW5xu5vwogVEsxGGPu6BkYORYFI ykAc5OM47fo15epys2cOZMrp7KDB8+SXGVDmbuTKHSEAwKHesoIBP6FEHyPKXc+0xiL4 +p9GXzxX3/RFAqRLDPtChmUA7DEsPOn5MBVBpJ+MAfc/gt5fSrxdrgopJ7FdwXoqeAyk CveA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=HPiwJMv/G22ZO1H+ldGz1E3Rj/XtLwFQqXYHsqNKZic=; b=XQjrYr39CZ2HDxM7vTBLDwCB3ECFm4n9+YchtsvaplE5nMzNHYz1wVZMOrboTiat4i OvtCxE6ZFh2HF4518fXkgHZiHo7D+WL9Iyati+h+gaNhpgpYjOypmChhh2vNlaUGSlWE ouADwvz53wM4f3MsJ4dIOM2WbiNSglz3k2IQR0DQrn4MGQcs/lnpbN+cX0grhK7Iosm1 Qu/01QerZGeMxWmrbMFBPYvp0JfwL+JKs8ZCM2PffVhaDRAZTcUWFn+VHD0utygxoGNr UPKzB2vMjw+afp7/fjKJzs4PNEkmrrWQcS1MhsY35qy7ni5Hlq3p+djMC7pi69rssUJT xLRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=korg header.b=khS3obip; 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 r12-20020a05640251cc00b00447dc8a0cdfsi215612edd.506.2022.09.01.14.42.25; Thu, 01 Sep 2022 14:42:50 -0700 (PDT) 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=@linux-foundation.org header.s=korg header.b=khS3obip; 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 S234871AbiIAUPo (ORCPT + 99 others); Thu, 1 Sep 2022 16:15:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231589AbiIAUPm (ORCPT ); Thu, 1 Sep 2022 16:15:42 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61A903DF1B for ; Thu, 1 Sep 2022 13:15:41 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DC78861ED5 for ; Thu, 1 Sep 2022 20:15:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06FB4C433D6; Thu, 1 Sep 2022 20:15:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1662063340; bh=T5Bo80Pv2NufC6SUc5YR59Ij4pgjvbIU/dVFhzBVUjc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=khS3obip1ehrIP4wlDKuwfFQQzoIwb0VYvjyPdno5ZWGYetjjZFR6uQu3IzDs6uwI /7yGsVxzV3xFPqjdAfEwVnWEYIjEKjVy/X8NPZy8NYNRLYShHlVi2FrIuI1Mlg9qfE FXbiaOgdgXKSRT3eSQ+gqEGiFY2T76WwUp65G2/c= Date: Thu, 1 Sep 2022 13:15:39 -0700 From: Andrew Morton To: Petr Vorel Cc: linux-kernel@vger.kernel.org, Eric Biederman , Greg Kroah-Hartman , "Rafael J. Wysocki" , David Sterba Subject: Re: [PATCH v3 1/1] kernel/utsname_sysctl.c: Print kernel arch Message-Id: <20220901131539.1bfacab0f60b5116e492a46c@linux-foundation.org> In-Reply-To: <20220901194403.3819-1-pvorel@suse.cz> References: <20220901194403.3819-1-pvorel@suse.cz> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Thu, 1 Sep 2022 21:44:03 +0200 Petr Vorel wrote: > Print the machine hardware name (UTS_MACHINE) in /proc/sys/kernel/arch. > > This helps people who debug kernel with initramfs with minimal > environment (i.e. without coreutils or even busybox) or allow to open > sysfs file instead of run 'uname -m' in high level languages. If they're this constrained, why not run sys_uname() directly?