Skip to contentSkip to conversation

shrink_folio_list() does not compile on late-model kernels

DISCUSSION Chuck Lever 2 participants 4 messages Apr 8, 2025 – Apr 14, 2025 Memory management

lore
Share & tools
lore
#0 lore raw

Hi-

Some of my CI runs have started failing to build v6.13+ kernels with:

mm/vmscan.c: In function ‘shrink_folio_list’:
mm/vmscan.c:1082:21: error: implicit declaration of function ‘folio_contain_hwpoisoned_page’ [-Wimplicit-function-declaration]

 1082 |                 if (folio_contain_hwpoisoned_page(folio)) {
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

make[3]: *** [scripts/Makefile.build:196: mm/vmscan.o] Error 1 make[2]: *** [scripts/Makefile.build:442: mm] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/data/linux-stable-rc/Makefile:1989: .] Error 2
make: *** [Makefile:251: __sub-make] Error 2

Is there a .config change I need to prevent this failure?

Signature · 1 line
Chuck Lever
#1 lore raw
Quoted 9 lines · Chuck Lever

Hi-

Some of my CI runs have started failing to build v6.13+ kernels with:

mm/vmscan.c: In function ‘shrink_folio_list’:
mm/vmscan.c:1082:21: error: implicit declaration of function ‘folio_contain_hwpoisoned_page’ [-Wimplicit-function-declaration]

 1082 |                 if (folio_contain_hwpoisoned_page(folio)) {
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Quoted 7 lines

make[3]: *** [scripts/Makefile.build:196: mm/vmscan.o] Error 1 make[2]: *** [scripts/Makefile.build:442: mm] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/data/linux-stable-rc/Makefile:1989: .] Error 2
make: *** [Makefile:251: __sub-make] Error 2

Is there a .config change I need to prevent this failure?

I don't see why folio_contain_hwpoisoned_page() wouldn't be declared. Could you include your .config?

#2 lore raw
Quoted 16 lines · Matthew Wilcox
Quoted 15 lines · Chuck Lever

Hi-

Some of my CI runs have started failing to build v6.13+ kernels with:

mm/vmscan.c: In function ‘shrink_folio_list’:
mm/vmscan.c:1082:21: error: implicit declaration of function ‘folio_contain_hwpoisoned_page’ [-Wimplicit-function-declaration]

 1082 |                 if (folio_contain_hwpoisoned_page(folio)) {
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

make[3]: *** [scripts/Makefile.build:196: mm/vmscan.o] Error 1 make[2]: *** [scripts/Makefile.build:442: mm] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/data/linux-stable-rc/Makefile:1989: .] Error 2
make: *** [Makefile:251: __sub-make] Error 2

Quoted 4 lines
Quoted 1 line

Is there a .config change I need to prevent this failure?

I don't see why folio_contain_hwpoisoned_page() wouldn't be declared. Could you include your .config?

I assumed linux-mm would bounce an attachment. But it turns out I have a sample .config in a public git repo:

https://github.com/chucklever/kdevops/blob/queue-6-13/playbooks/roles/bootlinux/templates/config-kdevops

The failure seems to be intermittent.

Signature · 1 line
Chuck Lever
#3 lore raw
In reply to Matthew Wilcox
Quoted 16 lines · Matthew Wilcox
Quoted 15 lines · Chuck Lever

Hi-

Some of my CI runs have started failing to build v6.13+ kernels with:

mm/vmscan.c: In function ‘shrink_folio_list’:
mm/vmscan.c:1082:21: error: implicit declaration of function ‘folio_contain_hwpoisoned_page’ [-Wimplicit-function-declaration]

 1082 |                 if (folio_contain_hwpoisoned_page(folio)) {
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

make[3]: *** [scripts/Makefile.build:196: mm/vmscan.o] Error 1 make[2]: *** [scripts/Makefile.build:442: mm] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [/data/linux-stable-rc/Makefile:1989: .] Error 2
make: *** [Makefile:251: __sub-make] Error 2

Quoted 4 lines
Quoted 1 line

Is there a .config change I need to prevent this failure?

I don't see why folio_contain_hwpoisoned_page() wouldn't be declared. Could you include your .config?

I have not seen a repeat of this issue.

Signature · 1 line
Chuck Lever