Skip to content

Commit 0b002cd

Browse files
committed
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
2 parents e255aee + f26621e commit 0b002cd

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

include/linux/nmi.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ static inline int hardlockup_detector_perf_init(void) { return 0; }
119119
void watchdog_nmi_stop(void);
120120
void watchdog_nmi_start(void);
121121
int watchdog_nmi_probe(void);
122+
int watchdog_nmi_enable(unsigned int cpu);
123+
void watchdog_nmi_disable(unsigned int cpu);
122124

123125
/**
124126
* touch_nmi_watchdog - restart NMI watchdog timeout.

kernel/resource.c

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -319,16 +319,23 @@ int release_resource(struct resource *old)
319319
EXPORT_SYMBOL(release_resource);
320320

321321
/**
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
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
324324
* IORES_DESC_NONE).
325325
*
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
328-
* -1.
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
328+
* -1 or -EINVAL for other invalid parameters.
329329
*
330330
* This function walks the whole tree and not just first level children
331331
* 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
332339
*/
333340
static int find_next_iomem_res(resource_size_t start, resource_size_t end,
334341
unsigned long flags, unsigned long desc,
@@ -399,6 +406,8 @@ static int __walk_iomem_res_desc(resource_size_t start, resource_size_t end,
399406
* @flags: I/O resource flags
400407
* @start: start addr
401408
* @end: end addr
409+
* @arg: function argument for the callback @func
410+
* @func: callback function that is called for each qualifying resource area
402411
*
403412
* NOTE: For a new descriptor search, define a new IORES_DESC in
404413
* <linux/ioport.h> and set it in 'desc' of a target resource entry.

0 commit comments

Comments
 (0)