Skip to content

Commit 24ce0ba

Browse files
sumanannajoergroedel
authored andcommitted
iommu/omap: Use the correct type for SLAB_HWCACHE_ALIGN
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 <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent 73499ad commit 24ce0ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/omap-iommu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1818,7 +1818,7 @@ static const struct iommu_ops omap_iommu_ops = {
18181818
static int __init omap_iommu_init(void)
18191819
{
18201820
struct kmem_cache *p;
1821-
const unsigned long flags = SLAB_HWCACHE_ALIGN;
1821+
const slab_flags_t flags = SLAB_HWCACHE_ALIGN;
18221822
size_t align = 1 << 10; /* L2 pagetable alignement */
18231823
struct device_node *np;
18241824
int ret;

0 commit comments

Comments
 (0)