diff options
author | Suman Anna | 2019-03-02 12:14:08 -0600 |
---|---|---|
committer | Suman Anna | 2019-03-02 20:56:36 -0600 |
commit | f99e6b3679066f4b1fa9874de12cf27071bc6825 (patch) | |
tree | 606030b24d6b794292ea9735eb9108b522e7915b | |
parent | 070b7d7034a3d72537dfcd49e296bb12b578cc54 (diff) | |
download | iommu-f99e6b3679066f4b1fa9874de12cf27071bc6825.tar.gz iommu-f99e6b3679066f4b1fa9874de12cf27071bc6825.tar.xz iommu-f99e6b3679066f4b1fa9874de12cf27071bc6825.zip |
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 <s-anna@ti.com>
-rw-r--r-- | drivers/iommu/omap-iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/omap-iommu.c b/drivers/iommu/omap-iommu.c index d2fb347aa4ff..a3d0184e24f6 100644 --- a/drivers/iommu/omap-iommu.c +++ b/drivers/iommu/omap-iommu.c | |||
@@ -1558,7 +1558,7 @@ static const struct iommu_ops omap_iommu_ops = { | |||
1558 | static int __init omap_iommu_init(void) | 1558 | static int __init omap_iommu_init(void) |
1559 | { | 1559 | { |
1560 | struct kmem_cache *p; | 1560 | struct kmem_cache *p; |
1561 | const unsigned long flags = SLAB_HWCACHE_ALIGN; | 1561 | const slab_flags_t flags = SLAB_HWCACHE_ALIGN; |
1562 | size_t align = 1 << 10; /* L2 pagetable alignement */ | 1562 | size_t align = 1 << 10; /* L2 pagetable alignement */ |
1563 | struct device_node *np; | 1563 | struct device_node *np; |
1564 | int ret; | 1564 | int ret; |