All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jiri Kosina <jkosina@suse.cz>
To: Joe Perches <joe@perches.com>
Cc: David Airlie <airlied@linux.ie>,
	dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH 01/13] drivers/gpu/drm: Remove unnecessary casts of private_data
Date: Thu, 23 Sep 2010 13:36:04 +0200 (CEST)	[thread overview]
Message-ID: <alpine.LNX.2.00.1009231335470.26813@pobox.suse.cz> (raw)
In-Reply-To: <41dc995dbe142151c89cff07db0f34277af9446e.1283650107.git.joe@perches.com>

On Sat, 4 Sep 2010, Joe Perches wrote:

> Signed-off-by: Joe Perches <joe@perches.com>
> ---
>  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 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/radeon/radeon_ttm.c b/drivers/gpu/drm/radeon/radeon_ttm.c
> index 84c53e4..a823d8f 100644
> --- a/drivers/gpu/drm/radeon/radeon_ttm.c
> +++ b/drivers/gpu/drm/radeon/radeon_ttm.c
> @@ -631,7 +631,7 @@ int radeon_mmap(struct file *filp, struct vm_area_struct *vma)
>  		return drm_mmap(filp, vma);
>  	}
>  
> -	file_priv = (struct drm_file *)filp->private_data;
> +	file_priv = filp->private_data;
>  	rdev = file_priv->minor->dev->dev_private;
>  	if (rdev == NULL) {
>  		return -EINVAL;
> diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c b/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c
> index e6a1eb7..dc043c3 100644
> --- a/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c
> +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c
> @@ -542,7 +542,7 @@ int vmw_fifo_mmap(struct file *filp, struct vm_area_struct *vma)
>  	struct drm_file *file_priv;
>  	struct vmw_private *dev_priv;
>  
> -	file_priv = (struct drm_file *)filp->private_data;
> +	file_priv = filp->private_data;
>  	dev_priv = vmw_priv(file_priv->minor->dev);
>  
>  	if (vma->vm_pgoff != (dev_priv->mmio_start >> PAGE_SHIFT) ||
> diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c b/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c
> index 8312328..1e8eedd 100644
> --- a/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c
> +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c
> @@ -39,7 +39,7 @@ int vmw_mmap(struct file *filp, struct vm_area_struct *vma)
>  		return drm_mmap(filp, vma);
>  	}
>  
> -	file_priv = (struct drm_file *)filp->private_data;
> +	file_priv = filp->private_data;
>  	dev_priv = vmw_priv(file_priv->minor->dev);
>  	return ttm_bo_mmap(filp, vma, &dev_priv->bdev);
>  }

This patch isn't present in linux-next as of today. Taking through trivial 
queue.

Thanks,

-- 
Jiri Kosina
SUSE Labs, Novell Inc.

  reply	other threads:[~2010-09-23 11:36 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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-05  1:52 ` [PATCH 01/13] drivers/gpu/drm: " Joe Perches
2010-09-05  1:52   ` Joe Perches
2010-09-23 11:36   ` Jiri Kosina [this message]
2010-09-05  1:52 ` [PATCH 02/13] drivers/infiniband: " Joe Perches
     [not found]   ` <a13edeb14cc926b71e21daff892acbe2d76313ab.1283650107.git.joe-6d6DIl74uiNBDgjK7y7TUQ@public.gmane.org>
2010-09-07 18:24     ` Ralph Campbell
2010-09-07 18:24       ` Ralph Campbell
     [not found]       ` <1283883869.32259.13.camel-/vjeY7uYZjrPXfVEPVhPGq6RkeBMCJyt@public.gmane.org>
2010-09-23 11:38         ` Jiri Kosina
2010-09-23 11:38           ` Jiri Kosina
2010-10-06 21:44     ` Roland Dreier
2010-10-06 21:44       ` Roland Dreier
2010-09-05  1:52 ` [PATCH 03/13] drivers/net/wireless/iwlwifi: " Joe Perches
2010-09-05  1:52 ` [PATCH 04/13] drivers/s390: " Joe Perches
2010-09-23 11:42   ` Jiri Kosina
2010-09-05  1:52 ` [PATCH 05/13] drivers/scsi: " Joe Perches
2010-09-23 11:45   ` Jiri Kosina
2010-09-05  1:52 ` [PATCH 06/13] drivers/staging/lirc: " Joe Perches
2010-09-05  1:52 ` [PATCH 07/13] fs/ecryptfs: " Joe Perches
2010-09-23 11:31   ` Jiri Kosina
2010-09-05  1:52 ` [PATCH 08/13] fs/seq_file.c: " Joe Perches
2010-09-23 11:29   ` Jiri Kosina
2010-09-05  1:52 ` [PATCH 09/13] kernel/pm_qos_params.c: " Joe Perches
2010-09-23 11:34   ` Jiri Kosina
2010-09-05  1:52 ` [PATCH 10/13] kernel/trace: " Joe Perches
2010-09-23 11:37   ` Jiri Kosina
2010-09-05  1:52 ` [PATCH 11/13] net/ipv4: " Joe Perches
2010-09-07  1:30   ` David Miller
2010-09-07  1:47     ` David Miller
2010-09-07  5:01       ` [PATCH net-next] include/net/raw.h: Convert raw_seq_private macro to inline Joe Perches
2010-09-07 15:37         ` Nick Bowler
2010-09-07 15:55           ` [PATCH V2 " Joe Perches
2010-09-08 20:42             ` David Miller
2010-09-05  1:52 ` [PATCH 12/13] net/sunrpc/rpc_pipe.c: Remove unnecessary casts of private_data Joe Perches
2010-09-23 11:40   ` Jiri Kosina
2010-09-23 11:40     ` Jiri Kosina
2010-09-05  1:52 ` [PATCH 13/13] sound: " Joe Perches
2010-09-07  6:10   ` Takashi Iwai
2010-09-07  6:10     ` Takashi Iwai

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.2.00.1009231335470.26813@pobox.suse.cz \
    --to=jkosina@suse.cz \
    --cc=airlied@linux.ie \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.