From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [hnaz-linux-mm:master 151/194] mm/memory_hotplug.c:748:31: error: 'struct zone' has no member named 'cma_pages'
Date: Tue, 27 Jul 2021 12:27:41 +0800 [thread overview]
Message-ID: <202107271233.KjyeikhV-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 6457 bytes --]
tree: https://github.com/hnaz/linux-mm master
head: 358e39b39040b559f6281705260899b1470150b8
commit: 903cb0e547f4b16ef9c32592dca1ac1753911eb3 [151/194] mm/memory_hotplug: introduce "auto-movable" online policy
config: x86_64-rhel-8.3-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/hnaz/linux-mm/commit/903cb0e547f4b16ef9c32592dca1ac1753911eb3
git remote add hnaz-linux-mm https://github.com/hnaz/linux-mm
git fetch --no-tags hnaz-linux-mm master
git checkout 903cb0e547f4b16ef9c32592dca1ac1753911eb3
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
mm/memory_hotplug.c: In function 'auto_movable_stats_account_zone':
>> mm/memory_hotplug.c:748:31: error: 'struct zone' has no member named 'cma_pages'
748 | stats->movable_pages += zone->cma_pages;
| ^~
mm/memory_hotplug.c:750:36: error: 'struct zone' has no member named 'cma_pages'
750 | stats->kernel_early_pages -= zone->cma_pages;
| ^~
--
mm/memory_hotplug.c: In function 'auto_movable_stats_account_zone':
>> mm/memory_hotplug.c:748:31: error: 'struct zone' has no member named 'cma_pages'
748 | stats->movable_pages += zone->cma_pages;
| ^~
mm/memory_hotplug.c:750:36: error: 'struct zone' has no member named 'cma_pages'
750 | stats->kernel_early_pages -= zone->cma_pages;
| ^~
make[2]: *** [scripts/Makefile.build:271: mm/memory_hotplug.o] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1842: mm] Error 2
make[1]: Target 'vmlinux' not remade because of errors.
make: *** [Makefile:220: __sub-make] Error 2
make: Target 'vmlinux' not remade because of errors.
***
*** The source tree is not clean, please run 'make ARCH=x86_64 mrproper'
*** in /kbuild/worktree/build-ktools-consumer
***
make[2]: *** [Makefile:567: outputmakefile] Error 1
make[2]: Target 'syncconfig' not remade because of errors.
make[1]: *** [Makefile:736: include/config/auto.conf.cmd] Error 2
make[1]: *** [include/config/auto.conf.cmd] Deleting file 'include/generated/autoconf.h'
make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'.
make[1]: Failed to remake makefile 'include/config/auto.conf'.
***
*** The source tree is not clean, please run 'make ARCH=x86_64 mrproper'
*** in /kbuild/worktree/build-ktools-consumer
***
make[1]: *** [Makefile:567: outputmakefile] Error 1
In file included from <command-line>:32:
include/linux/kconfig.h:5:10: fatal error: generated/autoconf.h: No such file or directory
5 | #include <generated/autoconf.h>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from <command-line>:32:
include/linux/kconfig.h:5:10: fatal error: generated/autoconf.h: No such file or directory
5 | #include <generated/autoconf.h>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from <command-line>:32:
include/linux/kconfig.h:5:10: fatal error: generated/autoconf.h: No such file or directory
5 | #include <generated/autoconf.h>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from scripts/selinux/mdp/mdp.c:22:
include/linux/kconfig.h:5:10: fatal error: generated/autoconf.h: No such file or directory
5 | #include <generated/autoconf.h>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [scripts/Makefile.host:95: scripts/selinux/mdp/mdp] Error 1
make[4]: Target '__build' not remade because of errors.
make[3]: *** [scripts/Makefile.build:514: scripts/selinux/mdp] Error 2
make[3]: Target '__build' not remade because of errors.
make[2]: *** [scripts/Makefile.build:514: scripts/selinux] Error 2
In file included from netlink.c:9:
usr/include/linux/if_ether.h:169:1: error: packed attribute is unnecessary for 'ethhdr' [-Werror=packed]
169 | } __attribute__((packed));
| ^
In file included from tools/include/uapi/linux/ethtool.h:19,
from xsk.c:18:
usr/include/linux/if_ether.h:169:1: error: packed attribute is unnecessary for 'ethhdr' [-Werror=packed]
169 | } __attribute__((packed));
| ^
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1202: scripts] Error 2
cc1: all warnings being treated as errors
make[5]: *** [tools/build/Makefile.build:96: tools/bpf/resolve_btfids/libbpf/staticobjs/xsk.o] Error 1
make[5]: *** Waiting for unfinished jobs....
cc1: all warnings being treated as errors
make[5]: *** [tools/build/Makefile.build:96: tools/bpf/resolve_btfids/libbpf/staticobjs/netlink.o] Error 1
make[4]: *** [Makefile:158: tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o] Error 2
make[3]: *** [Makefile:44: tools/bpf/resolve_btfids//libbpf/libbpf.a] Error 2
make[2]: *** [Makefile:72: bpf/resolve_btfids] Error 2
make[1]: *** [Makefile:1359: tools/bpf/resolve_btfids] Error 2
make[1]: Target 'vmlinux' not remade because of errors.
make: *** [Makefile:220: __sub-make] Error 2
make: Target 'vmlinux' not remade because of errors.
vim +748 mm/memory_hotplug.c
737
738 static void auto_movable_stats_account_zone(struct auto_movable_stats *stats,
739 struct zone *zone)
740 {
741 if (zone_idx(zone) == ZONE_MOVABLE) {
742 stats->movable_pages += zone->present_pages;
743 } else {
744 /*
745 * CMA pages (never on hotplugged memory) behave like
746 * ZONE_MOVABLE.
747 */
> 748 stats->movable_pages += zone->cma_pages;
749 stats->kernel_early_pages += zone->present_early_pages;
750 stats->kernel_early_pages -= zone->cma_pages;
751 }
752 }
753
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 42160 bytes --]
WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: David Hildenbrand <david@redhat.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
Johannes Weiner <hannes@cmpxchg.org>,
Andrew Morton <akpm@linux-foundation.org>,
Linux Memory Management List <linux-mm@kvack.org>
Subject: [hnaz-linux-mm:master 151/194] mm/memory_hotplug.c:748:31: error: 'struct zone' has no member named 'cma_pages'
Date: Tue, 27 Jul 2021 12:27:41 +0800 [thread overview]
Message-ID: <202107271233.KjyeikhV-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 6327 bytes --]
tree: https://github.com/hnaz/linux-mm master
head: 358e39b39040b559f6281705260899b1470150b8
commit: 903cb0e547f4b16ef9c32592dca1ac1753911eb3 [151/194] mm/memory_hotplug: introduce "auto-movable" online policy
config: x86_64-rhel-8.3-kselftests (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/hnaz/linux-mm/commit/903cb0e547f4b16ef9c32592dca1ac1753911eb3
git remote add hnaz-linux-mm https://github.com/hnaz/linux-mm
git fetch --no-tags hnaz-linux-mm master
git checkout 903cb0e547f4b16ef9c32592dca1ac1753911eb3
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
mm/memory_hotplug.c: In function 'auto_movable_stats_account_zone':
>> mm/memory_hotplug.c:748:31: error: 'struct zone' has no member named 'cma_pages'
748 | stats->movable_pages += zone->cma_pages;
| ^~
mm/memory_hotplug.c:750:36: error: 'struct zone' has no member named 'cma_pages'
750 | stats->kernel_early_pages -= zone->cma_pages;
| ^~
--
mm/memory_hotplug.c: In function 'auto_movable_stats_account_zone':
>> mm/memory_hotplug.c:748:31: error: 'struct zone' has no member named 'cma_pages'
748 | stats->movable_pages += zone->cma_pages;
| ^~
mm/memory_hotplug.c:750:36: error: 'struct zone' has no member named 'cma_pages'
750 | stats->kernel_early_pages -= zone->cma_pages;
| ^~
make[2]: *** [scripts/Makefile.build:271: mm/memory_hotplug.o] Error 1
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1842: mm] Error 2
make[1]: Target 'vmlinux' not remade because of errors.
make: *** [Makefile:220: __sub-make] Error 2
make: Target 'vmlinux' not remade because of errors.
***
*** The source tree is not clean, please run 'make ARCH=x86_64 mrproper'
*** in /kbuild/worktree/build-ktools-consumer
***
make[2]: *** [Makefile:567: outputmakefile] Error 1
make[2]: Target 'syncconfig' not remade because of errors.
make[1]: *** [Makefile:736: include/config/auto.conf.cmd] Error 2
make[1]: *** [include/config/auto.conf.cmd] Deleting file 'include/generated/autoconf.h'
make[1]: Failed to remake makefile 'include/config/auto.conf.cmd'.
make[1]: Failed to remake makefile 'include/config/auto.conf'.
***
*** The source tree is not clean, please run 'make ARCH=x86_64 mrproper'
*** in /kbuild/worktree/build-ktools-consumer
***
make[1]: *** [Makefile:567: outputmakefile] Error 1
In file included from <command-line>:32:
include/linux/kconfig.h:5:10: fatal error: generated/autoconf.h: No such file or directory
5 | #include <generated/autoconf.h>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from <command-line>:32:
include/linux/kconfig.h:5:10: fatal error: generated/autoconf.h: No such file or directory
5 | #include <generated/autoconf.h>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from <command-line>:32:
include/linux/kconfig.h:5:10: fatal error: generated/autoconf.h: No such file or directory
5 | #include <generated/autoconf.h>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
In file included from scripts/selinux/mdp/mdp.c:22:
include/linux/kconfig.h:5:10: fatal error: generated/autoconf.h: No such file or directory
5 | #include <generated/autoconf.h>
| ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[4]: *** [scripts/Makefile.host:95: scripts/selinux/mdp/mdp] Error 1
make[4]: Target '__build' not remade because of errors.
make[3]: *** [scripts/Makefile.build:514: scripts/selinux/mdp] Error 2
make[3]: Target '__build' not remade because of errors.
make[2]: *** [scripts/Makefile.build:514: scripts/selinux] Error 2
In file included from netlink.c:9:
usr/include/linux/if_ether.h:169:1: error: packed attribute is unnecessary for 'ethhdr' [-Werror=packed]
169 | } __attribute__((packed));
| ^
In file included from tools/include/uapi/linux/ethtool.h:19,
from xsk.c:18:
usr/include/linux/if_ether.h:169:1: error: packed attribute is unnecessary for 'ethhdr' [-Werror=packed]
169 | } __attribute__((packed));
| ^
make[2]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1202: scripts] Error 2
cc1: all warnings being treated as errors
make[5]: *** [tools/build/Makefile.build:96: tools/bpf/resolve_btfids/libbpf/staticobjs/xsk.o] Error 1
make[5]: *** Waiting for unfinished jobs....
cc1: all warnings being treated as errors
make[5]: *** [tools/build/Makefile.build:96: tools/bpf/resolve_btfids/libbpf/staticobjs/netlink.o] Error 1
make[4]: *** [Makefile:158: tools/bpf/resolve_btfids/libbpf/staticobjs/libbpf-in.o] Error 2
make[3]: *** [Makefile:44: tools/bpf/resolve_btfids//libbpf/libbpf.a] Error 2
make[2]: *** [Makefile:72: bpf/resolve_btfids] Error 2
make[1]: *** [Makefile:1359: tools/bpf/resolve_btfids] Error 2
make[1]: Target 'vmlinux' not remade because of errors.
make: *** [Makefile:220: __sub-make] Error 2
make: Target 'vmlinux' not remade because of errors.
vim +748 mm/memory_hotplug.c
737
738 static void auto_movable_stats_account_zone(struct auto_movable_stats *stats,
739 struct zone *zone)
740 {
741 if (zone_idx(zone) == ZONE_MOVABLE) {
742 stats->movable_pages += zone->present_pages;
743 } else {
744 /*
745 * CMA pages (never on hotplugged memory) behave like
746 * ZONE_MOVABLE.
747 */
> 748 stats->movable_pages += zone->cma_pages;
749 stats->kernel_early_pages += zone->present_early_pages;
750 stats->kernel_early_pages -= zone->cma_pages;
751 }
752 }
753
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 42160 bytes --]
next reply other threads:[~2021-07-27 4:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-27 4:27 kernel test robot [this message]
2021-07-27 4:27 ` [hnaz-linux-mm:master 151/194] mm/memory_hotplug.c:748:31: error: 'struct zone' has no member named 'cma_pages' kernel test robot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202107271233.KjyeikhV-lkp@intel.com \
--to=lkp@intel.com \
--cc=kbuild-all@lists.01.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.