All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Andi Kleen <ak@linux.intel.com>
Cc: oe-kbuild-all@lists.linux.dev,
	Kuppuswamy Sathyanarayanan
	<sathyanarayanan.kuppuswamy@linux.intel.com>
Subject: [intel-tdx:guest-filter 17/34] arch/parisc/include/asm/io.h:139:23: error: 'addr' undeclared
Date: Sun, 24 Sep 2023 04:40:01 +0800	[thread overview]
Message-ID: <202309240414.RxIDRMGr-lkp@intel.com> (raw)

tree:   https://github.com/intel/tdx.git guest-filter
head:   205bbdcce0e2be471018d939d81dae51d63b5bd5
commit: d80f2db5351d606316f8d9f3cd29d3e76fad255b [17/34] iomap: Mark ioremap shared when the device is authorized
config: parisc-defconfig (https://download.01.org/0day-ci/archive/20230924/202309240414.RxIDRMGr-lkp@intel.com/config)
compiler: hppa-linux-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230924/202309240414.RxIDRMGr-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309240414.RxIDRMGr-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/io.h:13,
                    from include/linux/irq.h:20,
                    from arch/parisc/include/asm/hardirq.h:13,
                    from include/linux/hardirq.h:11,
                    from include/linux/interrupt.h:11,
                    from include/linux/pci.h:38,
                    from lib/pci_iomap.c:7:
   lib/pci_iomap.c: In function 'pci_iomap_range':
>> arch/parisc/include/asm/io.h:139:23: error: 'addr' undeclared (first use in this function)
     139 |         ioremap_prot((addr), (size), _PAGE_IOREMAP)
         |                       ^~~~
   lib/pci_iomap.c:47:32: note: in expansion of macro 'ioremap_driver_hardened'
      47 |                         return ioremap_driver_hardened(start, len);
         |                                ^~~~~~~~~~~~~~~~~~~~~~~
   arch/parisc/include/asm/io.h:139:23: note: each undeclared identifier is reported only once for each function it appears in
     139 |         ioremap_prot((addr), (size), _PAGE_IOREMAP)
         |                       ^~~~
   lib/pci_iomap.c:47:32: note: in expansion of macro 'ioremap_driver_hardened'
      47 |                         return ioremap_driver_hardened(start, len);
         |                                ^~~~~~~~~~~~~~~~~~~~~~~
>> arch/parisc/include/asm/io.h:139:31: error: 'size' undeclared (first use in this function); did you mean 'ksize'?
     139 |         ioremap_prot((addr), (size), _PAGE_IOREMAP)
         |                               ^~~~
   lib/pci_iomap.c:47:32: note: in expansion of macro 'ioremap_driver_hardened'
      47 |                         return ioremap_driver_hardened(start, len);
         |                                ^~~~~~~~~~~~~~~~~~~~~~~


vim +/addr +139 arch/parisc/include/asm/io.h

426b313f356a31 arch/parisc/include/asm/io.h Baoquan He     2023-07-06  129  
426b313f356a31 arch/parisc/include/asm/io.h Baoquan He     2023-07-06  130  #define _PAGE_IOREMAP (_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY | \
426b313f356a31 arch/parisc/include/asm/io.h Baoquan He     2023-07-06  131  		       _PAGE_ACCESSED | _PAGE_NO_CACHE)
^1da177e4c3f41 include/asm-parisc/io.h      Linus Torvalds 2005-04-16  132  
426b313f356a31 arch/parisc/include/asm/io.h Baoquan He     2023-07-06  133  #define ioremap_wc(addr, size)  \
426b313f356a31 arch/parisc/include/asm/io.h Baoquan He     2023-07-06  134  	ioremap_prot((addr), (size), _PAGE_IOREMAP)
426b313f356a31 arch/parisc/include/asm/io.h Baoquan He     2023-07-06  135  #define ioremap_uc(addr, size)  \
426b313f356a31 arch/parisc/include/asm/io.h Baoquan He     2023-07-06  136  	ioremap_prot((addr), (size), _PAGE_IOREMAP)
6ecf3c252b954b arch/parisc/include/asm/io.h Andi Kleen     2021-10-20  137  /* Share memory with host in confidential guest platforms */
6ecf3c252b954b arch/parisc/include/asm/io.h Andi Kleen     2021-10-20  138  #define ioremap_driver_hardened \
6ecf3c252b954b arch/parisc/include/asm/io.h Andi Kleen     2021-10-20 @139  	ioremap_prot((addr), (size), _PAGE_IOREMAP)
426b313f356a31 arch/parisc/include/asm/io.h Baoquan He     2023-07-06  140  

:::::: The code at line 139 was first introduced by commit
:::::: 6ecf3c252b954ba96df36a6f2be4ea3c83f23c7d asm/io.h: Add ioremap_driver_hardening

:::::: TO: Andi Kleen <ak@linux.intel.com>
:::::: CC: Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy@linux.intel.com>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

                 reply	other threads:[~2023-09-23 20:40 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=202309240414.RxIDRMGr-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=ak@linux.intel.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    --cc=sathyanarayanan.kuppuswamy@linux.intel.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 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.