From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC140C2D0E4 for ; Mon, 23 Nov 2020 09:29:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7BD8C20781 for ; Mon, 23 Nov 2020 09:29:38 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="gKwJTFlf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727692AbgKWJ3R (ORCPT ); Mon, 23 Nov 2020 04:29:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:47746 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726618AbgKWJ3R (ORCPT ); Mon, 23 Nov 2020 04:29:17 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0AE4F206D5; Mon, 23 Nov 2020 09:29:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606123756; bh=c0jF4OeEL9UePNjfHtVi7chADarlrEpvdY3Wd0rD6W0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=gKwJTFlfOyz/OYhK6roUFyIjywqn4CFDoshp7qg+T1YsQF+oqRsQ3CYpEfPR9Sq+G QME0pBwj/n82VEaALzJJClmDkcgSBLEzUJVu+O22xoBazpdlwBQhr4V/Xjbff/a15j iBWz9He6wWrasm6nJ5HtRi5pj0kP/uusfw6ltiLQ= Date: Mon, 23 Nov 2020 10:30:24 +0100 From: Greg KH To: Will McVicker Cc: Jessica Yu , Masahiro Yamada , Michal Marek , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, kernel-team@google.com Subject: Re: [PATCH v1 2/2] modules: add scmversion field Message-ID: References: <20201121011652.2006613-1-willmcvicker@google.com> <20201121011652.2006613-3-willmcvicker@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201121011652.2006613-3-willmcvicker@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Nov 21, 2020 at 01:16:51AM +0000, Will McVicker wrote: > Add the modinfo field `scmversion` to include the SCM version of kernel > modules, e.g. git sha1. This allows one to identify the exact source > code version of a given kernel module. > > You can retrieve it in two ways, > > 1) By using modinfo > > modinfo -F scmversion > 2) By module sysfs node > > cat /sys/module//scmversion I agree with Christoph that this doesn't help any in-kernel stuff, so I don't think it can be merged. Why not just build these modules as part of the normal kernel build process, the Android build system should allow that, right? But even if it was ok, you are adding new sysfs attributes without a Documentation/ABI/ update, which is not ok either, so always remember that for future patches. thanks, greg k-h