mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Maurizio Lombardi <mlombard@redhat.com>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	Konrad Rzeszutek Wilk <konrad@kernel.org>,
	Mike Rapoport <rppt@linux.ibm.com>
Subject: [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
Date: Tue, 3 Aug 2021 14:51:49 +0800	[thread overview]
Message-ID: <202108031445.DgKb5VDi-lkp@intel.com> (raw)

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

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@intel.com>

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@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 77422 bytes --]

                 reply	other threads:[~2021-08-03  6:52 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=202108031445.DgKb5VDi-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    --cc=konrad@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mlombard@redhat.com \
    --cc=rppt@linux.ibm.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®