Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp1496633ybk; Sun, 10 May 2020 19:01:03 -0700 (PDT) X-Google-Smtp-Source: APiQypKXX2I8UwRdD7rJo5jhp9oa1roLIM0xykYj0cg6jYYMJGP1c+7734upFY3iByONHktTYVF2 X-Received: by 2002:a17:906:90c1:: with SMTP id v1mr10859042ejw.322.1589162462914; Sun, 10 May 2020 19:01:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589162462; cv=none; d=google.com; s=arc-20160816; b=tuszyPA0XxIOPW1+nMtf7yoj/2JLHwXzvRyyaBTFI18REtMRfAjSki1jDE2OJARdxg ger/ZsyvEjFIfI+2Xy4Hzoe2OsKtiDU/5Sgy/FW0/e/XP0GrFzSC2wlOj3Dl8AOludty yaBq8LoiZf0brWUQ8Yt8AcqFh8YVu0VouZBKKi8AJnJZP4+NFs8aIFaj6Fm7Jd0LSgFU L0k0J+xkOwa9vqUlIghHc7M8S6VIHTHcRwTnkE4RshJtIbCjlhfnwHjfoSJNW7UwK9s7 5oM+1Z4J1vfXZu2AbParCkcQdLHqbWOiyXDzg7kbLAvJ0wrE6ENLRXZjpXMvX18FFdRh 80vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:cc:to :subject; bh=GWWjBxJfpBMLRV9TqZrPganSLWM5+s/iHMkXyuwJM20=; b=bY0M1NRJeSKV64mn8CtEl85UnT3XmhThRJx9P0Y3bZPH8wa+GWqMm6u94gYElMuC1z GClve/taIE92aXKW6oKFEFX8rpzngqq/xXza+49WB77lx09qt+aoQ7LZBy9EUbNdDAER Y8GErj+14g+jJN2EUPwSpEdJ0OAMpxnDXD21LO0sNFCoyLU5udAv91f+zjdFHZNkZGi2 DTAT/aWpnBFbsjDMULHB8MN6jGLNwxVd1iZIsoNiaA6WsM9gid94ud0aB26yVJu+n20E GuAx8e3cr4b+Ix77Opa1hb9WiLgnQJzrWoVklUCl7A2D+YDxbmDkQUL5EHJdl+Ywn8RO jm6Q== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u27si1175648edb.377.2020.05.10.19.00.30; Sun, 10 May 2020 19:01:02 -0700 (PDT) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729255AbgEKBz1 (ORCPT + 99 others); Sun, 10 May 2020 21:55:27 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:51308 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729177AbgEKBz1 (ORCPT ); Sun, 10 May 2020 21:55:27 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 36CC5B2F649EB3DADC61; Mon, 11 May 2020 09:55:24 +0800 (CST) Received: from [127.0.0.1] (10.67.102.197) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Mon, 11 May 2020 09:55:22 +0800 Subject: Re: linux-next: manual merge of the vfs tree with the parisc-hd tree To: Stephen Rothwell , Al Viro , Helge Deller , Parisc List , , , , CC: Linux Next Mailing List , "Linux Kernel Mailing List" , Christoph Hellwig References: <20200511111123.68ccbaa3@canb.auug.org.au> From: Xiaoming Ni Message-ID: <99095805-8cbe-d140-e2f1-0c5a3e84d7e7@huawei.com> Date: Mon, 11 May 2020 09:55:16 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.1.2 MIME-Version: 1.0 In-Reply-To: <20200511111123.68ccbaa3@canb.auug.org.au> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.102.197] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/5/11 9:11, Stephen Rothwell wrote: > Hi all, > > Today's linux-next merge of the vfs tree got a conflict in: > > kernel/sysctl.c > > between commit: > > b6522fa409cf ("parisc: add sysctl file interface panic_on_stackoverflow") > > from the parisc-hd tree and commit: > > f461d2dcd511 ("sysctl: avoid forward declarations") > > from the vfs tree. > > I fixed it up (see below) and can carry the fix as necessary. This > is now fixed as far as linux-next is concerned, but any non trivial > conflicts should be mentioned to your upstream maintainer when your tree > is submitted for merging. You may also want to consider cooperating > with the maintainer of the conflicting tree to minimise any particularly > complex conflicts. > Kernel/sysctl.c contains more than 190 interface files, and there are a large number of config macro controls. When modifying the sysctl interface directly in kernel/sysctl.c , conflicts are very easy to occur. At the same time, the register_sysctl_table() provided by the system can easily add the sysctl interface, and there is no conflict of kernel/sysctl.c . Should we add instructions in the patch guide (coding-style.rst submitting-patches.rst): Preferentially use register_sysctl_table() to add a new sysctl interface, centralize feature codes, and avoid directly modifying kernel/sysctl.c ? In addition, is it necessary to transfer the architecture-related sysctl interface to arch/xxx/kernel/sysctl.c ? Thanks Xiaoming Ni