Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1904057imm; Tue, 2 Oct 2018 16:27:42 -0700 (PDT) X-Google-Smtp-Source: ACcGV63H6BIkfdwJD4NkttKOZcgTkzpidrHTAfO5xV05b2AxkM6K9j0iGI37SCXaTGziDiTugqQN X-Received: by 2002:a63:e00d:: with SMTP id e13-v6mr13870275pgh.114.1538522862862; Tue, 02 Oct 2018 16:27:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538522862; cv=none; d=google.com; s=arc-20160816; b=ZD7n2EyNr/lIAvyWE3tSW1WLFmS/9iAmf9NjzLicwRkc4kuTksh3R5M096H8/lYkky ROExfONAd6YoKrTHcK3OYldysjkLk0DYfb7qp6SVwnS+meSLO8q4qJQzHfEwI13zzDwe six2IAQltrJQuEYMy0hCkj5s/pF92NMDLntNom2ov3IlPnlLlEF1Utg3LbTLCfnuouqR iJkCv3alVuEN/cfDiPAzvZv/I/FElD1YRn3JReffA7+rOmMma/jmN13aHTbTuD6XqZMz Mt7OvjLqZiBK51/PevdyvssKGTSReQ8a8FWb3/Wpx796UXkNF8iCsCMOLkr6PPlhEI3i OmUw== 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-disposition:mime-version:references:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=t6Nj3tOXaCalTYPbdK5Vd/1HsNLBCQAbMp0xxwDDHxI=; b=g3zH/9HG8jDUc3keRo1v4OC5I06SIBz64PRAMkleGjOnHAZdkaW1aR3kfbXyDq1q4v 87UVASTGPZ3FpZGbfZchxzsxy3vBc7aa4FCzTer9KFK55zEVU19Y2lptjzrhr+rPVRdt giM24WC9h5foxyaZ/EIEqceINhg8qwcl0ljeHpEwxQyuKI6eWI5m4byJ9MewFrWvvTkV /wve8KEkWgu95aw9cDE7TpDT3g47eYNNjzjIa+JL2sEPjhyEByb/zpJpdV6kzWBjpuIV O0uuMv0xnsvg/vq6vhgsV93L4mq8D/vewQM7rI/pM5mNhS9dK+jBuZOzGR/4uBfjTRqP vaZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b="LXE/K1XF"; 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 k29-v6si17557417pfk.194.2018.10.02.16.27.26; Tue, 02 Oct 2018 16:27:42 -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; dkim=fail header.i=@thunk.org header.s=ef5046eb header.b="LXE/K1XF"; 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 S1726394AbeJCGLm (ORCPT + 99 others); Wed, 3 Oct 2018 02:11:42 -0400 Received: from imap.thunk.org ([74.207.234.97]:48222 "EHLO imap.thunk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725724AbeJCGLl (ORCPT ); Wed, 3 Oct 2018 02:11:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=thunk.org; s=ef5046eb; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=t6Nj3tOXaCalTYPbdK5Vd/1HsNLBCQAbMp0xxwDDHxI=; b=LXE/K1XFvQSohP3wAfgTc26dsU 7XUnWpdet4SvTKD954MHcZgqMjwmdGBIUwqGAWOiCuuWSETQpZlzZiu4rss0hJVuNJw6G7rD9AUb/ FycQpvL0UEHQndsuwzaFNP5itIP4V4Fl2OM+wMpmzPIWgXO3e6B+36ON93GacljErXfk=; Received: from root (helo=callcc.thunk.org) by imap.thunk.org with local-esmtp (Exim 4.89) (envelope-from ) id 1g7U2A-0001CS-Ui; Tue, 02 Oct 2018 23:24:54 +0000 Received: by callcc.thunk.org (Postfix, from userid 15806) id 366767A5186; Tue, 2 Oct 2018 19:24:54 -0400 (EDT) Date: Tue, 2 Oct 2018 19:24:54 -0400 From: "Theodore Y. Ts'o" To: Miguel Ojeda Cc: Nick Desaulniers , Andrew Morton , Greg KH , Linux-Next Mailing List , Andreas Dilger , Masahiro Yamada , Michal Marek , Steven Rostedt , Mauro Carvalho Chehab , Olof Johansson , Konstantin Ryabitsev , David Miller , Andrey Ryabinin , Kees Cook , Thomas Gleixner , Ingo Molnar , Paul Lawrence , Sandipan Das , Andrey Konovalov , David Woodhouse , Will Deacon , Philippe Ombredanne , Paul Burton , David Rientjes , Willy Tarreau , Martin Sebor , Christopher Li , Jonathan Corbet , Geert Uytterhoeven , Rasmus Villemoes , Joe Perches , Arnd Bergmann , Dominique Martinet , Stefan Agner , Luc Van Oostenryck , Linus Torvalds , Linux Doc Mailing List , Ext4 Developers List , linux-sparse@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel , Stephen Rothwell Subject: Re: [GIT PULL linux-next] Add Compiler Attributes tree Message-ID: <20181002232454.GB2483@thunk.org> Mail-Followup-To: "Theodore Y. Ts'o" , Miguel Ojeda , Nick Desaulniers , Andrew Morton , Greg KH , Linux-Next Mailing List , Andreas Dilger , Masahiro Yamada , Michal Marek , Steven Rostedt , Mauro Carvalho Chehab , Olof Johansson , Konstantin Ryabitsev , David Miller , Andrey Ryabinin , Kees Cook , Thomas Gleixner , Ingo Molnar , Paul Lawrence , Sandipan Das , Andrey Konovalov , David Woodhouse , Will Deacon , Philippe Ombredanne , Paul Burton , David Rientjes , Willy Tarreau , Martin Sebor , Christopher Li , Jonathan Corbet , Geert Uytterhoeven , Rasmus Villemoes , Joe Perches , Arnd Bergmann , Dominique Martinet , Stefan Agner , Luc Van Oostenryck , Linus Torvalds , Linux Doc Mailing List , Ext4 Developers List , linux-sparse@vger.kernel.org, linux-kbuild@vger.kernel.org, linux-kernel , Stephen Rothwell References: <20181003071059.02b3fd6f@canb.auug.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: tytso@thunk.org X-SA-Exim-Scanned: No (on imap.thunk.org); SAEximRunCond expanded to false Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 03, 2018 at 12:12:10AM +0200, Miguel Ojeda wrote: > As I have read, -next is supposed to be a vision of what the merge > window will look like after merging everything, i.e. ideally -rc1. For > that to work for files out-of-tree (like these ones, which are not > maintained by a single tree), changes should be allowed to be stacked > on each other; otherwise, we cannot handle conflicts :-( In general, best practice is to base tree on an -rcX commit. I usually will use something like -rc4 which is after most of the major changes have gone in. This tends to reduce conflicts for most git trees. There are times when a commit in one tree needs to depend on a commit in another tree. What to do depends on the circumstances. One solution is to base one subsystem's git tree on another subsystem's git tree --- *if* that git tree is one that doesn't get rebase. You'll need to talk to the subsystem maintainer to find out whether or not that's the case. But that's actually not a great solution, because what can happen is if the tree A is based on tree B, and there is something in tree B which Linus objects to, tree B won't get pulled. And since tree A depends on tree B, Linus will refuse to pull tree A as well. We recently had a case where a subsystem pull got delayed by a full development cycle because of this. So another solution is to simply evade the problem. If the reason why tree A needs to depend on tree B is that tree B is using some interface which has changed, if it's a minor change, then Stephen will fix it up when he pulls the changes; just as Linus will. If the issue is that there is some common infrastructure which two git tree needs, what will often happen is that just those patches which provide the new infastructure will get put on a branch based on -rcX on one of the git trees. And then the subsystems will base their work on that sub-branche. For example, suppose the file system developers have collectively decided that there should be a new fallocate(2) flag, FALLOC_FL_DONT_RANDOMLY_LOSE (ala RFC 748). The work to define and enable that feature in the VFS layer might be placed on the randomly-lose git branch on xfs.git. And then the xfs and ext4 development branches will both be based on the randomly-lose branch. Yet another solution is to arrange the code changes to avoid needing commits that might conflict. For example, in fs/ext4/ext4.h, I very deliberately did this. /* Until this gets included into linux/compiler-gcc.h */ #ifndef __nonstring #if defined(GCC_VERSION) && (GCC_VERSION >= 80000) #define __nonstring __attribute__((nonstring)) #else #define __nonstring #endif #endif You included a cleanup patch to remove it in your git tree, but it wasn't actually necessary. If there was a merge conflict, it would be simple enough to just drop your cleanup patch, since I had carefully used #ifndef __nonstring... #endif. So the idea was that if someone defined __nonstring somewhere else, it wouldn't break the build with a duplicate #define since it was protected with an #ifndef. I didn't mind that you included a cleanup patch; but I set things up so that it would not be necessary, since often the best way to solve a merge conflict is by avoiding the need for the change (in some other git tree) in the first place. :-) Cheers, - Ted