From: kernel test robot <lkp@intel.com>
To: steven@liquorix.net
Cc: oe-kbuild-all@lists.linux.dev
Subject: [zen:6.13/invlpgb-v9 2/5] arch/x86/mm/tlb.c:1448:3: error: call to undeclared function 'invlpgb_flush_addr_nosync'; ISO C99 and later do not support implicit function declarations
Date: Sun, 9 Feb 2025 06:19:32 +0800 [thread overview]
Message-ID: <202502090616.oGx7Cuc8-lkp@intel.com> (raw)
tree: https://github.com/zen-kernel/zen-kernel 6.13/invlpgb-v9
head: df542b65e9753dea56b584fdca48cb8f8e3f74cd
commit: 562d058d0cd7501740dca61a16d2f9e55c1f1981 [2/5] x86/mm: do targeted broadcast flushing from tlbbatch code
config: x86_64-buildonly-randconfig-006-20250209 (https://download.01.org/0day-ci/archive/20250209/202502090616.oGx7Cuc8-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250209/202502090616.oGx7Cuc8-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502090616.oGx7Cuc8-lkp@intel.com/
All errors (new ones prefixed by >>):
>> arch/x86/mm/tlb.c:1448:3: error: call to undeclared function 'invlpgb_flush_addr_nosync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1448 | invlpgb_flush_addr_nosync(addr, nr);
| ^
arch/x86/mm/tlb.c:1448:3: note: did you mean '__invlpgb_flush_addr_nosync'?
arch/x86/include/asm/invlpgb.h:88:20: note: '__invlpgb_flush_addr_nosync' declared here
88 | static inline void __invlpgb_flush_addr_nosync(unsigned long addr, u16 nr)
| ^
>> arch/x86/mm/tlb.c:1689:3: error: call to undeclared function 'invlpgb_flush_user_nr_nosync'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
1689 | invlpgb_flush_user_nr_nosync(kern_pcid(asid), uaddr, 1, false);
| ^
arch/x86/mm/tlb.c:1689:3: note: did you mean '__invlpgb_flush_user_nr_nosync'?
arch/x86/include/asm/invlpgb.h:66:20: note: '__invlpgb_flush_user_nr_nosync' declared here
66 | static inline void __invlpgb_flush_user_nr_nosync(unsigned long pcid,
| ^
2 errors generated.
vim +/invlpgb_flush_addr_nosync +1448 arch/x86/mm/tlb.c
3df3212f9722c7 Alex Shi 2012-06-28 1429
b2ac10f4b65686 Rik van Riel 2025-02-05 1430 static bool broadcast_kernel_range_flush(struct flush_tlb_info *info)
b2ac10f4b65686 Rik van Riel 2025-02-05 1431 {
b2ac10f4b65686 Rik van Riel 2025-02-05 1432 unsigned long addr;
b2ac10f4b65686 Rik van Riel 2025-02-05 1433 unsigned long nr;
b2ac10f4b65686 Rik van Riel 2025-02-05 1434
b2ac10f4b65686 Rik van Riel 2025-02-05 1435 if (!IS_ENABLED(CONFIG_X86_BROADCAST_TLB_FLUSH))
b2ac10f4b65686 Rik van Riel 2025-02-05 1436 return false;
b2ac10f4b65686 Rik van Riel 2025-02-05 1437
b2ac10f4b65686 Rik van Riel 2025-02-05 1438 if (!cpu_feature_enabled(X86_FEATURE_INVLPGB))
b2ac10f4b65686 Rik van Riel 2025-02-05 1439 return false;
b2ac10f4b65686 Rik van Riel 2025-02-05 1440
b2ac10f4b65686 Rik van Riel 2025-02-05 1441 if (info->end == TLB_FLUSH_ALL) {
b2ac10f4b65686 Rik van Riel 2025-02-05 1442 invlpgb_flush_all();
b2ac10f4b65686 Rik van Riel 2025-02-05 1443 return true;
b2ac10f4b65686 Rik van Riel 2025-02-05 1444 }
b2ac10f4b65686 Rik van Riel 2025-02-05 1445
b2ac10f4b65686 Rik van Riel 2025-02-05 1446 for (addr = info->start; addr < info->end; addr += nr << PAGE_SHIFT) {
b2ac10f4b65686 Rik van Riel 2025-02-05 1447 nr = min((info->end - addr) >> PAGE_SHIFT, invlpgb_count_max);
b2ac10f4b65686 Rik van Riel 2025-02-05 @1448 invlpgb_flush_addr_nosync(addr, nr);
b2ac10f4b65686 Rik van Riel 2025-02-05 1449 }
b2ac10f4b65686 Rik van Riel 2025-02-05 1450 tlbsync();
b2ac10f4b65686 Rik van Riel 2025-02-05 1451 return true;
b2ac10f4b65686 Rik van Riel 2025-02-05 1452 }
b2ac10f4b65686 Rik van Riel 2025-02-05 1453
:::::: The code at line 1448 was first introduced by commit
:::::: b2ac10f4b65686ca371571bd150c18ea71c7277c x86/mm: use INVLPGB for kernel TLB flushes
:::::: TO: Rik van Riel <riel@surriel.com>
:::::: CC: Steven Barrett <steven@liquorix.net>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-02-08 22:20 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=202502090616.oGx7Cuc8-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=steven@liquorix.net \
/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.