s390/css: remove unused function definitions
authorSebastian Ott <sebott@linux.vnet.ibm.com>
Sat, 13 Apr 2013 11:04:49 +0000 (13:04 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 17 Apr 2013 12:07:33 +0000 (14:07 +0200)
Make css_probe_device static and remove an unimplemented prototype.

Reviewed-by: Peter Oberparleiter <oberpar@linux.vnet.ibm.com>
Signed-off-by: Sebastian Ott <sebott@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/cio/css.c
drivers/s390/cio/css.h

index 3b2245f58bdeeb4f41e3fd85e38ebe8e50fa3a7a..054fb428531f1260a26604d026aaf9cb41fd3d92 100644 (file)
@@ -304,10 +304,10 @@ int css_register_subchannel(struct subchannel *sch)
        return ret;
 }
 
-int css_probe_device(struct subchannel_id schid)
+static int css_probe_device(struct subchannel_id schid)
 {
-       int ret;
        struct subchannel *sch;
+       int ret;
 
        sch = css_alloc_subchannel(schid);
        if (IS_ERR(sch))
index 2581b6986569e12648d148ab2eeb5280cfc0f243..b1de6033523806e8fa58e1f2ed87b31c0ca950d2 100644 (file)
@@ -101,7 +101,6 @@ extern int css_driver_register(struct css_driver *);
 extern void css_driver_unregister(struct css_driver *);
 
 extern void css_sch_device_unregister(struct subchannel *);
-extern int css_probe_device(struct subchannel_id);
 extern int css_register_subchannel(struct subchannel *);
 extern struct subchannel *css_alloc_subchannel(struct subchannel_id);
 extern struct subchannel *get_subchannel_by_schid(struct subchannel_id);
@@ -111,7 +110,6 @@ int for_each_subchannel_staged(int (*fn_known)(struct subchannel *, void *),
                               int (*fn_unknown)(struct subchannel_id,
                               void *), void *data);
 extern int for_each_subchannel(int(*fn)(struct subchannel_id, void *), void *);
-extern void css_reiterate_subchannels(void);
 void css_update_ssd_info(struct subchannel *sch);
 
 struct channel_subsystem {