diff options
Diffstat (limited to 'arch/um')
40 files changed, 63 insertions, 358 deletions
diff --git a/arch/um/drivers/net_kern.c b/arch/um/drivers/net_kern.c index fde510b664d3..434ba121e3c5 100644 --- a/arch/um/drivers/net_kern.c +++ b/arch/um/drivers/net_kern.c | |||
| @@ -86,7 +86,7 @@ static int uml_net_rx(struct net_device *dev) | |||
| 86 | drop_skb->dev = dev; | 86 | drop_skb->dev = dev; |
| 87 | /* Read a packet into drop_skb and don't do anything with it. */ | 87 | /* Read a packet into drop_skb and don't do anything with it. */ |
| 88 | (*lp->read)(lp->fd, drop_skb, lp); | 88 | (*lp->read)(lp->fd, drop_skb, lp); |
| 89 | lp->stats.rx_dropped++; | 89 | dev->stats.rx_dropped++; |
| 90 | return 0; | 90 | return 0; |
| 91 | } | 91 | } |
| 92 | 92 | ||
| @@ -99,8 +99,8 @@ static int uml_net_rx(struct net_device *dev) | |||
| 99 | skb_trim(skb, pkt_len); | 99 | skb_trim(skb, pkt_len); |
| 100 | skb->protocol = (*lp->protocol)(skb); | 100 | skb->protocol = (*lp->protocol)(skb); |
| 101 | 101 | ||
| 102 | lp->stats.rx_bytes += skb->len; | 102 | dev->stats.rx_bytes += skb->len; |
| 103 | lp->stats.rx_packets++; | 103 | dev->stats.rx_packets++; |
| 104 | netif_rx(skb); | 104 | netif_rx(skb); |
| 105 | return pkt_len; | 105 | return pkt_len; |
| 106 | } | 106 | } |
| @@ -224,8 +224,8 @@ static int uml_net_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
| 224 | len = (*lp->write)(lp->fd, skb, lp); | 224 | len = (*lp->write)(lp->fd, skb, lp); |
| 225 | 225 | ||
| 226 | if (len == skb->len) { | 226 | if (len == skb->len) { |
| 227 | lp->stats.tx_packets++; | 227 | dev->stats.tx_packets++; |
| 228 | lp->stats.tx_bytes += skb->len; | 228 | dev->stats.tx_bytes += skb->len; |
| 229 | dev->trans_start = jiffies; | 229 | dev->trans_start = jiffies; |
| 230 | netif_start_queue(dev); | 230 | netif_start_queue(dev); |
| 231 | 231 | ||
| @@ -234,7 +234,7 @@ static int uml_net_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
| 234 | } | 234 | } |
| 235 | else if (len == 0) { | 235 | else if (len == 0) { |
| 236 | netif_start_queue(dev); | 236 | netif_start_queue(dev); |
| 237 | lp->stats.tx_dropped++; | 237 | dev->stats.tx_dropped++; |
| 238 | } | 238 | } |
| 239 | else { | 239 | else { |
| 240 | netif_start_queue(dev); | 240 | netif_start_queue(dev); |
| @@ -248,12 +248,6 @@ static int uml_net_start_xmit(struct sk_buff *skb, struct net_device *dev) | |||
| 248 | return 0; | 248 | return 0; |
| 249 | } | 249 | } |
| 250 | 250 | ||
| 251 | static struct net_device_stats *uml_net_get_stats(struct net_device *dev) | ||
| 252 | { | ||
| 253 | struct uml_net_private *lp = netdev_priv(dev); | ||
| 254 | return &lp->stats; | ||
| 255 | } | ||
| 256 | |||
| 257 | static void uml_net_set_multicast_list(struct net_device *dev) | 251 | static void uml_net_set_multicast_list(struct net_device *dev) |
| 258 | { | 252 | { |
| 259 | return; | 253 | return; |
| @@ -377,6 +371,18 @@ static void net_device_release(struct device *dev) | |||
| 377 | free_netdev(netdev); | 371 | free_netdev(netdev); |
| 378 | } | 372 | } |
| 379 | 373 | ||
| 374 | static const struct net_device_ops uml_netdev_ops = { | ||
| 375 | .ndo_open = uml_net_open, | ||
| 376 | .ndo_stop = uml_net_close, | ||
| 377 | .ndo_start_xmit = uml_net_start_xmit, | ||
| 378 | .ndo_set_multicast_list = uml_net_set_multicast_list, | ||
| 379 | .ndo_tx_timeout = uml_net_tx_timeout, | ||
| 380 | .ndo_set_mac_address = uml_net_set_mac, | ||
| 381 | .ndo_change_mtu = uml_net_change_mtu, | ||
| 382 | .ndo_set_mac_address = eth_mac_addr, | ||
| 383 | .ndo_validate_addr = eth_validate_addr, | ||
| 384 | }; | ||
| 385 | |||
| 380 | /* | 386 | /* |
| 381 | * Ensures that platform_driver_register is called only once by | 387 | * Ensures that platform_driver_register is called only once by |
| 382 | * eth_configure. Will be set in an initcall. | 388 | * eth_configure. Will be set in an initcall. |
| @@ -473,14 +479,7 @@ static void eth_configure(int n, void *init, char *mac, | |||
| 473 | 479 | ||
| 474 | set_ether_mac(dev, device->mac); | 480 | set_ether_mac(dev, device->mac); |
| 475 | dev->mtu = transport->user->mtu; | 481 | dev->mtu = transport->user->mtu; |
| 476 | dev->open = uml_net_open; | 482 | dev->netdev_ops = ¨_netdev_ops; |
| 477 | dev->hard_start_xmit = uml_net_start_xmit; | ||
| 478 | dev->stop = uml_net_close; | ||
| 479 | dev->get_stats = uml_net_get_stats; | ||
| 480 | dev->set_multicast_list = uml_net_set_multicast_list; | ||
| 481 | dev->tx_timeout = uml_net_tx_timeout; | ||
| 482 | dev->set_mac_address = uml_net_set_mac; | ||
| 483 | dev->change_mtu = uml_net_change_mtu; | ||
| 484 | dev->ethtool_ops = ¨_net_ethtool_ops; | 483 | dev->ethtool_ops = ¨_net_ethtool_ops; |
| 485 | dev->watchdog_timeo = (HZ >> 1); | 484 | dev->watchdog_timeo = (HZ >> 1); |
| 486 | dev->irq = UM_ETH_IRQ; | 485 | dev->irq = UM_ETH_IRQ; |
| @@ -758,7 +757,7 @@ static int uml_inetaddr_event(struct notifier_block *this, unsigned long event, | |||
| 758 | void (*proc)(unsigned char *, unsigned char *, void *); | 757 | void (*proc)(unsigned char *, unsigned char *, void *); |
| 759 | unsigned char addr_buf[4], netmask_buf[4]; | 758 | unsigned char addr_buf[4], netmask_buf[4]; |
| 760 | 759 | ||
| 761 | if (dev->open != uml_net_open) | 760 | if (dev->netdev_ops->ndo_open != uml_net_open) |
| 762 | return NOTIFY_DONE; | 761 | return NOTIFY_DONE; |
| 763 | 762 | ||
| 764 | lp = netdev_priv(dev); | 763 | lp = netdev_priv(dev); |
diff --git a/arch/um/drivers/pcap_user.h b/arch/um/drivers/pcap_user.h index 96b80b565eeb..d8ba6153f912 100644 --- a/arch/um/drivers/pcap_user.h +++ b/arch/um/drivers/pcap_user.h | |||
| @@ -19,13 +19,3 @@ extern const struct net_user_info pcap_user_info; | |||
| 19 | 19 | ||
| 20 | extern int pcap_user_read(int fd, void *buf, int len, struct pcap_data *pri); | 20 | extern int pcap_user_read(int fd, void *buf, int len, struct pcap_data *pri); |
| 21 | 21 | ||
| 22 | /* | ||
| 23 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 24 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 25 | * adjust the settings for this buffer only. This must remain at the end | ||
| 26 | * of the file. | ||
| 27 | * --------------------------------------------------------------------------- | ||
| 28 | * Local variables: | ||
| 29 | * c-file-style: "linux" | ||
| 30 | * End: | ||
| 31 | */ | ||
diff --git a/arch/um/drivers/port.h b/arch/um/drivers/port.h index 9117609a575d..372a80c0556a 100644 --- a/arch/um/drivers/port.h +++ b/arch/um/drivers/port.h | |||
| @@ -18,13 +18,3 @@ extern void port_remove_dev(void *d); | |||
| 18 | 18 | ||
| 19 | #endif | 19 | #endif |
| 20 | 20 | ||
| 21 | /* | ||
| 22 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 23 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 24 | * adjust the settings for this buffer only. This must remain at the end | ||
| 25 | * of the file. | ||
| 26 | * --------------------------------------------------------------------------- | ||
| 27 | * Local variables: | ||
| 28 | * c-file-style: "linux" | ||
| 29 | * End: | ||
| 30 | */ | ||
diff --git a/arch/um/drivers/ssl.h b/arch/um/drivers/ssl.h index 98412aa66607..314d17725ce6 100644 --- a/arch/um/drivers/ssl.h +++ b/arch/um/drivers/ssl.h | |||
| @@ -11,13 +11,3 @@ extern void ssl_receive_char(int line, char ch); | |||
| 11 | 11 | ||
| 12 | #endif | 12 | #endif |
| 13 | 13 | ||
| 14 | /* | ||
| 15 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 16 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 17 | * adjust the settings for this buffer only. This must remain at the end | ||
| 18 | * of the file. | ||
| 19 | * --------------------------------------------------------------------------- | ||
| 20 | * Local variables: | ||
| 21 | * c-file-style: "linux" | ||
| 22 | * End: | ||
| 23 | */ | ||
diff --git a/arch/um/drivers/stdio_console.h b/arch/um/drivers/stdio_console.h index 505a3d5bea5e..6d8275f71fd4 100644 --- a/arch/um/drivers/stdio_console.h +++ b/arch/um/drivers/stdio_console.h | |||
| @@ -9,13 +9,3 @@ | |||
| 9 | extern void save_console_flags(void); | 9 | extern void save_console_flags(void); |
| 10 | #endif | 10 | #endif |
| 11 | 11 | ||
| 12 | /* | ||
| 13 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 14 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 15 | * adjust the settings for this buffer only. This must remain at the end | ||
| 16 | * of the file. | ||
| 17 | * --------------------------------------------------------------------------- | ||
| 18 | * Local variables: | ||
| 19 | * c-file-style: "linux" | ||
| 20 | * End: | ||
| 21 | */ | ||
diff --git a/arch/um/drivers/ubd_kern.c b/arch/um/drivers/ubd_kern.c index 0a868118cf06..f934225fd8ef 100644 --- a/arch/um/drivers/ubd_kern.c +++ b/arch/um/drivers/ubd_kern.c | |||
| @@ -17,12 +17,12 @@ | |||
| 17 | * James McMechan | 17 | * James McMechan |
| 18 | */ | 18 | */ |
| 19 | 19 | ||
| 20 | #define MAJOR_NR UBD_MAJOR | ||
| 21 | #define UBD_SHIFT 4 | 20 | #define UBD_SHIFT 4 |
| 22 | 21 | ||
| 23 | #include "linux/kernel.h" | 22 | #include "linux/kernel.h" |
| 24 | #include "linux/module.h" | 23 | #include "linux/module.h" |
| 25 | #include "linux/blkdev.h" | 24 | #include "linux/blkdev.h" |
| 25 | #include "linux/ata.h" | ||
| 26 | #include "linux/hdreg.h" | 26 | #include "linux/hdreg.h" |
| 27 | #include "linux/init.h" | 27 | #include "linux/init.h" |
| 28 | #include "linux/cdrom.h" | 28 | #include "linux/cdrom.h" |
| @@ -115,7 +115,7 @@ static struct block_device_operations ubd_blops = { | |||
| 115 | }; | 115 | }; |
| 116 | 116 | ||
| 117 | /* Protected by ubd_lock */ | 117 | /* Protected by ubd_lock */ |
| 118 | static int fake_major = MAJOR_NR; | 118 | static int fake_major = UBD_MAJOR; |
| 119 | static struct gendisk *ubd_gendisk[MAX_DEV]; | 119 | static struct gendisk *ubd_gendisk[MAX_DEV]; |
| 120 | static struct gendisk *fake_gendisk[MAX_DEV]; | 120 | static struct gendisk *fake_gendisk[MAX_DEV]; |
| 121 | 121 | ||
| @@ -299,7 +299,7 @@ static int ubd_setup_common(char *str, int *index_out, char **error_out) | |||
| 299 | } | 299 | } |
| 300 | 300 | ||
| 301 | mutex_lock(&ubd_lock); | 301 | mutex_lock(&ubd_lock); |
| 302 | if(fake_major != MAJOR_NR){ | 302 | if (fake_major != UBD_MAJOR) { |
| 303 | *error_out = "Can't assign a fake major twice"; | 303 | *error_out = "Can't assign a fake major twice"; |
| 304 | goto out1; | 304 | goto out1; |
| 305 | } | 305 | } |
| @@ -818,13 +818,13 @@ static int ubd_disk_register(int major, u64 size, int unit, | |||
| 818 | disk->first_minor = unit << UBD_SHIFT; | 818 | disk->first_minor = unit << UBD_SHIFT; |
| 819 | disk->fops = &ubd_blops; | 819 | disk->fops = &ubd_blops; |
| 820 | set_capacity(disk, size / 512); | 820 | set_capacity(disk, size / 512); |
| 821 | if(major == MAJOR_NR) | 821 | if (major == UBD_MAJOR) |
| 822 | sprintf(disk->disk_name, "ubd%c", 'a' + unit); | 822 | sprintf(disk->disk_name, "ubd%c", 'a' + unit); |
| 823 | else | 823 | else |
| 824 | sprintf(disk->disk_name, "ubd_fake%d", unit); | 824 | sprintf(disk->disk_name, "ubd_fake%d", unit); |
| 825 | 825 | ||
| 826 | /* sysfs register (not for ide fake devices) */ | 826 | /* sysfs register (not for ide fake devices) */ |
| 827 | if (major == MAJOR_NR) { | 827 | if (major == UBD_MAJOR) { |
| 828 | ubd_devs[unit].pdev.id = unit; | 828 | ubd_devs[unit].pdev.id = unit; |
| 829 | ubd_devs[unit].pdev.name = DRIVER_NAME; | 829 | ubd_devs[unit].pdev.name = DRIVER_NAME; |
| 830 | ubd_devs[unit].pdev.dev.release = ubd_device_release; | 830 | ubd_devs[unit].pdev.dev.release = ubd_device_release; |
| @@ -871,13 +871,13 @@ static int ubd_add(int n, char **error_out) | |||
| 871 | ubd_dev->queue->queuedata = ubd_dev; | 871 | ubd_dev->queue->queuedata = ubd_dev; |
| 872 | 872 | ||
| 873 | blk_queue_max_hw_segments(ubd_dev->queue, MAX_SG); | 873 | blk_queue_max_hw_segments(ubd_dev->queue, MAX_SG); |
| 874 | err = ubd_disk_register(MAJOR_NR, ubd_dev->size, n, &ubd_gendisk[n]); | 874 | err = ubd_disk_register(UBD_MAJOR, ubd_dev->size, n, &ubd_gendisk[n]); |
| 875 | if(err){ | 875 | if(err){ |
| 876 | *error_out = "Failed to register device"; | 876 | *error_out = "Failed to register device"; |
| 877 | goto out_cleanup; | 877 | goto out_cleanup; |
| 878 | } | 878 | } |
| 879 | 879 | ||
| 880 | if(fake_major != MAJOR_NR) | 880 | if (fake_major != UBD_MAJOR) |
| 881 | ubd_disk_register(fake_major, ubd_dev->size, n, | 881 | ubd_disk_register(fake_major, ubd_dev->size, n, |
| 882 | &fake_gendisk[n]); | 882 | &fake_gendisk[n]); |
| 883 | 883 | ||
| @@ -1059,10 +1059,10 @@ static int __init ubd_init(void) | |||
| 1059 | char *error; | 1059 | char *error; |
| 1060 | int i, err; | 1060 | int i, err; |
| 1061 | 1061 | ||
| 1062 | if (register_blkdev(MAJOR_NR, "ubd")) | 1062 | if (register_blkdev(UBD_MAJOR, "ubd")) |
| 1063 | return -1; | 1063 | return -1; |
| 1064 | 1064 | ||
| 1065 | if (fake_major != MAJOR_NR) { | 1065 | if (fake_major != UBD_MAJOR) { |
| 1066 | char name[sizeof("ubd_nnn\0")]; | 1066 | char name[sizeof("ubd_nnn\0")]; |
| 1067 | 1067 | ||
| 1068 | snprintf(name, sizeof(name), "ubd_%d", fake_major); | 1068 | snprintf(name, sizeof(name), "ubd_%d", fake_major); |
| @@ -1309,16 +1309,15 @@ static int ubd_ioctl(struct block_device *bdev, fmode_t mode, | |||
| 1309 | unsigned int cmd, unsigned long arg) | 1309 | unsigned int cmd, unsigned long arg) |
| 1310 | { | 1310 | { |
| 1311 | struct ubd *ubd_dev = bdev->bd_disk->private_data; | 1311 | struct ubd *ubd_dev = bdev->bd_disk->private_data; |
| 1312 | struct hd_driveid ubd_id = { | 1312 | u16 ubd_id[ATA_ID_WORDS]; |
| 1313 | .cyls = 0, | ||
| 1314 | .heads = 128, | ||
| 1315 | .sectors = 32, | ||
| 1316 | }; | ||
| 1317 | 1313 | ||
| 1318 | switch (cmd) { | 1314 | switch (cmd) { |
| 1319 | struct cdrom_volctrl volume; | 1315 | struct cdrom_volctrl volume; |
| 1320 | case HDIO_GET_IDENTITY: | 1316 | case HDIO_GET_IDENTITY: |
| 1321 | ubd_id.cyls = ubd_dev->size / (128 * 32 * 512); | 1317 | memset(&ubd_id, 0, ATA_ID_WORDS * 2); |
| 1318 | ubd_id[ATA_ID_CYLS] = ubd_dev->size / (128 * 32 * 512); | ||
| 1319 | ubd_id[ATA_ID_HEADS] = 128; | ||
| 1320 | ubd_id[ATA_ID_SECTORS] = 32; | ||
| 1322 | if(copy_to_user((char __user *) arg, (char *) &ubd_id, | 1321 | if(copy_to_user((char __user *) arg, (char *) &ubd_id, |
| 1323 | sizeof(ubd_id))) | 1322 | sizeof(ubd_id))) |
| 1324 | return -EFAULT; | 1323 | return -EFAULT; |
diff --git a/arch/um/drivers/xterm.h b/arch/um/drivers/xterm.h index f33a6e77b186..56b9c4aba423 100644 --- a/arch/um/drivers/xterm.h +++ b/arch/um/drivers/xterm.h | |||
| @@ -10,13 +10,3 @@ extern int xterm_fd(int socket, int *pid_out); | |||
| 10 | 10 | ||
| 11 | #endif | 11 | #endif |
| 12 | 12 | ||
| 13 | /* | ||
| 14 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 15 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 16 | * adjust the settings for this buffer only. This must remain at the end | ||
| 17 | * of the file. | ||
| 18 | * --------------------------------------------------------------------------- | ||
| 19 | * Local variables: | ||
| 20 | * c-file-style: "linux" | ||
| 21 | * End: | ||
| 22 | */ | ||
diff --git a/arch/um/include/asm/ftrace.h b/arch/um/include/asm/ftrace.h new file mode 100644 index 000000000000..40a8c178f10d --- /dev/null +++ b/arch/um/include/asm/ftrace.h | |||
| @@ -0,0 +1 @@ | |||
| /* empty */ | |||
diff --git a/arch/um/include/asm/irq_vectors.h b/arch/um/include/asm/irq_vectors.h index 62ddba6fc733..272a81e0ce14 100644 --- a/arch/um/include/asm/irq_vectors.h +++ b/arch/um/include/asm/irq_vectors.h | |||
| @@ -8,13 +8,3 @@ | |||
| 8 | 8 | ||
| 9 | #endif | 9 | #endif |
| 10 | 10 | ||
| 11 | /* | ||
| 12 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 13 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 14 | * adjust the settings for this buffer only. This must remain at the end | ||
| 15 | * of the file. | ||
| 16 | * --------------------------------------------------------------------------- | ||
| 17 | * Local variables: | ||
| 18 | * c-file-style: "linux" | ||
| 19 | * End: | ||
| 20 | */ | ||
diff --git a/arch/um/include/asm/mmu.h b/arch/um/include/asm/mmu.h index 2cf35c21d694..cf259de51531 100644 --- a/arch/um/include/asm/mmu.h +++ b/arch/um/include/asm/mmu.h | |||
| @@ -10,13 +10,3 @@ | |||
| 10 | 10 | ||
| 11 | #endif | 11 | #endif |
| 12 | 12 | ||
| 13 | /* | ||
| 14 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 15 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 16 | * adjust the settings for this buffer only. This must remain at the end | ||
| 17 | * of the file. | ||
| 18 | * --------------------------------------------------------------------------- | ||
| 19 | * Local variables: | ||
| 20 | * c-file-style: "linux" | ||
| 21 | * End: | ||
| 22 | */ | ||
diff --git a/arch/um/include/asm/pda.h b/arch/um/include/asm/pda.h index 0d8bf33ffd42..ddcd774fc2a0 100644 --- a/arch/um/include/asm/pda.h +++ b/arch/um/include/asm/pda.h | |||
| @@ -19,13 +19,3 @@ extern struct foo me; | |||
| 19 | 19 | ||
| 20 | #endif | 20 | #endif |
| 21 | 21 | ||
| 22 | /* | ||
| 23 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 24 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 25 | * adjust the settings for this buffer only. This must remain at the end | ||
| 26 | * of the file. | ||
| 27 | * --------------------------------------------------------------------------- | ||
| 28 | * Local variables: | ||
| 29 | * c-file-style: "linux" | ||
| 30 | * End: | ||
| 31 | */ | ||
diff --git a/arch/um/include/asm/pgalloc.h b/arch/um/include/asm/pgalloc.h index 9062a6e72241..718984359f8c 100644 --- a/arch/um/include/asm/pgalloc.h +++ b/arch/um/include/asm/pgalloc.h | |||
| @@ -60,13 +60,3 @@ static inline void pmd_free(struct mm_struct *mm, pmd_t *pmd) | |||
| 60 | 60 | ||
| 61 | #endif | 61 | #endif |
| 62 | 62 | ||
| 63 | /* | ||
| 64 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 65 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 66 | * adjust the settings for this buffer only. This must remain at the end | ||
| 67 | * of the file. | ||
| 68 | * --------------------------------------------------------------------------- | ||
| 69 | * Local variables: | ||
| 70 | * c-file-style: "linux" | ||
| 71 | * End: | ||
| 72 | */ | ||
diff --git a/arch/um/include/asm/pgtable-3level.h b/arch/um/include/asm/pgtable-3level.h index 0446f456b428..084de4a9fc70 100644 --- a/arch/um/include/asm/pgtable-3level.h +++ b/arch/um/include/asm/pgtable-3level.h | |||
| @@ -134,13 +134,3 @@ static inline pmd_t pfn_pmd(pfn_t page_nr, pgprot_t pgprot) | |||
| 134 | 134 | ||
| 135 | #endif | 135 | #endif |
| 136 | 136 | ||
| 137 | /* | ||
| 138 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 139 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 140 | * adjust the settings for this buffer only. This must remain at the end | ||
| 141 | * of the file. | ||
| 142 | * --------------------------------------------------------------------------- | ||
| 143 | * Local variables: | ||
| 144 | * c-file-style: "linux" | ||
| 145 | * End: | ||
| 146 | */ | ||
diff --git a/arch/um/include/shared/frame_kern.h b/arch/um/include/shared/frame_kern.h index ce9514f57211..76078490c258 100644 --- a/arch/um/include/shared/frame_kern.h +++ b/arch/um/include/shared/frame_kern.h | |||
| @@ -20,13 +20,3 @@ extern int setup_signal_stack_si(unsigned long stack_top, int sig, | |||
| 20 | 20 | ||
| 21 | #endif | 21 | #endif |
| 22 | 22 | ||
| 23 | /* | ||
| 24 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 25 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 26 | * adjust the settings for this buffer only. This must remain at the end | ||
| 27 | * of the file. | ||
| 28 | * --------------------------------------------------------------------------- | ||
| 29 | * Local variables: | ||
| 30 | * c-file-style: "linux" | ||
| 31 | * End: | ||
| 32 | */ | ||
diff --git a/arch/um/include/shared/initrd.h b/arch/um/include/shared/initrd.h index 439b9a814985..22673bcc273d 100644 --- a/arch/um/include/shared/initrd.h +++ b/arch/um/include/shared/initrd.h | |||
| @@ -10,13 +10,3 @@ extern int load_initrd(char *filename, void *buf, int size); | |||
| 10 | 10 | ||
| 11 | #endif | 11 | #endif |
| 12 | 12 | ||
| 13 | /* | ||
| 14 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 15 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 16 | * adjust the settings for this buffer only. This must remain at the end | ||
| 17 | * of the file. | ||
| 18 | * --------------------------------------------------------------------------- | ||
| 19 | * Local variables: | ||
| 20 | * c-file-style: "linux" | ||
| 21 | * End: | ||
| 22 | */ | ||
diff --git a/arch/um/include/shared/irq_kern.h b/arch/um/include/shared/irq_kern.h index fba3895274f9..b05d22f3d84e 100644 --- a/arch/um/include/shared/irq_kern.h +++ b/arch/um/include/shared/irq_kern.h | |||
| @@ -16,13 +16,3 @@ extern int um_request_irq(unsigned int irq, int fd, int type, | |||
| 16 | 16 | ||
| 17 | #endif | 17 | #endif |
| 18 | 18 | ||
| 19 | /* | ||
| 20 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 21 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 22 | * adjust the settings for this buffer only. This must remain at the end | ||
| 23 | * of the file. | ||
| 24 | * --------------------------------------------------------------------------- | ||
| 25 | * Local variables: | ||
| 26 | * c-file-style: "linux" | ||
| 27 | * End: | ||
| 28 | */ | ||
diff --git a/arch/um/include/shared/mem_kern.h b/arch/um/include/shared/mem_kern.h index cb7e196d366b..69be0fd0ce4b 100644 --- a/arch/um/include/shared/mem_kern.h +++ b/arch/um/include/shared/mem_kern.h | |||
| @@ -18,13 +18,3 @@ extern void register_remapper(struct remapper *info); | |||
| 18 | 18 | ||
| 19 | #endif | 19 | #endif |
| 20 | 20 | ||
| 21 | /* | ||
| 22 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 23 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 24 | * adjust the settings for this buffer only. This must remain at the end | ||
| 25 | * of the file. | ||
| 26 | * --------------------------------------------------------------------------- | ||
| 27 | * Local variables: | ||
| 28 | * c-file-style: "linux" | ||
| 29 | * End: | ||
| 30 | */ | ||
diff --git a/arch/um/include/shared/net_kern.h b/arch/um/include/shared/net_kern.h index d843c7924a7c..5c367f22595b 100644 --- a/arch/um/include/shared/net_kern.h +++ b/arch/um/include/shared/net_kern.h | |||
| @@ -26,7 +26,7 @@ struct uml_net_private { | |||
| 26 | spinlock_t lock; | 26 | spinlock_t lock; |
| 27 | struct net_device *dev; | 27 | struct net_device *dev; |
| 28 | struct timer_list tl; | 28 | struct timer_list tl; |
| 29 | struct net_device_stats stats; | 29 | |
| 30 | struct work_struct work; | 30 | struct work_struct work; |
| 31 | int fd; | 31 | int fd; |
| 32 | unsigned char mac[ETH_ALEN]; | 32 | unsigned char mac[ETH_ALEN]; |
diff --git a/arch/um/include/shared/ubd_user.h b/arch/um/include/shared/ubd_user.h index bb66517f0739..3845051f1b10 100644 --- a/arch/um/include/shared/ubd_user.h +++ b/arch/um/include/shared/ubd_user.h | |||
| @@ -14,13 +14,3 @@ extern int kernel_fd; | |||
| 14 | 14 | ||
| 15 | #endif | 15 | #endif |
| 16 | 16 | ||
| 17 | /* | ||
| 18 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 19 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 20 | * adjust the settings for this buffer only. This must remain at the end | ||
| 21 | * of the file. | ||
| 22 | * --------------------------------------------------------------------------- | ||
| 23 | * Local variables: | ||
| 24 | * c-file-style: "linux" | ||
| 25 | * End: | ||
| 26 | */ | ||
diff --git a/arch/um/kernel/Makefile b/arch/um/kernel/Makefile index 499e5e95e609..388ec0a3ea9b 100644 --- a/arch/um/kernel/Makefile +++ b/arch/um/kernel/Makefile | |||
| @@ -28,7 +28,7 @@ $(obj)/config.tmp: $(objtree)/.config FORCE | |||
| 28 | $(call if_changed,quote1) | 28 | $(call if_changed,quote1) |
| 29 | 29 | ||
| 30 | quiet_cmd_quote1 = QUOTE $@ | 30 | quiet_cmd_quote1 = QUOTE $@ |
| 31 | cmd_quote1 = sed -e 's/"/\\"/g' -e 's/^/"/' -e 's/$$/\\n"/' \ | 31 | cmd_quote1 = sed -e 's/"/\\"/g' -e 's/^/"/' -e 's/$$/\\n",/' \ |
| 32 | $< > $@ | 32 | $< > $@ |
| 33 | 33 | ||
| 34 | $(obj)/config.c: $(src)/config.c.in $(obj)/config.tmp FORCE | 34 | $(obj)/config.c: $(src)/config.c.in $(obj)/config.tmp FORCE |
| @@ -36,9 +36,9 @@ $(obj)/config.c: $(src)/config.c.in $(obj)/config.tmp FORCE | |||
| 36 | 36 | ||
| 37 | quiet_cmd_quote2 = QUOTE $@ | 37 | quiet_cmd_quote2 = QUOTE $@ |
| 38 | cmd_quote2 = sed -e '/CONFIG/{' \ | 38 | cmd_quote2 = sed -e '/CONFIG/{' \ |
| 39 | -e 's/"CONFIG"\;/""/' \ | 39 | -e 's/"CONFIG"//' \ |
| 40 | -e 'r $(obj)/config.tmp' \ | 40 | -e 'r $(obj)/config.tmp' \ |
| 41 | -e 'a \' \ | 41 | -e 'a \' \ |
| 42 | -e '""\;' \ | 42 | -e '""' \ |
| 43 | -e '}' \ | 43 | -e '}' \ |
| 44 | $< > $@ | 44 | $< > $@ |
diff --git a/arch/um/kernel/config.c.in b/arch/um/kernel/config.c.in index c062cbfe386e..b7a43feafde7 100644 --- a/arch/um/kernel/config.c.in +++ b/arch/um/kernel/config.c.in | |||
| @@ -7,11 +7,15 @@ | |||
| 7 | #include <stdlib.h> | 7 | #include <stdlib.h> |
| 8 | #include "init.h" | 8 | #include "init.h" |
| 9 | 9 | ||
| 10 | static __initdata char *config = "CONFIG"; | 10 | static __initdata const char *config[] = { |
| 11 | "CONFIG" | ||
| 12 | }; | ||
| 11 | 13 | ||
| 12 | static int __init print_config(char *line, int *add) | 14 | static int __init print_config(char *line, int *add) |
| 13 | { | 15 | { |
| 14 | printf("%s", config); | 16 | int i; |
| 17 | for (i = 0; i < sizeof(config)/sizeof(config[0]); i++) | ||
| 18 | printf("%s", config[i]); | ||
| 15 | exit(0); | 19 | exit(0); |
| 16 | } | 20 | } |
| 17 | 21 | ||
| @@ -20,13 +24,3 @@ __uml_setup("--showconfig", print_config, | |||
| 20 | " Prints the config file that this UML binary was generated from.\n\n" | 24 | " Prints the config file that this UML binary was generated from.\n\n" |
| 21 | ); | 25 | ); |
| 22 | 26 | ||
| 23 | /* | ||
| 24 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 25 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 26 | * adjust the settings for this buffer only. This must remain at the end | ||
| 27 | * of the file. | ||
| 28 | * --------------------------------------------------------------------------- | ||
| 29 | * Local variables: | ||
| 30 | * c-file-style: "linux" | ||
| 31 | * End: | ||
| 32 | */ | ||
diff --git a/arch/um/kernel/process.c b/arch/um/kernel/process.c index a1c6d07cac3e..4a28a1568d85 100644 --- a/arch/um/kernel/process.c +++ b/arch/um/kernel/process.c | |||
| @@ -179,7 +179,7 @@ void fork_handler(void) | |||
| 179 | userspace(¤t->thread.regs.regs); | 179 | userspace(¤t->thread.regs.regs); |
| 180 | } | 180 | } |
| 181 | 181 | ||
| 182 | int copy_thread(int nr, unsigned long clone_flags, unsigned long sp, | 182 | int copy_thread(unsigned long clone_flags, unsigned long sp, |
| 183 | unsigned long stack_top, struct task_struct * p, | 183 | unsigned long stack_top, struct task_struct * p, |
| 184 | struct pt_regs *regs) | 184 | struct pt_regs *regs) |
| 185 | { | 185 | { |
diff --git a/arch/um/kernel/syscall.c b/arch/um/kernel/syscall.c index c4df705b8359..a4625c7b2bf9 100644 --- a/arch/um/kernel/syscall.c +++ b/arch/um/kernel/syscall.c | |||
| @@ -127,7 +127,8 @@ int kernel_execve(const char *filename, char *const argv[], char *const envp[]) | |||
| 127 | 127 | ||
| 128 | fs = get_fs(); | 128 | fs = get_fs(); |
| 129 | set_fs(KERNEL_DS); | 129 | set_fs(KERNEL_DS); |
| 130 | ret = um_execve(filename, argv, envp); | 130 | ret = um_execve((char *)filename, (char __user *__user *)argv, |
| 131 | (char __user *__user *) envp); | ||
| 131 | set_fs(fs); | 132 | set_fs(fs); |
| 132 | 133 | ||
| 133 | return ret; | 134 | return ret; |
diff --git a/arch/um/os-Linux/start_up.c b/arch/um/os-Linux/start_up.c index 183db26d01bf..02ee9adff54a 100644 --- a/arch/um/os-Linux/start_up.c +++ b/arch/um/os-Linux/start_up.c | |||
| @@ -244,7 +244,7 @@ static void __init check_sysemu(void) | |||
| 244 | 244 | ||
| 245 | if ((ptrace(PTRACE_OLDSETOPTIONS, pid, 0, | 245 | if ((ptrace(PTRACE_OLDSETOPTIONS, pid, 0, |
| 246 | (void *) PTRACE_O_TRACESYSGOOD) < 0)) | 246 | (void *) PTRACE_O_TRACESYSGOOD) < 0)) |
| 247 | fatal_perror("check_ptrace: PTRACE_OLDSETOPTIONS failed"); | 247 | fatal_perror("check_sysemu: PTRACE_OLDSETOPTIONS failed"); |
| 248 | 248 | ||
| 249 | while (1) { | 249 | while (1) { |
| 250 | count++; | 250 | count++; |
| @@ -252,12 +252,12 @@ static void __init check_sysemu(void) | |||
| 252 | goto fail; | 252 | goto fail; |
| 253 | CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); | 253 | CATCH_EINTR(n = waitpid(pid, &status, WUNTRACED)); |
| 254 | if (n < 0) | 254 | if (n < 0) |
| 255 | fatal_perror("check_ptrace : wait failed"); | 255 | fatal_perror("check_sysemu: wait failed"); |
| 256 | 256 | ||
| 257 | if (WIFSTOPPED(status) && | 257 | if (WIFSTOPPED(status) && |
| 258 | (WSTOPSIG(status) == (SIGTRAP|0x80))) { | 258 | (WSTOPSIG(status) == (SIGTRAP|0x80))) { |
| 259 | if (!count) { | 259 | if (!count) { |
| 260 | non_fatal("check_ptrace : SYSEMU_SINGLESTEP " | 260 | non_fatal("check_sysemu: SYSEMU_SINGLESTEP " |
| 261 | "doesn't singlestep"); | 261 | "doesn't singlestep"); |
| 262 | goto fail; | 262 | goto fail; |
| 263 | } | 263 | } |
| @@ -271,7 +271,7 @@ static void __init check_sysemu(void) | |||
| 271 | else if (WIFSTOPPED(status) && (WSTOPSIG(status) == SIGTRAP)) | 271 | else if (WIFSTOPPED(status) && (WSTOPSIG(status) == SIGTRAP)) |
| 272 | count++; | 272 | count++; |
| 273 | else { | 273 | else { |
| 274 | non_fatal("check_ptrace : expected SIGTRAP or " | 274 | non_fatal("check_sysemu: expected SIGTRAP or " |
| 275 | "(SIGTRAP | 0x80), got status = %d\n", | 275 | "(SIGTRAP | 0x80), got status = %d\n", |
| 276 | status); | 276 | status); |
| 277 | goto fail; | 277 | goto fail; |
diff --git a/arch/um/sys-i386/asm/archparam.h b/arch/um/sys-i386/asm/archparam.h index 93fd723344e5..2a18a884ca1b 100644 --- a/arch/um/sys-i386/asm/archparam.h +++ b/arch/um/sys-i386/asm/archparam.h | |||
| @@ -14,13 +14,3 @@ | |||
| 14 | 14 | ||
| 15 | #endif | 15 | #endif |
| 16 | 16 | ||
| 17 | /* | ||
| 18 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 19 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 20 | * adjust the settings for this buffer only. This must remain at the end | ||
| 21 | * of the file. | ||
| 22 | * --------------------------------------------------------------------------- | ||
| 23 | * Local variables: | ||
| 24 | * c-file-style: "linux" | ||
| 25 | * End: | ||
| 26 | */ | ||
diff --git a/arch/um/sys-i386/shared/sysdep/checksum.h b/arch/um/sys-i386/shared/sysdep/checksum.h index 0cb4645cbeb8..ed47445f3905 100644 --- a/arch/um/sys-i386/shared/sysdep/checksum.h +++ b/arch/um/sys-i386/shared/sysdep/checksum.h | |||
| @@ -199,13 +199,3 @@ static __inline__ __wsum csum_and_copy_to_user(const void *src, | |||
| 199 | 199 | ||
| 200 | #endif | 200 | #endif |
| 201 | 201 | ||
| 202 | /* | ||
| 203 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 204 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 205 | * adjust the settings for this buffer only. This must remain at the end | ||
| 206 | * of the file. | ||
| 207 | * --------------------------------------------------------------------------- | ||
| 208 | * Local variables: | ||
| 209 | * c-file-style: "linux" | ||
| 210 | * End: | ||
| 211 | */ | ||
diff --git a/arch/um/sys-i386/sys_call_table.S b/arch/um/sys-i386/sys_call_table.S index 00e5f5203eea..c6260dd6ebb9 100644 --- a/arch/um/sys-i386/sys_call_table.S +++ b/arch/um/sys-i386/sys_call_table.S | |||
| @@ -9,6 +9,17 @@ | |||
| 9 | 9 | ||
| 10 | #define old_mmap old_mmap_i386 | 10 | #define old_mmap old_mmap_i386 |
| 11 | 11 | ||
| 12 | #define ptregs_fork sys_fork | ||
| 13 | #define ptregs_execve sys_execve | ||
| 14 | #define ptregs_iopl sys_iopl | ||
| 15 | #define ptregs_vm86old sys_vm86old | ||
| 16 | #define ptregs_sigreturn sys_sigreturn | ||
| 17 | #define ptregs_clone sys_clone | ||
| 18 | #define ptregs_vm86 sys_vm86 | ||
| 19 | #define ptregs_rt_sigreturn sys_rt_sigreturn | ||
| 20 | #define ptregs_sigaltstack sys_sigaltstack | ||
| 21 | #define ptregs_vfork sys_vfork | ||
| 22 | |||
| 12 | .section .rodata,"a" | 23 | .section .rodata,"a" |
| 13 | 24 | ||
| 14 | #include "../../x86/kernel/syscall_table_32.S" | 25 | #include "../../x86/kernel/syscall_table_32.S" |
diff --git a/arch/um/sys-ia64/sysdep/ptrace.h b/arch/um/sys-ia64/sysdep/ptrace.h index 42dd8fb6f2f9..0f0f4e6fd334 100644 --- a/arch/um/sys-ia64/sysdep/ptrace.h +++ b/arch/um/sys-ia64/sysdep/ptrace.h | |||
| @@ -14,13 +14,3 @@ struct sys_pt_regs { | |||
| 14 | 14 | ||
| 15 | #endif | 15 | #endif |
| 16 | 16 | ||
| 17 | /* | ||
| 18 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 19 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 20 | * adjust the settings for this buffer only. This must remain at the end | ||
| 21 | * of the file. | ||
| 22 | * --------------------------------------------------------------------------- | ||
| 23 | * Local variables: | ||
| 24 | * c-file-style: "linux" | ||
| 25 | * End: | ||
| 26 | */ | ||
diff --git a/arch/um/sys-ia64/sysdep/sigcontext.h b/arch/um/sys-ia64/sysdep/sigcontext.h index f15fb25260ba..76b43161e779 100644 --- a/arch/um/sys-ia64/sysdep/sigcontext.h +++ b/arch/um/sys-ia64/sysdep/sigcontext.h | |||
| @@ -8,13 +8,3 @@ | |||
| 8 | 8 | ||
| 9 | #endif | 9 | #endif |
| 10 | 10 | ||
| 11 | /* | ||
| 12 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 13 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 14 | * adjust the settings for this buffer only. This must remain at the end | ||
| 15 | * of the file. | ||
| 16 | * --------------------------------------------------------------------------- | ||
| 17 | * Local variables: | ||
| 18 | * c-file-style: "linux" | ||
| 19 | * End: | ||
| 20 | */ | ||
diff --git a/arch/um/sys-ia64/sysdep/syscalls.h b/arch/um/sys-ia64/sysdep/syscalls.h index 4a1f46ef1ebc..5f6700c41558 100644 --- a/arch/um/sys-ia64/sysdep/syscalls.h +++ b/arch/um/sys-ia64/sysdep/syscalls.h | |||
| @@ -8,13 +8,3 @@ | |||
| 8 | 8 | ||
| 9 | #endif | 9 | #endif |
| 10 | 10 | ||
| 11 | /* | ||
| 12 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 13 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 14 | * adjust the settings for this buffer only. This must remain at the end | ||
| 15 | * of the file. | ||
| 16 | * --------------------------------------------------------------------------- | ||
| 17 | * Local variables: | ||
| 18 | * c-file-style: "linux" | ||
| 19 | * End: | ||
| 20 | */ | ||
diff --git a/arch/um/sys-ppc/miscthings.c b/arch/um/sys-ppc/miscthings.c index 373061c50129..1c11aed9c719 100644 --- a/arch/um/sys-ppc/miscthings.c +++ b/arch/um/sys-ppc/miscthings.c | |||
| @@ -40,14 +40,3 @@ void shove_aux_table(unsigned long sp) | |||
| 40 | } | 40 | } |
| 41 | /* END stuff taken from arch/ppc/kernel/process.c */ | 41 | /* END stuff taken from arch/ppc/kernel/process.c */ |
| 42 | 42 | ||
| 43 | |||
| 44 | /* | ||
| 45 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 46 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 47 | * adjust the settings for this buffer only. This must remain at the end | ||
| 48 | * of the file. | ||
| 49 | * --------------------------------------------------------------------------- | ||
| 50 | * Local variables: | ||
| 51 | * c-file-style: "linux" | ||
| 52 | * End: | ||
| 53 | */ | ||
diff --git a/arch/um/sys-ppc/ptrace.c b/arch/um/sys-ppc/ptrace.c index 8e71b47f2b8e..66ef155248f1 100644 --- a/arch/um/sys-ppc/ptrace.c +++ b/arch/um/sys-ppc/ptrace.c | |||
| @@ -56,13 +56,3 @@ int peek_user(struct task_struct *child, long addr, long data) | |||
| 56 | return put_user(tmp, (unsigned long *) data); | 56 | return put_user(tmp, (unsigned long *) data); |
| 57 | } | 57 | } |
| 58 | 58 | ||
| 59 | /* | ||
| 60 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 61 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 62 | * adjust the settings for this buffer only. This must remain at the end | ||
| 63 | * of the file. | ||
| 64 | * --------------------------------------------------------------------------- | ||
| 65 | * Local variables: | ||
| 66 | * c-file-style: "linux" | ||
| 67 | * End: | ||
| 68 | */ | ||
diff --git a/arch/um/sys-ppc/ptrace_user.c b/arch/um/sys-ppc/ptrace_user.c index ff0b9c077a13..224d2403c37b 100644 --- a/arch/um/sys-ppc/ptrace_user.c +++ b/arch/um/sys-ppc/ptrace_user.c | |||
| @@ -27,13 +27,3 @@ int ptrace_setregs(long pid, unsigned long *regs_in) | |||
| 27 | } | 27 | } |
| 28 | return 0; | 28 | return 0; |
| 29 | } | 29 | } |
| 30 | /* | ||
| 31 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 32 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 33 | * adjust the settings for this buffer only. This must remain at the end | ||
| 34 | * of the file. | ||
| 35 | * --------------------------------------------------------------------------- | ||
| 36 | * Local variables: | ||
| 37 | * c-file-style: "linux" | ||
| 38 | * End: | ||
| 39 | */ | ||
diff --git a/arch/um/sys-ppc/shared/sysdep/ptrace.h b/arch/um/sys-ppc/shared/sysdep/ptrace.h index df2397dba3e5..0e3230e937e1 100644 --- a/arch/um/sys-ppc/shared/sysdep/ptrace.h +++ b/arch/um/sys-ppc/shared/sysdep/ptrace.h | |||
| @@ -91,13 +91,3 @@ extern void shove_aux_table(unsigned long sp); | |||
| 91 | 91 | ||
| 92 | #endif | 92 | #endif |
| 93 | 93 | ||
| 94 | /* | ||
| 95 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 96 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 97 | * adjust the settings for this buffer only. This must remain at the end | ||
| 98 | * of the file. | ||
| 99 | * --------------------------------------------------------------------------- | ||
| 100 | * Local variables: | ||
| 101 | * c-file-style: "linux" | ||
| 102 | * End: | ||
| 103 | */ | ||
diff --git a/arch/um/sys-ppc/shared/sysdep/sigcontext.h b/arch/um/sys-ppc/shared/sysdep/sigcontext.h index f20d965de9c7..b7286f0a1e00 100644 --- a/arch/um/sys-ppc/shared/sysdep/sigcontext.h +++ b/arch/um/sys-ppc/shared/sysdep/sigcontext.h | |||
| @@ -50,13 +50,3 @@ | |||
| 50 | 50 | ||
| 51 | #endif | 51 | #endif |
| 52 | 52 | ||
| 53 | /* | ||
| 54 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 55 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 56 | * adjust the settings for this buffer only. This must remain at the end | ||
| 57 | * of the file. | ||
| 58 | * --------------------------------------------------------------------------- | ||
| 59 | * Local variables: | ||
| 60 | * c-file-style: "linux" | ||
| 61 | * End: | ||
| 62 | */ | ||
diff --git a/arch/um/sys-ppc/shared/sysdep/syscalls.h b/arch/um/sys-ppc/shared/sysdep/syscalls.h index 679df351e19b..1ff81552251c 100644 --- a/arch/um/sys-ppc/shared/sysdep/syscalls.h +++ b/arch/um/sys-ppc/shared/sysdep/syscalls.h | |||
| @@ -41,13 +41,3 @@ int old_mmap(unsigned long addr, unsigned long len, | |||
| 41 | 41 | ||
| 42 | #define LAST_ARCH_SYSCALL __NR_fadvise64 | 42 | #define LAST_ARCH_SYSCALL __NR_fadvise64 |
| 43 | 43 | ||
| 44 | /* | ||
| 45 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 46 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 47 | * adjust the settings for this buffer only. This must remain at the end | ||
| 48 | * of the file. | ||
| 49 | * --------------------------------------------------------------------------- | ||
| 50 | * Local variables: | ||
| 51 | * c-file-style: "linux" | ||
| 52 | * End: | ||
| 53 | */ | ||
diff --git a/arch/um/sys-ppc/sigcontext.c b/arch/um/sys-ppc/sigcontext.c index 4bdc15c89edd..40694d0f3d15 100644 --- a/arch/um/sys-ppc/sigcontext.c +++ b/arch/um/sys-ppc/sigcontext.c | |||
| @@ -2,13 +2,3 @@ | |||
| 2 | #include "asm/sigcontext.h" | 2 | #include "asm/sigcontext.h" |
| 3 | #include "sysdep/ptrace.h" | 3 | #include "sysdep/ptrace.h" |
| 4 | 4 | ||
| 5 | /* | ||
| 6 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 7 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 8 | * adjust the settings for this buffer only. This must remain at the end | ||
| 9 | * of the file. | ||
| 10 | * --------------------------------------------------------------------------- | ||
| 11 | * Local variables: | ||
| 12 | * c-file-style: "linux" | ||
| 13 | * End: | ||
| 14 | */ | ||
diff --git a/arch/um/sys-x86_64/asm/archparam.h b/arch/um/sys-x86_64/asm/archparam.h index 270ed9586b68..6c083663b8d9 100644 --- a/arch/um/sys-x86_64/asm/archparam.h +++ b/arch/um/sys-x86_64/asm/archparam.h | |||
| @@ -14,13 +14,3 @@ | |||
| 14 | 14 | ||
| 15 | #endif | 15 | #endif |
| 16 | 16 | ||
| 17 | /* | ||
| 18 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 19 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 20 | * adjust the settings for this buffer only. This must remain at the end | ||
| 21 | * of the file. | ||
| 22 | * --------------------------------------------------------------------------- | ||
| 23 | * Local variables: | ||
| 24 | * c-file-style: "linux" | ||
| 25 | * End: | ||
| 26 | */ | ||
diff --git a/arch/um/sys-x86_64/asm/module.h b/arch/um/sys-x86_64/asm/module.h index 35b5491d3e96..8eb79c2d07d5 100644 --- a/arch/um/sys-x86_64/asm/module.h +++ b/arch/um/sys-x86_64/asm/module.h | |||
| @@ -18,13 +18,3 @@ struct mod_arch_specific | |||
| 18 | 18 | ||
| 19 | #endif | 19 | #endif |
| 20 | 20 | ||
| 21 | /* | ||
| 22 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 23 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 24 | * adjust the settings for this buffer only. This must remain at the end | ||
| 25 | * of the file. | ||
| 26 | * --------------------------------------------------------------------------- | ||
| 27 | * Local variables: | ||
| 28 | * c-file-style: "linux" | ||
| 29 | * End: | ||
| 30 | */ | ||
diff --git a/arch/um/sys-x86_64/mem.c b/arch/um/sys-x86_64/mem.c index 3f59a0a4f156..3f8df8abf347 100644 --- a/arch/um/sys-x86_64/mem.c +++ b/arch/um/sys-x86_64/mem.c | |||
| @@ -14,12 +14,3 @@ unsigned long vm_data_default_flags = __VM_DATA_DEFAULT_FLAGS; | |||
| 14 | unsigned long vm_data_default_flags32 = __VM_DATA_DEFAULT_FLAGS; | 14 | unsigned long vm_data_default_flags32 = __VM_DATA_DEFAULT_FLAGS; |
| 15 | unsigned long vm_force_exec32 = PROT_EXEC; | 15 | unsigned long vm_force_exec32 = PROT_EXEC; |
| 16 | 16 | ||
| 17 | /* Overrides for Emacs so that we follow Linus's tabbing style. | ||
| 18 | * Emacs will notice this stuff at the end of the file and automatically | ||
| 19 | * adjust the settings for this buffer only. This must remain at the end | ||
| 20 | * of the file. | ||
| 21 | * --------------------------------------------------------------------------- | ||
| 22 | * Local variables: | ||
| 23 | * c-file-style: "linux" | ||
| 24 | * End: | ||
| 25 | */ | ||
