]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
EDAC: Make edac_device workqueue setup/teardown functions static
authorBorislav Petkov <bp@suse.de>
Mon, 30 Nov 2015 14:07:28 +0000 (15:07 +0100)
committerBorislav Petkov <bp@suse.de>
Fri, 11 Dec 2015 15:56:42 +0000 (16:56 +0100)
They're not used anywhere else.

Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/edac_device.c
drivers/edac/edac_module.h

index 53587377e67268fd90efb4fbfed2358dcbe03717..455a64b67521e97a6196611469580e126958cc9b 100644 (file)
@@ -402,8 +402,8 @@ static void edac_device_workq_function(struct work_struct *work_req)
  *     initialize a workq item for this edac_device instance
  *     passing in the new delay period in msec
  */
-void edac_device_workq_setup(struct edac_device_ctl_info *edac_dev,
-                               unsigned msec)
+static void edac_device_workq_setup(struct edac_device_ctl_info *edac_dev,
+                                   unsigned msec)
 {
        edac_dbg(0, "\n");
 
@@ -433,7 +433,7 @@ void edac_device_workq_setup(struct edac_device_ctl_info *edac_dev,
  * edac_device_workq_teardown
  *     stop the workq processing on this edac_dev
  */
-void edac_device_workq_teardown(struct edac_device_ctl_info *edac_dev)
+static void edac_device_workq_teardown(struct edac_device_ctl_info *edac_dev)
 {
        if (!edac_dev->edac_check)
                return;
index b95a48fc723d587dce62116f330b46034fc3ecf1..7388abfbf10b9f7b73cf5be91a3a17c6b3294586 100644 (file)
@@ -48,9 +48,6 @@ extern void edac_device_remove_sysfs(struct edac_device_ctl_info *edac_dev);
 
 /* edac core workqueue: single CPU mode */
 extern struct workqueue_struct *edac_workqueue;
-extern void edac_device_workq_setup(struct edac_device_ctl_info *edac_dev,
-                                   unsigned msec);
-extern void edac_device_workq_teardown(struct edac_device_ctl_info *edac_dev);
 extern void edac_device_reset_delay_period(struct edac_device_ctl_info
                                           *edac_dev, unsigned long value);
 extern void edac_mc_reset_delay_period(unsigned long value);