Bug 9956

Summary: slub.c compilation warning on kernel-2.6.24.2
Product: Memory Management Reporter: BedOS_Gui (rufus-azrael)
Component: Slab AllocatorAssignee: johfel
Status: CLOSED PATCH_ALREADY_AVAILABLE    
Severity: normal    
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 2.6.24.2 Subsystem:
Regression: --- Bisected commit-id:
Attachments: .config

Description BedOS_Gui 2008-02-13 09:17:08 UTC
Latest working kernel version:
Earliest failing kernel version:
Distribution: Gentoo ~amd64
Hardware Environment: amd64 X2
Software Environment: gcc-4.2.2
Problem Description:
When compiling the 2.6.24.2 kernel this warning occurs for slub.c (related to kfree function) :

mm/slub.c: In function ‘kfree’:

mm/slub.c:2604: attention : passing argument 3 of ‘slab_free’ discards qualifiers from pointer target type


Steps to reproduce:
Comment 1 BedOS_Gui 2008-02-13 09:18:11 UTC
Created attachment 14796 [details]
.config
Comment 2 Anonymous Emailer 2008-02-13 11:36:45 UTC
Reply-To: akpm@linux-foundation.org

On Wed, 13 Feb 2008 09:17:08 -0800 (PST)
bugme-daemon@bugzilla.kernel.org wrote:

> http://bugzilla.kernel.org/show_bug.cgi?id=9956
> 
>            Summary: slub.c compilation warning on kernel-2.6.24.2
>            Product: Memory Management
>            Version: 2.5
>      KernelVersion: 2.6.24.2
>           Platform: All
>         OS/Version: Linux
>               Tree: Mainline
>             Status: NEW
>           Severity: normal
>           Priority: P1
>          Component: Slab Allocator
>         AssignedTo: akpm@osdl.org
>         ReportedBy: rufus-azrael@orange.fr
> 
> 
> Latest working kernel version:
> Earliest failing kernel version:
> Distribution: Gentoo ~amd64
> Hardware Environment: amd64 X2
> Software Environment: gcc-4.2.2
> Problem Description:
> When compiling the 2.6.24.2 kernel this warning occurs for slub.c (related to
> kfree function) :
> 
> ___mm/slub.c: In function ___kfree___:
> 
> mm/slub.c:2604: attention : passing argument 3 of ___slab_free___ discards
> qualifiers from pointer target type
> 
> 
> Steps to reproduce:
> 

Could you please send the patch vie emailed reply-to-all to this email,
rather than putting it into bugzilla?

Thanks.
Comment 3 Christoph Lameter 2008-02-13 12:27:28 UTC
On Wed, 13 Feb 2008, Andrew Morton wrote:

> > ___mm/slub.c: In function ___kfree___:
> > 
> > mm/slub.c:2604: attention : passing argument 3 of ___slab_free___ discards
> > qualifiers from pointer target type
> > 
> > 
> > Steps to reproduce:
> > 
> 
> Could you please send the patch vie emailed reply-to-all to this email,
> rather than putting it into bugzilla?

This is a gcc 4.2 warning.

Commit 5bb983b0cce9b7b281af15730f7019116dd42568 fixes this.
Comment 4 BedOS_Gui 2008-02-13 14:01:32 UTC
kernel-2.6.25-rc1-git 2 has no such warning on build.