]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - drivers/dax/device.c
dev/dax: fix uninitialized variable build warning
[mirror_ubuntu-bionic-kernel.git] / drivers / dax / device.c
index e9f3b3e4bbf45805d5288ad0d3ee03243c2a1af0..6833ada237ab7d94540671d811f1dbcde2bb59db 100644 (file)
@@ -222,7 +222,8 @@ __weak phys_addr_t dax_pgoff_to_phys(struct dev_dax *dev_dax, pgoff_t pgoff,
                unsigned long size)
 {
        struct resource *res;
-       phys_addr_t phys;
+       /* gcc-4.6.3-nolibc for i386 complains that this is uninitialized */
+       phys_addr_t uninitialized_var(phys);
        int i;
 
        for (i = 0; i < dev_dax->num_resources; i++) {