* [PATCH 00/13] trivial: Remove unnecessary casts of private_data
@ 2010-09-05 1:52 Joe Perches
2010-09-05 1:52 ` [PATCH 08/13] fs/seq_file.c: " Joe Perches
0 siblings, 1 reply; 3+ messages in thread
From: Joe Perches @ 2010-09-05 1:52 UTC (permalink / raw)
To: Jiri Kosina
Cc: alsa-devel, David Airlie, Heiko Carstens, dri-devel,
Jaroslav Kysela, J. Bruce Fields, Adaptec OEM Raid Solutions,
Wey-Yi Guy, Sean Hefty, devel, linux-s390, Pekka Savola (ipv6),
linux-scsi, linux-rdma, James Morris, Intel Linux Wireless,
Neil Brown, Ingo Molnar, Doug Gilbert, Alexey Kuznetsov,
Roland Dreier, Hal Rosenstock, Trond Myklebust, ecryptfs-devel,
"John W.
Resend removal of remaining casts of private_data
Joe Perches (13):
drivers/gpu/drm: Remove unnecessary casts of private_data
drivers/infiniband: Remove unnecessary casts of private_data
drivers/net/wireless/iwlwifi: Remove unnecessary casts of private_data
drivers/s390: Remove unnecessary casts of private_data
drivers/scsi: Remove unnecessary casts of private_data
drivers/staging/lirc: Remove unnecessary casts of private_data
fs/ecryptfs: Remove unnecessary casts of private_data
fs/seq_file.c: Remove unnecessary casts of private_data
kernel/pm_qos_params.c: Remove unnecessary casts of private_data
kernel/trace: Remove unnecessary casts of private_data
net/ipv4: Remove unnecessary casts of private_data
net/sunrpc/rpc_pipe.c: Remove unnecessary casts of private_data
sound: Remove unnecessary casts of private_data
drivers/gpu/drm/radeon/radeon_ttm.c | 2 +-
drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c | 2 +-
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c | 2 +-
drivers/infiniband/hw/qib/qib_file_ops.c | 4 ++--
drivers/net/wireless/iwlwifi/iwl-agn-debugfs.c | 2 +-
drivers/net/wireless/iwlwifi/iwl-debugfs.c | 4 ++--
drivers/s390/char/vmcp.c | 6 +++---
drivers/scsi/aacraid/linit.c | 2 +-
drivers/scsi/sg.c | 2 +-
drivers/staging/lirc/lirc_imon.c | 4 ++--
drivers/staging/lirc/lirc_zilog.c | 10 +++++-----
fs/ecryptfs/ecryptfs_kernel.h | 2 +-
fs/seq_file.c | 6 +++---
kernel/pm_qos_params.c | 2 +-
kernel/trace/ftrace.c | 4 ++--
kernel/trace/trace.c | 2 +-
net/ipv4/raw.c | 2 +-
net/sunrpc/rpc_pipe.c | 4 ++--
sound/core/oss/mixer_oss.c | 22 +++++++++++-----------
sound/core/pcm.c | 3 +--
sound/drivers/virmidi.c | 2 +-
sound/i2c/other/ak4xxx-adda.c | 2 +-
sound/isa/ad1816a/ad1816a.c | 2 +-
sound/isa/azt2320.c | 2 +-
sound/isa/gus/gusmax.c | 4 ++--
sound/isa/sb/sb8.c | 2 +-
sound/oss/au1550_ac97.c | 18 +++++++++---------
sound/pci/emu10k1/emumpu401.c | 2 +-
sound/pci/ice1712/pontis.c | 6 +++---
sound/pci/ice1712/prodigy192.c | 2 +-
sound/pci/rme96.c | 8 ++++----
sound/pci/rme9652/hdsp.c | 8 ++++----
32 files changed, 72 insertions(+), 73 deletions(-)
--
1.7.2.19.g9a302
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 08/13] fs/seq_file.c: Remove unnecessary casts of private_data
2010-09-05 1:52 [PATCH 00/13] trivial: Remove unnecessary casts of private_data Joe Perches
@ 2010-09-05 1:52 ` Joe Perches
2010-09-23 11:29 ` Jiri Kosina
0 siblings, 1 reply; 3+ messages in thread
From: Joe Perches @ 2010-09-05 1:52 UTC (permalink / raw)
To: Jiri Kosina; +Cc: Alexander Viro, linux-fsdevel, linux-kernel
Signed-off-by: Joe Perches <joe@perches.com>
---
fs/seq_file.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/fs/seq_file.c b/fs/seq_file.c
index e1f437b..0e7cb13 100644
--- a/fs/seq_file.c
+++ b/fs/seq_file.c
@@ -131,7 +131,7 @@ Eoverflow:
*/
ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos)
{
- struct seq_file *m = (struct seq_file *)file->private_data;
+ struct seq_file *m = file->private_data;
size_t copied = 0;
loff_t pos;
size_t n;
@@ -280,7 +280,7 @@ EXPORT_SYMBOL(seq_read);
*/
loff_t seq_lseek(struct file *file, loff_t offset, int origin)
{
- struct seq_file *m = (struct seq_file *)file->private_data;
+ struct seq_file *m = file->private_data;
loff_t retval = -EINVAL;
mutex_lock(&m->lock);
@@ -324,7 +324,7 @@ EXPORT_SYMBOL(seq_lseek);
*/
int seq_release(struct inode *inode, struct file *file)
{
- struct seq_file *m = (struct seq_file *)file->private_data;
+ struct seq_file *m = file->private_data;
kfree(m->buf);
kfree(m);
return 0;
--
1.7.2.19.g9a302
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 08/13] fs/seq_file.c: Remove unnecessary casts of private_data
2010-09-05 1:52 ` [PATCH 08/13] fs/seq_file.c: " Joe Perches
@ 2010-09-23 11:29 ` Jiri Kosina
0 siblings, 0 replies; 3+ messages in thread
From: Jiri Kosina @ 2010-09-23 11:29 UTC (permalink / raw)
To: Joe Perches; +Cc: Alexander Viro, linux-fsdevel, linux-kernel
On Sat, 4 Sep 2010, Joe Perches wrote:
> Signed-off-by: Joe Perches <joe@perches.com>
> ---
> fs/seq_file.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/fs/seq_file.c b/fs/seq_file.c
> index e1f437b..0e7cb13 100644
> --- a/fs/seq_file.c
> +++ b/fs/seq_file.c
> @@ -131,7 +131,7 @@ Eoverflow:
> */
> ssize_t seq_read(struct file *file, char __user *buf, size_t size, loff_t *ppos)
> {
> - struct seq_file *m = (struct seq_file *)file->private_data;
> + struct seq_file *m = file->private_data;
> size_t copied = 0;
> loff_t pos;
> size_t n;
> @@ -280,7 +280,7 @@ EXPORT_SYMBOL(seq_read);
> */
> loff_t seq_lseek(struct file *file, loff_t offset, int origin)
> {
> - struct seq_file *m = (struct seq_file *)file->private_data;
> + struct seq_file *m = file->private_data;
> loff_t retval = -EINVAL;
>
> mutex_lock(&m->lock);
> @@ -324,7 +324,7 @@ EXPORT_SYMBOL(seq_lseek);
> */
> int seq_release(struct inode *inode, struct file *file)
> {
> - struct seq_file *m = (struct seq_file *)file->private_data;
> + struct seq_file *m = file->private_data;
> kfree(m->buf);
> kfree(m);
> return 0;
Doesn't seem to be present in linux-next as of today. I am going to fold
it into trivial queue, if anyone has any objections, shout now.
--
Jiri Kosina
SUSE Labs, Novell Inc.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-23 11:29 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-05 1:52 [PATCH 00/13] trivial: Remove unnecessary casts of private_data Joe Perches
2010-09-05 1:52 ` [PATCH 08/13] fs/seq_file.c: " Joe Perches
2010-09-23 11:29 ` Jiri Kosina
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).