staging: lustre: ldlm: Do not export static function
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Sat, 24 Oct 2015 17:19:50 +0000 (22:49 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Oct 2015 05:34:06 +0000 (14:34 +0900)
Remove the export symbol for static function.

The semantic patch used to find this is:

// <smpl>
@r@
type T;
identifier f;
@@

static T f (...) { ... }

@@
identifier r.f;
declarer name EXPORT_SYMBOL;
@@

-EXPORT_SYMBOL(f);
// </smpl>

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ldlm/ldlm_pool.c

index 92c21fd47f86f233a6cc99971369b568cedec210..1a4eef64658f9cf02d7b4050839d8936a541b019 100644 (file)
@@ -1005,7 +1005,6 @@ static int ldlm_pools_recalc(ldlm_side_t client)
        }
        return time;
 }
-EXPORT_SYMBOL(ldlm_pools_recalc);
 
 static int ldlm_pools_thread_main(void *arg)
 {