Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Gregory Price <gourry@gourry.net>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [gourryinverse:djhacks 18/38] mm/gup.c:2418:7: error: call to undeclared function 'folio_longterm_pin_forbidden'; ISO C99 and later do not support implicit function declarations
Date: Sat, 01 Aug 2026 03:08:45 +0800	[thread overview]
Message-ID: <202608010245.2xosUIRm-lkp@intel.com> (raw)

tree:   https://github.com/gourryinverse/linux djhacks
head:   09de2580129cf36e7ed3de65282a91fe3cc29e24
commit: b44aca34818ebf7e2ef962e85b23c05bb7882c05 [18/38] mm: add N_MEMORY_LTPIN node state for longterm-pin eligible nodes
config: hexagon-randconfig-002-20260801 (https://download.01.org/0day-ci/archive/20260801/202608010245.2xosUIRm-lkp@intel.com/config)
compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260801/202608010245.2xosUIRm-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/202608010245.2xosUIRm-lkp@intel.com/

All errors (new ones prefixed by >>):

>> mm/gup.c:2418:7: error: call to undeclared function 'folio_longterm_pin_forbidden'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
    2418 |                 if (folio_longterm_pin_forbidden(folio))
         |                     ^
   1 error generated.


vim +/folio_longterm_pin_forbidden +2418 mm/gup.c

  2409	
  2410	/* True if any folio sits on a node that doesn't support longterm pinning */
  2411	static bool pofs_has_ltpin_forbidden(struct pages_or_folios *pofs)
  2412	{
  2413		struct folio *folio;
  2414		long i = 0;
  2415	
  2416		for (folio = pofs_get_folio(pofs, i); folio;
  2417		     folio = pofs_next_folio(folio, pofs, &i)) {
> 2418			if (folio_longterm_pin_forbidden(folio))
  2419				return true;
  2420		}
  2421		return false;
  2422	}
  2423	

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

                 reply	other threads:[~2026-07-31 19:09 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=202608010245.2xosUIRm-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=gourry@gourry.net \
    --cc=llvm@lists.linux.dev \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox