shithub: lwext4

Download patch

ref: f3e06a2a6d91b4502fb0e0f70a79fb6daaf601e1
parent: c8d7262124bc774995cad8c5da99a2590e9e63a4
author: ngkaho1234 <ngkaho1234@gmail.com>
date: Sat Dec 26 16:14:23 EST 2015

ext4: add static keyword to ext4_trans_start/stop/abort.

--- a/lwext4/ext4.c
+++ b/lwext4/ext4.c
@@ -555,7 +555,7 @@
 	return r;
 }
 
-int ext4_trans_start(struct ext4_mountpoint *mp)
+static int ext4_trans_start(struct ext4_mountpoint *mp)
 {
 	int r = EOK;
 	if (mp->fs.jbd_journal && !mp->fs.curr_trans) {
@@ -572,7 +572,7 @@
 	return r;
 }
 
-int ext4_trans_stop(struct ext4_mountpoint *mp)
+static int ext4_trans_stop(struct ext4_mountpoint *mp)
 {
 	int r = EOK;
 	if (mp->fs.jbd_journal && mp->fs.curr_trans) {
@@ -584,7 +584,7 @@
 	return r;
 }
 
-void ext4_trans_abort(struct ext4_mountpoint *mp)
+static void ext4_trans_abort(struct ext4_mountpoint *mp)
 {
 	if (mp->fs.jbd_journal && mp->fs.curr_trans) {
 		struct jbd_journal *journal = mp->fs.jbd_journal;