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  linux-cve-announce  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]
Message-ID: <202206081328.suY733VF-lkp@intel.com>
Date:   Wed, 8 Jun 2022 14:01:47 +0800
From:   kernel test robot <lkp@...el.com>
To:     Linus Walleij <linus.walleij@...aro.org>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: [arm-integrator:kernel-in-vmalloc-v5.19-rc1 23/33]
 arch/microblaze/include/asm/page.h:115:25: error: implicit declaration of
 function '__virt_to_phys'; did you mean 'virt_to_pfn'?

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git kernel-in-vmalloc-v5.19-rc1
head:   512fc95a58c7b2e91e267db91a4ec5a54afedd01
commit: 25049d91eb99805aaf82c2829b63b52ee8591776 [23/33] microblaze: Make virt_to_pfn() a static inline
config: microblaze-buildonly-randconfig-r012-20220607 (https://download.01.org/0day-ci/archive/20220608/202206081328.suY733VF-lkp@intel.com/config)
compiler: microblaze-linux-gcc (GCC) 11.3.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/linusw/linux-integrator.git/commit/?id=25049d91eb99805aaf82c2829b63b52ee8591776
        git remote add arm-integrator https://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-integrator.git
        git fetch --no-tags arm-integrator kernel-in-vmalloc-v5.19-rc1
        git checkout 25049d91eb99805aaf82c2829b63b52ee8591776
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.3.0 make.cross W=1 O=build_dir ARCH=microblaze prepare

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

   In file included from arch/microblaze/include/asm/page.h:15,
                    from include/linux/shm.h:6,
                    from include/linux/sched.h:16,
                    from arch/microblaze/kernel/asm-offsets.c:13:
   arch/microblaze/include/asm/page.h: In function 'virt_to_pfn':
>> arch/microblaze/include/asm/page.h:115:25: error: implicit declaration of function '__virt_to_phys'; did you mean 'virt_to_pfn'? [-Werror=implicit-function-declaration]
     115 | # define __pa(x)        __virt_to_phys((unsigned long)(x))
         |                         ^~~~~~~~~~~~~~
   include/linux/pfn.h:20:27: note: in definition of macro 'PFN_DOWN'
      20 | #define PFN_DOWN(x)     ((x) >> PAGE_SHIFT)
         |                           ^
   arch/microblaze/include/asm/page.h:120:16: note: in expansion of macro 'phys_to_pfn'
     120 |         return phys_to_pfn(__pa(vaddr));
         |                ^~~~~~~~~~~
   arch/microblaze/include/asm/page.h:120:28: note: in expansion of macro '__pa'
     120 |         return phys_to_pfn(__pa(vaddr));
         |                            ^~~~
   cc1: some warnings being treated as errors
   make[2]: *** [scripts/Makefile.build:117: arch/microblaze/kernel/asm-offsets.s] Error 1
   make[2]: Target '__build' not remade because of errors.
   make[1]: *** [Makefile:1196: prepare0] Error 2
   make[1]: Target 'prepare' not remade because of errors.
   make: *** [Makefile:219: __sub-make] Error 2
   make: Target 'prepare' not remade because of errors.


vim +115 arch/microblaze/include/asm/page.h

4b87d7a4f91d31 Michal Simek 2009-03-27  114  
1f84e1ea0e87ad Michal Simek 2009-05-26 @115  # define __pa(x)	__virt_to_phys((unsigned long)(x))
1f84e1ea0e87ad Michal Simek 2009-05-26  116  # define __va(x)	((void *)__phys_to_virt((unsigned long)(x)))
1f84e1ea0e87ad Michal Simek 2009-05-26  117  

:::::: The code at line 115 was first introduced by commit
:::::: 1f84e1ea0e87ad659cd6f6a6285d50c73a8d1a24 microblaze_mmu_v2: pgalloc.h and page.h

:::::: TO: Michal Simek <monstr@...str.eu>
:::::: CC: Michal Simek <monstr@...str.eu>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ