Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1231849pxu; Mon, 23 Nov 2020 15:24:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJwsRx1n3qrmlb+G0r1SSgZb1ocewS234MsOlh83NO2CJcPjZlSZIUnRIiL+jKBJzE6SX86g X-Received: by 2002:aa7:da81:: with SMTP id q1mr1525915eds.14.1606173873955; Mon, 23 Nov 2020 15:24:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606173873; cv=none; d=google.com; s=arc-20160816; b=cvKgWMhJ27wun26k88vuH5ymbvYNeJq+ZuALQLU5yYBtGk9e0bZfJmqhIYXgDHbwTI 71WpySHLHQLyBQzMwk65ZbWJ7BXY00CEl6fEQiX9ncwx1aZJQeucd5I3glqKVWz1Qfwq CgSDgQWjsQIO246L5X1Srw9nGCrR+RZaWLIiC4FUC3A0Mvid+/kRWsLCh2nJU0hLwuzy MHRSTx6+4cqgIUxtbV1cc4slZG1njSyQ+LQMKL0Pv6lkxZtZKjKLeHxbuiLHs2tiJ5Zq xeCsApaePLYrTWgF6C2qmHuBCrwpBcZ2nxyqmr2ssVfTnZ29vqswl5FcLGlIQOHv1Ixi e8hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BgeVSSfZLNzNKQUwk8gSZDAMuJgyfDFB5JVGlPmjlSE=; b=GMJFcjQYLbbDfb+HM5QK/iqrNFZZiEz6r9r57PsXTkOu4aP/OFbn7Mc1tuygi2XPEH L01nUPf53agmTQ+LBpDhSh1DNwmvTqY8mae6YBs25yq6kiiXRldNm+I6qSRVE93uvojm /0WP8thZuS9K0QnmAMH4MuBa4G9vatRmbLj5G0FhixAg31JZGYzXbdZ/Ks3twlp0xQQj lbiQ3AitgQEB4QvKrrm5vIzQLWqmx1vlgGMQC1YaObgRY/uzWvefKTVK52m1ewB6InhW h6FpEBkdBBemBjpblkSaKZnWnFkY/n3uq3SovXk+WSIgGDVo7fe3/1IW/5RLdqDplgd0 5Gyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=c+xXr9zF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hh13si7555167ejb.360.2020.11.23.15.24.11; Mon, 23 Nov 2020 15:24:33 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=c+xXr9zF; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727783AbgKWJbK (ORCPT + 99 others); Mon, 23 Nov 2020 04:31:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:49222 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726799AbgKWJbJ (ORCPT ); Mon, 23 Nov 2020 04:31:09 -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 E3973206D5; Mon, 23 Nov 2020 09:31:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1606123869; bh=q/FGH8VFHpZMxdMzpaO/GqkbfF33SkyeuDgsxQTpAQ0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=c+xXr9zF2+bCngWMABbLRZHwoFSBdO0nzDgbdvs57kHGkBw55SGrIrYtS0eZbqxUb PeI8m+j9kGGI4qoUrDTsZCliTUz57os/CKKv7JQ64rKwNI/kSrc4vh4CklSDW9I/PL QcS0R/xQtsaXRbNjHZr3YRm6aNtHrCA/QBHQWUz8= Date: Mon, 23 Nov 2020 10:32:19 +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: > +/** > + * struct modinfo_attrs - Module attributes. > + * @module_uevent: Used to notify udev of events. > + * @modinfo_version: Module version. > + * @modinfo_srcversion: Checksum of module source. > + * @modinfo_scmversion: SCM version of module source. > + * @modinfo_initstate: Module init state. > + * @modinfo_coresize: Module core layout size. > + * @modinfo_initsize: Module init layout size. > + * @modinfo_taint: Indicates if the module is tainted. > + * @modinfo_refcnt: Number of references in the kernel to the module. > + * > + * These are the module attributes accessible via the sysfs files > + * /sys/module//. > + * > + * The following subset of attributes can also be accessed via the modinfo tool > + * as well: version, srcversion, and scmversion. > + */ > static struct module_attribute *modinfo_attrs[] = { > &module_uevent, > &modinfo_version, > &modinfo_srcversion, > + &modinfo_scmversion, > &modinfo_initstate, > &modinfo_coresize, > &modinfo_initsize, This isn't the normal way to document an array, with kerneldoc, I don't think I've seen that anywhere else in the kernel, have you? Anyway, again, Documentation/ABI/ is the correct place for this. thanks, greg k-h