All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: [linux-next:master 3368/3379] mm/memory_hotplug.c:748:33: error: no member named 'cma_pages' in 'struct zone'
Date: Tue, 27 Jul 2021 21:05:20 +0800	[thread overview]
Message-ID: <202107272115.MJoFlUGY-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2577 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   2265c5286967c58db9a99ed1b74105977507e690
commit: 2f10893f9329c568c5090f01d115230471320389 [3368/3379] mm/memory_hotplug: introduce "auto-movable" online policy
config: x86_64-randconfig-a014-20210726 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project c658b472f3e61e1818e1909bf02f3d65470018a5)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=2f10893f9329c568c5090f01d115230471320389
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 2f10893f9329c568c5090f01d115230471320389
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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:748:33: error: no member named 'cma_pages' in 'struct zone'
                   stats->movable_pages += zone->cma_pages;
                                           ~~~~  ^
   mm/memory_hotplug.c:750:38: error: no member named 'cma_pages' in 'struct zone'
                   stats->kernel_early_pages -= zone->cma_pages;
                                                ~~~~  ^
   2 errors generated.


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: 38869 bytes --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: David Hildenbrand <david@redhat.com>
Cc: clang-built-linux@googlegroups.com, kbuild-all@lists.01.org,
	Linux Memory Management List <linux-mm@kvack.org>,
	Mark Brown <broonie@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: [linux-next:master 3368/3379] mm/memory_hotplug.c:748:33: error: no member named 'cma_pages' in 'struct zone'
Date: Tue, 27 Jul 2021 21:05:20 +0800	[thread overview]
Message-ID: <202107272115.MJoFlUGY-lkp@intel.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2520 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   2265c5286967c58db9a99ed1b74105977507e690
commit: 2f10893f9329c568c5090f01d115230471320389 [3368/3379] mm/memory_hotplug: introduce "auto-movable" online policy
config: x86_64-randconfig-a014-20210726 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project c658b472f3e61e1818e1909bf02f3d65470018a5)
reproduce (this is a W=1 build):
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # install x86_64 cross compiling tool for clang build
        # apt-get install binutils-x86-64-linux-gnu
        # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=2f10893f9329c568c5090f01d115230471320389
        git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
        git fetch --no-tags linux-next master
        git checkout 2f10893f9329c568c5090f01d115230471320389
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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:748:33: error: no member named 'cma_pages' in 'struct zone'
                   stats->movable_pages += zone->cma_pages;
                                           ~~~~  ^
   mm/memory_hotplug.c:750:38: error: no member named 'cma_pages' in 'struct zone'
                   stats->kernel_early_pages -= zone->cma_pages;
                                                ~~~~  ^
   2 errors generated.


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: 38869 bytes --]

             reply	other threads:[~2021-07-27 13:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-27 13:05 kernel test robot [this message]
2021-07-27 13:05 ` [linux-next:master 3368/3379] mm/memory_hotplug.c:748:33: error: no member named 'cma_pages' in 'struct zone' kernel test robot
2021-07-27 13:07 ` David Hildenbrand
2021-07-27 13:07   ` David Hildenbrand

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=202107272115.MJoFlUGY-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.