kmod_module: move function to the right section
diff --git a/libkmod/libkmod-module.c b/libkmod/libkmod-module.c
index 0986a58..f9be534 100644
--- a/libkmod/libkmod-module.c
+++ b/libkmod/libkmod-module.c
@@ -579,63 +579,6 @@
 }
 
 /**
- * kmod_module_get_size:
- * @mod: kmod module
- *
- * Get the size of this kmod module as returned by Linux kernel. It reads the
- * file /proc/modules to search for this module and get its size.
- *
- * Returns: the size of this kmod module.
- */
-KMOD_EXPORT long kmod_module_get_size(const struct kmod_module *mod)
-{
-	// FIXME TODO: this should be available from /sys/module/foo
-	FILE *fp;
-	char line[4096];
-	int lineno = 0;
-	long size = -ENOENT;
-
-	if (mod == NULL)
-		return -ENOENT;
-
-	fp = fopen("/proc/modules", "r");
-	if (fp == NULL) {
-		int err = -errno;
-		ERR(mod->ctx,
-		    "could not open /proc/modules: %s\n", strerror(errno));
-		return err;
-	}
-
-	while (fgets(line, sizeof(line), fp)) {
-		char *saveptr, *endptr, *tok = strtok_r(line, " \t", &saveptr);
-		long value;
-
-		lineno++;
-		if (tok == NULL || !streq(tok, mod->name))
-			continue;
-
-		tok = strtok_r(NULL, " \t", &saveptr);
-		if (tok == NULL) {
-			ERR(mod->ctx,
-			"invalid line format at /proc/modules:%d\n", lineno);
-			break;
-		}
-
-		value = strtol(tok, &endptr, 10);
-		if (endptr == tok || *endptr != '\0') {
-			ERR(mod->ctx,
-			"invalid line format at /proc/modules:%d\n", lineno);
-			break;
-		}
-
-		size = value;
-		break;
-	}
-	fclose(fp);
-	return size;
-}
-
-/**
  * kmod_module_get_name:
  * @mod: kmod module
  *
@@ -1137,6 +1080,63 @@
 }
 
 /**
+ * kmod_module_get_size:
+ * @mod: kmod module
+ *
+ * Get the size of this kmod module as returned by Linux kernel. It reads the
+ * file /proc/modules to search for this module and get its size.
+ *
+ * Returns: the size of this kmod module.
+ */
+KMOD_EXPORT long kmod_module_get_size(const struct kmod_module *mod)
+{
+	// FIXME TODO: this should be available from /sys/module/foo
+	FILE *fp;
+	char line[4096];
+	int lineno = 0;
+	long size = -ENOENT;
+
+	if (mod == NULL)
+		return -ENOENT;
+
+	fp = fopen("/proc/modules", "r");
+	if (fp == NULL) {
+		int err = -errno;
+		ERR(mod->ctx,
+		    "could not open /proc/modules: %s\n", strerror(errno));
+		return err;
+	}
+
+	while (fgets(line, sizeof(line), fp)) {
+		char *saveptr, *endptr, *tok = strtok_r(line, " \t", &saveptr);
+		long value;
+
+		lineno++;
+		if (tok == NULL || !streq(tok, mod->name))
+			continue;
+
+		tok = strtok_r(NULL, " \t", &saveptr);
+		if (tok == NULL) {
+			ERR(mod->ctx,
+			"invalid line format at /proc/modules:%d\n", lineno);
+			break;
+		}
+
+		value = strtol(tok, &endptr, 10);
+		if (endptr == tok || *endptr != '\0') {
+			ERR(mod->ctx,
+			"invalid line format at /proc/modules:%d\n", lineno);
+			break;
+		}
+
+		size = value;
+		break;
+	}
+	fclose(fp);
+	return size;
+}
+
+/**
  * kmod_module_get_refcnt:
  * @mod: kmod module
  *