[PATCH][UBI] remove __exit on functions referenced in '.text' or '.init.text'

Artem Bityutskiy dedekind at infradead.org
Fri Jan 26 08:33:41 EST 2007


On Fri, 2007-01-26 at 12:00 +0100, bene at linutronix.de wrote:
> `ubi_sysfs_vol_close' referenced in section `.text' of drivers/built-in.o:
> defined in discarded section `.exit.text' of
> drivers/built-in.o`ubi_sysfs_vol_close' referenced in section `.text' of
> drivers/built-in.o: defined in discarded section `.exit.text' of
> drivers/built-in.o`ubi_sysfs_vol_close' referenced in section `.text' of
> drivers/built-in.o: defined in discarded section `.exit.text' of
> drivers/built-in.o`ubi_sysfs_close' referenced in section `.text' of
> drivers/built-in.o: defined in discarded section `.exit.text' of
> drivers/built-in.o`ubi_sysfs_close' referenced in section `.init.text' of
> drivers/built-in.o: defined in discarded section `.exit.text' of
> drivers/built-in.o

Hmm...

'ubi_sysfs_vol_close()' has nor __init/__exit prefix so it has to be
in .text.

But it is called from the 'delete_volumes()' function which has __exit
attribute.

So we reference 'ubi_sysfs_vol_close' which is in .text from .exit.text.
But why is this a problem?

-- 
Best regards,
Artem Bityutskiy (Битюцкий Артём)





More information about the linux-mtd mailing list