* tm6000 compilation breakage on linux-next
@ 2010-05-03 16:33 Mauro Carvalho Chehab
2010-05-03 16:48 ` Greg KH
2010-05-03 17:23 ` Randy Dunlap
0 siblings, 2 replies; 4+ messages in thread
From: Mauro Carvalho Chehab @ 2010-05-03 16:33 UTC (permalink / raw)
To: Stephen Rothwell; +Cc: linux-next, greg KH, Randy Dunlap
Hi Stephen,
Randy reported a breakage while compiling drivers/staging/tm6000, due to
this change:
commit 1c1b78bee1a94f98deeb9c24b21c4812e191646c
Author: Greg Kroah-Hartman <gregkh@suse.de>
Date: Thu Apr 29 15:46:07 2010 -0700
USB: remove unused usb_buffer_alloc and usb_buffer_free macros
Now that all callers are converted over, remove the compatibility
functions and all is good.
Cc: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
A fix patch is as simple as:
s/usb_buffer_alloc/usb_alloc_coherent/
s/usb_buffer_free/usb_free_coherent/
The problem is that, if I apply such patch on my tree, it will break compilation
with upstream. So, the better is if you could handle it until the next merge window.
After Greg's merge, I'll apply it on my tree, and submit tm6000 driver to staging.
Would this be ok for you, or do you have a better approach for such
kind of conflicts?
--
Fix compilation breakage with tm6000
Randy Dunlap <randy.dunlap@oracle.com> reported a breakage while compiling
drivers/staging/tm6000, due to this change:
commit 1c1b78bee1a94f98deeb9c24b21c4812e191646c
Author: Greg Kroah-Hartman <gregkh@suse.de>
Date: Thu Apr 29 15:46:07 2010 -0700
USB: remove unused usb_buffer_alloc and usb_buffer_free macros
Now that all callers are converted over, remove the compatibility
functions and all is good.
Cc: Daniel Mack <daniel@caiaq.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
As the function got renamed, the rename should also be applied at
tm6000 on linux-next.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c
index 9554472..da1dc07 100644
--- a/drivers/staging/tm6000/tm6000-video.c
+++ b/drivers/staging/tm6000/tm6000-video.c
@@ -585,7 +585,7 @@ static void tm6000_uninit_isoc(struct tm6000_core *dev)
usb_kill_urb(urb);
usb_unlink_urb(urb);
if (dev->isoc_ctl.transfer_buffer[i]) {
- usb_buffer_free(dev->udev,
+ usb_free_coherent(dev->udev,
urb->transfer_buffer_length,
dev->isoc_ctl.transfer_buffer[i],
urb->transfer_dma);
@@ -672,7 +672,7 @@ static int tm6000_prepare_isoc(struct tm6000_core *dev, unsigned int framesize)
}
dev->isoc_ctl.urb[i] = urb;
- dev->isoc_ctl.transfer_buffer[i] = usb_buffer_alloc(dev->udev,
+ dev->isoc_ctl.transfer_buffer[i] = usb_alloc_coherent(dev->udev,
sb_size, GFP_KERNEL, &urb->transfer_dma);
if (!dev->isoc_ctl.transfer_buffer[i]) {
tm6000_err ("unable to allocate %i bytes for transfer"
Cheers,
Mauro
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: tm6000 compilation breakage on linux-next
2010-05-03 16:33 tm6000 compilation breakage on linux-next Mauro Carvalho Chehab
@ 2010-05-03 16:48 ` Greg KH
2010-05-03 17:01 ` Mauro Carvalho Chehab
2010-05-03 17:23 ` Randy Dunlap
1 sibling, 1 reply; 4+ messages in thread
From: Greg KH @ 2010-05-03 16:48 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: Stephen Rothwell, linux-next, Randy Dunlap
On Mon, May 03, 2010 at 01:33:40PM -0300, Mauro Carvalho Chehab wrote:
> Hi Stephen,
>
> Randy reported a breakage while compiling drivers/staging/tm6000, due to
> this change:
> commit 1c1b78bee1a94f98deeb9c24b21c4812e191646c
> Author: Greg Kroah-Hartman <gregkh@suse.de>
> Date: Thu Apr 29 15:46:07 2010 -0700
>
> USB: remove unused usb_buffer_alloc and usb_buffer_free macros
>
> Now that all callers are converted over, remove the compatibility
> functions and all is good.
>
> Cc: Daniel Mack <daniel@caiaq.de>
> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
>
> A fix patch is as simple as:
> s/usb_buffer_alloc/usb_alloc_coherent/
> s/usb_buffer_free/usb_free_coherent/
>
> The problem is that, if I apply such patch on my tree, it will break compilation
> with upstream.
Not anymore. Those functions are now in Linus's tree, so you can safely
make the change in your tree now, and all is good :)
thanks,
greg k-h
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: tm6000 compilation breakage on linux-next
2010-05-03 16:48 ` Greg KH
@ 2010-05-03 17:01 ` Mauro Carvalho Chehab
0 siblings, 0 replies; 4+ messages in thread
From: Mauro Carvalho Chehab @ 2010-05-03 17:01 UTC (permalink / raw)
To: Greg KH; +Cc: Stephen Rothwell, linux-next, Randy Dunlap
Greg KH wrote:
> On Mon, May 03, 2010 at 01:33:40PM -0300, Mauro Carvalho Chehab wrote:
>> Hi Stephen,
>>
>> Randy reported a breakage while compiling drivers/staging/tm6000, due to
>> this change:
>> commit 1c1b78bee1a94f98deeb9c24b21c4812e191646c
>> Author: Greg Kroah-Hartman <gregkh@suse.de>
>> Date: Thu Apr 29 15:46:07 2010 -0700
>>
>> USB: remove unused usb_buffer_alloc and usb_buffer_free macros
>>
>> Now that all callers are converted over, remove the compatibility
>> functions and all is good.
>>
>> Cc: Daniel Mack <daniel@caiaq.de>
>> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
>>
>> A fix patch is as simple as:
>> s/usb_buffer_alloc/usb_alloc_coherent/
>> s/usb_buffer_free/usb_free_coherent/
>>
>> The problem is that, if I apply such patch on my tree, it will break compilation
>> with upstream.
>
> Not anymore. Those functions are now in Linus's tree, so you can safely
> make the change in your tree now, and all is good :)
Ah, that makes life easier, thanks!
--
Cheers,
Mauro
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: tm6000 compilation breakage on linux-next
2010-05-03 16:33 tm6000 compilation breakage on linux-next Mauro Carvalho Chehab
2010-05-03 16:48 ` Greg KH
@ 2010-05-03 17:23 ` Randy Dunlap
1 sibling, 0 replies; 4+ messages in thread
From: Randy Dunlap @ 2010-05-03 17:23 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: Stephen Rothwell, linux-next, greg KH
On 05/03/10 09:33, Mauro Carvalho Chehab wrote:
> Hi Stephen,
>
> Randy reported a breakage while compiling drivers/staging/tm6000, due to
> this change:
> commit 1c1b78bee1a94f98deeb9c24b21c4812e191646c
> Author: Greg Kroah-Hartman <gregkh@suse.de>
> Date: Thu Apr 29 15:46:07 2010 -0700
>
> USB: remove unused usb_buffer_alloc and usb_buffer_free macros
>
> Now that all callers are converted over, remove the compatibility
> functions and all is good.
>
> Cc: Daniel Mack <daniel@caiaq.de>
> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
>
> A fix patch is as simple as:
> s/usb_buffer_alloc/usb_alloc_coherent/
> s/usb_buffer_free/usb_free_coherent/
Patch:
Acked-by: Randy Dunlap <randy.dunlap@oracle.com>
Thanks.
--
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2010-05-03 17:23 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-03 16:33 tm6000 compilation breakage on linux-next Mauro Carvalho Chehab
2010-05-03 16:48 ` Greg KH
2010-05-03 17:01 ` Mauro Carvalho Chehab
2010-05-03 17:23 ` Randy Dunlap
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.