From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 15DC619B3F9; Thu, 25 Jul 2024 17:12:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=163.172.96.212 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721927555; cv=none; b=k7GN9sYFkAASCYhU7Hh7NywtDkL3JL87QQLKsfcU/xS/DDiqsvg6963I8i36JBQS28mOrcUGpAxA5r48WAYfM+wKe6BMSh3ClGDViV2Wd/1TrzNMal0Wen8yu9Njzhou/SctBqWs81SbLLHDWDkJU6zwbSiv7fKUydcXn6Cf+A4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1721927555; c=relaxed/simple; bh=aESILkTTLAhrFt1XHjE6bC3STVKK+u3PnkORDF3L4wk=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZNG6EFbAiY+roJE9xsU0HnbAp/grJM0DdHKrKgIAnqzlOHzKXxIAIMsA1ZAvWMV/5mMFh5rVcuJZ7kqeNDXXkVRMbcml3IJJ9b+Wq5RTC1HEuxsk5L3mAuVrQRIrvmbC09cTq9tOZINjladJZTpAbU8j7sLvM160vEKHsgsMmYQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=1wt.eu; spf=pass smtp.mailfrom=1wt.eu; arc=none smtp.client-ip=163.172.96.212 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=1wt.eu Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=1wt.eu Received: (from willy@localhost) by mail.home.local (8.17.1/8.17.1/Submit) id 46PHBnht030992; Thu, 25 Jul 2024 19:11:49 +0200 Date: Thu, 25 Jul 2024 19:11:49 +0200 From: Willy Tarreau To: Thomas =?iso-8859-1?Q?Wei=DFschuh?= Cc: Ammar Faizi , Alviro Iskandar Setiawan , linux-kernel@vger.kernel.org, stable@vger.kernel.org Subject: Re: [PATCH] tools/nolibc: include arch.h from string.h Message-ID: References: <20240725-arch-has-func-v1-1-5521ed354acd@weissschuh.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20240725-arch-has-func-v1-1-5521ed354acd@weissschuh.net> Hi Thomas, On Thu, Jul 25, 2024 at 06:54:18PM +0200, Thomas Weißschuh wrote: > string.h tests for the macros NOLIBC_ARCH_HAS_$FUNC to use the > architecture-optimized function variants. > However if string.h is included before arch.h header than that check ^^^^ then > does not work, leading to duplicate function definitions. > > Fixes: 553845eebd60 ("tools/nolibc: x86-64: Use `rep movsb` for `memcpy()` and `memmove()`") > Fixes: 12108aa8c1a1 ("tools/nolibc: x86-64: Use `rep stosb` for `memset()`") > Cc: stable@vger.kernel.org > Signed-off-by: Thomas Weißschuh Good catch! Acked-by: Willy Tarreau Thanks, Willy