]> git.ipfire.org Git - thirdparty/mdadm.git/commit
uuid.c: split uuid stuffs from util.c
authorGuoqing Jiang <guoqing.jiang@cloud.ionos.com>
Mon, 18 May 2020 21:53:35 +0000 (23:53 +0200)
committerJes Sorensen <jsorensen@fb.com>
Tue, 19 May 2020 00:10:39 +0000 (20:10 -0400)
commitf4c8a605d2467c0ed25fcba5d27dd56540660e55
treee0c053b25bebb96494f88128130729efadfd918e
parent03ab9763f51ddf2030f60f83e76cf9c1b50b726c
uuid.c: split uuid stuffs from util.c

Currently, 'make raid6check' is build broken since commit b06815989
("mdadm: load default sysfs attributes after assemblation").

/usr/bin/ld: sysfs.o: in function `sysfsline':
sysfs.c:(.text+0x2707): undefined reference to `parse_uuid'
/usr/bin/ld: sysfs.c:(.text+0x271a): undefined reference to `uuid_zero'
/usr/bin/ld: sysfs.c:(.text+0x2721): undefined reference to `uuid_zero'

Apparently, the compile of mdadm or raid6check are coupled with uuid
functions inside util.c. However, we can't just add util.o to CHECK_OBJS
which raid6check is needed, because it caused other worse problems.

So, let's introduce a uuid.c file which is indenpended file to fix the
problem, all the contents are splitted from util.c.

Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com>
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
Makefile
util.c
uuid.c [new file with mode: 0644]