All of lore.kernel.org
 help / color / mirror / Atom feed
* [deller-parisc:hpmc-trigger 1/1] arch/arm/include/asm/io.h:386:17: error: too few arguments to function 'ioremap'
@ 2021-10-10 11:59 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-10-10 11:59 UTC (permalink / raw)
  To: Sven Schnelle; +Cc: kbuild-all, linux-kernel, Helge Deller

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git hpmc-trigger
head:   1332ba6fc43cd3213f2872cbd5a5414acdd4f689
commit: 1332ba6fc43cd3213f2872cbd5a5414acdd4f689 [1/1] parisc: trigger hpmc on parisc arch
config: arm-randconfig-c002-20211010 (attached as .config)
compiler: arm-linux-gnueabi-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://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git/commit/?id=1332ba6fc43cd3213f2872cbd5a5414acdd4f689
        git remote add deller-parisc https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git
        git fetch --no-tags deller-parisc hpmc-trigger
        git checkout 1332ba6fc43cd3213f2872cbd5a5414acdd4f689
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/tty/

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 >>):

   drivers/tty/sysrq.c: In function 'sysrq_init':
   drivers/tty/sysrq.c:1189:29: error: expected expression before 'phys_addr_t'
    1189 |         hpmc_addr = ioremap(phys_addr_t(0xfffffff0e0000000UL), 4096);
         |                             ^~~~~~~~~~~
   In file included from include/linux/io.h:13,
                    from include/linux/irq.h:20,
                    from include/asm-generic/hardirq.h:17,
                    from arch/arm/include/asm/hardirq.h:10,
                    from include/linux/hardirq.h:11,
                    from include/linux/interrupt.h:11,
                    from drivers/tty/sysrq.c:23:
>> arch/arm/include/asm/io.h:386:17: error: too few arguments to function 'ioremap'
     386 | #define ioremap ioremap
         |                 ^~~~~~~
   drivers/tty/sysrq.c:1189:21: note: in expansion of macro 'ioremap'
    1189 |         hpmc_addr = ioremap(phys_addr_t(0xfffffff0e0000000UL), 4096);
         |                     ^~~~~~~
   arch/arm/include/asm/io.h:385:15: note: declared here
     385 | void __iomem *ioremap(resource_size_t res_cookie, size_t size);
         |               ^~~~~~~
   At top level:
   drivers/tty/sysrq.c:413:34: warning: 'sysrq_thaw_op' defined but not used [-Wunused-const-variable=]
     413 | static const struct sysrq_key_op sysrq_thaw_op = {
         |                                  ^~~~~~~~~~~~~


vim +/ioremap +386 arch/arm/include/asm/io.h

^1da177e4c3f41 include/asm-arm/io.h      Linus Torvalds 2005-04-16  349  
^1da177e4c3f41 include/asm-arm/io.h      Linus Torvalds 2005-04-16  350  /*
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  351   * ioremap() and friends.
^1da177e4c3f41 include/asm-arm/io.h      Linus Torvalds 2005-04-16  352   *
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  353   * ioremap() takes a resource address, and size.  Due to the ARM memory
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  354   * types, it is important to use the correct ioremap() function as each
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  355   * mapping has specific properties.
9d4ae7276ae26c include/asm-arm/io.h      Deepak Saxena  2006-01-09  356   *
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  357   * Function		Memory type	Cacheability	Cache hint
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  358   * ioremap()		Device		n/a		n/a
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  359   * ioremap_cache()	Normal		Writeback	Read allocate
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  360   * ioremap_wc()		Normal		Non-cacheable	n/a
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  361   * ioremap_wt()		Normal		Non-cacheable	n/a
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  362   *
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  363   * All device mappings have the following properties:
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  364   * - no access speculation
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  365   * - no repetition (eg, on return from an exception)
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  366   * - number, order and size of accesses are maintained
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  367   * - unaligned accesses are "unpredictable"
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  368   * - writes may be delayed before they hit the endpoint device
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  369   *
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  370   * All normal memory mappings have the following properties:
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  371   * - reads can be repeated with no side effects
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  372   * - repeated reads return the last value written
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  373   * - reads can fetch additional locations without side effects
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  374   * - writes can be repeated (in certain cases) with no side effects
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  375   * - writes can be merged before accessing the target
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  376   * - unaligned accesses can be supported
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  377   * - ordering is not guaranteed without explicit dependencies or barrier
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  378   *   instructions
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  379   * - writes may be delayed before they hit the endpoint memory
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  380   *
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  381   * The cache hint is only a performance hint: CPUs may alias these hints.
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  382   * Eg, a CPU not implementing read allocate but implementing write allocate
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  383   * will provide a write allocate mapping instead.
^1da177e4c3f41 include/asm-arm/io.h      Linus Torvalds 2005-04-16  384   */
20a1080dff2f1b arch/arm/include/asm/io.h Russell King   2015-07-01  385  void __iomem *ioremap(resource_size_t res_cookie, size_t size);
20a1080dff2f1b arch/arm/include/asm/io.h Russell King   2015-07-01 @386  #define ioremap ioremap
20a1080dff2f1b arch/arm/include/asm/io.h Russell King   2015-07-01  387  

:::::: The code at line 386 was first introduced by commit
:::::: 20a1080dff2f1be8933baa0d910c41882c7279ee ARM: io: convert ioremap*() to functions

:::::: TO: Russell King <rmk+kernel@arm.linux.org.uk>
:::::: CC: Russell King <rmk+kernel@arm.linux.org.uk>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [deller-parisc:hpmc-trigger 1/1] arch/arm/include/asm/io.h:386:17: error: too few arguments to function 'ioremap'
@ 2021-10-10 11:59 ` kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-10-10 11:59 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git hpmc-trigger
head:   1332ba6fc43cd3213f2872cbd5a5414acdd4f689
commit: 1332ba6fc43cd3213f2872cbd5a5414acdd4f689 [1/1] parisc: trigger hpmc on parisc arch
config: arm-randconfig-c002-20211010 (attached as .config)
compiler: arm-linux-gnueabi-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://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git/commit/?id=1332ba6fc43cd3213f2872cbd5a5414acdd4f689
        git remote add deller-parisc https://git.kernel.org/pub/scm/linux/kernel/git/deller/parisc-linux.git
        git fetch --no-tags deller-parisc hpmc-trigger
        git checkout 1332ba6fc43cd3213f2872cbd5a5414acdd4f689
        # save the attached .config to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/tty/

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 >>):

   drivers/tty/sysrq.c: In function 'sysrq_init':
   drivers/tty/sysrq.c:1189:29: error: expected expression before 'phys_addr_t'
    1189 |         hpmc_addr = ioremap(phys_addr_t(0xfffffff0e0000000UL), 4096);
         |                             ^~~~~~~~~~~
   In file included from include/linux/io.h:13,
                    from include/linux/irq.h:20,
                    from include/asm-generic/hardirq.h:17,
                    from arch/arm/include/asm/hardirq.h:10,
                    from include/linux/hardirq.h:11,
                    from include/linux/interrupt.h:11,
                    from drivers/tty/sysrq.c:23:
>> arch/arm/include/asm/io.h:386:17: error: too few arguments to function 'ioremap'
     386 | #define ioremap ioremap
         |                 ^~~~~~~
   drivers/tty/sysrq.c:1189:21: note: in expansion of macro 'ioremap'
    1189 |         hpmc_addr = ioremap(phys_addr_t(0xfffffff0e0000000UL), 4096);
         |                     ^~~~~~~
   arch/arm/include/asm/io.h:385:15: note: declared here
     385 | void __iomem *ioremap(resource_size_t res_cookie, size_t size);
         |               ^~~~~~~
   At top level:
   drivers/tty/sysrq.c:413:34: warning: 'sysrq_thaw_op' defined but not used [-Wunused-const-variable=]
     413 | static const struct sysrq_key_op sysrq_thaw_op = {
         |                                  ^~~~~~~~~~~~~


vim +/ioremap +386 arch/arm/include/asm/io.h

^1da177e4c3f41 include/asm-arm/io.h      Linus Torvalds 2005-04-16  349  
^1da177e4c3f41 include/asm-arm/io.h      Linus Torvalds 2005-04-16  350  /*
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  351   * ioremap() and friends.
^1da177e4c3f41 include/asm-arm/io.h      Linus Torvalds 2005-04-16  352   *
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  353   * ioremap() takes a resource address, and size.  Due to the ARM memory
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  354   * types, it is important to use the correct ioremap() function as each
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  355   * mapping has specific properties.
9d4ae7276ae26c include/asm-arm/io.h      Deepak Saxena  2006-01-09  356   *
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  357   * Function		Memory type	Cacheability	Cache hint
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  358   * ioremap()		Device		n/a		n/a
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  359   * ioremap_cache()	Normal		Writeback	Read allocate
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  360   * ioremap_wc()		Normal		Non-cacheable	n/a
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  361   * ioremap_wt()		Normal		Non-cacheable	n/a
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  362   *
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  363   * All device mappings have the following properties:
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  364   * - no access speculation
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  365   * - no repetition (eg, on return from an exception)
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  366   * - number, order and size of accesses are maintained
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  367   * - unaligned accesses are "unpredictable"
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  368   * - writes may be delayed before they hit the endpoint device
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  369   *
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  370   * All normal memory mappings have the following properties:
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  371   * - reads can be repeated with no side effects
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  372   * - repeated reads return the last value written
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  373   * - reads can fetch additional locations without side effects
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  374   * - writes can be repeated (in certain cases) with no side effects
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  375   * - writes can be merged before accessing the target
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  376   * - unaligned accesses can be supported
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  377   * - ordering is not guaranteed without explicit dependencies or barrier
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  378   *   instructions
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  379   * - writes may be delayed before they hit the endpoint memory
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  380   *
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  381   * The cache hint is only a performance hint: CPUs may alias these hints.
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  382   * Eg, a CPU not implementing read allocate but implementing write allocate
ac5e2f170f033e arch/arm/include/asm/io.h Russell King   2015-07-01  383   * will provide a write allocate mapping instead.
^1da177e4c3f41 include/asm-arm/io.h      Linus Torvalds 2005-04-16  384   */
20a1080dff2f1b arch/arm/include/asm/io.h Russell King   2015-07-01  385  void __iomem *ioremap(resource_size_t res_cookie, size_t size);
20a1080dff2f1b arch/arm/include/asm/io.h Russell King   2015-07-01 @386  #define ioremap ioremap
20a1080dff2f1b arch/arm/include/asm/io.h Russell King   2015-07-01  387  

:::::: The code at line 386 was first introduced by commit
:::::: 20a1080dff2f1be8933baa0d910c41882c7279ee ARM: io: convert ioremap*() to functions

:::::: TO: Russell King <rmk+kernel@arm.linux.org.uk>
:::::: CC: Russell King <rmk+kernel@arm.linux.org.uk>

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-10-10 11:59 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-10 11:59 [deller-parisc:hpmc-trigger 1/1] arch/arm/include/asm/io.h:386:17: error: too few arguments to function 'ioremap' kernel test robot
2021-10-10 11:59 ` kernel test robot

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.