Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp5329101ybg; Tue, 22 Oct 2019 01:18:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqzcLrWaE+0cDRp1CIMhPXxA6LqEGBPMNONQndbRbVfok7uxXQKV/CNqzLyekmPXc454Qj7O X-Received: by 2002:a17:906:bceb:: with SMTP id op11mr5810442ejb.197.1571732305454; Tue, 22 Oct 2019 01:18:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571732305; cv=none; d=google.com; s=arc-20160816; b=auU8+AW/uHxtUahJh35t2wHsi6CcRHECZfrurVi+/P+Dz45qYPRbvpDRVYkR6aIJMB goctm9OAjjVmiWXmCcRwwYP7iCgdL/YfC+WCDDh3qbc2SgXkHvhF7rBx76Ei/TjT08+5 lFk1psTm0UbW9Ij2sF9tFAD+uVJTh+hQqUAFItMwJsabtA5Fo/xTqkzxGo5dnW96+qtR mW4rDarOy7/TYGNDz9eDiDwj07Ep1I+B8o01yJtXUFvqChSZg2/VkvATgVY8qneWzDaP uUoaqFnvOObi27I0GBY4zAbMDPh7Ox/sYatw9QQIrb56oaEm+/vM4ACObqk6DsZ4S4yy bEHQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=KfQyMQT9V+4SwSl1g0PAE2Khwoq1aFIla8VcJErIZFY=; b=ybnXeNCvbeH03HJGWGxBSfAbVHSBsbudW9eLi4QygfXd96b3UCF7WOLHDFimyEyxdm x47AdvsuRJfPXJBfM3e7SHzxcm6XZwYonGM1+UVP3R92YcqZzrRNPVVbNAtgDyFHpZF2 gxKQy03R6lMPqakV11fMrys8Tlp2FyzO+45jexJ2zUpVZzuGb6nC0glxHdVog2Rcyf4L CzibA8UdsD1soWDm3eH23y9GT2dgDYFgchUdZChWjjpihDALCmVg04FaT4LnNe+R0/Tt /J2K7E4Y2LpiHiKW58rSkFx/Z73dl0Qo5I7fCUEoLD0aN4FnQJJxxH3NPkA4IG9JcLwA RRng== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g19si9809424ejj.120.2019.10.22.01.18.01; Tue, 22 Oct 2019 01:18:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388297AbfJVIQa (ORCPT + 99 others); Tue, 22 Oct 2019 04:16:30 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:44953 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388061AbfJVIQa (ORCPT ); Tue, 22 Oct 2019 04:16:30 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1iMpL8-0006mc-Dk; Tue, 22 Oct 2019 10:16:26 +0200 Received: from ukl by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1iMpL6-0003pF-L0; Tue, 22 Oct 2019 10:16:24 +0200 Date: Tue, 22 Oct 2019 10:16:24 +0200 From: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= To: Ingo Molnar Cc: Linus Torvalds , Catalin Marinas , Will Deacon , Linux Kernel Mailing List , Linux ARM Kernel Mailing List , git@vger.kernel.org Subject: Re: [GIT PULL] arm64: Fixes for -rc4 Message-ID: <20191022081624.4tmumskeoayt4bzg@pengutronix.de> References: <20191017234348.wcbbo2njexn7ixpk@willie-the-truck> <20191018174153.slpmkvsz45hb6cts@willie-the-truck> <20191021064658.GB22042@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20191021064658.GB22042@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, I added the git list to Cc:. For the new readers: The context of this thread can be found at https://lwn.net/ml/linux-kernel/20191017234348.wcbbo2njexn7ixpk@willie-the-truck/ On Mon, Oct 21, 2019 at 08:46:58AM +0200, Ingo Molnar wrote: > Anyway, a small Git feature request: it would be super useful if "git > request-pull" output was a bit more dependable and at least warned about > this and didn't include what is, from the viewpoint of the person doing > the merge, a bogus diffstat. (Generating the correct diffstat is probably > beyond request-pull's abilities: it would require changing the working > tree to actually perform the merge - while request-pull is a read-only > operation right now. But detecting the condition and warning about it > should be possible?) I think Will's case is still an easy one compared with what could actually happen. The related history looks as follows: ,-. ,-. ,-. ,-. ,-. v5.4-rc1 --| |-...-| |-- v5.4-rc2 --| |-..-| |-..-| |-- v5.4-rc3 \ `-' `-' \ `-' /-' `-' \ ,-. ,-. \ ,-/ ,-. ,-. `--| |-...-| |--------------------|*|----| |-...-|H| `-' `-' \ `-' `-' /-' \ ,-. ,-. / `--| |-...-| |-----' `-' `-' Will asked Linus to merge the Commit marked 'H', the two merge bases are v5.4-rc2 and '*'. (FTR: * = 3e7c93bd04edfb0cae7dad1215544c9350254b8f H = 777d062e5bee0e3c0751cdcbce116a76ee2310ec , they can be found in git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git) The formally correct way to create the diffstat is to merge v5.4-rc2 and '*' (in general: all merge bases) and calculate the diff between this merge and the to-be-merged-commit. Compared to what Will did (i.e. merge Linus' HEAD and this branch and then diff @~ with @) doing it the way I described has the advantage(?) that commits that conflict with this merge request in Linus' tree since the merge bases are not in the way. In this case this can be done automatically: $ git read-tree --index-output=tralala v5.4-rc2 3e7c93bd04edfb0cae7dad1215544c9350254b8f $ GIT_INDEX=tralala git write-tree 6a2acfd1870d9da3c330ea9b648a7e858b5ee39f $ git diff --stat 6a2acfd1870d9da3c330ea9b648a7e858b5ee39f 777d062e5bee0e3c0751cdcbce116a76ee2310ec Documentation/arm64/silicon-errata.rst | 2 ++ arch/arm64/Kconfig | 17 ++++++++++++++ arch/arm64/include/asm/asm-uaccess.h | 7 +++--- arch/arm64/include/asm/cpucaps.h | 4 +++- arch/arm64/include/asm/memory.h | 10 ++++++-- arch/arm64/include/asm/pgtable.h | 3 --- arch/arm64/include/asm/sysreg.h | 2 +- arch/arm64/kernel/cpu_errata.c | 38 +++++++++++++++++++++++++++++++ arch/arm64/kernel/cpufeature.c | 15 ++++++++---- arch/arm64/kernel/entry.S | 8 ++++--- arch/arm64/kernel/hibernate.c | 9 +++++++- arch/arm64/kernel/process.c | 18 +++++++++++++++ arch/arm64/kvm/hyp/switch.c | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++-- arch/arm64/mm/fault.c | 6 ++++- include/linux/sched.h | 1 + 15 files changed, 186 insertions(+), 23 deletions(-) Would be great if git-request-pull learned to do that. Best regards Uwe -- Pengutronix e.K. | Uwe Kleine-K?nig | Industrial Linux Solutions | http://www.pengutronix.de/ |