[asterisk-bugs] [DAHDI-linux 0017383]: [patch] usb_buffer_free/alloc renamed in 2.6.34; compat funcs dropped in 2.6.35-rc0

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Jun 8 14:46:15 CDT 2010


The following issue has been RESOLVED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=17383 
====================================================================== 
Reported By:                Chainsaw
Assigned To:                tzafrir
====================================================================== 
Project:                    DAHDI-linux
Issue ID:                   17383
Category:                   dahdi (the module)
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     resolved
JIRA:                        
Reviewboard Link:            
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2010-05-24 11:16 CDT
Last Modified:              2010-06-08 14:46 CDT
====================================================================== 
Summary:                    [patch] usb_buffer_free/alloc renamed in 2.6.34;
compat funcs dropped in 2.6.35-rc0
Description: 
usb_buffer_free/alloc were renamed in 2.6.34:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=073900a28d95c75a706bf40ebf092ea048c7b236

The compatibility wrappers put in place for 2.6.34 were dropped in
2.6.35-rc0:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=e26bcf37234c67624f62d9fc95f922b8dbda1363

As such patching is required so that the new name is used on 2.6.34 and
newer.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0017382 [patch] Failure to include semaphore.h ...
====================================================================== 

---------------------------------------------------------------------- 
 (0123148) svnbot (reporter) - 2010-06-08 14:46
 https://issues.asterisk.org/view.php?id=17383#c123148 
---------------------------------------------------------------------- 
Repository: dahdi
Revision: 8762

U   linux/trunk/drivers/dahdi/xpp/xpp_usb.c

------------------------------------------------------------------------
r8762 | tzafrir | 2010-06-08 14:46:14 -0500 (Tue, 08 Jun 2010) | 11 lines

Use usb_{alloc,free}_coherent instead of usb_buffer_{alloc,free}.

usb_buffer_alloc has been replaced with usb_alloc_coherent , and likewise
usb_buffer_free has been replaced with usb_free_coherent. in kernels
2.6.34
the older names are proxies for the new ones, and in 2.6.35 the older
names are gone.

This patch defines the new names for the old ones, for older kernel
versions.

(closes issue https://issues.asterisk.org/view.php?id=17383)
Reported by: Chainsaw

------------------------------------------------------------------------

http://svn.digium.com/view/dahdi?view=rev&revision=8762 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-06-08 14:46 svnbot         Note Added: 0123148                          
2010-06-08 14:46 svnbot         Status                   assigned => resolved
2010-06-08 14:46 svnbot         Resolution               open => fixed       
======================================================================




More information about the asterisk-bugs mailing list