2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-11-20 08:38:24 +08:00

arm/omap: use generic_file_llseek in iommu_debug

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
This commit is contained in:
Arnd Bergmann 2010-07-06 19:16:33 +02:00
parent 05271ec424
commit c0b0aca0e0

View File

@ -328,12 +328,14 @@ static int debug_open_generic(struct inode *inode, struct file *file)
.open = debug_open_generic, \ .open = debug_open_generic, \
.read = debug_read_##name, \ .read = debug_read_##name, \
.write = debug_write_##name, \ .write = debug_write_##name, \
.llseek = generic_file_llseek, \
}; };
#define DEBUG_FOPS_RO(name) \ #define DEBUG_FOPS_RO(name) \
static const struct file_operations debug_##name##_fops = { \ static const struct file_operations debug_##name##_fops = { \
.open = debug_open_generic, \ .open = debug_open_generic, \
.read = debug_read_##name, \ .read = debug_read_##name, \
.llseek = generic_file_llseek, \
}; };
DEBUG_FOPS_RO(ver); DEBUG_FOPS_RO(ver);