Skip to contentSkip to conversation

slub: don't export static kmem_cache_open

PATCH In review Johannes Berg 3 participants 8 messages Jul 5, 2007 – Jul 7, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 slub: don't export static kmem_cache_open

kmem_cache_open is static so shouldn't be exported.

---
 mm/slub.c |    1 -
 1 file changed, 1 deletion(-)
mm/slub.c +0 -1
@@ -2016,7 +2016,6 @@ error:
 			s->offset, flags);
 	return 0;
 }
-EXPORT_SYMBOL(kmem_cache_open);
 
 /*
  * Check if a given pointer is valid
#2 lore raw
Quoted 7 lines · Christoph Lameter
Quoted 3 lines · Johannes Berg

kmem_cache_open is static so shouldn't be exported.

I already fixed that. Patch is in Andrew's tree.

Oh good. I actually got build problems from that due to a powerpc64 gcc bug so... :)

johannes

#3 lore raw
Quoted 4 lines · Johannes Berg
Quoted 1 line

I already fixed that. Patch is in Andrew's tree.

Oh good. I actually got build problems from that due to a powerpc64 gcc bug so... :)

Well in that case we may have to push the patch into 2.6.22 or stable.

#4 lore raw
Quoted 8 lines · Christoph Lameter
Quoted 4 lines · Johannes Berg
Quoted 1 line

I already fixed that. Patch is in Andrew's tree.

Oh good. I actually got build problems from that due to a powerpc64 gcc bug so... :)

Well in that case we may have to push the patch into 2.6.22 or stable.

Dunno. I had three such errors and have sent patches for all of them, DaveM just accepted one, Paulus hasn't said anything yet and this was the third. Olaf said the GCC PR is http://gcc.gnu.org/PR31490 and it seems to fit.

johannes

#5 lore raw
In reply to Johannes Berg
Quoted 5 lines · Johannes Berg
Quoted 4 lines · Christoph Lameter
Quoted 2 lines · Johannes Berg

kmem_cache_open is static so shouldn't be exported.

Quoted 10 lines
Quoted 3 lines
Quoted 1 line

I already fixed that. Patch is in Andrew's tree.

Oh good. I actually got build problems from that due to a powerpc64 gcc bug so... :)

johannes

this also looks to solve booting issue on a g4 mac mini also

#6 lore raw
Quoted 6 lines · Bret Towe
Quoted 2 lines · Johannes Berg

Oh good. I actually got build problems from that due to a powerpc64 gcc bug so... :)

this also looks to solve booting issue on a g4 mac mini also

Huh? That doesn't really make sense, but who knows what else that gcc problem caused.

johannes

#7 lore raw
Quoted 6 lines · Johannes Berg
Quoted 4 lines · Bret Towe
Quoted 2 lines · Johannes Berg

Oh good. I actually got build problems from that due to a powerpc64 gcc bug so... :)

Quoted 8 lines
Quoted 1 line

this also looks to solve booting issue on a g4 mac mini also

Huh? That doesn't really make sense, but who knows what else that gcc problem caused.

johannes

if you want I can revert the patch and make sure thats what caused it as when i applied this i also updated from cfs v18 to v19 but v18 was working fine before on rc7 i only updated to current -git

way I saw it was
-rc7-cfs-v18 working
-rc7-git-cfs-v18 broken booting with slub -rc7-git-cfs-v19 working with slub with this patch