summaryrefslogtreecommitdiff
path: root/drivers/edac
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-02-22 04:06:51 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2026-02-22 04:09:51 +0300
commit323bbfcf1ef8836d0d2ad9e2c1f1c684f0e3b5b3 (patch)
tree515dca34daa8d18ec26c2c3da3096c6c23955c95 /drivers/edac
parentbf4afc53b77aeaa48b5409da5c8da6bb4eff7f43 (diff)
downloadlinux-323bbfcf1ef8836d0d2ad9e2c1f1c684f0e3b5b3.tar.xz
Convert 'alloc_flex' family to use the new default GFP_KERNEL argument
This is the exact same thing as the 'alloc_obj()' version, only much smaller because there are a lot fewer users of the *alloc_flex() interface. As with alloc_obj() version, this was done entirely with mindless brute force, using the same script, except using 'flex' in the pattern rather than 'objs*'. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/edac')
-rw-r--r--drivers/edac/imh_base.c2
-rw-r--r--drivers/edac/skx_common.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/edac/imh_base.c b/drivers/edac/imh_base.c
index 722573a2729a..40082ba45e62 100644
--- a/drivers/edac/imh_base.c
+++ b/drivers/edac/imh_base.c
@@ -257,7 +257,7 @@ static int imh_get_all_mmio_base_h(struct res_config *cfg, struct list_head *eda
struct skx_dev *d;
for (i = 0; i < n; i++) {
- d = kzalloc_flex(*d, imc, imc_num, GFP_KERNEL);
+ d = kzalloc_flex(*d, imc, imc_num);
if (!d)
return -ENOMEM;
diff --git a/drivers/edac/skx_common.c b/drivers/edac/skx_common.c
index 709c939e5919..a9557c8344bc 100644
--- a/drivers/edac/skx_common.c
+++ b/drivers/edac/skx_common.c
@@ -346,7 +346,7 @@ int skx_get_all_bus_mappings(struct res_config *cfg, struct list_head **list)
if (!pdev)
break;
ndev++;
- d = kzalloc_flex(*d, imc, imc_num, GFP_KERNEL);
+ d = kzalloc_flex(*d, imc, imc_num);
if (!d) {
pci_dev_put(pdev);
return -ENOMEM;