Skip to content

Commit e136fa0

Browse files
committed
EDAC: Make edac_device workqueue setup/teardown functions static
They're not used anywhere else. Signed-off-by: Borislav Petkov <[email protected]>
1 parent d453800 commit e136fa0

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

drivers/edac/edac_device.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,8 +402,8 @@ static void edac_device_workq_function(struct work_struct *work_req)
402402
* initialize a workq item for this edac_device instance
403403
* passing in the new delay period in msec
404404
*/
405-
void edac_device_workq_setup(struct edac_device_ctl_info *edac_dev,
406-
unsigned msec)
405+
static void edac_device_workq_setup(struct edac_device_ctl_info *edac_dev,
406+
unsigned msec)
407407
{
408408
edac_dbg(0, "\n");
409409

@@ -433,7 +433,7 @@ void edac_device_workq_setup(struct edac_device_ctl_info *edac_dev,
433433
* edac_device_workq_teardown
434434
* stop the workq processing on this edac_dev
435435
*/
436-
void edac_device_workq_teardown(struct edac_device_ctl_info *edac_dev)
436+
static void edac_device_workq_teardown(struct edac_device_ctl_info *edac_dev)
437437
{
438438
if (!edac_dev->edac_check)
439439
return;

drivers/edac/edac_module.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,6 @@ extern void edac_device_remove_sysfs(struct edac_device_ctl_info *edac_dev);
4848

4949
/* edac core workqueue: single CPU mode */
5050
extern struct workqueue_struct *edac_workqueue;
51-
extern void edac_device_workq_setup(struct edac_device_ctl_info *edac_dev,
52-
unsigned msec);
53-
extern void edac_device_workq_teardown(struct edac_device_ctl_info *edac_dev);
5451
extern void edac_device_reset_delay_period(struct edac_device_ctl_info
5552
*edac_dev, unsigned long value);
5653
extern void edac_mc_reset_delay_period(unsigned long value);

0 commit comments

Comments
 (0)