From patchwork Tue Dec 8 20:05:06 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: William McVicker X-Patchwork-Id: 11959563 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=-20.9 required=3.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, HK_RANDOM_FROM,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT,USER_IN_DEF_DKIM_WL autolearn=ham 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 C70CDC2BB48 for ; Tue, 8 Dec 2020 20:23:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id AC64223AA8 for ; Tue, 8 Dec 2020 20:23:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731360AbgLHUQM (ORCPT ); Tue, 8 Dec 2020 15:16:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36448 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731107AbgLHUNB (ORCPT ); Tue, 8 Dec 2020 15:13:01 -0500 Received: from mail-yb1-xb4a.google.com (mail-yb1-xb4a.google.com [IPv6:2607:f8b0:4864:20::b4a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE2A8C061793 for ; Tue, 8 Dec 2020 12:12:13 -0800 (PST) Received: by mail-yb1-xb4a.google.com with SMTP id l8so3121268ybj.16 for ; Tue, 08 Dec 2020 12:12:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:in-reply-to:message-id:mime-version:references:subject :from:to:cc; bh=iPNyURoyyg37PtP5buaF7be4u+mklyusgvVkQ9lf5c4=; b=d8kI5DC6RP4DJ49rtv3HRDmO4lX8xauTeqDg/yxTGOoLSDqV4wdfCyFv+CcWvtjldX 4ejQ3sBafhcxKGySlAHEv1lExckfO6zdtRI3cxmx+Ps0/PWoqXlh3RLRpjVB8eeFRVTq 5BuqliT5XjXJdQBUHIet86bv4wvG53o48LmzyhRCFmL5UfX9v3Z1Dmh5U1T2edPYRjYL Gq0RyizZJ+a2Das9vAKJIf17GswbLZ/KzC9s/vsYO/GA5lZko3lLclFbZ0k7yRwaHg0S g7jUg2MRJ7776jHriyV4cRG32UwIwgIKjnpRF2H/P7xImiQdCgVrcUHZFHZC3xzUylYD PfDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=iPNyURoyyg37PtP5buaF7be4u+mklyusgvVkQ9lf5c4=; b=DIk/SmbJe+Dz2aYE7LSY3iVR8SVjvLwd0lVrL9i0qurvVABmi1U91xLFBpzvJbee5r gg60TcJh/fDkzeK9cp7YIuhgMnaIUKN+zMyo+0NDoMWQkb2MBr3bdR7rPtwvnqvBM0wS Ddo3dUY8rEai9uZNq5XGTVpJna2wLSp9qE1SlMLn+RPdisvSB9Kz/O1jGq3hR1hRBceq lLJ7wcq5fte1sNKX9cNC1W5O1y9t50Rp5cTgBoKdJPCZMb64JlDgf7snrCVc9YWgM20l I59Znj7g7HrglgwSLvgr/Nr0Ru0E0WMikqE+XIAeMkXWjwLVoMZduxbG4WZIRB+5mCMD DOrw== X-Gm-Message-State: AOAM530DUT8FZJN5PuqVhYjR8BGDjjR7QNjmFKLeoYkSAdPoxnTDHMRA y66scNL58ErpzvaSo9Wg1oXD4zp7eg9ONWsaVvw= X-Google-Smtp-Source: ABdhPJwMJgfuO061kxGkmUoA9VEBMsGmQvj/8WZA4Ev6G7KxHkHqqvemJJmaP6cJeK0oakrTQPUUr/G0FMzTPMjrftk= Sender: "willmcvicker via sendgmr" X-Received: from willmcvicker.c.googlers.com ([fda3:e722:ac3:10:24:72f4:c0a8:2dd0]) (user=willmcvicker job=sendgmr) by 2002:a25:cb45:: with SMTP id b66mr27002244ybg.185.1607457914395; Tue, 08 Dec 2020 12:05:14 -0800 (PST) Date: Tue, 8 Dec 2020 20:05:06 +0000 In-Reply-To: <20201207153116.GA15772@linux-8ccs> Message-Id: <20201208200508.4107399-1-willmcvicker@google.com> Mime-Version: 1.0 References: <20201207153116.GA15772@linux-8ccs> X-Mailer: git-send-email 2.29.2.576.ga3fc446d84-goog Subject: [PATCH v3 0/2] modules: add scmversion field From: Will McVicker To: Jessica Yu , Masahiro Yamada , Michal Marek Cc: Greg Kroah-Hartman , Christoph Hellwig , Saravana Kannan , linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org, kernel-team@android.com, Will McVicker Precedence: bulk List-ID: X-Mailing-List: linux-kbuild@vger.kernel.org Hi All, Thanks Jessica for the feedback! I have updated the commit message to include the justification and common use cases for the patch series. I have also added the config MODULE_SCMVERSION so that this is not enabled by default. Please take a look and let me know of any concerns or issues found. Thanks, Will Will McVicker (2): scripts/setlocalversion: allow running in a subdir modules: introduce the MODULE_SCMVERSION config Documentation/ABI/stable/sysfs-module | 18 ++++++++++++++++++ include/linux/module.h | 1 + init/Kconfig | 12 ++++++++++++ kernel/module.c | 2 ++ scripts/Makefile.modpost | 22 ++++++++++++++++++++++ scripts/mod/modpost.c | 24 +++++++++++++++++++++++- scripts/setlocalversion | 5 ++--- 7 files changed, 80 insertions(+), 4 deletions(-)