@@ -144,12 +144,8 @@ int class_find_param(char *buf, char *key, char **valp);
struct cfg_interop_param *class_find_old_param(const char *param,
struct cfg_interop_param *ptr);
int class_get_next_param(char **params, char *copy);
-int class_parse_nid4(char *buf, lnet_nid_t *nid4, char **endh);
-int class_parse_nid4_quiet(char *buf, lnet_nid_t *nid4, char **endh);
int class_parse_nid(char *buf, struct lnet_nid *nid, char **endh);
int class_parse_nid_quiet(char *buf, struct lnet_nid *nid, char **endh);
-int class_parse_net(char *buf, u32 *net, char **endh);
-int class_match_net(char *buf, char *key, u32 net);
struct obd_device *class_incref(struct obd_device *obd,
const char *scope, const void *source);
@@ -152,19 +152,6 @@ static int class_match_param(char *buf, const char *key, char **valp)
return 0;
}
-static int parse_nid4(char *buf, void *value, int quiet)
-{
- lnet_nid_t *nid4 = value;
-
- *nid4 = libcfs_str2nid(buf);
- if (*nid4 != LNET_NID_ANY)
- return 0;
-
- if (!quiet)
- LCONSOLE_ERROR_MSG(0x159, "Can't parse NID '%s'\n", buf);
- return -EINVAL;
-}
-
static int parse_nid(char *buf, void *value, int quiet)
{
struct lnet_nid *nid = value;
@@ -187,8 +174,7 @@ static int parse_net(char *buf, void *value)
}
enum {
- CLASS_PARSE_NID4 = 1,
- CLASS_PARSE_NID,
+ CLASS_PARSE_NID = 1,
CLASS_PARSE_NET,
};
@@ -221,9 +207,6 @@ static int class_parse_value(char *buf, int opc, void *value, char **endh,
switch (opc) {
default:
LBUG();
- case CLASS_PARSE_NID4:
- rc = parse_nid4(buf, value, quiet);
- break;
case CLASS_PARSE_NID:
rc = parse_nid(buf, value, quiet);
break;
@@ -239,18 +222,6 @@ static int class_parse_value(char *buf, int opc, void *value, char **endh,
return 0;
}
-int class_parse_nid4(char *buf, lnet_nid_t *nid4, char **endh)
-{
- return class_parse_value(buf, CLASS_PARSE_NID4, (void *)nid4, endh, 0);
-}
-EXPORT_SYMBOL(class_parse_nid4);
-
-int class_parse_nid4_quiet(char *buf, lnet_nid_t *nid4, char **endh)
-{
- return class_parse_value(buf, CLASS_PARSE_NID4, (void *)nid4, endh, 1);
-}
-EXPORT_SYMBOL(class_parse_nid4_quiet);
-
int class_parse_nid(char *buf, struct lnet_nid *nid, char **endh)
{
return class_parse_value(buf, CLASS_PARSE_NID, (void *)nid, endh, 0);