swap : remove const at module_ops variable 98/130898/1
authorKichan Kwon <k_c.kwon@samsung.com>
Wed, 24 May 2017 09:23:16 +0000 (18:23 +0900)
committerKichan Kwon <k_c.kwon@samsung.com>
Wed, 24 May 2017 09:23:16 +0000 (18:23 +0900)
- .initalized will be modified

Change-Id: I21626a1c5732dc156978007024a64ceb3a0127ec
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
packaging/resourced.spec
src/swap/swap.c

index c8766b453d4400bee65708a569bae245e57d99ab..8a1d0faabae3540d80c3e5972d90e71669e2ce35 100644 (file)
@@ -1,7 +1,7 @@
 Name:       resourced
 Summary:    Resource management daemon
 Version:    0.4
-Release:    6
+Release:    7
 Group:      System/Libraries
 License:    Apache-2.0
 Source0:    %{name}-%{version}.tar.gz
index 15379ecb87c52ed92d5250010f081f21245d8e9e..41758febb8d0f12f5a13503aeb1464166d35faa5 100644 (file)
@@ -143,7 +143,7 @@ static struct swap_zram_control swap_control = {
 static pthread_mutex_t swap_mutex;
 static pthread_cond_t swap_cond;
 static struct swap_safe_queue swap_thread_queue;
-static const struct module_ops swap_modules_ops;
+static struct module_ops swap_modules_ops;
 static float swap_hard_limit_fraction = SWAP_HARD_LIMIT_DEFAULT;
 static enum swap_reclaim_node swap_node;
 
@@ -1066,7 +1066,7 @@ static int resourced_swap_finalize(void *data)
        return RESOURCED_ERROR_NONE;
 }
 
-static const struct module_ops swap_modules_ops = {
+static struct module_ops swap_modules_ops = {
        .priority = MODULE_PRIORITY_NORMAL,
        .name = "swap",
        .init = resourced_swap_init,