]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
nvme-cli: make show_registers_cap() static
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Sun, 19 Aug 2018 17:14:16 +0000 (13:14 -0400)
committerKeith Busch <keith.busch@intel.com>
Mon, 20 Aug 2018 18:40:50 +0000 (12:40 -0600)
The function show_registers_cap() us only used in the nvme-print.c,
mark this function static.

Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
nvme-print.c

index 8a604c5e42e972af58f5b3f4b11452dddb2f9d72..4c2a73a6f42a21dfdeda059dc1d1be55bd9ab47e 100644 (file)
@@ -2825,7 +2825,7 @@ void json_print_nvme_subsystem_list(struct subsys_list_item *slist, int n)
        json_print_object(root, NULL);
 }
 
-void show_registers_cap(struct nvme_bar_cap *cap)
+static void show_registers_cap(struct nvme_bar_cap *cap)
 {
        printf("\tMemory Page Size Maximum      (MPSMAX): %u bytes\n", 1 <<  (12 + ((cap->mpsmax_mpsmin & 0xf0) >> 4)));
        printf("\tMemory Page Size Minimum      (MPSMIN): %u bytes\n", 1 <<  (12 + (cap->mpsmax_mpsmin & 0x0f)));