Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1535424pxb; Fri, 26 Feb 2021 13:25:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzDYVcvleIDX4N9PVz3hRa0uxky//MnjqvkzR/2Qt6UuFDFSyyl94vt3K+9l0T7dwjG5ZdV X-Received: by 2002:a50:cd8c:: with SMTP id p12mr5705100edi.114.1614374742391; Fri, 26 Feb 2021 13:25:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614374742; cv=none; d=google.com; s=arc-20160816; b=h/QQyzZAprBqXYB15t41kugTivzNNdLqKyrDrhVmfjRZe5jdVi10OQyj7ysHqopgNr xfPLdb+/P6MtTkad+YCp3VDTrJynTq+05sBv+1wU3MDCUHwxO8Pw/Xa+2fSDlNgdytBz nAMuii30XZoubHZ1ZceqqkdapAusZL1jw3Fl8/XKIOvcHmKtk9ZlGBVqDMXjxp6N4SHl 1cc4nRvi18stKD04FpgWlDwpy3HKZkVuIgDP/HTYNQRdJBRVsv3zIfsTj/OoBKD9wmj2 zX5M3bBk29RPWx3zzOTewHjhw5PBwZ75wwT2Jq5NsO06eEg7l7FhOM1uMQM+mysQVpFd r+og== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:ironport-sdr:ironport-sdr; bh=SgLhOp/LZ313pSprSS3fSDqDU0x5CTH879SGBZft1bk=; b=boKDIUGqR6fEKcy2DvixORtGeGqEhK6RkFcKtQAf7qcDEueqdM0fmzCMi/TVV26ST+ pdC9j6VDXsfuadgQeFvWhqaLz+Zyeb2MmxTp0H7VvoGq9O0YAnLWPE5tUqyWlAmCGW8f 94EN5ryNFSid+kTfg2nFS2w1GjqB9cWHt6qrLzRY0ccDy6mbxw2HnQ8UpQ/MLegTc2Fr Lmb9CIKv4HCnHMB6MzLJWYZ0c/szN5TWKLSJYlCo+/r5ROY0SGykuUnj39hjxY366SEC gjE0dfZe6juaXAiO8+1NPxR1fOoDr8xbSJRHZbZvmKmOK/thfu91IvfiEOLf0AltNQ9b uX5w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h26si6043820edw.139.2021.02.26.13.25.19; Fri, 26 Feb 2021 13:25:42 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229835AbhBZVYk convert rfc822-to-8bit (ORCPT + 99 others); Fri, 26 Feb 2021 16:24:40 -0500 Received: from mga09.intel.com ([134.134.136.24]:23780 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229586AbhBZVYj (ORCPT ); Fri, 26 Feb 2021 16:24:39 -0500 IronPort-SDR: Fc4IG+LyJ5FwE+XqeXm8mwgU6KmuWYUWBZSTJdgV1430ba2zC/ZFEl4c4yHxytPG77APygS2+7 Jw4g30cAdjfA== X-IronPort-AV: E=McAfee;i="6000,8403,9907"; a="186116703" X-IronPort-AV: E=Sophos;i="5.81,209,1610438400"; d="scan'208";a="186116703" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2021 13:22:51 -0800 IronPort-SDR: 0eUhk/VHMCt2DCyWtnllR79YoOH6qTZI0+sNZESz7u/LYpxBIqefAi0yMIuyjTBRb+jLTWmZWr ovyGgWldfULQ== X-IronPort-AV: E=Sophos;i="5.81,209,1610438400"; d="scan'208";a="367912304" Received: from mumar-mobl1.amr.corp.intel.com ([10.209.42.188]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Feb 2021 13:22:51 -0800 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: Re: [PATCH v1 01/12] gna: add driver module From: Jianxun Zhang In-Reply-To: <85tupysmwc.fsf@linux.intel.com> Date: Fri, 26 Feb 2021 13:22:20 -0800 Cc: Andy Shevchenko , Greg Kroah-Hartman , Arnd Bergmann , Jonathan Corbet , Derek Kiernan , Dragan Cvetic , Linux Kernel Mailing List , Linux Documentation List , Tomasz Jankowski , Savo Novakovic Content-Transfer-Encoding: 8BIT Message-Id: <5A98CC3E-EAA4-46FC-8FCC-36DE862E52A2@linux.intel.com> References: <20210216160525.5028-1-maciej.kwapulinski@linux.intel.com> <20210216160525.5028-2-maciej.kwapulinski@linux.intel.com> <85tupysmwc.fsf@linux.intel.com> To: Maciej Kwapulinski X-Mailer: Apple Mail (2.3445.104.17) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Feb 26, 2021, at 10:29 AM, Maciej Kwapulinski wrote: > > > Andy Shevchenko writes: > >> On Tue, Feb 16, 2021 at 6:11 PM Maciej Kwapulinski >> wrote: >>> > .... >>> +#define GNA_DRV_VER "1.2.0" >> >> Nowadays the version is the Git SHA sum. >> > > right, "version" is present in about 7% of all modules > > do You mean version should be skipped over (automatically generated) > srcversion field? or maybe You suggest any (better) technique? Just my 0.02. We should identify who will consume this version string for what purposes. Then we can decide if a hardcoded macro or any auto-gen tags should be used. If we don’t find such need, perhaps we just remove it since a snapshot of the code is always tagged by commit SHA1 in git. (maybe this is what Andy suggested?). Having such hardcoded version string requires an update policy in return, to make it really useful, IMO.