lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sun, 10 Oct 2021 19:59:14 +0800
From:   kernel test robot <lkp@...el.com>
To:     Sven Schnelle <svens@...ckframe.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Helge Deller <deller@....de>
Subject: [deller-parisc:hpmc-trigger 1/1] arch/arm/include/asm/io.h:386:17:
 error: too few arguments to function 'ioremap'

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@...el.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@....linux.org.uk>
:::::: CC: Russell King <rmk+kernel@....linux.org.uk>

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

Download attachment ".config.gz" of type "application/gzip" (26170 bytes)

Powered by blists - more mailing lists