diff options
Diffstat (limited to 'drivers')
43 files changed, 195 insertions, 226 deletions
diff --git a/drivers/atm/he.c b/drivers/atm/he.c index ffcb9fd31c38..41e052fecd7f 100644 --- a/drivers/atm/he.c +++ b/drivers/atm/he.c | |||
| @@ -1912,7 +1912,7 @@ he_service_rbrq(struct he_dev *he_dev, int group) | |||
| 1912 | skb->tail = skb->data + skb->len; | 1912 | skb->tail = skb->data + skb->len; |
| 1913 | #ifdef USE_CHECKSUM_HW | 1913 | #ifdef USE_CHECKSUM_HW |
| 1914 | if (vcc->vpi == 0 && vcc->vci >= ATM_NOT_RSV_VCI) { | 1914 | if (vcc->vpi == 0 && vcc->vci >= ATM_NOT_RSV_VCI) { |
| 1915 | skb->ip_summed = CHECKSUM_HW; | 1915 | skb->ip_summed = CHECKSUM_COMPLETE; |
| 1916 | skb->csum = TCP_CKSUM(skb->data, | 1916 | skb->csum = TCP_CKSUM(skb->data, |
| 1917 | he_vcc->pdu_len); | 1917 | he_vcc->pdu_len); |
| 1918 | } | 1918 | } |
diff --git a/drivers/char/briq_panel.c b/drivers/char/briq_panel.c index a0e5eac5f33a..b8c22255f6ad 100644 --- a/drivers/char/briq_panel.c +++ b/drivers/char/briq_panel.c | |||
| @@ -87,7 +87,7 @@ static int briq_panel_release(struct inode *ino, struct file *filep) | |||
| 87 | return 0; | 87 | return 0; |
| 88 | } | 88 | } |
| 89 | 89 | ||
| 90 | static ssize_t briq_panel_read(struct file *file, char *buf, size_t count, | 90 | static ssize_t briq_panel_read(struct file *file, char __user *buf, size_t count, |
| 91 | loff_t *ppos) | 91 | loff_t *ppos) |
| 92 | { | 92 | { |
| 93 | unsigned short c; | 93 | unsigned short c; |
| @@ -135,7 +135,7 @@ static void scroll_vfd( void ) | |||
| 135 | vfd_cursor = 20; | 135 | vfd_cursor = 20; |
| 136 | } | 136 | } |
| 137 | 137 | ||
| 138 | static ssize_t briq_panel_write(struct file *file, const char *buf, size_t len, | 138 | static ssize_t briq_panel_write(struct file *file, const char __user *buf, size_t len, |
| 139 | loff_t *ppos) | 139 | loff_t *ppos) |
| 140 | { | 140 | { |
| 141 | size_t indx = len; | 141 | size_t indx = len; |
| @@ -150,19 +150,22 @@ static ssize_t briq_panel_write(struct file *file, const char *buf, size_t len, | |||
| 150 | return -EBUSY; | 150 | return -EBUSY; |
| 151 | 151 | ||
| 152 | for (;;) { | 152 | for (;;) { |
| 153 | char c; | ||
| 153 | if (!indx) | 154 | if (!indx) |
| 154 | break; | 155 | break; |
| 156 | if (get_user(c, buf)) | ||
| 157 | return -EFAULT; | ||
| 155 | if (esc) { | 158 | if (esc) { |
| 156 | set_led(*buf); | 159 | set_led(c); |
| 157 | esc = 0; | 160 | esc = 0; |
| 158 | } else if (*buf == 27) { | 161 | } else if (c == 27) { |
| 159 | esc = 1; | 162 | esc = 1; |
| 160 | } else if (*buf == 12) { | 163 | } else if (c == 12) { |
| 161 | /* do a form feed */ | 164 | /* do a form feed */ |
| 162 | for (i=0; i<40; i++) | 165 | for (i=0; i<40; i++) |
| 163 | vfd[i] = ' '; | 166 | vfd[i] = ' '; |
| 164 | vfd_cursor = 0; | 167 | vfd_cursor = 0; |
| 165 | } else if (*buf == 10) { | 168 | } else if (c == 10) { |
| 166 | if (vfd_cursor < 20) | 169 | if (vfd_cursor < 20) |
| 167 | vfd_cursor = 20; | 170 | vfd_cursor = 20; |
| 168 | else if (vfd_cursor < 40) | 171 | else if (vfd_cursor < 40) |
| @@ -175,7 +178,7 @@ static ssize_t briq_panel_write(struct file *file, const char *buf, size_t len, | |||
| 175 | /* just a character */ | 178 | /* just a character */ |
| 176 | if (vfd_cursor > 39) | 179 | if (vfd_cursor > 39) |
| 177 | scroll_vfd(); | 180 | scroll_vfd(); |
| 178 | vfd[vfd_cursor++] = *buf; | 181 | vfd[vfd_cursor++] = c; |
| 179 | } | 182 | } |
| 180 | indx--; | 183 | indx--; |
| 181 | buf++; | 184 | buf++; |
| @@ -202,7 +205,7 @@ static struct miscdevice briq_panel_miscdev = { | |||
| 202 | static int __init briq_panel_init(void) | 205 | static int __init briq_panel_init(void) |
| 203 | { | 206 | { |
| 204 | struct device_node *root = find_path_device("/"); | 207 | struct device_node *root = find_path_device("/"); |
| 205 | char *machine; | 208 | const char *machine; |
| 206 | int i; | 209 | int i; |
| 207 | 210 | ||
| 208 | machine = get_property(root, "model", NULL); | 211 | machine = get_property(root, "model", NULL); |
diff --git a/drivers/infiniband/core/mad_priv.h b/drivers/infiniband/core/mad_priv.h index 1da9adbccaec..d06b59083f6e 100644 --- a/drivers/infiniband/core/mad_priv.h +++ b/drivers/infiniband/core/mad_priv.h | |||
| @@ -38,6 +38,7 @@ | |||
| 38 | #define __IB_MAD_PRIV_H__ | 38 | #define __IB_MAD_PRIV_H__ |
| 39 | 39 | ||
| 40 | #include <linux/completion.h> | 40 | #include <linux/completion.h> |
| 41 | #include <linux/err.h> | ||
| 41 | #include <linux/pci.h> | 42 | #include <linux/pci.h> |
| 42 | #include <linux/workqueue.h> | 43 | #include <linux/workqueue.h> |
| 43 | #include <rdma/ib_mad.h> | 44 | #include <rdma/ib_mad.h> |
diff --git a/drivers/infiniband/hw/amso1100/c2_provider.c b/drivers/infiniband/hw/amso1100/c2_provider.c index 8fddc8cccdf3..dd6af551108b 100644 --- a/drivers/infiniband/hw/amso1100/c2_provider.c +++ b/drivers/infiniband/hw/amso1100/c2_provider.c | |||
| @@ -49,6 +49,7 @@ | |||
| 49 | #include <linux/init.h> | 49 | #include <linux/init.h> |
| 50 | #include <linux/dma-mapping.h> | 50 | #include <linux/dma-mapping.h> |
| 51 | #include <linux/if_arp.h> | 51 | #include <linux/if_arp.h> |
| 52 | #include <linux/vmalloc.h> | ||
| 52 | 53 | ||
| 53 | #include <asm/io.h> | 54 | #include <asm/io.h> |
| 54 | #include <asm/irq.h> | 55 | #include <asm/irq.h> |
diff --git a/drivers/infiniband/hw/amso1100/c2_rnic.c b/drivers/infiniband/hw/amso1100/c2_rnic.c index 1c3c9d65ecea..f49a32b7a8f6 100644 --- a/drivers/infiniband/hw/amso1100/c2_rnic.c +++ b/drivers/infiniband/hw/amso1100/c2_rnic.c | |||
| @@ -50,6 +50,7 @@ | |||
| 50 | #include <linux/dma-mapping.h> | 50 | #include <linux/dma-mapping.h> |
| 51 | #include <linux/mm.h> | 51 | #include <linux/mm.h> |
| 52 | #include <linux/inet.h> | 52 | #include <linux/inet.h> |
| 53 | #include <linux/vmalloc.h> | ||
| 53 | 54 | ||
| 54 | #include <linux/route.h> | 55 | #include <linux/route.h> |
| 55 | |||
