Thread (9 messages) 9 messages, 4 authors, 2012-06-21

Re: [PATCH v3 1/9] string: introduce memweight

From: Akinobu Mita <akinobu.mita@gmail.com>
Date: 2012-06-21 09:07:14
Also in: dm-devel, linux-fsdevel, linux-media, lkml, ocfs2-devel

2012/6/21 Tony Luck [off-list ref]:
On Fri, Jun 8, 2012 at 5:50 PM, Akinobu Mita [off-list ref] wrote:
quoted
 lib/string.c           |   36 ++++++++++++++++++++++++++++++++++++
Is lib/string.c the right place for this?  I get a build error on the
ia64 sim_defconfig:

 LD      arch/ia64/hp/sim/boot/bootloader

It fails because it pulls in lib/lib.a(string.o) to get some
innocuous function like strcpy() ... but it also gets
given memweight() which relies on __bitmap_weight()
which it doesn't have, because it doesn't include lib/built-in.o
(which is where bitmap.o, the definer of __bitmap_weight(), has
been linked).

Moving memweight() to lib/bitmap.c fixes the problem. But it
isn't really clear that it belongs there either.  Perhaps it should
be its own file lib/memweight.c that gets included in lib/lib.a?
I'll fix it by making lib/memweight.c as you suggested.
Thanks for your report and suggestion.
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help