Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1973315pxp; Thu, 10 Mar 2022 16:26:16 -0800 (PST) X-Google-Smtp-Source: ABdhPJxb5NCWeS6geUAPjxDdY2IktispwBqsfg8xejWSFQb0tv2OUEBe2EVxW4VsKaEyXJy9+2IM X-Received: by 2002:a17:907:629a:b0:6d7:b33e:43f4 with SMTP id nd26-20020a170907629a00b006d7b33e43f4mr6555704ejc.149.1646958376326; Thu, 10 Mar 2022 16:26:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646958376; cv=none; d=google.com; s=arc-20160816; b=ytRvEC3zoes3Q88KWsLFnYh8gzHBSHv8tVIzjyQ5PF3x9p/pPXg2LhvzgXv2GgUjkM 0YislRXnZszTGqli8ym8GocjkC06zdlJLtr+kuzBi4Bl7D4juYYhOqogzP5Xxm7cwZPN Is6qxHBIPlWjUvpQt7I8KJWTO5Covn7HOrwIo/qa8BEur5o810zTCf6El6OlVFBZCM6w 2zvaABykRfNgOFDnHFHWVnhVZRjmr1VlADglv4hAgAXBJ/xG34LVmkdx8FKEP0Pbjspf ID9YNpAJt4J0sFCir5P8M+aVFbH5kD+29tOW1zwHmGbINe+e00AbaqJzPD3AFfMroXC+ pOuQ== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=BFqZ+5vrO/ok29iYK5+bv3c0+bh9oUSGb7YvOWo/y3k=; b=WhdUIgUVzc9MtV5H2Gg9rXcF5IfYwOIAh2yCJH3U/Lq7wYtGEFlntE2G9bxRVWEdI+ LQukvW3mdPnyorUUCgzxkdzS0IS8fxJE/kJV8Q2c9e80JxGuzVrGzxBDi1TbSrI81PHr zEpeyrZ0HNVsAAK4x3zep8vAKs0OO3n3UDKRXEsqFndPtCuKxjdjkxSbG9mxPsGZe2NN JnUD1EA/+5E47sIVwJEqTgJybwBNq2H5M0OEQTz3YhSGZN9Vhms/htJ1dhJw3g8kY+hH KF0IvqENXB5TWZxLq6uh6lUJkYSm1kxrD/FJW9RdCCjhjL2o7Bc9bSaHHjQaaugwdZeX G67w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AswlffeE; 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=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q19-20020a1709066ad300b006cf5e45c204si3991212ejs.364.2022.03.10.16.25.54; Thu, 10 Mar 2022 16:26:16 -0800 (PST) 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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=AswlffeE; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245751AbiCJTGS (ORCPT + 99 others); Thu, 10 Mar 2022 14:06:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35046 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245746AbiCJTGP (ORCPT ); Thu, 10 Mar 2022 14:06:15 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 65117155C07; Thu, 10 Mar 2022 11:05:11 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 07794B826EE; Thu, 10 Mar 2022 19:05:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D634C340E8; Thu, 10 Mar 2022 19:05:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1646939108; bh=31CsDxuXQkxZdivfzKTGWRUE6cmFgAKs1nPr9jAdUds=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=AswlffeEqkh7WnZl+Wrpa1vhu0pjNI05OnI4T8c41qjJWMBKYXQzbW92SI0dL9SNw J5KSCQlMm1LHkkqhhFrW+WNIOLe+jXKaQLErkzFksjqf28T1Rcj/Kw5PyY8drlwK9C BHFr6e25P4r6wfAOWAsy71tR3rNCsYusP/wE6a+k= Date: Thu, 10 Mar 2022 20:05:04 +0100 From: Greg KH To: "H. Nikolaus Schaller" Cc: Huang Pei , Thomas Bogendoerfer , Sasha Levin , Christoph Hellwig , stable@vger.kernel.org, linux-kernel , Discussions about the Letux Kernel Subject: Re: [BUG] new MIPS compile error on v5.15.27 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-7.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Thu, Mar 10, 2022 at 05:25:07PM +0100, H. Nikolaus Schaller wrote: > upstream commit 277c8cb3e8ac ("MIPS: fix local_{add,sub}_return on MIPS64") > > was backported to v5.15.27 as > > commit f98371d2ac83 ("MIPS: fix local_{add,sub}_return on MIPS64") > > but breaks MIPS build: > > In file included from ./arch/mips/include/asm/local.h:8:0, > from ./include/linux/genhd.h:20, > from ./include/linux/blkdev.h:8, > from ./include/linux/blk-cgroup.h:23, > from ./include/linux/writeback.h:14, > from ./include/linux/memcontrol.h:22, > from ./include/net/sock.h:53, > from ./include/linux/tcp.h:19, > from drivers/net/slip/slip.c:91: > ./arch/mips/include/asm/asm.h:68:0: warning: "END" redefined > #define END(function) \ > > In file included from drivers/net/slip/slip.c:88:0: > drivers/net/slip/slip.h:44:0: note: this is the location of the previous definition > #define END 0300 /* indicates end of frame */ > > Analyses reveals that with the backported MIPS fix there is a new > #include introduced by ./arch/mips/include/asm/local.h > which already defines some END macro. > > But why does v5.16.x compile fine where > > commit a0ecfd10d669c ("MIPS: fix local_{add,sub}_return on MIPS64") > > is also present since v5.16.3? > > Deeper analyses shows that there is another patch introduced > in v5.16-rc1 which removed one #include in the above chain and > therefore does not define END by asm/asm.h: > > commit 348332e000697 ("mm: don't include in ") > > Hence, the MIPS fix should only be applied to branches where > the mm fix is already present. Or the mm fix should be backported > as well (if it has no side-effects). > > Note: the MIPS fix was apparently not (yet?) applied to v5.10.y or earlier > even tough the Fixes: 7232311ef14c ("local_t: mips extension") > would be true. Thanks for the report. I'll work on resolving this for the next round of stable releases _after_ the ones that are currently out for review are released. thanks, greg k-h