[asterisk-bugs] [Zaptel 0010511]: zaptel 1.2.x & 1.4.x: too many arg uments to function 'kmem_cache_create'

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Aug 21 06:08:08 CDT 2007


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=10511 
====================================================================== 
Reported By:                thimm
Assigned To:                tzafrir
====================================================================== 
Project:                    Zaptel
Issue ID:                   10511
Category:                   Astribank (xpp)
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     assigned
Zaptel Version:             1.4.4  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             08-21-2007 05:05 CDT
Last Modified:              08-21-2007 06:08 CDT
====================================================================== 
Summary:                    zaptel 1.2.x & 1.4.x: too many arg
uments to function 'kmem_cache_create'
Description: 
On Fedora 8:
1.4.5:
  CC [M]  /builddir/zaptel-1.4.5/xpp/xbus-core.o
/var/tmp/bach-build/BUILD/zaptel-1.4.5/xpp/xbus-core.c: In function
'xbus_core_init':
/var/tmp/bach-build/BUILD/zaptel-1.4.5/xpp/xbus-core.c:1284: error: too
many arguments to function 'kmem_cache_create'
make[3]: *** [/var/tmp/bach-build/BUILD/zaptel-1.4.5/xpp/xbus-core.o]
Error 1
1.2.20:
Compile xpp (version trunk-r4515)
  CC [M]  /builddir/zaptel-1.2.20/xpp/card_fxo.o
  CC [M]  /builddir/zaptel-1.2.20/xpp/card_fxs.o
  CC [M]  /builddir/zaptel-1.2.20/xpp/xbus-core.o
/builddir/zaptel-1.2.20/xpp/xbus-core.c: In function 'xbus_core_init':
/builddir/zaptel-1.2.20/xpp/xbus-core.c:1284: error: too many arguments to
function 'kmem_cache_create'
make[3]: *** [/builddir/zaptel-1.2.20/xpp/xbus-core.o] Error 1

====================================================================== 

---------------------------------------------------------------------- 
 thimm - 08-21-07 06:08  
---------------------------------------------------------------------- 
What ifdef do you need? Doesn't the following work for a commit?

--- xpp/xbus-core.c~    2007-08-16 23:10:05.000000000 +0200
+++ xpp/xbus-core.c     2007-08-21 13:24:56.000000000 +0200
@@ -1281,7 +1281,11 @@
        xframes_cache = kmem_cache_create("xpp_frames",
                        sizeof(xframe_t) + XFRAME_DATASIZE,
                        0, 0,
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,23)
                        NULL, NULL);
+#else
+                       NULL);
+#endif
        if(!xframes_cache) {
                return -ENOMEM;
        } 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-21-07 06:08  thimm          Note Added: 0069147                          
======================================================================




More information about the asterisk-bugs mailing list