Skip to content

Commit

Permalink
arm/omap: use generic_file_llseek in iommu_debug
Browse files Browse the repository at this point in the history
In future kernels, debugfs files need to specify
the llseek operation explicitly to allow seeking.
This sets the llseek operation in the omap iommu
debugfs files to generic_file_llseek, which is
appropriate for files using simple_read_from_buffer.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Cc: Tony Lindgren <tony@atomide.com>
Cc: linux-omap@vger.kernel.org
  • Loading branch information
Arnd Bergmann committed Sep 16, 2010
1 parent 05271ec commit c0b0aca
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/plat-omap/iommu-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -328,12 +328,14 @@ static int debug_open_generic(struct inode *inode, struct file *file)
.open = debug_open_generic, \
.read = debug_read_##name, \
.write = debug_write_##name, \
.llseek = generic_file_llseek, \
};

#define DEBUG_FOPS_RO(name) \
static const struct file_operations debug_##name##_fops = { \
.open = debug_open_generic, \
.read = debug_read_##name, \
.llseek = generic_file_llseek, \
};

DEBUG_FOPS_RO(ver);
Expand Down

0 comments on commit c0b0aca

Please sign in to comment.