* Fix section conflict of ext4_ext_{find_goal,invalidate_cache}
@ 2007-05-15 17:15 Martin Michlmayr
2007-05-15 18:09 ` Badari Pulavarty
0 siblings, 1 reply; 6+ messages in thread
From: Martin Michlmayr @ 2007-05-15 17:15 UTC (permalink / raw)
To: linux-ext4
Building with GCC 4.2, I get the following error:
CC [M] fs/ext4/extents.o
fs/ext4/extents.c:2166: error: __ksymtab_ext4_ext_find_goal causes a section type conflict
fs/ext4/extents.c:2163: error: __ksymtab_ext4_ext_invalidate_cache causes a section type conflict
This is because ext4_ext_find_goal and ext4_ext_invalidate_cache are
declared static but also exported.
Signed-off-by: Martin Michlmayr <tbm@cyrius.com>
--- a/fs/ext4/extents.c
+++ b/fs/ext4/extents.c
@@ -172,7 +172,7 @@ static int ext4_ext_dirty(handle_t *handle, struct inode *inode,
return err;
}
-static ext4_fsblk_t ext4_ext_find_goal(struct inode *inode,
+ext4_fsblk_t ext4_ext_find_goal(struct inode *inode,
struct ext4_ext_path *path,
ext4_fsblk_t block)
{
--- a/include/linux/ext4_fs_extents.h
+++ b/include/linux/ext4_fs_extents.h
@@ -182,7 +182,7 @@ static inline void ext4_ext_tree_changed(struct inode *inode)
EXT4_I(inode)->i_ext_generation++;
}
-static inline void
+inline void
ext4_ext_invalidate_cache(struct inode *inode)
{
EXT4_I(inode)->i_cached_extent.ec_type = EXT4_EXT_CACHE_NO;
--
Martin Michlmayr
http://www.cyrius.com/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Fix section conflict of ext4_ext_{find_goal,invalidate_cache}
2007-05-15 17:15 Fix section conflict of ext4_ext_{find_goal,invalidate_cache} Martin Michlmayr
@ 2007-05-15 18:09 ` Badari Pulavarty
2007-05-15 18:59 ` Mingming Cao
0 siblings, 1 reply; 6+ messages in thread
From: Badari Pulavarty @ 2007-05-15 18:09 UTC (permalink / raw)
To: Martin Michlmayr; +Cc: ext4, mcao
On Tue, 2007-05-15 at 19:15 +0200, Martin Michlmayr wrote:
> Building with GCC 4.2, I get the following error:
>
> CC [M] fs/ext4/extents.o
> fs/ext4/extents.c:2166: error: __ksymtab_ext4_ext_find_goal causes a section type conflict
> fs/ext4/extents.c:2163: error: __ksymtab_ext4_ext_invalidate_cache causes a section type conflict
>
> This is because ext4_ext_find_goal and ext4_ext_invalidate_cache are
> declared static but also exported.
Hmm.. Why are these exported ?
Looking at the code
EXPORT_SYMBOL(ext4_ext_invalidate_cache);
EXPORT_SYMBOL(ext4_ext_insert_extent);
EXPORT_SYMBOL(ext4_ext_walk_space);
EXPORT_SYMBOL(ext4_ext_find_goal);
EXPORT_SYMBOL(ext4_ext_calc_credits_for_insert);
Mingming ? Why are we exporting these ?
Thanks,
Badari
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Fix section conflict of ext4_ext_{find_goal,invalidate_cache}
2007-05-15 18:09 ` Badari Pulavarty
@ 2007-05-15 18:59 ` Mingming Cao
2007-05-15 19:06 ` Alex Tomas
2007-05-15 19:08 ` Alex Tomas
0 siblings, 2 replies; 6+ messages in thread
From: Mingming Cao @ 2007-05-15 18:59 UTC (permalink / raw)
To: Badari Pulavarty, Alex Tomas; +Cc: Martin Michlmayr, ext4
On Tue, 2007-05-15 at 11:09 -0700, Badari Pulavarty wrote:
> On Tue, 2007-05-15 at 19:15 +0200, Martin Michlmayr wrote:
> > Building with GCC 4.2, I get the following error:
> >
> > CC [M] fs/ext4/extents.o
> > fs/ext4/extents.c:2166: error: __ksymtab_ext4_ext_find_goal causes a section type conflict
> > fs/ext4/extents.c:2163: error: __ksymtab_ext4_ext_invalidate_cache causes a section type conflict
> >
> > This is because ext4_ext_find_goal and ext4_ext_invalidate_cache are
> > declared static but also exported.
>
> Hmm.. Why are these exported ?
> Looking at the code
>
>
> EXPORT_SYMBOL(ext4_ext_invalidate_cache);
> EXPORT_SYMBOL(ext4_ext_insert_extent);
> EXPORT_SYMBOL(ext4_ext_walk_space);
> EXPORT_SYMBOL(ext4_ext_find_goal);
> EXPORT_SYMBOL(ext4_ext_calc_credits_for_insert);
>
there is one more
EXPORT_SYMBOL(ext4_mark_inode_dirty);
And with fallocate() patch,
EXPORT_SYMBOL(ext4_fallocate);
> Mingming ? Why are we exporting these ?
>
Don't know. They should all used by ext4 only. Alex, can we remove these
exported symbols?
Mingming
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Fix section conflict of ext4_ext_{find_goal,invalidate_cache}
2007-05-15 18:59 ` Mingming Cao
@ 2007-05-15 19:06 ` Alex Tomas
2007-05-15 19:08 ` Alex Tomas
1 sibling, 0 replies; 6+ messages in thread
From: Alex Tomas @ 2007-05-15 19:06 UTC (permalink / raw)
To: cmm; +Cc: Badari Pulavarty, Martin Michlmayr, ext4
Mingming Cao wrote:
> Don't know. They should all used by ext4 only. Alex, can we remove these
> exported symbols?
yes, I think so.
thanks, Alex
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Fix section conflict of ext4_ext_{find_goal,invalidate_cache}
2007-05-15 18:59 ` Mingming Cao
2007-05-15 19:06 ` Alex Tomas
@ 2007-05-15 19:08 ` Alex Tomas
2007-05-15 20:43 ` [PATCH] Remove unnecessery exported ext4 symbols Mingming Cao
1 sibling, 1 reply; 6+ messages in thread
From: Alex Tomas @ 2007-05-15 19:08 UTC (permalink / raw)
To: cmm; +Cc: Badari Pulavarty, Martin Michlmayr, ext4
Mingming Cao wrote:
> Don't know. They should all used by ext4 only. Alex, can we remove these
> exported symbols?
yes, I think so.
thanks, Alex
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH] Remove unnecessery exported ext4 symbols
2007-05-15 19:08 ` Alex Tomas
@ 2007-05-15 20:43 ` Mingming Cao
0 siblings, 0 replies; 6+ messages in thread
From: Mingming Cao @ 2007-05-15 20:43 UTC (permalink / raw)
To: Alex Tomas; +Cc: Badari Pulavarty, Martin Michlmayr, ext4
These symbols are used in ext4 only.
Acked-By: Ales Tomas <alex@clusterfs.com>
Signed-Off-By: Mingming Cao <cmm@us.ibm.com>
Index: linux-2.6.21.1/fs/ext4/extents.c
===================================================================
--- linux-2.6.21.1.orig/fs/ext4/extents.c 2007-05-15 11:52:45.000000000 -0700
+++ linux-2.6.21.1/fs/ext4/extents.c 2007-05-15 11:59:13.000000000 -0700
@@ -2550,12 +2550,3 @@
return num;
}
-
-EXPORT_SYMBOL(ext4_mark_inode_dirty);
-EXPORT_SYMBOL(ext4_ext_invalidate_cache);
-EXPORT_SYMBOL(ext4_ext_insert_extent);
-EXPORT_SYMBOL(ext4_ext_walk_space);
-EXPORT_SYMBOL(ext4_ext_find_goal);
-EXPORT_SYMBOL(ext4_ext_calc_credits_for_insert);
-EXPORT_SYMBOL(ext4_fallocate);
-
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2007-05-15 20:43 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-15 17:15 Fix section conflict of ext4_ext_{find_goal,invalidate_cache} Martin Michlmayr
2007-05-15 18:09 ` Badari Pulavarty
2007-05-15 18:59 ` Mingming Cao
2007-05-15 19:06 ` Alex Tomas
2007-05-15 19:08 ` Alex Tomas
2007-05-15 20:43 ` [PATCH] Remove unnecessery exported ext4 symbols Mingming Cao
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).