Search Linux Wireless

[PATCH] carl9170: use generic_file_llseek in debugfs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tuesday 14 September 2010 22:22:30 Arnd Bergmann wrote:
> The default llseek operation is changing from
> default_llseek to no_llseek, so all code relying on
> the current behaviour needs to make that explicit.
> 
> All these files use debugfs and they typically rely
> on simple_read_from_buffer, so the best llseek operation
> here is generic_file_llseek.

Cc: Arnd Bergmann <arnd@xxxxxxxx>
Signed-off-by: Christian Lamparter <chunkeey@xxxxxxxxxxxxxx>
---
diff --git a/drivers/net/wireless/ath/carl9170/debug.c b/drivers/net/wireless/ath/carl9170/debug.c
index 3e9b0e8..6559381 100644
--- a/drivers/net/wireless/ath/carl9170/debug.c
+++ b/drivers/net/wireless/ath/carl9170/debug.c
@@ -181,6 +181,7 @@ static const struct carl9170_debugfs_fops carl_debugfs_##name ##_ops = {\
 		.open	= carl9170_debugfs_open,			\
 		.read	= carl9170_debugfs_read,			\
 		.write	= carl9170_debugfs_write,			\
+		.llseek = generic_file_llseek,				\
 		.owner	= THIS_MODULE					\
 	},								\
 }
--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux