linux-next: build failure after merge of the tty tree
Subsystems (2)
Hi Greg,
After merging the tty tree, today's linux-next build (powerpc ppc64_defconfig) failed like this:
drivers/tty/n_tty.c: In function 'n_tty_close':drivers/tty/n_tty.c:1757:2: error: implicit declaration of function 'vfree' [-Werror=implicit-function-declaration]
vfree(ldata);
^drivers/tty/n_tty.c: In function 'n_tty_open':drivers/tty/n_tty.c:1776:2: error: implicit declaration of function 'vmalloc' [-Werror=implicit-function-declaration]
ldata = vmalloc(sizeof(*ldata));
^drivers/tty/n_tty.c:1776:8: warning: assignment makes pointer from integer without a cast [enabled by default]
ldata = vmalloc(sizeof(*ldata));
^Caused by commit 20bafb3d23d1 ("n_tty: Move buffers into n_tty_data"). Forgot to include linux/vmalloc.h?
I have used the tty tree from next-20130723 for today.
Signature · 3 lines
Cheers, Stephen Rothwell [email protected] http://www.canb.auug.org.au/~sfr/
Quoted 4 lines · Stephen Rothwell
Hi Greg,
After merging the tty tree, today's linux-next build (powerpc
ppc64_defconfig) failed like this:
Sorry. Patch coming.
Regards,
Peter Hurley
PATCH 1/1 n_tty: Fix build breakage on ppc64
In reply to Stephen RothwellCommit 20bafb3d23d108bc0a896eb8b7c1501f4f649b77
'n_tty: Move buffers into n_tty_data'
broke the ppc64 build.
Include vmalloc.h for the required function declarations.
--- drivers/tty/n_tty.c | 1 + 1 file changed, 1 insertion(+)
drivers/tty/n_tty.c +1 -0
@@ -50,6 +50,7 @@#include <linux/uaccess.h> #include <linux/module.h> #include <linux/ratelimit.h> +#include <linux/vmalloc.h> /* number of characters left in xmit buffer before select has we have room */
Signature · 1 line
1.8.1.2