diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-24 21:12:15 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-05-24 21:12:15 -0400 |
| commit | 9cf1848278a41f8d5f69b26bca546cfd2d5677d8 (patch) | |
| tree | 2628cd3e8e3ca1acfe81e636b082c285d97640d9 /include/linux | |
| parent | 00cec111ac477ba71c99043358f17e9bb4d335fe (diff) | |
| parent | 03e04f048d2774aabd126fbad84729d4ba9dc40a (diff) | |
Merge branch 'akpm' (incoming from Andrew Morton)
Merge fixes from Andrew Morton:
"A bunch of fixes and one simple fbdev driver which missed the merge
window because people will still talking about it (to no great
effect)."
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (30 commits)
aio: fix kioctx not being freed after cancellation at exit time
mm/pagewalk.c: walk_page_range should avoid VM_PFNMAP areas
drivers/rtc/rtc-max8998.c: check for pdata presence before dereferencing
ocfs2: goto out_unlock if ocfs2_get_clusters_nocache() failed in ocfs2_fiemap()
random: fix accounting race condition with lockless irq entropy_count update
drivers/char/random.c: fix priming of last_data
mm/memory_hotplug.c: fix printk format warnings
nilfs2: fix issue of nilfs_set_page_dirty() for page at EOF boundary
drivers/block/brd.c: fix brd_lookup_page() race
fbdev: FB_GOLDFISH should depend on HAS_DMA
drivers/rtc/rtc-pl031.c: pass correct pointer to free_irq()
auditfilter.c: fix kernel-doc warnings
aio: fix io_getevents documentation
revert "selftest: add simple test for soft-dirty bit"
drivers/leds/leds-ot200.c: fix error caused by shifted mask
mm/THP: use pmd_populate() to update the pmd with pgtable_t pointer
linux/kernel.h: fix kernel-doc warning
mm compaction: fix of improper cache flush in migration code
rapidio/tsi721: fix bug in MSI interrupt handling
hfs: avoid crash in hfs_bnode_create
...
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/kernel.h | 5 | ||||
| -rw-r--r-- | include/linux/rio.h | 18 | ||||
| -rw-r--r-- | include/linux/rio_drv.h | 1 | ||||
| -rw-r--r-- | include/linux/wait.h | 16 |
4 files changed, 32 insertions, 8 deletions
diff --git a/include/linux/kernel.h b/include/linux/kernel.h index e96329ceb28c..e9ef6d6b51d5 100644 --- a/include/linux/kernel.h +++ b/include/linux/kernel.h | |||
| @@ -562,6 +562,9 @@ int __trace_bprintk(unsigned long ip, const char *fmt, ...); | |||
| 562 | extern __printf(2, 3) | 562 | extern __printf(2, 3) |
| 563 | int __trace_printk(unsigned long ip, const char *fmt, ...); | 563 | int __trace_printk(unsigned long ip, const char *fmt, ...); |
| 564 | 564 | ||
| 565 | extern int __trace_bputs(unsigned long ip, const char *str); | ||
| 566 | extern int __trace_puts(unsigned long ip, const char *str, int size); | ||
| 567 | |||
| 565 | /** | 568 | /** |
| 566 | * trace_puts - write a string into the ftrace buffer | 569 | * trace_puts - write a string into the ftrace buffer |
| 567 | * @str: the string to record | 570 | * @str: the string to record |
| @@ -587,8 +590,6 @@ int __trace_printk(unsigned long ip, const char *fmt, ...); | |||
| 587 | * (1 when __trace_bputs is used, strlen(str) when __trace_puts is used) | 590 | * (1 when __trace_bputs is used, strlen(str) when __trace_puts is used) |
| 588 | */ | 591 | */ |
| 589 | 592 | ||
| 590 | extern int __trace_bputs(unsigned long ip, const char *str); | ||
| 591 | extern int __trace_puts(unsigned long ip, const char *str, int size); | ||
| 592 | #define trace_puts(str) ({ \ | 593 | #define trace_puts(str) ({ \ |
| 593 | static const char *trace_printk_fmt \ | 594 | static const char *trace_printk_fmt \ |
| 594 | __attribute__((section("__trace_printk_fmt"))) = \ | 595 | __attribute__((section("__trace_printk_fmt"))) = \ |
diff --git a/include/linux/rio.h b/include/linux/rio.h index a3e784278667..18e099342e6f 100644 --- a/include/linux/rio.h +++ b/include/linux/rio.h | |||
| @@ -83,7 +83,6 @@ | |||
| 83 | 83 | ||
| 84 | extern struct bus_type rio_bus_type; | 84 | extern struct bus_type rio_bus_type; |
| 85 | extern struct device rio_bus; | 85 | extern struct device rio_bus; |
| 86 | extern struct list_head rio_devices; /* list of all devices */ | ||
| 87 | 86 | ||
| 88 | struct rio_mport; | 87 | struct rio_mport; |
| 89 | struct rio_dev; | 88 | struct rio_dev; |
| @@ -237,6 +236,7 @@ enum rio_phy_type { | |||
| 237 | * @name: Port name string | 236 | * @name: Port name string |
| 238 | * @priv: Master port private data | 237 | * @priv: Master port private data |
| 239 | * @dma: DMA device associated with mport | 238 | * @dma: DMA device associated with mport |
| 239 | * @nscan: RapidIO network enumeration/discovery operations | ||
| 240 | */ | 240 | */ |
| 241 | struct rio_mport { | 241 | struct rio_mport { |
| 242 | struct list_head dbells; /* list of doorbell events */ | 242 | struct list_head dbells; /* list of doorbell events */ |
| @@ -262,8 +262,14 @@ struct rio_mport { | |||
| 262 | #ifdef CONFIG_RAPIDIO_DMA_ENGINE | 262 | #ifdef CONFIG_RAPIDIO_DMA_ENGINE |
| 263 | struct dma_device dma; | 263 | struct dma_device dma; |
| 264 | #endif | 264 | #endif |
| 265 | struct rio_scan *nscan; | ||
| 265 | }; | 266 | }; |
| 266 | 267 | ||
| 268 | /* | ||
| 269 | * Enumeration/discovery control flags | ||
| 270 | */ | ||
| 271 | #define RIO_SCAN_ENUM_NO_WAIT 0x00000001 /* Do not wait for enum completed */ | ||
| 272 | |||
| 267 | struct rio_id_table { | 273 | struct rio_id_table { |
| 268 | u16 start; /* logical minimal id */ | 274 | u16 start; /* logical minimal id */ |
| 269 | u32 max; /* max number of IDs in table */ | 275 | u32 max; /* max number of IDs in table */ |
| @@ -460,6 +466,16 @@ static inline struct rio_mport *dma_to_mport(struct dma_device *ddev) | |||
| 460 | } | 466 | } |
| 461 | #endif /* CONFIG_RAPIDIO_DMA_ENGINE */ | 467 | #endif /* CONFIG_RAPIDIO_DMA_ENGINE */ |
| 462 | 468 | ||
| 469 | /** | ||
| 470 | * struct rio_scan - RIO enumeration and discovery operations | ||
| 471 | * @enumerate: Callback to perform RapidIO fabric enumeration. | ||
| 472 | * @discover: Callback to perform RapidIO fabric discovery. | ||
| 473 | */ | ||
| 474 | struct rio_scan { | ||
| 475 | int (*enumerate)(struct rio_mport *mport, u32 flags); | ||
| 476 | int (*discover)(struct rio_mport *mport, u32 flags); | ||
| 477 | }; | ||
| 478 | |||
| 463 | /* Architecture and hardware-specific functions */ | 479 | /* Architecture and hardware-specific functions */ |
| 464 | extern int rio_register_mport(struct rio_mport *); | 480 | extern int rio_register_mport(struct rio_mport *); |
| 465 | extern int rio_open_inb_mbox(struct rio_mport *, void *, int, int); | 481 | extern int rio_open_inb_mbox(struct rio_mport *, void *, int, int); |
diff --git a/include/linux/rio_drv.h b/include/linux/rio_drv.h index b75c05920ab5..5059994fe297 100644 --- a/include/linux/rio_drv.h +++ b/include/linux/rio_drv.h | |||
| @@ -433,5 +433,6 @@ extern u16 rio_local_get_device_id(struct rio_mport *port); | |||
| 433 | extern struct rio_dev *rio_get_device(u16 vid, u16 did, struct rio_dev *from); | 433 | extern struct rio_dev *rio_get_device(u16 vid, u16 did, struct rio_dev *from); |
| 434 | extern struct rio_dev *rio_get_asm(u16 vid, u16 did, u16 asm_vid, u16 asm_did, | 434 | extern struct rio_dev *rio_get_asm(u16 vid, u16 did, u16 asm_vid, u16 asm_did, |
| 435 | struct rio_dev *from); | 435 | struct rio_dev *from); |
| 436 | extern int rio_init_mports(void); | ||
| 436 | 437 | ||
| 437 | #endif /* LINUX_RIO_DRV_H */ | 438 | #endif /* LINUX_RIO_DRV_H */ |
diff --git a/include/linux/wait.h b/include/linux/wait.h index ac38be2692d8..1133695eb067 100644 --- a/include/linux/wait.h +++ b/include/linux/wait.h | |||
| @@ -217,6 +217,8 @@ do { \ | |||
| 217 | if (!ret) \ | 217 | if (!ret) \ |
| 218 | break; \ | 218 | break; \ |
| 219 | } \ | 219 | } \ |
| 220 | if (!ret && (condition)) \ | ||
| 221 | ret = 1; \ | ||
| 220 | finish_wait(&wq, &__wait); \ | 222 | finish_wait(&wq, &__wait); \ |
| 221 | } while (0) | 223 | } while (0) |
| 222 | 224 | ||
| @@ -233,8 +235,9 @@ do { \ | |||
| 233 | * wake_up() has to be called after changing any variable that could | 235 | * wake_up() has to be called after changing any variable that could |
| 234 | * change the result of the wait condition. | 236 | * change the result of the wait condition. |
| 235 | * | 237 | * |
| 236 | * The function returns 0 if the @timeout elapsed, and the remaining | 238 | * The function returns 0 if the @timeout elapsed, or the remaining |
| 237 | * jiffies if the condition evaluated to true before the timeout elapsed. | 239 | * jiffies (at least 1) if the @condition evaluated to %true before |
| 240 | * the @timeout elapsed. | ||
| 238 | */ | 241 | */ |
| 239 | #define wait_event_timeout(wq, condition, timeout) \ | 242 | #define wait_event_timeout(wq, condition, timeout) \ |
| 240 | ({ \ | 243 | ({ \ |
| @@ -302,6 +305,8 @@ do { \ | |||
| 302 | ret = -ERESTARTSYS; \ | 305 | ret = -ERESTARTSYS; \ |
| 303 | break; \ | 306 | break; \ |
| 304 | } \ | 307 | } \ |
| 308 | if (!ret && (condition)) \ | ||
| 309 | ret = 1; \ | ||
| 305 | finish_wait(&wq, &__wait); \ | 310 | finish_wait(&wq, &__wait); \ |
| 306 | } while (0) | 311 | } while (0) |
| 307 | 312 | ||
| @@ -318,9 +323,10 @@ do { \ | |||
| 318 | * wake_up() has to be called after changing any variable that could | 323 | * wake_up() has to be called after changing any variable that could |
| 319 | * change the result of the wait condition. | 324 | * change the result of the wait condition. |
| 320 | * | 325 | * |
| 321 | * The function returns 0 if the @timeout elapsed, -ERESTARTSYS if it | 326 | * Returns: |
| 322 | * was interrupted by a signal, and the remaining jiffies otherwise | 327 | * 0 if the @timeout elapsed, -%ERESTARTSYS if it was interrupted by |
| 323 | * if the condition evaluated to true before the timeout elapsed. | 328 | * a signal, or the remaining jiffies (at least 1) if the @condition |
| 329 | * evaluated to %true before the @timeout elapsed. | ||
| 324 | */ | 330 | */ |
| 325 | #define wait_event_interruptible_timeout(wq, condition, timeout) \ | 331 | #define wait_event_interruptible_timeout(wq, condition, timeout) \ |
| 326 | ({ \ | 332 | ({ \ |
