Whamcloud - gitweb
LU-17592 build: kernel 6.8 -Werror=missing-prototypes
[fs/lustre-release.git] / lustre / obdclass / obd_mount.c
index c921a43..00c545f 100644 (file)
@@ -198,6 +198,7 @@ static int do_lcfg_nid(char *cfgname, struct lnet_nid *nid, int cmd,
  * Call class_attach and class_setup.  These methods in turn call
  * OBD type-specific methods.
  */
+SERVER_ONLY
 int lustre_start_simple(char *obdname, char *type, char *uuid,
                        char *s1, char *s2, char *s3, char *s4)
 {
@@ -217,7 +218,7 @@ int lustre_start_simple(char *obdname, char *type, char *uuid,
        }
        return rc;
 }
-EXPORT_SYMBOL(lustre_start_simple);
+SERVER_ONLY_EXPORT_SYMBOL(lustre_start_simple);
 
 static DEFINE_MUTEX(mgc_start_lock);
 
@@ -520,7 +521,7 @@ out_free:
 }
 EXPORT_SYMBOL(lustre_start_mgc);
 
-int lustre_stop_mgc(struct super_block *sb)
+SERVER_ONLY int lustre_stop_mgc(struct super_block *sb)
 {
        struct lustre_sb_info *lsi = s2lsi(sb);
        struct obd_device *obd;
@@ -588,7 +589,7 @@ out:
        mutex_unlock(&mgc_start_lock);
        RETURN(rc);
 }
-EXPORT_SYMBOL(lustre_stop_mgc);
+SERVER_ONLY_EXPORT_SYMBOL(lustre_stop_mgc);
 
 /***************** lustre superblock **************/
 
@@ -857,6 +858,7 @@ int server_name2svname(const char *label, char *svname, const char **endptr,
 EXPORT_SYMBOL(server_name2svname);
 #endif /* HAVE_SERVER_SUPPORT */
 
+#ifdef HAVE_SERVER_SUPPORT
 /**
  * check server name is OST.
  **/
@@ -877,12 +879,13 @@ int server_name_is_ost(const char *svname)
        return 0;
 }
 EXPORT_SYMBOL(server_name_is_ost);
+#endif /* HAVE_SERVER_SUPPORT */
 
 /**
  * Get the index from the target name MDTXXXX/OSTXXXX
  * rc = server type, or rc < 0  on error
  **/
-int target_name2index(const char *tgtname, u32 *idx, const char **endptr)
+SERVER_ONLY int target_name2index(const char *tgtname, u32 *idx, const char **endptr)
 {
        const char *dash = tgtname;
        int type, len, rc;
@@ -929,7 +932,7 @@ int target_name2index(const char *tgtname, u32 *idx, const char **endptr)
 
        return type;
 }
-EXPORT_SYMBOL(target_name2index);
+SERVER_ONLY_EXPORT_SYMBOL(target_name2index);
 
 /*
  * Get the index from the OBD name.