From: Jes Sorensen Subject: Re: [PATCH V3 1/2] uuid.c: split uuid stuffs from util.c Date: Mon, 18 May 2020 20:11:50 -0400 Message-ID: References: <20200518215336.29000-1-guoqing.jiang@cloud.ionos.com> <20200518215336.29000-2-guoqing.jiang@cloud.ionos.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20200518215336.29000-2-guoqing.jiang@cloud.ionos.com> Content-Language: en-US Sender: linux-raid-owner@vger.kernel.org To: Guoqing Jiang Cc: linux-raid@vger.kernel.org List-Id: linux-raid.ids On 5/18/20 5:53 PM, Guoqing Jiang wrote: > 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 > --- > Makefile | 6 +-- > util.c | 87 ------------------------------------------ > uuid.c | 112 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 3 files changed, 115 insertions(+), 90 deletions(-) > create mode 100644 uuid.c Applied! Thanks, Jes