Received: by 2002:a05:6a10:413:0:0:0:0 with SMTP id 19csp1737654pxp; Thu, 10 Mar 2022 11:06:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxOIdiRzTRqmhVW5fxeyhxFkgcM2d42ZFXU0oOA272YNIftPbRz0eLP2ycKC3o4rogBErhZ X-Received: by 2002:a17:907:8a0d:b0:6d6:dae9:7263 with SMTP id sc13-20020a1709078a0d00b006d6dae97263mr5510321ejc.671.1646939215418; Thu, 10 Mar 2022 11:06:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646939215; cv=none; d=google.com; s=arc-20160816; b=t6MEykEHqUXfb8J42sVvu7jkpZlYbtN/lJIq97UqJlBwRQjvXLJ2Y00VH9Le4Awiu1 thRbtwH9cIMDLNOHq91s8LJwh8HDvrZP1f2vT2gXNOxDLQdha+o7rG8khKgboAVRy4NN wdnqWZEsdkMVk2Rp07x42rdHzNngmF9nX5eM9tNKh/7gGWkjvmFUct1FpKQ9v70DVeRK tx7dqqGuUmXkxLn4DGsznQPIGodjoWG6fOHuRHk1fLVyOyFJt7M3qh2c35IcrZhJFMjH Ovp/2V5Q8b9TKCl5ThPYHYH+Wf4P086ds+rxpxKQC7wcxM3MupQn1mOvlLUT3xP2vO+f snbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:to:cc:subject:date:mime-version :content-transfer-encoding:from:dkim-signature; bh=C3MEEvCsdntcFwNwoUEd0O6fo1BIx8o+x380PB9R+7M=; b=H3/HqzltgVohflaGZ1p7G2bFAKaxvMcFkIJhe/IkI7w4e5K2L+lJSkq6+ejdXDUAI9 7L12/6b3cq+iJDpKdb+Ps/lFp8Uxca989fFzUB3WG7eGqkHZGlQA3c4WJWGFGQKicdOk 2tPlE/jSCXqx2VtFIKLZppMZorLBwv6XCUrZOL1eYHh/sUvYkwbAwcBICWR9fDvNgs6w t4kHr0xvcZkeGEo2qLSlFNGkdSiWjf+3kD00TrE1N50EUyhEuZFOIjizN+C+S+KkOZZx 1r2Gxwv8Sbs99HVkMqvYbMpOdJKzxrYMFJYO20jaxi3NHjEXzxIa1PM/1ln+rg/Wgqi5 1xZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@goldelico.com header.s=strato-dkim-0002 header.b="GOLa/OjK"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y15-20020a50d8cf000000b004160dab0402si4096007edj.291.2022.03.10.11.06.32; Thu, 10 Mar 2022 11:06:55 -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=@goldelico.com header.s=strato-dkim-0002 header.b="GOLa/OjK"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243897AbiCJQ32 (ORCPT + 99 others); Thu, 10 Mar 2022 11:29:28 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40908 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244687AbiCJQ3R (ORCPT ); Thu, 10 Mar 2022 11:29:17 -0500 X-Greylist: delayed 173 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 10 Mar 2022 08:28:15 PST Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:400:100::6]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC1314C41C for ; Thu, 10 Mar 2022 08:28:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1646929509; s=strato-dkim-0002; d=goldelico.com; h=Message-Id:To:Cc:Subject:Date:From:Cc:Date:From:Subject:Sender; bh=C3MEEvCsdntcFwNwoUEd0O6fo1BIx8o+x380PB9R+7M=; b=GOLa/OjKY2zqL4xNZwYxwSSB7+toziQGOiRD3MY7ZkR1ZGMOVcgGIzM1WYOJbJXWEH WAOFL+OUljB4S0o8HMGA+c660JZWi1IVYg28XQHcblXiVxJGkpGNIA+I7PoxsdFRiETk hP0KkClTdS80KkXV7+dq0MztIVs6w4djZCiDnNCS2d9JCzrBBrQHQAlDchRxD77ot7I4 uIZgkfuv+NEsf+Hj3Lhe8quMRJ6SUW8buyTClg3JaPYL4fmVbD73fiL2/7RsXvDgAl4R pCoarUPr8/ISQg2jc2tkDfVtz8vHU9Vd6BsybBA+DD36dlThLVnNNRQF5ZnJG5Ox3ULL bTRA== Authentication-Results: strato.com; dkim=none X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMgPgp8VKxflSZ1P34KBj7gpw91N5y2S3j8N+" X-RZG-CLASS-ID: mo00 Received: from imac.fritz.box by smtp.strato.de (RZmta 47.40.1 SBL|AUTH) with ESMTPSA id 30b171y2AGP80Aq (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve X9_62_prime256v1 with 256 ECDH bits, eq. 3072 bits RSA)) (Client did not present a certificate); Thu, 10 Mar 2022 17:25:08 +0100 (CET) From: "H. Nikolaus Schaller" Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.21\)) Date: Thu, 10 Mar 2022 17:25:07 +0100 Subject: [BUG] new MIPS compile error on v5.15.27 Cc: stable@vger.kernel.org, linux-kernel , Discussions about the Letux Kernel To: Huang Pei , Thomas Bogendoerfer , Sasha Levin , Christoph Hellwig Message-Id: X-Mailer: Apple Mail (2.3445.104.21) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_NONE, 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 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) \ =20 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. BR and thanks, Nikolaus Schaller