git: ced06aa51626 - stable/13 - linuxkpi: Add `gfp_mask` field to `struct shrink_control`

From: Jean-Sébastien Pédron <>
Date: Thu, 16 Feb 2023 11:55:33 UTC
The branch stable/13 has been updated by dumbbell (ports committer):


commit ced06aa51626fe98c4a44108123e014d2f6bb598
Author:     Jean-Sébastien Pédron <>
AuthorDate: 2022-12-30 09:56:46 +0000
Commit:     Jean-Sébastien Pédron <>
CommitDate: 2023-02-16 11:55:10 +0000

    linuxkpi: Add `gfp_mask` field to `struct shrink_control`
    bz@ asked if the KBI breakage is a concern here. My answer was that this
    is the first time in the DRM drivers in Linux 5.13 (the version I'm
    working on) that this structure is initialized (as a variable local to
    the function in this case), so it shouldn't be a problem for the DRM
    However, I can't speak for other drivers maintained outside of the src
    Reviewed by:    emaste, manu
    Approved by:    emaste, manu
    Differential Revision:
    (cherry picked from commit 3aa335d00ac860565d106eb47e931206641cd653)
 sys/compat/linuxkpi/common/include/linux/shrinker.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/shrinker.h b/sys/compat/linuxkpi/common/include/linux/shrinker.h
index 05f702e62fd5..39ea35f0a862 100644
--- a/sys/compat/linuxkpi/common/include/linux/shrinker.h
+++ b/sys/compat/linuxkpi/common/include/linux/shrinker.h
@@ -29,8 +29,10 @@
 #include <sys/queue.h>
+#include <linux/gfp.h>
 struct shrink_control {
+	gfp_t		gfp_mask;
 	unsigned long	nr_to_scan;
 	unsigned long	nr_scanned;