linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Dave Airlie <airlied@linux.ie>
Cc: linux-next@vger.kernel.org,
	Harvey Harrison <harvey.harrison@gmail.com>,
	Eric Anholt <eric@anholt.net>
Subject: linux-next: manual merge of the drm tree
Date: Fri, 17 Oct 2008 16:56:27 +1100	[thread overview]
Message-ID: <20081017165627.90d1008f.sfr@canb.auug.org.au> (raw)

Hi Dave,

Today's linux-next merge of the drm tree got a conflict in
drivers/gpu/drm/i915/i915_dma.c between commit
80a914dc05683ecfc98f9e1887fd6564846ffbec ("misc: replace __FUNCTION__
with __func__") from Linus' tree and commit
811c552c21f3d7fca8eb647ccf0d303378ccea7d ("i915: Use struct_mutex to
protect ring in GEM mode") from the drm tree.

Just context changes.  I fixed it up (see below).
-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/

diff --cc drivers/gpu/drm/i915/i915_dma.c
index 9ac4720,593286e..0000000
--- a/drivers/gpu/drm/i915/i915_dma.c
+++ b/drivers/gpu/drm/i915/i915_dma.c
@@@ -516,8 -536,11 +536,11 @@@ static int i915_dispatch_flip(struct dr
  	drm_i915_private_t *dev_priv = dev->dev_private;
  	RING_LOCALS;
  
+ 	if (!dev_priv->sarea_priv)
+ 		return -EINVAL;
+ 
  	DRM_DEBUG("%s: page=%d pfCurrentPage=%d\n",
 -		  __FUNCTION__,
 +		  __func__,
  		  dev_priv->current_page,
  		  dev_priv->sarea_priv->pf_current_page);
  
@@@ -642,11 -677,17 +677,17 @@@ static int i915_cmdbuffer(struct drm_de
  static int i915_flip_bufs(struct drm_device *dev, void *data,
  			  struct drm_file *file_priv)
  {
+ 	int ret;
+ 
 -	DRM_DEBUG("%s\n", __FUNCTION__);
 +	DRM_DEBUG("%s\n", __func__);
  
- 	LOCK_TEST_WITH_RETURN(dev, file_priv);
+ 	RING_LOCK_TEST_WITH_RETURN(dev, file_priv);
+ 
+ 	mutex_lock(&dev->struct_mutex);
+ 	ret = i915_dispatch_flip(dev);
+ 	mutex_unlock(&dev->struct_mutex);
  
- 	return i915_dispatch_flip(dev);
+ 	return ret;
  }
  
  static int i915_getparam(struct drm_device *dev, void *data,

             reply	other threads:[~2008-10-17  5:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-17  5:56 Stephen Rothwell [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-10-21 15:36 linux-next: Tree for Oct 21 Thierry Reding
2013-10-22 15:10 ` linux-next: manual merge of the net-next tree Thierry Reding
2013-10-22 15:10   ` linux-next: manual merge of the drm tree Thierry Reding
2013-10-14 14:48 linux-next: Tree for Oct 14 Thierry Reding
2013-10-14 14:48 ` linux-next: manual merge of the drm tree Thierry Reding
2008-07-10  6:10 Stephen Rothwell

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=20081017165627.90d1008f.sfr@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=airlied@linux.ie \
    --cc=eric@anholt.net \
    --cc=harvey.harrison@gmail.com \
    --cc=linux-next@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 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).