linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: Steven Price <steven.price@arm.com>
Cc: kbuild-all@lists.01.org,
	Andrew Morton <akpm@linux-foundation.org>,
	Linux Memory Management List <linux-mm@kvack.org>
Subject: [linux-next:master 7820/7838] arch/arm64/mm/dump.c:326:2: error: too few arguments to function 'ptdump_walk_pgd'
Date: Sat, 11 Jan 2020 15:57:39 +0800	[thread overview]
Message-ID: <202001111521.XdiMZnPj%lkp@intel.com> (raw)

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   6c09d7dbb7d366122d0218bc7487e0a1e6cca6ed
commit: 1350595d7292e7685b089e11ec1a56248cc9bf83 [7820/7838] x86: mm: avoid allocating struct mm_struct on the stack
config: arm64-randconfig-a001-20200109 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 7.5.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 1350595d7292e7685b089e11ec1a56248cc9bf83
        # save the attached .config to linux build tree
        GCC_VERSION=7.5.0 make.cross ARCH=arm64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   arch/arm64/mm/dump.c: In function 'ptdump_walk':
>> arch/arm64/mm/dump.c:326:2: error: too few arguments to function 'ptdump_walk_pgd'
     ptdump_walk_pgd(&st.ptdump, info->mm);
     ^~~~~~~~~~~~~~~
   In file included from arch/arm64/mm/dump.c:18:0:
   include/linux/ptdump.h:20:6: note: declared here
    void ptdump_walk_pgd(struct ptdump_state *st, struct mm_struct *mm, pgd_t *pgd);
         ^~~~~~~~~~~~~~~
   arch/arm64/mm/dump.c: In function 'ptdump_check_wx':
   arch/arm64/mm/dump.c:364:2: error: too few arguments to function 'ptdump_walk_pgd'
     ptdump_walk_pgd(&st.ptdump, &init_mm);
     ^~~~~~~~~~~~~~~
   In file included from arch/arm64/mm/dump.c:18:0:
   include/linux/ptdump.h:20:6: note: declared here
    void ptdump_walk_pgd(struct ptdump_state *st, struct mm_struct *mm, pgd_t *pgd);
         ^~~~~~~~~~~~~~~

vim +/ptdump_walk_pgd +326 arch/arm64/mm/dump.c

c9465b4ec37a68 Laura Abbott 2014-11-26  305  
11e4c7fd510a42 Steven Price 2020-01-10  306  void ptdump_walk(struct seq_file *s, struct ptdump_info *info)
c9465b4ec37a68 Laura Abbott 2014-11-26  307  {
11e4c7fd510a42 Steven Price 2020-01-10  308  	unsigned long end = ~0UL;
11e4c7fd510a42 Steven Price 2020-01-10  309  	struct pg_state st;
c9465b4ec37a68 Laura Abbott 2014-11-26  310  
11e4c7fd510a42 Steven Price 2020-01-10  311  	if (info->base_addr < TASK_SIZE_64)
11e4c7fd510a42 Steven Price 2020-01-10  312  		end = TASK_SIZE_64;
c9465b4ec37a68 Laura Abbott 2014-11-26  313  
11e4c7fd510a42 Steven Price 2020-01-10  314  	st = (struct pg_state){
11e4c7fd510a42 Steven Price 2020-01-10  315  		.seq = s,
11e4c7fd510a42 Steven Price 2020-01-10  316  		.marker = info->markers,
11e4c7fd510a42 Steven Price 2020-01-10  317  		.ptdump = {
11e4c7fd510a42 Steven Price 2020-01-10  318  			.note_page = note_page,
11e4c7fd510a42 Steven Price 2020-01-10  319  			.range = (struct ptdump_range[]){
11e4c7fd510a42 Steven Price 2020-01-10  320  				{info->base_addr, end},
11e4c7fd510a42 Steven Price 2020-01-10  321  				{0, 0}
c9465b4ec37a68 Laura Abbott 2014-11-26  322  			}
a1c76574f34534 Mark Rutland 2015-01-27  323  		}
c9465b4ec37a68 Laura Abbott 2014-11-26  324  	};
c9465b4ec37a68 Laura Abbott 2014-11-26  325  
11e4c7fd510a42 Steven Price 2020-01-10 @326  	ptdump_walk_pgd(&st.ptdump, info->mm);
c9465b4ec37a68 Laura Abbott 2014-11-26  327  }
c9465b4ec37a68 Laura Abbott 2014-11-26  328  

:::::: The code at line 326 was first introduced by commit
:::::: 11e4c7fd510a427518094564bad8b25353f157ca arm64: mm: convert mm/dump.c to use walk_page_range()

:::::: TO: Steven Price <steven.price@arm.com>
:::::: CC: Stephen Rothwell <sfr@canb.auug.org.au>

---
0-DAY kernel test infrastructure                 Open Source Technology Center
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org Intel Corporation

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32539 bytes --]

                 reply	other threads:[~2020-01-11  7:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=202001111521.XdiMZnPj%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=akpm@linux-foundation.org \
    --cc=kbuild-all@lists.01.org \
    --cc=linux-mm@kvack.org \
    --cc=steven.price@arm.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox