All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Bjorn Helgaas <helgaas@kernel.org>
Cc: oe-kbuild-all@lists.linux.dev, Dave Jiang <dave.jiang@intel.com>
Subject: [djiang:cxl-emulate-hdm 1/9] arch/x86/pci/mmconfig-shared.c:451: undefined reference to `efi'
Date: Fri, 20 Jan 2023 08:53:56 +0800	[thread overview]
Message-ID: <202301200823.art1eu2t-lkp@intel.com> (raw)

Hi Bjorn,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/djiang/linux.git cxl-emulate-hdm
head:   6c7fe26eb2f67816411bb41a976a6c50056aa574
commit: b2b6d47f1b29b36472a90db110c9d2d421f04627 [1/9] x86/pci: Treat EfiMemoryMappedIO as reservation of ECAM space
config: i386-randconfig-a001 (https://download.01.org/0day-ci/archive/20230120/202301200823.art1eu2t-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
        # https://git.kernel.org/pub/scm/linux/kernel/git/djiang/linux.git/commit/?id=b2b6d47f1b29b36472a90db110c9d2d421f04627
        git remote add djiang https://git.kernel.org/pub/scm/linux/kernel/git/djiang/linux.git
        git fetch --no-tags djiang cxl-emulate-hdm
        git checkout b2b6d47f1b29b36472a90db110c9d2d421f04627
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        make W=1 O=build_dir ARCH=i386 olddefconfig
        make W=1 O=build_dir ARCH=i386 SHELL=/bin/bash

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

All errors (new ones prefixed by >>):

   ld: arch/x86/pci/mmconfig-shared.o: in function `is_efi_reserved':
>> arch/x86/pci/mmconfig-shared.c:451: undefined reference to `efi'
>> ld: arch/x86/pci/mmconfig-shared.c:451: undefined reference to `efi'
>> ld: arch/x86/pci/mmconfig-shared.c:451: undefined reference to `efi'


vim +451 arch/x86/pci/mmconfig-shared.c

   445	
   446	static bool is_efi_reserved(u64 start, u64 end, enum e820_type not_used)
   447	{
   448		efi_memory_desc_t *md;
   449		u64 size, mmio_start, mmio_end;
   450	
 > 451		for_each_efi_memory_desc(md) {
   452			if (md->type == EFI_MEMORY_MAPPED_IO) {
   453				size = md->num_pages << EFI_PAGE_SHIFT;
   454				mmio_start = md->phys_addr;
   455				mmio_end = mmio_start + size - 1;
   456	
   457				if (mmio_start <= start && end <= mmio_end)
   458					return true;
   459			}
   460		}
   461	
   462		return false;
   463	}
   464	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests

             reply	other threads:[~2023-01-20  0:54 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-20  0:53 kernel test robot [this message]
2023-01-20 16:32 ` [djiang:cxl-emulate-hdm 1/9] arch/x86/pci/mmconfig-shared.c:451: undefined reference to `efi' Bjorn Helgaas
2023-01-20 16:59   ` Dave Jiang
  -- strict thread matches above, loose matches on Subject: below --
2023-01-10  5:37 kernel test robot

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=202301200823.art1eu2t-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=dave.jiang@intel.com \
    --cc=helgaas@kernel.org \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.