Skip to contentSkip to conversation

linux-next: build failure after merge of the tty tree

PATCH New Stephen Rothwell 2 participants 3 messages Jul 24, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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/
#1 lore raw
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

#2 lore raw

PATCH 1/1 n_tty: Fix build breakage on ppc64

In reply to Stephen Rothwell

Commit 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
index d8cf96a..dd8ae0c 100644
@@ -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