Re: [PATCH] iommu/omap: Fix debugfs_create_*() usage

2018-01-17 Thread Joerg Roedel
On Tue, Jan 02, 2018 at 04:29:45PM +0100, Geert Uytterhoeven wrote: > When exposing data access through debugfs, the correct > debugfs_create_*() functions must be used, depending on data type. > > Remove all casts from data pointers passed to debugfs_create_*() > functions, as such casts prevent

[PATCH] iommu/omap: Fix debugfs_create_*() usage

2018-01-02 Thread Geert Uytterhoeven
When exposing data access through debugfs, the correct debugfs_create_*() functions must be used, depending on data type. Remove all casts from data pointers passed to debugfs_create_*() functions, as such casts prevent the compiler from flagging bugs. omap_iommu.nr_tlb_entries is "int", hence ca