Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp332441rwn; Wed, 14 Sep 2022 22:11:26 -0700 (PDT) X-Google-Smtp-Source: AA6agR4Dvwg0FxfSuH5n8ZpPc00RsV2nOKU/44kEvdFWGZNOvV+CBYg6OhpOMmOLi/iAXdUndZvn X-Received: by 2002:a17:907:2bc3:b0:76f:5a9b:2039 with SMTP id gv3-20020a1709072bc300b0076f5a9b2039mr27118992ejc.534.1663218686164; Wed, 14 Sep 2022 22:11:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1663218686; cv=none; d=google.com; s=arc-20160816; b=aHj9XlfexpoNM7MSfxj12ZzseLVdBgLimJnCjY9Azxfzg/Kn0ulkhuGjn0V8GXiTfe HJpF1VPQnPfArYGdnYgChOVbq/KOXIOLNvZLW7GV7k0xz0x/eDd6e36Y5rmjURaESlOz D6+8YgkyaEbgZl60dgNgLQx+i1bH3vkvXx+y5tsvvUGObm3c8uCYX5DsQjUHojHeVZOe dHxSjdxZ0SWyVUuOeR6fxoi0iphdlZP0kQEgzan+RmyfaPmr2isGKZ9DklgXF2GSjqqN cFixyqdZJxpaHsPRhPzIPuoxw41J/1CYga5W++trNlzZw9CiJ/b59HERMSWTX3/4BAsi Whow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=DTM4YhijXyqcWbuvEdtEKpJz/qh9PvPxWAryO5oWxio=; b=qxFy20MeumtBrE2NFbGI3zh9j3g2QdJxZRt3q0HBF8txo5694OWvJLNmbAmdgFbmNP ywcG8PG+PLqCQG5IjaOCRRztLHNkdGvg/1dKXKs7l6zOrICsigz67C5Nowwg3Vyx4mig QayR1kiXnbM+SM2r5vjXkdhdY/FcmvmJXDfme8Sg9rIL1iI6KWGhKYkzjS8N5yIXRxi7 pSzpS2sdSC29IBtyeJeNNfwAtZJ/TtwZokMUZ5BYJHt7IcvNBOJzKFmGeXDdNGm4znB3 aUkY927PrXMDvRhrfjv96/O5xNhBkfykoCA/EqQc8CDzUJAQhayrOfIpk/9spMC7jfYa JF9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=ON3vNImg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hq23-20020a1709073f1700b0073dc19d10basi16076738ejc.70.2022.09.14.22.10.33; Wed, 14 Sep 2022 22:11:26 -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=@nifty.com header.s=dec2015msa header.b=ON3vNImg; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229452AbiIOEiP (ORCPT + 99 others); Thu, 15 Sep 2022 00:38:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbiIOEiN (ORCPT ); Thu, 15 Sep 2022 00:38:13 -0400 Received: from conssluserg-01.nifty.com (conssluserg-01.nifty.com [210.131.2.80]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 400129082A; Wed, 14 Sep 2022 21:38:12 -0700 (PDT) Received: from mail-oa1-f49.google.com (mail-oa1-f49.google.com [209.85.160.49]) (authenticated) by conssluserg-01.nifty.com with ESMTP id 28F4bdIQ010245; Thu, 15 Sep 2022 13:37:40 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com 28F4bdIQ010245 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1663216660; bh=DTM4YhijXyqcWbuvEdtEKpJz/qh9PvPxWAryO5oWxio=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ON3vNImgG/4YQMlg4PnTOgCrUDwC19e8KSxLihceviJOQd7o4BE4dML/KgP3ThV5o CkvL6z97u0Dmyt+uBXA8hAJwSif4vh/SY8Yaqe6L0PsQRtFEKtgex9cnp/GIbdYxU6 dBpLVB4jnfvh3Xu7N4KMQ1d3HvJnPIqEwxLw+Sl9F1UpJon1OsrkNwPhwW/U87nb3C 54vjRH8N33825QGNH0fVlunDMyFic2b/HgPMPBTJH64EyEyTe4bhWXFWmw/K7PeDCs gvHOU/oJe/1tnp843XFUltfU+0iWr6W2xNcEwM2LuS4l25xpDtGpaJXJWXKNwOzM7s KH5nmcrw/AZAw== X-Nifty-SrcIP: [209.85.160.49] Received: by mail-oa1-f49.google.com with SMTP id 586e51a60fabf-127d10b4f19so45771848fac.9; Wed, 14 Sep 2022 21:37:39 -0700 (PDT) X-Gm-Message-State: ACgBeo3979GuUQQEwjnV3pUUbAPDAWQmsPGUc41OPgClGs/Rjq7YCPba a5BX7AC0dTTUIC9zyiU5Pd99pTDd2vFantrC+Tc= X-Received: by 2002:a05:6870:c58b:b0:10b:d21d:ad5e with SMTP id ba11-20020a056870c58b00b0010bd21dad5emr4235164oab.287.1663216658927; Wed, 14 Sep 2022 21:37:38 -0700 (PDT) MIME-Version: 1.0 References: <20220908113449.259942-1-fe@dev.tdt.de> In-Reply-To: From: Masahiro Yamada Date: Thu, 15 Sep 2022 13:37:02 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] fs/proc: add compile time info To: Florian Eckert Cc: Michal Marek , Nick Desaulniers , Linux Kernel Mailing List , Linux FS-devel Mailing List , Linux Kbuild mailing list , Eckert.Florian@googlemail.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE autolearn=no 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 Mon, Sep 12, 2022 at 6:42 PM Florian Eckert wrote: > > Hello Masahiro, > > thanks for your feedback. > > > https://patchwork.kernel.org/project/linux-kbuild/patch/20220828024003.28873-6-masahiroy@kernel.org/ > > lands, nobody cannot reference KBUILD_BUILD_TIMESTAMP, > > then this whack-a-mole game will end. > > I was not aware of that problem. Thanks for the link. > > I understood that this is a bad idea to create the timestamp for proc > like this! > But how does it look in principle to offer the build timestamp in proc > for reading? > You have only made your point about creating the timestamp but not about > reading it out via the proc directory. > > So far the timestamp is only readable as a string via dmesg. init/version.c is the only file that can depend on the output of the 'date' command. You can follow what 'linux_proc_banner' does. Define it in init/version.c, and declare it somewhere in a header file. > Best regards > > Florian -- Best Regards Masahiro Yamada