lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202107271233.KjyeikhV-lkp@intel.com>
Date:   Tue, 27 Jul 2021 12:27:41 +0800
From:   kernel test robot <lkp@...el.com>
To:     David Hildenbrand <david@...hat.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Johannes Weiner <hannes@...xchg.org>,
        Andrew Morton <akpm@...ux-foundation.org>,
        Linux Memory Management List <linux-mm@...ck.org>
Subject: [hnaz-linux-mm:master 151/194] mm/memory_hotplug.c:748:31: error:
 'struct zone' has no member named 'cma_pages'

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@...el.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

Download attachment ".config.gz" of type "application/gzip" (42160 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ