From: Dave Jiang <dave.jiang@intel.com>
To: Bjorn Helgaas <helgaas@kernel.org>, kernel test robot <lkp@intel.com>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [djiang:cxl-emulate-hdm 1/9] arch/x86/pci/mmconfig-shared.c:451: undefined reference to `efi'
Date: Fri, 20 Jan 2023 09:59:40 -0700 [thread overview]
Message-ID: <42170cea-cc63-8046-d0f2-6de3ad952a85@intel.com> (raw)
In-Reply-To: <20230120163205.GA642679@bhelgaas>
On 1/20/23 9:32 AM, Bjorn Helgaas wrote:
> On Fri, Jan 20, 2023 at 08:53:56AM +0800, kernel test robot wrote:
>> Hi Bjorn,
>>
>> FYI, the error/warning still remains.
>
> Possibly the cxl-emulate-hdm branch should be updated? The current
> file in Linus' tree does not have this problem:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/x86/pci/mmconfig-shared.c?id=v6.2-rc4#n446
>
> The commit that was merged is:
>
> https://git.kernel.org/linus/fd3a8cff4d4a
Yes sorry. I was still testing with one of your older patches. I'll rebase.
>
>> 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
next prev parent reply other threads:[~2023-01-20 16:59 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-01-20 0:53 [djiang:cxl-emulate-hdm 1/9] arch/x86/pci/mmconfig-shared.c:451: undefined reference to `efi' kernel test robot
2023-01-20 16:32 ` Bjorn Helgaas
2023-01-20 16:59 ` Dave Jiang [this message]
-- 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=42170cea-cc63-8046-d0f2-6de3ad952a85@intel.com \
--to=dave.jiang@intel.com \
--cc=helgaas@kernel.org \
--cc=lkp@intel.com \
--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.