[ibft:linux-next 1/1] drivers/firmware/iscsi_ibft.c:868:13: warning: assignment to 'struct acpi_table_ibft *' from 'int' makes pointer from integer without a cast

From: kernel test robot
Date: Tue Aug 03 2021 - 02:52:50 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft.git linux-next
head: 342f43af70dbc74f8629381998f92c060e1763a2
commit: 342f43af70dbc74f8629381998f92c060e1763a2 [1/1] iscsi_ibft: fix crash due to KASLR physical memory remapping
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-linux-gcc (GCC) 10.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/konrad/ibft.git/commit/?id=342f43af70dbc74f8629381998f92c060e1763a2
git remote add ibft https://git.kernel.org/pub/scm/linux/kernel/git/konrad/ibft.git
git fetch --no-tags ibft linux-next
git checkout 342f43af70dbc74f8629381998f92c060e1763a2
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.3.0 make.cross ARCH=arm64

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

drivers/firmware/iscsi_ibft.c: In function 'ibft_init':
drivers/firmware/iscsi_ibft.c:868:15: error: implicit declaration of function 'isa_bus_to_virt' [-Werror=implicit-function-declaration]
868 | ibft_addr = isa_bus_to_virt(ibft_phys_addr);
| ^~~~~~~~~~~~~~~
>> drivers/firmware/iscsi_ibft.c:868:13: warning: assignment to 'struct acpi_table_ibft *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
868 | ibft_addr = isa_bus_to_virt(ibft_phys_addr);
| ^
cc1: some warnings being treated as errors


vim +868 drivers/firmware/iscsi_ibft.c

854
855 /*
856 * ibft_init() - creates sysfs tree entries for the iBFT data.
857 */
858 static int __init ibft_init(void)
859 {
860 int rc = 0;
861
862 /*
863 As on UEFI systems the setup_arch()/reserve_ibft_region()
864 is called before ACPI tables are parsed and it only does
865 legacy finding.
866 */
867 if (ibft_phys_addr)
> 868 ibft_addr = isa_bus_to_virt(ibft_phys_addr);
869 else
870 acpi_find_ibft_region();
871
872 if (ibft_addr) {
873 pr_info("iBFT detected.\n");
874
875 rc = ibft_check_device();
876 if (rc)
877 return rc;
878
879 boot_kset = iscsi_boot_create_kset("ibft");
880 if (!boot_kset)
881 return -ENOMEM;
882
883 /* Scan the IBFT for data and register the kobjects. */
884 rc = ibft_register_kobjects(ibft_addr);
885 if (rc)
886 goto out_free;
887 } else
888 printk(KERN_INFO "No iBFT detected.\n");
889
890 return 0;
891
892 out_free:
893 ibft_cleanup();
894 return rc;
895 }
896

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

Attachment: .config.gz
Description: application/gzip