diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-10-18 19:20:53 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2024-11-15 19:50:00 +0000 |
| commit | b5b94c2f5120fb0b1cd1a1fb7b0d959ae040bb30 (patch) | |
| tree | a3592baade7c655b1d98dafa0f1d1c29c6e96295 /recipes-containers/docker/files | |
| parent | 3af81200a401a52c6d13a055a1d88d4746c02d86 (diff) | |
| download | meta-virtualization-b5b94c2f5120fb0b1cd1a1fb7b0d959ae040bb30.tar.gz | |
docker-moby: tweak check-config script for 6.1+ kernels
We are showing one warning on check-config that isn't valid,
as the option has been changed in kernels 6.1+. We tweak
the check-config script to make that conditional
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-containers/docker/files')
| -rw-r--r-- | recipes-containers/docker/files/0001-check-config-make-CONFIG_MEMCG_SWAP-conditional.patch | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/recipes-containers/docker/files/0001-check-config-make-CONFIG_MEMCG_SWAP-conditional.patch b/recipes-containers/docker/files/0001-check-config-make-CONFIG_MEMCG_SWAP-conditional.patch new file mode 100644 index 00000000..30b1a7d8 --- /dev/null +++ b/recipes-containers/docker/files/0001-check-config-make-CONFIG_MEMCG_SWAP-conditional.patch | |||
| @@ -0,0 +1,56 @@ | |||
| 1 | From 28c115da3c6c2e6edda08c30a779f1ffaab2fbc7 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Bruce Ashfield <bruce.ashfield@gmail.com> | ||
| 3 | Date: Fri, 18 Oct 2024 18:27:16 +0000 | ||
| 4 | Subject: [PATCH] check-config: make CONFIG_MEMCG_SWAP conditional | ||
| 5 | |||
| 6 | Kernel's equal to or greater than 6.1 no longer have this | ||
| 7 | option. See this kernel commit: | ||
| 8 | |||
| 9 | commit e55b9f96860f6c6026cff97966a740576285e07b | ||
| 10 | Author: Johannes Weiner <hannes@cmpxchg.org> | ||
| 11 | Date: Mon Sep 26 09:57:04 2022 -0400 | ||
| 12 | |||
| 13 | mm: memcontrol: drop dead CONFIG_MEMCG_SWAP config symbol | ||
| 14 | |||
| 15 | Since 2d1c498072de ("mm: memcontrol: make swap tracking an integral part | ||
| 16 | of memory control"), CONFIG_MEMCG_SWAP hasn't been a user-visible config | ||
| 17 | option anymore, it just means CONFIG_MEMCG && CONFIG_SWAP. | ||
| 18 | |||
| 19 | Update the sites accordingly and drop the symbol. | ||
| 20 | |||
| 21 | [ While touching the docs, remove two references to CONFIG_MEMCG_KMEM, | ||
| 22 | which hasn't been a user-visible symbol for over half a decade. ] | ||
| 23 | |||
| 24 | Link: https://lkml.kernel.org/r/20220926135704.400818-5-hannes@cmpxchg.org | ||
| 25 | Signed-off-by: Johannes Weiner <hannes@cmpxchg.org> | ||
| 26 | Acked-by: Shakeel Butt <shakeelb@google.com> | ||
| 27 | Cc: Hugh Dickins <hughd@google.com> | ||
| 28 | Cc: Michal Hocko <mhocko@suse.com> | ||
| 29 | Cc: Roman Gushchin <roman.gushchin@linux.dev> | ||
| 30 | Signed-off-by: Andrew Morton <akpm@linux-foundation.org> | ||
| 31 | |||
| 32 | Upstream-Status: Inappropriate [embedded specific] | ||
| 33 | |||
| 34 | Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> | ||
| 35 | --- | ||
| 36 | contrib/check-config.sh | 4 +++- | ||
| 37 | 1 file changed, 3 insertions(+), 1 deletion(-) | ||
| 38 | |||
| 39 | diff --git a/contrib/check-config.sh b/contrib/check-config.sh | ||
| 40 | index b9cc6bf87d..3124548d99 100755 | ||
| 41 | --- a/contrib/check-config.sh | ||
| 42 | +++ b/contrib/check-config.sh | ||
| 43 | @@ -266,7 +266,9 @@ echo 'Optional Features:' | ||
| 44 | check_flags CGROUP_PIDS | ||
| 45 | } | ||
| 46 | { | ||
| 47 | - check_flags MEMCG_SWAP | ||
| 48 | + if [ "$kernelMajor" -lt 6 ] || [ "$kernelMajor" -eq 6 -a "$kernelMinor" -le 1 ]; then | ||
| 49 | + check_flags MEMCG_SWAP | ||
| 50 | + fi | ||
| 51 | # Kernel v5.8+ removes MEMCG_SWAP_ENABLED. | ||
| 52 | if [ "$kernelMajor" -lt 5 ] || [ "$kernelMajor" -eq 5 -a "$kernelMinor" -le 8 ]; then | ||
| 53 | CODE=${EXITCODE} | ||
| 54 | -- | ||
| 55 | 2.39.2 | ||
| 56 | |||
