uml: style fixes in arch/um/os-Linux
Style changes under arch/um/os-Linux: include trimming CodingStyle fixes some printks needed severity indicators make_tempfile turns out not to be used outside of mem.c, so it is now static. Its declaration in tempfile.h is no longer needed, and tempfile.h itself is no longer needed. create_tmp_file was also made static. checkpatch moans about an EXPORT_SYMBOL in user_syms.c which is part of a macro definition - this is copying a bit of kernel infrastructure into the libc side of UML because the kernel headers can't be included there. Signed-off-by: Jeff Dike <jdike@linux.intel.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
536788fe2d
commit
5134d8fea0
@@ -6,7 +6,7 @@
|
||||
* Licensed under the GPL.
|
||||
*/
|
||||
|
||||
#include "linux/init.h"
|
||||
#include <linux/init.h>
|
||||
#include <linux/netdevice.h>
|
||||
#include "etap.h"
|
||||
#include "net_kern.h"
|
||||
@@ -30,10 +30,10 @@ static void etap_init(struct net_device *dev, void *data)
|
||||
epri->control_fd = -1;
|
||||
epri->dev = dev;
|
||||
|
||||
printk("ethertap backend - %s", epri->dev_name);
|
||||
printk(KERN_INFO "ethertap backend - %s", epri->dev_name);
|
||||
if (epri->gate_addr != NULL)
|
||||
printk(", IP = %s", epri->gate_addr);
|
||||
printk("\n");
|
||||
printk(KERN_CONT ", IP = %s", epri->gate_addr);
|
||||
printk(KERN_CONT "\n");
|
||||
}
|
||||
|
||||
static int etap_read(int fd, struct sk_buff *skb, struct uml_net_private *lp)
|
||||
|
Reference in New Issue
Block a user