]> git.proxmox.com Git - mirror_zfs.git/blobdiff - lib/libnvpair/nvpair_alloc_system.c
module/*.ko: prune .data, global .rodata
[mirror_zfs.git] / lib / libnvpair / nvpair_alloc_system.c
index 9771f58f67f3c12a87a89bb88165fda0fe8f90be..59806ea4dc93b7968b4a1fb2c4029295d0a54459 100644 (file)
@@ -51,15 +51,15 @@ static const nv_alloc_ops_t system_ops = {
        NULL                    /* nv_ao_reset() */
 };
 
-nv_alloc_t nv_alloc_sleep_def = {
+static nv_alloc_t nv_alloc_sleep_def = {
        &system_ops,
        (void *)KM_SLEEP
 };
 
-nv_alloc_t nv_alloc_nosleep_def = {
+static nv_alloc_t nv_alloc_nosleep_def = {
        &system_ops,
        (void *)KM_NOSLEEP
 };
 
-nv_alloc_t *nv_alloc_sleep = &nv_alloc_sleep_def;
-nv_alloc_t *nv_alloc_nosleep = &nv_alloc_nosleep_def;
+nv_alloc_t *const nv_alloc_sleep = &nv_alloc_sleep_def;
+nv_alloc_t *const nv_alloc_nosleep = &nv_alloc_nosleep_def;