]> git.baikalelectronics.ru Git - kernel.git/commit
x86/efi: Use early_memunmap() to squelch sparse errors
authorMatt Fleming <matt.fleming@intel.com>
Mon, 9 Jun 2014 12:41:26 +0000 (13:41 +0100)
committerMatt Fleming <matt.fleming@intel.com>
Thu, 19 Jun 2014 10:14:33 +0000 (11:14 +0100)
commit00c0e2f320a2efd374d0fb7f408cdc6c730429fc
treeb5ca6b132d1aaa6c443f89f7e2e5731571ae731d
parent9a799af1901eae7237992c05ca9a83f6ecc897ed
x86/efi: Use early_memunmap() to squelch sparse errors

The kbuild reports the following sparse errors,

>> arch/x86/platform/efi/quirks.c:242:23: sparse: incorrect type in >> argument 1 (different address spaces)
   arch/x86/platform/efi/quirks.c:242:23:    expected void [noderef] <asn:2>*addr
   arch/x86/platform/efi/quirks.c:242:23:    got void *[assigned] tablep
>> arch/x86/platform/efi/quirks.c:245:23: sparse: incorrect type in >> argument 1 (different address spaces)
   arch/x86/platform/efi/quirks.c:245:23:    expected void [noderef] <asn:2>*addr
   arch/x86/platform/efi/quirks.c:245:23:    got struct efi_setup_data *[assigned] data

Dave Young had made previous attempts to convert the early_iounmap()
calls to early_memunmap() but ran into merge conflicts with commit
cd8184ac0a4e ("mm: create generic early_ioremap() support").

Now that we've got that commit in place we can switch to using
early_memunmap() since we're already using early_memremap() in
efi_reuse_config().

Cc: Dave Young <dyoung@redhat.com>
Cc: Saurabh Tangri <saurabh.tangri@intel.com>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/x86/platform/efi/quirks.c