diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-27 21:33:56 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-03-27 21:33:56 -0400 |
| commit | febb02bdfe5e2c6ceaa0a38d8b7afca3d98f415a (patch) | |
| tree | f2ea606a30cb11f0d914271b54551627dad26eff /drivers/ieee1394 | |
| parent | 0b4d569de222452bcb55a4a536ade6cf4d8d1e30 (diff) | |
| parent | 32a0f488ce5e8a9a148491f15edc508ab5e8265b (diff) | |
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394/linux1394-2.6: (53 commits)
DVB: firedtv: FireDTV S2 problems with tuning solved
DVB: firedtv: fix printk format mismatch
ieee1394: constify device ID tables
ieee1394: raw1394: add sparse annotations to raw1394_compat_write
ieee1394: Storage class should be before const qualifier
ieee1394: sbp2: follow up on "ieee1394: inherit ud vendor_id from node vendor_id"
firewire: core: optimize propagation of BROADCAST_CHANNEL
firewire: core: simplify broadcast channel allocation
firewire: core: increase bus manager grace period
firewire: core: drop unused call parameters of close_transaction
firewire: cdev: add closure to async stream ioctl
firewire: cdev: simplify FW_CDEV_IOC_SEND_REQUEST return value
firewire: cdev: fix race of ioctl_send_request with bus reset
firewire: cdev: secure add_descriptor ioctl
firewire: cdev: amendment to "add ioctl to query maximum transmission speed"
firewire: broadcast channel support
firewire: implement asynchronous stream transmission
firewire: core: normalize a function argument name
firewire: normalize a variable name
firewire: core: remove condition which is always false
...
Diffstat (limited to 'drivers/ieee1394')
| -rw-r--r-- | drivers/ieee1394/csr.c | 8 | ||||
| -rw-r--r-- | drivers/ieee1394/dv1394.c | 2 | ||||
| -rw-r--r-- | drivers/ieee1394/eth1394.c | 4 | ||||
| -rw-r--r-- | drivers/ieee1394/highlevel.c | 2 | ||||
| -rw-r--r-- | drivers/ieee1394/nodemgr.c | 4 | ||||
| -rw-r--r-- | drivers/ieee1394/nodemgr.h | 2 | ||||
| -rw-r--r-- | drivers/ieee1394/raw1394.c | 14 | ||||
| -rw-r--r-- | drivers/ieee1394/sbp2.c | 9 | ||||
| -rw-r--r-- | drivers/ieee1394/video1394.c | 2 |
9 files changed, 25 insertions, 22 deletions
diff --git a/drivers/ieee1394/csr.c b/drivers/ieee1394/csr.c index 31400c8ae051..d696f69ebce5 100644 --- a/drivers/ieee1394/csr.c +++ b/drivers/ieee1394/csr.c | |||
| @@ -68,22 +68,22 @@ static struct hpsb_highlevel csr_highlevel = { | |||
| 68 | .host_reset = host_reset, | 68 | .host_reset = host_reset, |
| 69 | }; | 69 | }; |
| 70 | 70 | ||
| 71 | const static struct hpsb_address_ops map_ops = { | 71 | static const struct hpsb_address_ops map_ops = { |
| 72 | .read = read_maps, | 72 | .read = read_maps, |
| 73 | }; | 73 | }; |
| 74 | 74 | ||
| 75 | const static struct hpsb_address_ops fcp_ops = { | 75 | static const struct hpsb_address_ops fcp_ops = { |
| 76 | .write = write_fcp, | 76 | .write = write_fcp, |
| 77 | }; | 77 | }; |
| 78 | 78 | ||
| 79 | const static struct hpsb_address_ops reg_ops = { | 79 | static const struct hpsb_address_ops reg_ops = { |
| 80 | .read = read_regs, | 80 | .read = read_regs, |
| 81 | .write = write_regs, | 81 | .write = write_regs, |
| 82 | .lock = lock_regs, | 82 | .lock = lock_regs, |
| 83 | .lock64 = lock64_regs, | 83 | .lock64 = lock64_regs, |
| 84 | }; | 84 | }; |
| 85 | 85 | ||
| 86 | const static struct hpsb_address_ops config_rom_ops = { | 86 | static const struct hpsb_address_ops config_rom_ops = { |
| 87 | .read = read_config_rom, | 87 | .read = read_config_rom, |
| 88 | }; | 88 | }; |
| 89 | 89 | ||
diff --git a/drivers/ieee1394/dv1394.c b/drivers/ieee1394/dv1394.c index cb15bfa38d70..823a6297a1af 100644 --- a/drivers/ieee1394/dv1394.c +++ b/drivers/ieee1394/dv1394.c | |||
| @@ -2171,7 +2171,7 @@ static const struct file_operations dv1394_fops= | |||
| 2171 | * Export information about protocols/devices supported by this driver. | 2171 | * Export information about protocols/devices supported by this driver. |
| 2172 | */ | 2172 | */ |
| 2173 | #ifdef MODULE | 2173 | #ifdef MODULE |
| 2174 | static struct ieee1394_device_id dv1394_id_table[] = { | 2174 | static const struct ieee1394_device_id dv1394_id_table[] = { |
| 2175 | { | 2175 | { |
| 2176 | .match_flags = IEEE1394_MATCH_SPECIFIER_ID | IEEE1394_MATCH_VERSION, | 2176 | .match_flags = IEEE1394_MATCH_SPECIFIER_ID | IEEE1394_MATCH_VERSION, |
| 2177 | .specifier_id = AVC_UNIT_SPEC_ID_ENTRY & 0xffffff, | 2177 | .specifier_id = AVC_UNIT_SPEC_ID_ENTRY & 0xffffff, |
diff --git a/drivers/ieee1394/eth1394.c b/drivers/ieee1394/eth1394.c index 1a919df809f8..4ca103577c0a 100644 --- a/drivers/ieee1394/eth1394.c +++ b/drivers/ieee1394/eth1394.c | |||
| @@ -181,7 +181,7 @@ static void ether1394_remove_host(struct hpsb_host *host); | |||
| 181 | static void ether1394_host_reset(struct hpsb_host *host); | 181 | static void ether1394_host_reset(struct hpsb_host *host); |
| 182 | 182 | ||
| 183 | /* Function for incoming 1394 packets */ | 183 | /* Function for incoming 1394 packets */ |
| 184 | const static struct hpsb_address_ops addr_ops = { | 184 | static const struct hpsb_address_ops addr_ops = { |
| 185 | .write = ether1394_write, | 185 | .write = ether1394_write, |
| 186 | }; | 186 | }; |
| 187 | 187 | ||
| @@ -438,7 +438,7 @@ static int eth1394_update(struct unit_directory *ud) | |||
| 438 | return eth1394_new_node(hi, ud); | 438 | return eth1394_new_node(hi, ud); |
| 439 | } | 439 | } |
| 440 | 440 | ||
| 441 | static struct ieee1394_device_id eth1394_id_table[] = { | 441 | static const struct ieee1394_device_id eth1394_id_table[] = { |
| 442 | { | 442 | { |
| 443 | .match_flags = (IEEE1394_MATCH_SPECIFIER_ID | | 443 | .match_flags = (IEEE1394_MATCH_SPECIFIER_ID | |
| 444 | IEEE1394_MATCH_VERSION), | 444 | IEEE1394_MATCH_VERSION), |
diff --git a/drivers/ieee1394/highlevel.c b/drivers/ieee1394/highlevel.c index 600e391c8fe7..4bc443546e04 100644 --- a/drivers/ieee1394/highlevel.c +++ b/drivers/ieee1394/highlevel.c | |||
| @@ -478,7 +478,7 @@ int hpsb_unregister_addrspace(struct hpsb_highlevel *hl, struct hpsb_host *host, | |||
| 478 | return retval; | 478 | return retval; |
| 479 | } | 479 | } |
| 480 | 480 | ||
| 481 | const static struct hpsb_address_ops dummy_ops; | 481 | static const struct hpsb_address_ops dummy_ops; |
| 482 | 482 | ||
| 483 | /* dummy address spaces as lower and upper bounds of the host's a.s. list */ | 483 | /* dummy address spaces as lower and upper bounds of the host's a.s. list */ |
| 484 | static void init_hpsb_highlevel(struct hpsb_host *host) | 484 | static void init_hpsb_highlevel(struct hpsb_host *host) |
diff --git a/drivers/ieee1394/nodemgr.c b/drivers/ieee1394/nodemgr.c index 53aada5bbe1e..a6d55bebe61a 100644 --- a/drivers/ieee1394/nodemgr.c +++ b/drivers/ieee1394/nodemgr.c | |||
| @@ -484,7 +484,7 @@ static struct device_attribute *const fw_host_attrs[] = { | |||
| 484 | static ssize_t fw_show_drv_device_ids(struct device_driver *drv, char *buf) | 484 | static ssize_t fw_show_drv_device_ids(struct device_driver *drv, char *buf) |
| 485 | { | 485 | { |
| 486 | struct hpsb_protocol_driver *driver; | 486 | struct hpsb_protocol_driver *driver; |
| 487 | struct ieee1394_device_id *id; | 487 | const struct ieee1394_device_id *id; |
| 488 | int length = 0; | 488 | int length = 0; |
| 489 | char *scratch = buf; | 489 | char *scratch = buf; |
| 490 | 490 | ||
| @@ -658,7 +658,7 @@ static int nodemgr_bus_match(struct device * dev, struct device_driver * drv) | |||
| 658 | { | 658 | { |
| 659 | struct hpsb_protocol_driver *driver; | 659 | struct hpsb_protocol_driver *driver; |
| 660 | struct unit_directory *ud; | 660 | struct unit_directory *ud; |
| 661 | struct ieee1394_device_id *id; | 661 | const struct ieee1394_device_id *id; |
| 662 | 662 | ||
| 663 | /* We only match unit directories */ | 663 | /* We only match unit directories */ |
| 664 | if (dev->platform_data != &nodemgr_ud_platform_data) | 664 | if (dev->platform_data != &nodemgr_ud_platform_data) |
diff --git a/drivers/ieee1394/nodemgr.h b/drivers/ieee1394/nodemgr.h index ee5acdbd114a..749b271d3107 100644 --- a/drivers/ieee1394/nodemgr.h +++ b/drivers/ieee1394/nodemgr.h | |||
| @@ -125,7 +125,7 @@ struct hpsb_protocol_driver { | |||
| 125 | * probe function below can implement further protocol | 125 | * probe function below can implement further protocol |
| 126 | * dependent or vendor dependent checking. | 126 | * dependent or vendor dependent checking. |
| 127 | */ | 127 | */ |
| 128 | struct ieee1394_device_id *id_table; | 128 | const struct ieee1394_device_id *id_table; |
| 129 | 129 | ||
| 130 | /* | 130 | /* |
| 131 | * The update function is called when the node has just | 131 | * The update function is called when the node has just |
diff --git a/drivers/ieee1394/raw1394.c b/drivers/ieee1394/raw1394.c index bad66c65b0d6..da5f8829b503 100644 --- a/drivers/ieee1394/raw1394.c +++ b/drivers/ieee1394/raw1394.c | |||
| @@ -90,7 +90,7 @@ static int arm_lock(struct hpsb_host *host, int nodeid, quadlet_t * store, | |||
| 90 | static int arm_lock64(struct hpsb_host *host, int nodeid, octlet_t * store, | 90 | static int arm_lock64(struct hpsb_host *host, int nodeid, octlet_t * store, |
| 91 | u64 addr, octlet_t data, octlet_t arg, int ext_tcode, | 91 | u64 addr, octlet_t data, octlet_t arg, int ext_tcode, |
| 92 | u16 flags); | 92 | u16 flags); |
| 93 | const static struct hpsb_address_ops arm_ops = { | 93 | static const struct hpsb_address_ops arm_ops = { |
| 94 | .read = arm_read, | 94 | .read = arm_read, |
| 95 | .write = arm_write, | 95 | .write = arm_write, |
| 96 | .lock = arm_lock, | 96 | .lock = arm_lock, |
| @@ -369,6 +369,7 @@ static const char __user *raw1394_compat_write(const char __user *buf) | |||
| 369 | { | 369 | { |
| 370 | struct compat_raw1394_req __user *cr = (typeof(cr)) buf; | 370 | struct compat_raw1394_req __user *cr = (typeof(cr)) buf; |
| 371 | struct raw1394_request __user *r; | 371 | struct raw1394_request __user *r; |
| 372 | |||
| 372 | r = compat_alloc_user_space(sizeof(struct raw1394_request)); | 373 | r = compat_alloc_user_space(sizeof(struct raw1394_request)); |
| 373 | 374 | ||
| 374 | #define C(x) __copy_in_user(&r->x, &cr->x, sizeof(r->x)) | 375 | #define C(x) __copy_in_user(&r->x, &cr->x, sizeof(r->x)) |
| @@ -378,7 +379,8 @@ static const char __user *raw1394_compat_write(const char __user *buf) | |||
| 378 | C(tag) || | 379 | C(tag) || |
| 379 | C(sendb) || | 380 | C(sendb) || |
| 380 | C(recvb)) | 381 | C(recvb)) |
| 381 | return ERR_PTR(-EFAULT); | 382 | return (__force const char __user *)ERR_PTR(-EFAULT); |
| 383 | |||
| 382 | return (const char __user *)r; | 384 | return (const char __user *)r; |
| 383 | } | 385 | } |
| 384 | #undef C | 386 | #undef C |
| @@ -389,6 +391,7 @@ static int | |||
| 389 | raw1394_compat_read(const char __user *buf, struct raw1394_request *r) | 391 | raw1394_compat_read(const char __user *buf, struct raw1394_request *r) |
| 390 | { | 392 | { |
| 391 | struct compat_raw1394_req __user *cr = (typeof(cr)) buf; | 393 | struct compat_raw1394_req __user *cr = (typeof(cr)) buf; |
| 394 | |||
| 392 | if (!access_ok(VERIFY_WRITE, cr, sizeof(struct compat_raw1394_req)) || | 395 | if (!access_ok(VERIFY_WRITE, cr, sizeof(struct compat_raw1394_req)) || |
| 393 | P(type) || | 396 | P(type) || |
| 394 | P(error) || | 397 | P(error) || |
| @@ -400,6 +403,7 @@ raw1394_compat_read(const char __user *buf, struct raw1394_request *r) | |||
| 400 | P(sendb) || | 403 | P(sendb) || |
| 401 | P(recvb)) | 404 | P(recvb)) |
| 402 | return -EFAULT; | 405 | return -EFAULT; |
| 406 | |||
| 403 | return sizeof(struct compat_raw1394_req); | 407 | return sizeof(struct compat_raw1394_req); |
| 404 | } | 408 | } |
| 405 | #undef P | 409 | #undef P |
| @@ -2249,8 +2253,8 @@ static ssize_t raw1394_write(struct file *file, const char __user * buffer, | |||
| 2249 | sizeof(struct compat_raw1394_req) != | 2253 | sizeof(struct compat_raw1394_req) != |
| 2250 | sizeof(struct raw1394_request)) { | 2254 | sizeof(struct raw1394_request)) { |
| 2251 | buffer = raw1394_compat_write(buffer); | 2255 | buffer = raw1394_compat_write(buffer); |
| 2252 | if (IS_ERR(buffer)) | 2256 | if (IS_ERR((__force void *)buffer)) |
| 2253 | return PTR_ERR(buffer); | 2257 | return PTR_ERR((__force void *)buffer); |
| 2254 | } else | 2258 | } else |
| 2255 | #endif | 2259 | #endif |
| 2256 | if (count != sizeof(struct raw1394_request)) { | 2260 | if (count != sizeof(struct raw1394_request)) { |
| @@ -2978,7 +2982,7 @@ static int raw1394_release(struct inode *inode, struct file *file) | |||
| 2978 | * Export information about protocols/devices supported by this driver. | 2982 | * Export information about protocols/devices supported by this driver. |
| 2979 | */ | 2983 | */ |
| 2980 | #ifdef MODULE | 2984 | #ifdef MODULE |
| 2981 | static struct ieee1394_device_id raw1394_id_table[] = { | 2985 | static const struct ieee1394_device_id raw1394_id_table[] = { |
| 2982 | { | 2986 | { |
| 2983 | .match_flags = IEEE1394_MATCH_SPECIFIER_ID | IEEE1394_MATCH_VERSION, | 2987 | .match_flags = IEEE1394_MATCH_SPECIFIER_ID | IEEE1394_MATCH_VERSION, |
| 2984 | .specifier_id = AVC_UNIT_SPEC_ID_ENTRY & 0xffffff, | 2988 | .specifier_id = AVC_UNIT_SPEC_ID_ENTRY & 0xffffff, |
diff --git a/drivers/ieee1394/sbp2.c b/drivers/ieee1394/sbp2.c index f3fd8657ce4b..a51ab233342d 100644 --- a/drivers/ieee1394/sbp2.c +++ b/drivers/ieee1394/sbp2.c | |||
| @@ -265,7 +265,7 @@ static struct hpsb_highlevel sbp2_highlevel = { | |||
| 265 | .host_reset = sbp2_host_reset, | 265 | .host_reset = sbp2_host_reset, |
| 266 | }; | 266 | }; |
| 267 | 267 | ||
| 268 | const static struct hpsb_address_ops sbp2_ops = { | 268 | static const struct hpsb_address_ops sbp2_ops = { |
| 269 | .write = sbp2_handle_status_write | 269 | .write = sbp2_handle_status_write |
| 270 | }; | 270 | }; |
| 271 | 271 | ||
| @@ -275,7 +275,7 @@ static int sbp2_handle_physdma_write(struct hpsb_host *, int, int, quadlet_t *, | |||
| 275 | static int sbp2_handle_physdma_read(struct hpsb_host *, int, quadlet_t *, u64, | 275 | static int sbp2_handle_physdma_read(struct hpsb_host *, int, quadlet_t *, u64, |
| 276 | size_t, u16); | 276 | size_t, u16); |
| 277 | 277 | ||
| 278 | const static struct hpsb_address_ops sbp2_physdma_ops = { | 278 | static const struct hpsb_address_ops sbp2_physdma_ops = { |
| 279 | .read = sbp2_handle_physdma_read, | 279 | .read = sbp2_handle_physdma_read, |
| 280 | .write = sbp2_handle_physdma_write, | 280 | .write = sbp2_handle_physdma_write, |
| 281 | }; | 281 | }; |
| @@ -285,7 +285,7 @@ const static struct hpsb_address_ops sbp2_physdma_ops = { | |||
| 285 | /* | 285 | /* |
| 286 | * Interface to driver core and IEEE 1394 core | 286 | * Interface to driver core and IEEE 1394 core |
| 287 | */ | 287 | */ |
| 288 | static struct ieee1394_device_id sbp2_id_table[] = { | 288 | static const struct ieee1394_device_id sbp2_id_table[] = { |
| 289 | { | 289 | { |
| 290 | .match_flags = IEEE1394_MATCH_SPECIFIER_ID | IEEE1394_MATCH_VERSION, | 290 | .match_flags = IEEE1394_MATCH_SPECIFIER_ID | IEEE1394_MATCH_VERSION, |
| 291 | .specifier_id = SBP2_UNIT_SPEC_ID_ENTRY & 0xffffff, | 291 | .specifier_id = SBP2_UNIT_SPEC_ID_ENTRY & 0xffffff, |
| @@ -1413,8 +1413,7 @@ static void sbp2_parse_unit_directory(struct sbp2_lu *lu, | |||
| 1413 | "(firmware_revision 0x%06x, vendor_id 0x%06x," | 1413 | "(firmware_revision 0x%06x, vendor_id 0x%06x," |
| 1414 | " model_id 0x%06x)", | 1414 | " model_id 0x%06x)", |
| 1415 | NODE_BUS_ARGS(ud->ne->host, ud->ne->nodeid), | 1415 | NODE_BUS_ARGS(ud->ne->host, ud->ne->nodeid), |
| 1416 | workarounds, firmware_revision, | 1416 | workarounds, firmware_revision, ud->vendor_id, |
| 1417 | ud->vendor_id ? ud->vendor_id : ud->ne->vendor_id, | ||
| 1418 | model); | 1417 | model); |
| 1419 | 1418 | ||
| 1420 | /* We would need one SCSI host template for each target to adjust | 1419 | /* We would need one SCSI host template for each target to adjust |
diff --git a/drivers/ieee1394/video1394.c b/drivers/ieee1394/video1394.c index 679a918a5cc7..d287ba79821d 100644 --- a/drivers/ieee1394/video1394.c +++ b/drivers/ieee1394/video1394.c | |||
| @@ -1294,7 +1294,7 @@ static const struct file_operations video1394_fops= | |||
| 1294 | * Export information about protocols/devices supported by this driver. | 1294 | * Export information about protocols/devices supported by this driver. |
| 1295 | */ | 1295 | */ |
| 1296 | #ifdef MODULE | 1296 | #ifdef MODULE |
| 1297 | static struct ieee1394_device_id video1394_id_table[] = { | 1297 | static const struct ieee1394_device_id video1394_id_table[] = { |
| 1298 | { | 1298 | { |
| 1299 | .match_flags = IEEE1394_MATCH_SPECIFIER_ID | IEEE1394_MATCH_VERSION, | 1299 | .match_flags = IEEE1394_MATCH_SPECIFIER_ID | IEEE1394_MATCH_VERSION, |
| 1300 | .specifier_id = CAMERA_UNIT_SPEC_ID_ENTRY & 0xffffff, | 1300 | .specifier_id = CAMERA_UNIT_SPEC_ID_ENTRY & 0xffffff, |
