[asterisk-bugs] [Zaptel 0012945]: passing argument 3 of ‘pci_free_consistent’ discards qualifiers from pointer target type

noreply at bugs.digium.com noreply at bugs.digium.com
Tue Jul 1 13:17:16 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12945 
====================================================================== 
Reported By:                tzafrir
Assigned To:                
====================================================================== 
Project:                    Zaptel
Issue ID:                   12945
Category:                   General
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Zaptel Version:              SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 4473 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             06-28-2008 18:44 CDT
Last Modified:              07-01-2008 13:17 CDT
====================================================================== 
Summary:                    passing argument 3 of ‘pci_free_consistent’
discards qualifiers from pointer target type
Description: 
When I build on my Debian Testing (Lenny) system with the test_git_kernel
script I get the above warning from most of the drivers of PCI cards:

  passing argument 3 of ‘pci_free_consistent’ discards qualifiers from
pointer target type

I'm not sure what exactly it means (the "volatile" quilifier cannot be
discarded?) . Anyway, it generates much noise in the build logs, that will
probably serve to hide other warnings.

When I build vs. kernel 2.6.24-1-amd64 of the Debian package I get no such
warnings (with the same zaptel build tree, same gcc and basically the same
.config file for the kernel)
====================================================================== 

---------------------------------------------------------------------- 
 kpfleming - 07-01-08 13:17  
---------------------------------------------------------------------- 
This is not the fault of Zaptel at all. We are passing a 'volatile void *'
to the pci_free_consistent() API call, and the compiler generates a
spurious warning. Either the compiler needs to be fixed to understand that
'volatile' (unlike 'const') is a non-issue, or the kernel header that
define this API call need to add 'volatile' to the attributes of this
function argument. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
07-01-08 13:17  kpfleming      Note Added: 0089543                          
======================================================================




More information about the asterisk-bugs mailing list