Xiongwei Song
a148698a40
mm: page_alloc: fix building error on -Werror=array-compare
...
commit ca831f29f8f25c97182e726429b38c0802200c8f upstream.
Arthur Marsh reported we would hit the error below when building kernel
with gcc-12:
CC mm/page_alloc.o
mm/page_alloc.c: In function `mem_init_print_info':
mm/page_alloc.c:8173:27: error: comparison between two arrays [-Werror=array-compare]
8173 | if (start <= pos && pos < end && size > adj) \
|
In C++20, the comparision between arrays should be warned.
Link: https://lkml.kernel.org/r/20211125130928.32465-1-sxwjean@me.com
Signed-off-by: Xiongwei Song <sxwjean@gmail.com>
Reported-by: Arthur Marsh <arthur.marsh@internode.on.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-27 13:15:29 +02:00
..
2018-08-24 13:09:12 +02:00
2021-12-14 10:16:54 +01:00
2018-10-13 09:27:30 +02:00
2017-11-02 11:10:55 +01:00
2019-06-15 11:54:51 +02:00
2019-08-06 19:05:23 +02:00
2017-11-02 11:10:55 +01:00
2019-10-05 12:48:13 +02:00
2017-11-02 11:10:55 +01:00
2018-09-19 22:43:48 +02:00
2018-02-25 11:08:03 +01:00
2018-09-15 09:45:28 +02:00
2017-11-02 11:10:55 +01:00
2020-10-01 13:12:40 +02:00
2018-03-03 10:24:21 +01:00
2021-04-28 12:08:42 +02:00
2017-11-02 11:10:55 +01:00
2019-01-13 10:01:02 +01:00
2021-07-20 16:17:41 +02:00
2019-11-20 17:59:33 +01:00
2021-12-08 08:46:53 +01:00
2017-11-02 11:10:55 +01:00
2021-07-11 12:48:10 +02:00
2017-09-08 18:26:49 -07:00
2019-06-15 11:54:51 +02:00
2018-02-22 15:42:24 +01:00
2021-05-22 10:57:39 +02:00
2022-04-20 09:08:32 +02:00
2021-05-22 10:57:39 +02:00
2019-06-19 08:20:54 +02:00
2020-09-09 19:03:11 +02:00
2018-10-10 08:54:22 +02:00
2018-02-22 15:42:24 +01:00
2022-03-02 11:34:00 +01:00
2022-04-20 09:08:25 +02:00
2021-09-22 11:45:34 +02:00
2021-06-30 08:48:48 -04:00
2022-04-20 09:08:30 +02:00
2022-04-20 09:08:29 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2019-04-03 06:25:20 +02:00
2019-05-21 18:50:16 +02:00
2019-07-10 09:54:36 +02:00
2022-04-20 09:08:25 +02:00
2019-07-31 07:28:56 +02:00
2017-11-02 11:10:55 +01:00
2020-03-11 18:03:02 +01:00
2022-04-20 09:08:29 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-04-02 16:34:20 +02:00
2021-11-26 11:40:37 +01:00
2022-04-27 13:15:29 +02:00
2017-11-02 11:10:55 +01:00
2019-04-05 22:31:27 +02:00
2019-07-03 13:15:59 +02:00
2021-03-07 11:27:46 +01:00
2017-11-02 11:10:55 +01:00
2020-07-31 16:44:45 +02:00
2019-04-05 22:31:28 +02:00
2021-07-11 12:48:12 +02:00
2020-01-23 08:20:32 +01:00
2020-10-01 13:12:32 +02:00
2017-11-02 11:10:55 +01:00
2019-02-12 19:46:05 +01:00
2017-09-27 14:45:57 -07:00
2018-04-08 14:26:29 +02:00
2020-09-23 10:46:36 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-09-09 19:55:53 +02:00
2022-04-20 09:08:29 +02:00
2017-10-03 17:54:24 -07:00
2022-03-08 19:01:58 +01:00
2020-06-30 15:38:08 -04:00
2019-06-15 11:54:51 +02:00
2021-11-26 11:40:40 +01:00
2017-11-02 11:10:55 +01:00
2021-06-30 08:48:54 -04:00
2017-11-02 11:10:55 +01:00
2018-05-16 10:10:27 +02:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2020-10-01 13:12:46 +02:00
2017-10-03 17:54:24 -07:00
2021-03-07 11:27:46 +01:00
2018-12-08 13:03:40 +01:00
2019-10-11 18:18:34 +02:00
2021-06-03 08:36:25 +02:00
2020-06-20 10:24:59 +02:00
2018-09-19 22:43:48 +02:00
2020-06-03 08:18:11 +02:00
2021-04-07 12:47:03 +02:00
2021-06-03 08:36:10 +02:00
2017-11-02 11:10:55 +01:00
2018-12-01 09:42:54 +01:00
2021-11-26 11:40:36 +01:00
2018-09-05 09:26:30 +02:00