linux-next: build failure after merge of the akpm-current tree
Subsystems (2)
Hi all,
After merging the akpm-current tree, today's linux-next build (x86_64 allmodconfig) failed like this:
drivers/hwmon/occ/p9_sbe.c: In function 'p9_sbe_occ_save_ffdc':drivers/hwmon/occ/p9_sbe.c:58:5: error: implicit declaration of function 'kvfree' [-Werror=implicit-function-declaration]
58 | kvfree(ctx->ffdc);
| ^~~~~~
drivers/hwmon/occ/p9_sbe.c:59:16: error: implicit declaration of function 'kvmalloc'; did you mean 'key_alloc'? [-Werror=implicit-function-declaration]
59 | ctx->ffdc = kvmalloc(resp_len, GFP_KERNEL);
| ^~~~~~~~
| key_allocdrivers/hwmon/occ/p9_sbe.c:59:14: error: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
59 | ctx->ffdc = kvmalloc(resp_len, GFP_KERNEL);
| ^
cc1: all warnings being treated as errors
Caused by commit
5027a34a575e ("hwmon: (occ) Provide the SBEFIFO FFDC in binary sysfs")
from the fsi tree interacting with commit
9192e3be4cc2 ("mm: move kvmalloc-related functions to slab.h")
from the akpm-current tree.
I have applied the following merge fix patch for today.
From: Stephen Rothwell <[email protected]>
Date: Fri, 22 Oct 2021 19:32:54 +1100
Subject: [PATCH] kvmalloc etc moved to slab.h
--- drivers/hwmon/occ/p9_sbe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwmon/occ/p9_sbe.c +1 -1
@@ -4,10 +4,10 @@#include <linux/device.h> #include <linux/errno.h> #include <linux/fsi-occ.h> -#include <linux/mm.h> #include <linux/module.h> #include <linux/mutex.h> #include <linux/platform_device.h> +#include <linux/slab.h> #include <linux/string.h> #include <linux/sysfs.h>
Signature · 5 lines
2.33.0 -- Cheers, Stephen Rothwell
Quoted 21 lines · Stephen Rothwell
Hi all,
After merging the akpm-current tree, today's linux-next build (
x86_64allmodconfig) failed like this:
drivers/hwmon/occ/p9_sbe.c: In function 'p9_sbe_occ_save_ffdc':drivers/hwmon/occ/p9_sbe.c:58:5: error: implicit declaration of function 'kvfree' [-Werror=implicit-function-declaration]58 | kvfree(ctx->ffdc); | ^~~~~~ drivers/hwmon/occ/p9_sbe.c:59:16: error: implicit declaration of function 'kvmalloc'; did you mean 'key_alloc'? [-Werror=implicit-function-declaration] 59 | ctx->ffdc = kvmalloc(resp_len, GFP_KERNEL); | ^~~~~~~~ | key_alloc
drivers/hwmon/occ/p9_sbe.c:59:14: error: assignment to 'void *' from 'int' makes pointer from integer without a cast [-Werror=int-conversion]
59 |ctx->ffdc=kvmalloc(resp_len, GFP_KERNEL);
| ^
cc1: all warnings being treated as errorsCaused by commit
Quoted 7 lines
5027a34a575e("hwmon: (occ) Provide the SBEFIFO FFDC in binary sysfs")from the fsi tree interacting with commit
9192e3be4cc2("mm: move kvmalloc-related functions toslab.h")from the akpm-current tree.
If I apply this patch then the build fails in a tree that doesn't have Willy's patch.
Unless someone has a better suggestion I'll send a patch that includes both headers for now, and make a note to remove the mm.h include down the track.
Cheers,
Joel
Quoted 34 lines
I have applied the following merge fix patch for today.
From: Stephen Rothwell <[email protected]>
Date: Fri, 22 Oct 2021 19:32:54 +1100
Subject: [PATCH] kvmalloc etc moved toslab.hSigned-off-by Stephen Rothwell <[email protected]>--- drivers/hwmon/occ/p9_sbe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/hwmon/occ/p9_sbe.c +1
-2@@ -4,10 +4,10 @@#include <linux/device.h> #include <linux/errno.h> #include <linux/fsi-occ.h> -#include <linux/mm.h> #include <linux/module.h> #include <linux/mutex.h> #include <linux/platform_device.h> +#include <linux/slab.h> #include <linux/string.h> #include <linux/sysfs.h> --2.33.0
--
Cheers,
Stephen Rothwell
Hi Joel,
Quoted 7 lines · On Mon, 25 Oct 2021 05:58:37 +0000 Joel Stanley <[email protected]> wrote:
If I apply this patch then the build fails in a tree that doesn't have Willy's patch.
Unless someone has a better suggestion I'll send a patch that includes both headers for now, and make a note to remove the
mm.hinclude down the track.
Don't apply anything. Just remember to tell Linus (or whoever you merge this tree via) about this conflict and the resolution when you send the pull request.
Signature · 2 lines
Cheers, Stephen Rothwell
Quoted 8 lines · Stephen Rothwell
Hi Joel,
Quoted 4 lines · On Mon, 25 Oct 2021 05:58:37 +0000 Joel Stanley <[email protected]> wrote:
If I apply this patch then the build fails in a tree that doesn't have Willy's patch.
Quoted 7 lines
Quoted 3 lines
Unless someone has a better suggestion I'll send a patch that includes both headers for now, and make a note to remove the
mm.hinclude down the track.Don't apply anything. Just remember to tell Linus (or whoever you merge this tree via) about this conflict and the resolution when you send the pull request.
Okay. It's not a conflict though, rather an ordering issue.
Greg has already merged this patch into his char-misc driver tree.