tegra: nvadsp: make local data and funcs static
Sachin Nikam [Mon, 10 Nov 2014 09:35:49 +0000 (14:35 +0530)]
Fix sparse warnings by making local data and funcs to file
as static.

Bug 200032218

Change-Id: Ic4310e6504b4c6fa19b79389f43b6e18fb243c48
Signed-off-by: Sachin Nikam <snikam@nvidia.com>
Reviewed-on: http://git-master/r/600097

drivers/platform/tegra/nvadsp/adsp_dfs.c
drivers/platform/tegra/nvadsp/app.c
drivers/platform/tegra/nvadsp/os.c

index 27136e6..64d59f2 100644 (file)
@@ -93,7 +93,7 @@ struct adsp_freq_stats {
        int state_num;
 };
 
-struct adsp_dfs_policy *policy;
+static struct adsp_dfs_policy *policy;
 static struct adsp_freq_stats freq_stats;
 static DEFINE_MUTEX(policy_mutex);
 
index 1da8957..02fb0e9 100644 (file)
@@ -70,18 +70,18 @@ static struct list_head service_list;
 static u64 ns_time_native_load_complete;
 #endif
 
-DECLARE_COMPLETION(os_load);
-DECLARE_COMPLETION(load_app_status);
-DECLARE_COMPLETION(app_init_status);
-DECLARE_COMPLETION(app_start_status);
-DECLARE_COMPLETION(app_deinit_status);
-DECLARE_COMPLETION(app_unload_status);
-
-DEFINE_MUTEX(load_app_mutex);
-DEFINE_MUTEX(app_init_mutex);
-DEFINE_MUTEX(app_start_mutex);
-DEFINE_MUTEX(app_deinit_mutex);
-DEFINE_MUTEX(app_unload_mutex);
+static DECLARE_COMPLETION(os_load);
+static DECLARE_COMPLETION(load_app_status);
+static DECLARE_COMPLETION(app_init_status);
+static DECLARE_COMPLETION(app_start_status);
+static DECLARE_COMPLETION(app_deinit_status);
+static DECLARE_COMPLETION(app_unload_status);
+
+static DEFINE_MUTEX(load_app_mutex);
+static DEFINE_MUTEX(app_init_mutex);
+static DEFINE_MUTEX(app_start_mutex);
+static DEFINE_MUTEX(app_deinit_mutex);
+static DEFINE_MUTEX(app_unload_mutex);
 
 /* app states need to be changed atomically */
 static DEFINE_SPINLOCK(state_lock);
index 0f8756e..e354eb5 100644 (file)
@@ -114,7 +114,7 @@ static struct nvadsp_mappings adsp_map[NM_LOAD_MAPPINGS];
 static int map_idx;
 static struct nvadsp_mbox adsp_com_mbox;
 
-DECLARE_COMPLETION(entered_wfe);
+static DECLARE_COMPLETION(entered_wfe);
 #ifdef CONFIG_DEBUG_FS
 
 static int adsp_logger_open(struct inode *inode, struct file *file)