aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-11-11 17:14:05 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2018-11-11 17:14:05 -0500
commit0b002cdd5004c0205364b3be2cfa6aed05c61f42 (patch)
treee0b9cee7018e60c7b50f17b48eb505c2a1a6134d
parente255aee5b66ce4af025e6f77122114c01303b861 (diff)
parentf26621e60b35369bca9228bc936dc723b3e421af (diff)
Merge branch 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull core fixes from Thomas Gleixner: "A couple of fixlets for the core: - Kernel doc function documentation fixes - Missing prototypes for weak watchdog functions" * 'core-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: resource/docs: Complete kernel-doc style function documentation watchdog/core: Add missing prototypes for weak functions resource/docs: Fix new kernel-doc warnings
-rw-r--r--include/linux/nmi.h2
-rw-r--r--kernel/resource.c19
2 files changed, 16 insertions, 5 deletions
diff --git a/include/linux/nmi.h b/include/linux/nmi.h
index 08f9247e9827..9003e29cde46 100644
--- a/include/linux/nmi.h
+++ b/include/linux/nmi.h
@@ -119,6 +119,8 @@ static inline int hardlockup_detector_perf_init(void) { return 0; }
119void watchdog_nmi_stop(void); 119void watchdog_nmi_stop(void);
120void watchdog_nmi_start(void); 120void watchdog_nmi_start(void);
121int watchdog_nmi_probe(void); 121int watchdog_nmi_probe(void);
122int watchdog_nmi_enable(unsigned int cpu);
123void watchdog_nmi_disable(unsigned int cpu);
122 124
123/** 125/**
124 * touch_nmi_watchdog - restart NMI watchdog timeout. 126 * touch_nmi_watchdog - restart NMI watchdog timeout.
diff --git a/kernel/resource.c b/kernel/resource.c
index b3a3a1fc499e..b0fbf685c77a 100644
--- a/kernel/resource.c
+++ b/kernel/resource.c
@@ -319,16 +319,23 @@ int release_resource(struct resource *old)
319EXPORT_SYMBOL(release_resource); 319EXPORT_SYMBOL(release_resource);
320 320
321/** 321/**
322 * Finds the lowest iomem resource that covers part of [start..end]. The 322 * Finds the lowest iomem resource that covers part of [@start..@end]. The
323 * caller must specify start, end, flags, and desc (which may be 323 * caller must specify @start, @end, @flags, and @desc (which may be
324 * IORES_DESC_NONE). 324 * IORES_DESC_NONE).
325 * 325 *
326 * If a resource is found, returns 0 and *res is overwritten with the part 326 * If a resource is found, returns 0 and @*res is overwritten with the part
327 * of the resource that's within [start..end]; if none is found, returns 327 * of the resource that's within [@start..@end]; if none is found, returns
328 * -1. 328 * -1 or -EINVAL for other invalid parameters.
329 * 329 *
330 * This function walks the whole tree and not just first level children 330 * This function walks the whole tree and not just first level children
331 * unless @first_lvl is true. 331 * unless @first_lvl is true.
332 *
333 * @start: start address of the resource searched for
334 * @end: end address of same resource
335 * @flags: flags which the resource must have
336 * @desc: descriptor the resource must have
337 * @first_lvl: walk only the first level children, if set
338 * @res: return ptr, if resource found
332 */ 339 */
333static int find_next_iomem_res(resource_size_t start, resource_size_t end, 340static int find_next_iomem_res(resource_size_t start, resource_size_t end,
334 unsigned long flags, unsigned long desc, 341 unsigned long flags, unsigned long desc,
@@ -399,6 +406,8 @@ static int __walk_iomem_res_desc(resource_size_t start, resource_size_t end,
399 * @flags: I/O resource flags 406 * @flags: I/O resource flags
400 * @start: start addr 407 * @start: start addr
401 * @end: end addr 408 * @end: end addr
409 * @arg: function argument for the callback @func
410 * @func: callback function that is called for each qualifying resource area
402 * 411 *
403 * NOTE: For a new descriptor search, define a new IORES_DESC in 412 * NOTE: For a new descriptor search, define a new IORES_DESC in
404 * <linux/ioport.h> and set it in 'desc' of a target resource entry. 413 * <linux/ioport.h> and set it in 'desc' of a target resource entry.