Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp728164rwb; Wed, 28 Sep 2022 08:22:30 -0700 (PDT) X-Google-Smtp-Source: AMsMyM78ovE8+KT5NNm+vCvCVbLuR3VF5xwsA7dad9LW2IcJ4LJ2PDkVWzT4sNmredjTaaQaYaF+ X-Received: by 2002:a63:1e16:0:b0:430:5c4a:a3b5 with SMTP id e22-20020a631e16000000b004305c4aa3b5mr30970636pge.37.1664378550045; Wed, 28 Sep 2022 08:22:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664378550; cv=none; d=google.com; s=arc-20160816; b=vSoAnUoIrdcHupLl9Fnp+dDpyxrfbfLqo64OLrNY3CrOC0shjNufY1pz86sPzu7rTn Vw9ZvIAmd9wen2/MrMOgqwja5H2aSkalFF5mflF1MOKCUL/Ms5Wg0VAbbquHghJFER+5 5FCvsCHKNGG81G2GGzsfsbFpnp81HVr4hGUrRvVQdXgAIUGZP4BlL/Up4haSe+OM4Vn9 33PFukDFZTbYCxrfVi9oVBjojOiLaRSpN3H2Q0eL7D+/1lrN/EXBlqbvsdRLufLpPuTq Cx3XH3gqQPek4WTjipOa6FybTp2Q4Ge+cIO5KDfYHIYpiGrxLtaWRcVVEindOzkHWrLS y5Eg== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=7U1I9hHO4CrRfjBWf9qPspGBAU/gGgUqLwer2phGAFU=; b=SmVbLbMjLozuL4Hp/TwsAPkD8KxnwUxv/kyOOVTSf5EAtZDgssuepd3e2OmbxahsRv VI88bQ3WjxdrM8FTo5ChiPnWBCi8qwAJlTBhLoC98y2mDKcBzWIgmQrm7DxL/ktem0+h v9R0XX77uDiHV547O8JCZTw3fMs+0U7WG/kb5EwJomVaqQ+o4pzvWAIAJ39WZoHJigpN +fxHlAXkfIyzcRbsqkhZhXA1mrTRwVRrjgagoiIwumN7NnBl9yWd6aiL504REKzjB3ic Aqdfyi2Y7Uh46WSqDhrLMmafygCLgF+lx5Hfq1nixCqVnWYjj9HsxaABOatan0v2RQwJ Z56Q== ARC-Authentication-Results: i=1; mx.google.com; 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 s13-20020a056a00194d00b0053e19dae4d3si3541557pfk.84.2022.09.28.08.22.17; Wed, 28 Sep 2022 08:22:30 -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; 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 S233271AbiI1Ny1 (ORCPT + 99 others); Wed, 28 Sep 2022 09:54:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231703AbiI1NyX (ORCPT ); Wed, 28 Sep 2022 09:54:23 -0400 Received: from mail-wr1-f43.google.com (mail-wr1-f43.google.com [209.85.221.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A339597D55; Wed, 28 Sep 2022 06:54:21 -0700 (PDT) Received: by mail-wr1-f43.google.com with SMTP id m4so5582774wrr.5; Wed, 28 Sep 2022 06:54:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-transfer-encoding:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date; bh=7U1I9hHO4CrRfjBWf9qPspGBAU/gGgUqLwer2phGAFU=; b=lR+4ly1GqQ9V1Zw88E2NKqMKq6QGORarPQZ5OHb23RZqbxmo50m9MfeDRsb7Tzjz3k nDhKhmcV7SFAkvOdhJy6ZeQplE6iOBhMa4jZZTc16i5sN//nVdaqpUJ4doU8d3Y0de9H Uao+Qt3E4OKfYBDzJMve+ngOZjKaS4npyjLRGAiQEQQkeX/4DX3TSM2GqESvqCSlqHxo rJBLc9w69B5Ku1Ds4c60CqmjYjLgvcoGtNMpSlxnFJ8PPc4a1HPvjtMxux3r2HZOaLnK h93tlEB3TUqpQnwQ3HJYBU4m6T8gx8hjToQxUmMaqtADLb4/oyvvo+UQNLHdnkvvpdt/ pWsQ== X-Gm-Message-State: ACrzQf0PkmIQ8Xy21Q2cSv+FU48GBydD6vrlpZ/CYJef76VvZ+u6WEXc tsoHdz1fag02978M0hiZW1cMHTNQqGg= X-Received: by 2002:a05:6000:1849:b0:228:c87d:2578 with SMTP id c9-20020a056000184900b00228c87d2578mr20938938wri.274.1664373259492; Wed, 28 Sep 2022 06:54:19 -0700 (PDT) Received: from liuwe-devbox-debian-v2 ([51.145.34.42]) by smtp.gmail.com with ESMTPSA id n16-20020adffe10000000b0022b014fb0b7sm4191199wrr.110.2022.09.28.06.54.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Sep 2022 06:54:19 -0700 (PDT) Date: Wed, 28 Sep 2022 13:54:17 +0000 From: Wei Liu To: Li kunyu Cc: kys@microsoft.com, haiyangz@microsoft.com, sthemmin@microsoft.com, wei.liu@kernel.org, decui@microsoft.com, catalin.marinas@arm.com, will@kernel.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, dave.hansen@linux.intel.com, hpa@zytor.com, arnd@arndb.de, x86@kernel.org, linux-hyperv@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH v6] hyperv: simplify and rename generate_guest_id Message-ID: References: <20220928064046.3545-1-kunyu@nfschina.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220928064046.3545-1-kunyu@nfschina.com> X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS 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 Wed, Sep 28, 2022 at 02:40:46PM +0800, Li kunyu wrote: > The generate_guest_id function is more suitable for use after the > following modifications. > 1. The return value of the function is modified to u64. > 2. Remove the d_info1 and d_info2 parameters from the function, keep the > u64 type kernel_version parameter. > 3. Rename the function to make it clearly a Hyper-V related function, > and modify it to hv_generate_guest_id. > > Signed-off-by: Li kunyu > > -------- > v2: Fix generate_guest_id to hv_generate_guest_id. > v3: Fix [PATCH v2] asm-generic: Remove the ... to [PATCH v3] hyperv: simp > lify ... and remove extra spaces > v4: Remove #include in the calling file, and add #inclu > de in the function implementation file > v5: is changed to the definition position before v4, an > d the LINUX_VERSION_CODE macro is passed in the function call > v6: Modify the patch description information to the changed information a > fter discussion This part -- normally the change history should be stripped when the patch is committed with git-am(1). The usual way of doing it is to place them (and any other text that is not intended to be committed) after three dashes. No fewer, no more, only three dashes. Why three dashes? Git-am(1) has the following: The patch is expected to be inline, directly following the message. Any line that is of the form: • three-dashes and end-of-line, or • a line that begins with "diff -", or • a line that begins with "Index: " is taken as the beginning of a patch, and the commit log message is terminated before the first occurrence of such a line. Notice the last sentence. You used eight dashes. Git-am(1) does not consider that pattern terminates the commit log message. There is no need for you to do anything. I've cleaned up the commit message and applied it to hyperv-next. I thought the above tidbit can help you (or anyone else who doesn't know about this and happens to read this lengthy email) in your future patch submission though. :-) Thanks, Wei.