All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH] mm/vmstat: add event for ksm swapping in copy
Date: Wed, 12 Jan 2022 23:58:14 +0800	[thread overview]
Message-ID: <202201122306.EC6LSwot-lkp@intel.com> (raw)
In-Reply-To: <20220112115110.669160-1-yang.yang29@zte.com.cn>

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

Hi,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on hnaz-mm/master]

url:    https://github.com/0day-ci/linux/commits/cgel-zte-gmail-com/mm-vmstat-add-event-for-ksm-swapping-in-copy/20220112-195303
base:   https://github.com/hnaz/linux-mm master
config: alpha-buildonly-randconfig-r004-20220112 (https://download.01.org/0day-ci/archive/20220112/202201122306.EC6LSwot-lkp(a)intel.com/config)
compiler: alpha-linux-gcc (GCC) 11.2.0
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
        # https://github.com/0day-ci/linux/commit/56a4520e557228d8383f27b6aef54b2f931a0588
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review cgel-zte-gmail-com/mm-vmstat-add-event-for-ksm-swapping-in-copy/20220112-195303
        git checkout 56a4520e557228d8383f27b6aef54b2f931a0588
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=alpha 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/ksm.c: In function 'ksm_might_need_to_copy':
>> mm/ksm.c:2597:32: error: 'KSM_SWPIN_COPY' undeclared (first use in this function)
    2597 |                 count_vm_event(KSM_SWPIN_COPY);
         |                                ^~~~~~~~~~~~~~
   mm/ksm.c:2597:32: note: each undeclared identifier is reported only once for each function it appears in


vim +/KSM_SWPIN_COPY +2597 mm/ksm.c

  2565	
  2566	struct page *ksm_might_need_to_copy(struct page *page,
  2567				struct vm_area_struct *vma, unsigned long address)
  2568	{
  2569		struct anon_vma *anon_vma = page_anon_vma(page);
  2570		struct page *new_page;
  2571	
  2572		if (PageKsm(page)) {
  2573			if (page_stable_node(page) &&
  2574			    !(ksm_run & KSM_RUN_UNMERGE))
  2575				return page;	/* no need to copy it */
  2576		} else if (!anon_vma) {
  2577			return page;		/* no need to copy it */
  2578		} else if (anon_vma->root == vma->anon_vma->root &&
  2579			 page->index == linear_page_index(vma, address)) {
  2580			return page;		/* still no need to copy it */
  2581		}
  2582		if (!PageUptodate(page))
  2583			return page;		/* let do_swap_page report the error */
  2584	
  2585		new_page = alloc_page_vma(GFP_HIGHUSER_MOVABLE, vma, address);
  2586		if (new_page &&
  2587		    mem_cgroup_charge(page_folio(new_page), vma->vm_mm, GFP_KERNEL)) {
  2588			put_page(new_page);
  2589			new_page = NULL;
  2590		}
  2591		if (new_page) {
  2592			copy_user_highpage(new_page, page, address, vma);
  2593	
  2594			SetPageDirty(new_page);
  2595			__SetPageUptodate(new_page);
  2596			__SetPageLocked(new_page);
> 2597			count_vm_event(KSM_SWPIN_COPY);
  2598		}
  2599	
  2600		return new_page;
  2601	}
  2602	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: cgel.zte@gmail.com, akpm@linux-foundation.org,
	yang.shi@linux.alibaba.com, ying.huang@intel.com
Cc: kbuild-all@lists.01.org, dave.hansen@linux.intel.com,
	yang.yang29@zte.com.cn, saravanand@fb.com, minchan@kernel.org,
	linux-kernel@vger.kernel.org, linux-mm@kvack.org,
	Ran Xiaokai <ran.xiaokai@zte.com.cn>
Subject: Re: [PATCH] mm/vmstat: add event for ksm swapping in copy
Date: Wed, 12 Jan 2022 23:58:14 +0800	[thread overview]
Message-ID: <202201122306.EC6LSwot-lkp@intel.com> (raw)
In-Reply-To: <20220112115110.669160-1-yang.yang29@zte.com.cn>

Hi,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on hnaz-mm/master]

url:    https://github.com/0day-ci/linux/commits/cgel-zte-gmail-com/mm-vmstat-add-event-for-ksm-swapping-in-copy/20220112-195303
base:   https://github.com/hnaz/linux-mm master
config: alpha-buildonly-randconfig-r004-20220112 (https://download.01.org/0day-ci/archive/20220112/202201122306.EC6LSwot-lkp@intel.com/config)
compiler: alpha-linux-gcc (GCC) 11.2.0
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
        # https://github.com/0day-ci/linux/commit/56a4520e557228d8383f27b6aef54b2f931a0588
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review cgel-zte-gmail-com/mm-vmstat-add-event-for-ksm-swapping-in-copy/20220112-195303
        git checkout 56a4520e557228d8383f27b6aef54b2f931a0588
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=alpha 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/ksm.c: In function 'ksm_might_need_to_copy':
>> mm/ksm.c:2597:32: error: 'KSM_SWPIN_COPY' undeclared (first use in this function)
    2597 |                 count_vm_event(KSM_SWPIN_COPY);
         |                                ^~~~~~~~~~~~~~
   mm/ksm.c:2597:32: note: each undeclared identifier is reported only once for each function it appears in


vim +/KSM_SWPIN_COPY +2597 mm/ksm.c

  2565	
  2566	struct page *ksm_might_need_to_copy(struct page *page,
  2567				struct vm_area_struct *vma, unsigned long address)
  2568	{
  2569		struct anon_vma *anon_vma = page_anon_vma(page);
  2570		struct page *new_page;
  2571	
  2572		if (PageKsm(page)) {
  2573			if (page_stable_node(page) &&
  2574			    !(ksm_run & KSM_RUN_UNMERGE))
  2575				return page;	/* no need to copy it */
  2576		} else if (!anon_vma) {
  2577			return page;		/* no need to copy it */
  2578		} else if (anon_vma->root == vma->anon_vma->root &&
  2579			 page->index == linear_page_index(vma, address)) {
  2580			return page;		/* still no need to copy it */
  2581		}
  2582		if (!PageUptodate(page))
  2583			return page;		/* let do_swap_page report the error */
  2584	
  2585		new_page = alloc_page_vma(GFP_HIGHUSER_MOVABLE, vma, address);
  2586		if (new_page &&
  2587		    mem_cgroup_charge(page_folio(new_page), vma->vm_mm, GFP_KERNEL)) {
  2588			put_page(new_page);
  2589			new_page = NULL;
  2590		}
  2591		if (new_page) {
  2592			copy_user_highpage(new_page, page, address, vma);
  2593	
  2594			SetPageDirty(new_page);
  2595			__SetPageUptodate(new_page);
  2596			__SetPageLocked(new_page);
> 2597			count_vm_event(KSM_SWPIN_COPY);
  2598		}
  2599	
  2600		return new_page;
  2601	}
  2602	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org


  reply	other threads:[~2022-01-12 15:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-12 11:51 [PATCH] mm/vmstat: add event for ksm swapping in copy cgel.zte
2022-01-12 15:58 ` kernel test robot [this message]
2022-01-12 15:58   ` 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=202201122306.EC6LSwot-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.