[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Revert NR_CPUS=1 fix from 4.15 (was: Re: [PATCH] fix for_each_cpu() again for NR_CPUS=1)


  • To: Jan Beulich <jbeulich@xxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Thu, 1 Apr 2021 11:00:53 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qEoRPbqbDx09jsw9MPEd1Mx3j080F815Z6eTMvjOSQY=; b=GWjjqmateYPbqJBjXZAcvSwofWXudVVqh/p/a/jP1j6fOofDzIbO5b29+DDMwpcM5Z9FS0nujkDbX6JRzOt3gNkCOayPbAZPxRGsOGrY9O72qhKE8migtMPSJZcNUgbxt1cjX8S9KWFBfIuGytacUuDJlCnbirPrg7WDZyy2TCqk1U9eCjBljJWjZsAyE6gLPKVjw7GbL6BFU5f/2h1W6IVEZ4DZYHQWRZ3lahgkSWDMvR9Zx+yHQKP+4VCAnyVAShsk4OErNQuHwYMcAviB9HIg4uk3G1SoPGwtcF/ZNBBRou+a3VhyYrbtiqGAvv2p16kgDC69JeodKz4prpR52A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Y9WRa342OOHmO8WJh0qcthcu29jAAm7Tu1UMPyAMy9Tfz43lRp9Q/uqgZI28pbQgHrylJRnqawtAsUBpyOYvQ5EpYgRJHrycrxEAykbDojBGqhMxhIaB1Us83GQ2tEyf8E9zGHMwWBzEUG7PbxldHki8mkfMdLQ1gHUqwLQW7z7fZP3joErKD6mx+ef40vkhTnaHuOFyIPmvKkyGgJlO6T05JqyjYwoya28KQqOTpDe5qQ1FgbbL5GPXYCi7fulVPKlyX/L1fBS+V0XScjb6mDV4ISutkYFuMctDm1cv3sF132Fa+ffDh+iCwR+urkPNoeqo1yTiU58kroSnBdrNyA==
  • Authentication-results: esa5.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Dario Faggioli <dfaggioli@xxxxxxxx>
  • Delivery-date: Thu, 01 Apr 2021 09:01:10 +0000
  • Ironport-hdrordr: A9a23:U1sb5axfQz+ruIVTxDlfKrPxnO4kLtp033Aq2lEZdDV8Sebdv9 yynfgdyB//gCsQXnZlotybJKycWxrnmqJdybI6eZOvRhPvtmftFoFt6oP+3ybtcheTysd07o 0lSaR3DbTLYGRSpdrm4QW+DtYryMSG9qftvuvF03JxV2hRCp1IxS0RMHf9LmRdQg5aCZ0lUL ed/NNAvTq8eXIRB/7LfEUtde7FutHNidbaehYAHREq802jijmv5b78HXGjr2ojehlIxqov9n WArhzh6syYwoqG4zL/90uW1ZRZn9P91sBObfbjtuE5Iijh4zzYBrhJdKaFuFkO0YSSwXYs1O LBuhIxe/l0gkmhAl2dhTvI903e3C0163nkoGXo8UfLhcDiXjo1B45gqOtiA2LkwnEttt19z6 5Htljx3/E8bWKi7VbAzuPFWB1wmk2/rWBKq59qs1VlXZYDc7gUlIQD/SpuYeY9NRjn44MqGv QGNrC72N9qdzqhHhTkl1gq6tmtUnMvJwyBU0gPt+eEugIm4kxR/g82wtcSkWwH8494Y55Y5/ 7cOqAtr71WSNQKBJgNSNspcI+SMCjgUBjMOGWdLRDOE7wGAWvEr9rS7K8u7O+nVZQUxP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cFxbW668mBAVuDg==
  • Ironport-sdr: WunBr5vtlhzG6tTeZRB7xEZxbL5R2UzpuFrkMdE4jq0Qf6eGfEAYbMAEqqouDnPKGLeCiVe025 KGUgPg6U+FBFJZ1JIHzpX2DW35XHI9BfqaVAnV6HEl+uulq4I9W1swA1HYUtMnctR4sFJCeojw VNHXA8LqKO80XUK538ZV+QmHWTPVYuwEevKRvXGx2uVveKVOM3spyP/075+Rc83E0KJuJ2yxIZ 11Ay2DMKB4/YYFlhBdqhHmJ63nIDjtZTFLXI89lYJemfPArsHOE5xAVlM/uYQi9U7/XD2aO0Fz l14=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Wed, Mar 31, 2021 at 04:52:47PM +0200, Jan Beulich wrote:
> Unfortunately aa50f45332f1 ("xen: fix for_each_cpu when NR_CPUS=1") has
> caused quite a bit of fallout with gcc10, e.g. (there are at least two
> more similar ones, and I didn't bother trying to find them all):
> 
> In file included from .../xen/include/xen/config.h:13,
>                  from <command-line>:
> core_parking.c: In function ‘core_parking_power’:
> .../xen/include/asm/percpu.h:12:51: error: array subscript 1 is above array 
> bounds of ‘long unsigned int[1]’ [-Werror=array-bounds]
>    12 |     (*RELOC_HIDE(&per_cpu__##var, __per_cpu_offset[cpu]))
> .../xen/include/xen/compiler.h:141:29: note: in definition of macro 
> ‘RELOC_HIDE’
>   141 |     (typeof(ptr)) (__ptr + (off)); })
>       |                             ^~~
> core_parking.c:133:39: note: in expansion of macro ‘per_cpu’
>   133 |             core_tmp = cpumask_weight(per_cpu(cpu_core_mask, cpu));
>       |                                       ^~~~~~~
> In file included from .../xen/include/xen/percpu.h:4,
>                  from .../xen/include/asm/msr.h:7,
>                  from .../xen/include/asm/time.h:5,
>                  from .../xen/include/xen/time.h:76,
>                  from .../xen/include/xen/spinlock.h:4,
>                  from .../xen/include/xen/cpu.h:5,
>                  from core_parking.c:19:
> .../xen/include/asm/percpu.h:6:22: note: while referencing ‘__per_cpu_offset’
>     6 | extern unsigned long __per_cpu_offset[NR_CPUS];
>       |                      ^~~~~~~~~~~~~~~~

At this point, should be consider reverting the original fix from the
4.15 branch, so that we don't release something that's build broken
with gcc 10?

Roger.



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.