All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging, gma500: Fix warning in power.c
@ 2011-12-22 18:46 Rakib Mullick
  2011-12-28 14:04 ` Alan Cox
  0 siblings, 1 reply; 5+ messages in thread
From: Rakib Mullick @ 2011-12-22 18:46 UTC (permalink / raw)
  To: linux-kernel; +Cc: Greg Kroah-Hartman, Alan Cox, akpm

 gma_resume_display() wants 'struct pci_dev *' as it's parameter, so lets pass dev->pdev instead of dev. Fixes the following warning.

drivers/staging/gma500/power.c: In function ‘gma_power_begin’:
drivers/staging/gma500/power.c:269:3: warning: passing argument 1 of ‘gma_resume_display’ from incompatible pointer type
drivers/staging/gma500/power.c:99:13: note: expected ‘struct pci_dev *’ but argument is of type ‘struct drm_device *’ 

Signed-off-by: Rakib Mullick <rakib.mullick@gmail.com>
---

diff --git a/drivers/staging/gma500/power.c b/drivers/staging/gma500/power.c
index 436fe97..4082570 100644
--- a/drivers/staging/gma500/power.c
+++ b/drivers/staging/gma500/power.c
@@ -266,7 +266,7 @@ bool gma_power_begin(struct drm_device *dev, bool force_on)
 	ret = gma_resume_pci(dev->pdev);
 	if (ret == 0) {
 		/* FIXME: we want to defer this for Medfield/Oaktrail */
-		gma_resume_display(dev);
+		gma_resume_display(dev->pdev);
 		psb_irq_preinstall(dev);
 		psb_irq_postinstall(dev);
 		pm_runtime_get(&dev->pdev->dev);



^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH] staging, gma500: Fix warning in power.c
  2011-12-22 18:46 [PATCH] staging, gma500: Fix warning in power.c Rakib Mullick
@ 2011-12-28 14:04 ` Alan Cox
  2011-12-29  5:31   ` Rakib Mullick
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Cox @ 2011-12-28 14:04 UTC (permalink / raw)
  To: Rakib Mullick; +Cc: linux-kernel, Greg Kroah-Hartman, akpm

On Fri, 23 Dec 2011 00:46:45 +0600
Rakib Mullick <rakib.mullick@gmail.com> wrote:

>  gma_resume_display() wants 'struct pci_dev *' as it's parameter, so
> lets pass dev->pdev instead of dev. Fixes the following warning.
> 
> drivers/staging/gma500/power.c: In function ‘gma_power_begin’:
> drivers/staging/gma500/power.c:269:3: warning: passing argument 1 of
> ‘gma_resume_display’ from incompatible pointer type
> drivers/staging/gma500/power.c:99:13: note: expected ‘struct pci_dev
> *’ but argument is of type ‘struct drm_device *’ 

This staging driver is now dead and replaced with
drivers/gpu/drm/gma500/. Thanks for the fix however

Alan

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] staging, gma500: Fix warning in power.c
  2011-12-28 14:04 ` Alan Cox
@ 2011-12-29  5:31   ` Rakib Mullick
  2011-12-29  5:42     ` Rakib Mullick
  0 siblings, 1 reply; 5+ messages in thread
From: Rakib Mullick @ 2011-12-29  5:31 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel, Greg Kroah-Hartman, akpm

On Wed, Dec 28, 2011 at 8:04 PM, Alan Cox <alan@linux.intel.com> wrote:
> On Fri, 23 Dec 2011 00:46:45 +0600
> Rakib Mullick <rakib.mullick@gmail.com> wrote:
>
>>  gma_resume_display() wants 'struct pci_dev *' as it's parameter, so
>> lets pass dev->pdev instead of dev. Fixes the following warning.
>>
>> drivers/staging/gma500/power.c: In function ‘gma_power_begin’:
>> drivers/staging/gma500/power.c:269:3: warning: passing argument 1 of
>> ‘gma_resume_display’ from incompatible pointer type
>> drivers/staging/gma500/power.c:99:13: note: expected ‘struct pci_dev
>> *’ but argument is of type ‘struct drm_device *’
>
> This staging driver is now dead and replaced with
> drivers/gpu/drm/gma500/. Thanks for the fix however
>
The patch was prepared against 3.2-rc6 and at the time of preparing
the patch that was the latest rc release.

Thanks,
Rakib

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] staging, gma500: Fix warning in power.c
  2011-12-29  5:31   ` Rakib Mullick
@ 2011-12-29  5:42     ` Rakib Mullick
  2011-12-29 12:25       ` Alan Cox
  0 siblings, 1 reply; 5+ messages in thread
From: Rakib Mullick @ 2011-12-29  5:42 UTC (permalink / raw)
  To: Alan Cox; +Cc: linux-kernel, Greg Kroah-Hartman, akpm

On Thu, Dec 29, 2011 at 11:31 AM, Rakib Mullick <rakib.mullick@gmail.com> wrote:
> On Wed, Dec 28, 2011 at 8:04 PM, Alan Cox <alan@linux.intel.com> wrote:
>> On Fri, 23 Dec 2011 00:46:45 +0600
>> Rakib Mullick <rakib.mullick@gmail.com> wrote:
>>
>>>  gma_resume_display() wants 'struct pci_dev *' as it's parameter, so
>>> lets pass dev->pdev instead of dev. Fixes the following warning.
>>>
>>> drivers/staging/gma500/power.c: In function ‘gma_power_begin’:
>>> drivers/staging/gma500/power.c:269:3: warning: passing argument 1 of
>>> ‘gma_resume_display’ from incompatible pointer type
>>> drivers/staging/gma500/power.c:99:13: note: expected ‘struct pci_dev
>>> *’ but argument is of type ‘struct drm_device *’
>>
>> This staging driver is now dead and replaced with
>> drivers/gpu/drm/gma500/. Thanks for the fix however
>>
> The patch was prepared against 3.2-rc6 and at the time of preparing
> the patch that was the latest rc release.
>
Do I have to resend the patch, prepared against -rc7? Patch is on it's
way towards mainline through linux-next (Greg took it in his tree
previously). It might conflict during merging, not sure. If requires I
can send it again.

Thanks,
Rakib

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH] staging, gma500: Fix warning in power.c
  2011-12-29  5:42     ` Rakib Mullick
@ 2011-12-29 12:25       ` Alan Cox
  0 siblings, 0 replies; 5+ messages in thread
From: Alan Cox @ 2011-12-29 12:25 UTC (permalink / raw)
  To: Rakib Mullick; +Cc: linux-kernel, Greg Kroah-Hartman, akpm

> Do I have to resend the patch, prepared against -rc7? Patch is on it's
> way towards mainline through linux-next (Greg took it in his tree
> previously). It might conflict during merging, not sure. If requires I
> can send it again.

What I meant was that the old driver is marked BROKEN for -next (ie
won't be built), and in fact I sent GregKH a request to delete it.

The driver in updated form has moved to drivers/gpu/drm/gma500 in the
-next tree.

Alan

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-12-29 12:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-22 18:46 [PATCH] staging, gma500: Fix warning in power.c Rakib Mullick
2011-12-28 14:04 ` Alan Cox
2011-12-29  5:31   ` Rakib Mullick
2011-12-29  5:42     ` Rakib Mullick
2011-12-29 12:25       ` Alan Cox

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.