diff options
| author | Steven Rostedt <[email protected]> | 2025-06-04 12:51:21 +0000 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2025-06-04 15:49:03 +0000 |
| commit | 1a576136f8d7089ef7f427dee8aa919a6edaef69 (patch) | |
| tree | 8be2da47a9a46c013dabdd40c6ede8c4be86a88e /drivers/pci/controller/dwc/pcie-qcom-common.c | |
| parent | Merge tag 'nfs-for-6.16-1' of git://git.linux-nfs.org/projects/anna/linux-nfs (diff) | |
| download | kernel-1a576136f8d7089ef7f427dee8aa919a6edaef69.tar.gz kernel-1a576136f8d7089ef7f427dee8aa919a6edaef69.zip | |
drm/ttm: Fix compile error when CONFIG_SHMEM is not set
When CONFIG_SHMEM is not set, the following compiler error occurs:
ld: vmlinux.o: in function `ttm_backup_backup_page':
(.text+0x10363bc): undefined reference to `shmem_writeout'
make[3]: *** [/work/build/trace/nobackup/linux.git/scripts/Makefile.vmlinux:91: vmlinux.unstripped] Error 1
This is due to the replacement of writepage and calling swap_writeout()
and shmem_writeout() directly. The issue is that when CONFIG_SHMEM is
not defined, shmem_writeout() is also not defined.
The function ttm_backup_backup_page() called mapping->a_ops->writepage()
which was then changed to call shmem_writeout() directly.
Even before commit 84798514db50 ("mm: Remove swap_writepage() and
shmem_writepage()"), it didn't make sense to call anything other than
shmem_writeout() as the ttm_backup deals only with shmem folios.
Have DRM_TTM config option select SHMEM to guarantee that
shmem_writeout() is available.
Link: https://lore.kernel.org/all/[email protected]/
Suggested-by: Hugh Dickins <[email protected]>
Fixes: 84798514db50 ("mm: Remove swap_writepage() and shmem_writepage()")
Signed-off-by: Steven Rostedt (Google) <[email protected]>
Reviewed-by: Thomas Hellström <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pcie-qcom-common.c')
0 files changed, 0 insertions, 0 deletions
