]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/rpmsg.git/commitdiff
iommu/omap: Use the correct type for SLAB_HWCACHE_ALIGN
authorSuman Anna <s-anna@ti.com>
Sat, 2 Mar 2019 18:14:08 +0000 (12:14 -0600)
committerSuman Anna <s-anna@ti.com>
Sun, 3 Mar 2019 02:56:36 +0000 (20:56 -0600)
The macro SLAB_HWCACHE_ALIGN is of type slab_flags_t, but is currently
assigned in the OMAP IOMMU driver using a unsigned long variable. This
generates a sparse warning around the type check. Fix this by defining
the variable flags using the correct type.

Signed-off-by: Suman Anna <s-anna@ti.com>
drivers/iommu/omap-iommu.c

index d2fb347aa4ffcbe5885a3b083b431aa09b6d93d1..a3d0184e24f681dce1c941f6c38f880bacf84fc6 100644 (file)
@@ -1558,7 +1558,7 @@ static const struct iommu_ops omap_iommu_ops = {
 static int __init omap_iommu_init(void)
 {
        struct kmem_cache *p;
-       const unsigned long flags = SLAB_HWCACHE_ALIGN;
+       const slab_flags_t flags = SLAB_HWCACHE_ALIGN;
        size_t align = 1 << 10; /* L2 pagetable alignement */
        struct device_node *np;
        int ret;