Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp1912476rdb; Sun, 11 Feb 2024 03:14:50 -0800 (PST) X-Google-Smtp-Source: AGHT+IEjpTnU9rzACL79baDQFutj04zUJ2vUQpofKB0zayXPy5JGejg9x8VQodIyCHmJS5X0kuxQ X-Received: by 2002:a17:902:da92:b0:1da:2a0d:feaa with SMTP id j18-20020a170902da9200b001da2a0dfeaamr1704603plx.32.1707650090284; Sun, 11 Feb 2024 03:14:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707650090; cv=pass; d=google.com; s=arc-20160816; b=jkVqI7A43QOMrvMZiFcYKBHsm0FBJpTam5bMzIN/tUD20IV5SRbl7hElMFFsPZttid 3XYmNPEWB/wEVC7VLGlEnVo1wY9/xWY/u8ku/K/g4UEsDu2DTXhXL1CHo+pKeECgEPnQ ZWP/xRxn416KowyHiA/IoGI/jySVwP+pWKSGsUMKVnqJFV01UPjH9jlyOsM5hPz4qveh bNlB3THJaxKVN4+zk1Azv6gmZRwLCe4qh7VfN98Zft1A/WLisOXC4q2yswWsT3rVO94s bdiEhc6Y0ZHPnqiDIlxB04mF+47ezGZX0UV9jLB+tKkwtVLCxXMjLqTd3hCQc3Zko1Yl I/Ww== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=/NK2rkSevT7xLFFZVOCMtCYxdFNbLxRJj3xSbCjTgr4=; fh=jaJy67pzuXfYjcnpfb1szXPVjQtM2y2Rk6ctk7mlbRI=; b=kDONcZs1v2wfKoN+isGDVqDI1ZbrccJhCpwHd8/DOraxoWN0QxpBtw5oxEJR52rRL5 yP79vK6NPDi/RnaG1smttz7WoTgv6gS69bcuihyDXKLv/p3dvy2lD7sFj3rkMVuDQ3HW hNsi3EIknc0yTM+tK+HzggIFrzxiSgy+VL9A5ehKVgEChEKEtkRz3WZRqJvxtfW6OhAm bpAzHwrUxE1AvNHwU5XPfOEBTCr7QBjZUdqVRGqGSvYwSL3xkvVYeqUlWp2VLtTxRpwH Sv5ldpEdbIp23ZKYVguHij+6T0/3b/L3KUg1Woar22VypE/BrNDLwyOs9wFBnDmtxc35 aTbA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=1wt.eu); spf=pass (google.com: domain of linux-kernel+bounces-60710-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60710-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCWS6y+Qgu9OHtqBnyYMwXKnkN+qMqiNDQiM7SA8j5Sq00HGBmD8kwsSTUfay4znS0ARR6d+YrgFCxdrkmdX4URpvyIuvO/UFlPQPBMlsg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id z8-20020a1709028f8800b001d7192fb733si4575155plo.227.2024.02.11.03.14.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 11 Feb 2024 03:14:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-60710-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=1wt.eu); spf=pass (google.com: domain of linux-kernel+bounces-60710-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-60710-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id EC0D5282698 for ; Sun, 11 Feb 2024 11:14:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F1E7D5A4D1; Sun, 11 Feb 2024 11:14:42 +0000 (UTC) Received: from 1wt.eu (ded1.1wt.eu [163.172.96.212]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 978B22E3E1 for ; Sun, 11 Feb 2024 11:14:40 +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=1707650082; cv=none; b=ilkWGG+UV5DX8Eo5UDX9AFd/U84aembV2tGqeNqtXYPtLtgUwmbjlG0Sj1dqiKgPo3oS/6t2rXHySGeGl36wy5V01kXjFCpoyKW4Ag5xWH4wn9K17Il3Ba5t+QsDrtVb5QFBrXAR+k2yZyldBA3x5nN+4wXLPpzfrTFb2+gzsaw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707650082; c=relaxed/simple; bh=/NK2rkSevT7xLFFZVOCMtCYxdFNbLxRJj3xSbCjTgr4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=t4eGmJiReBaNvQHhVSa7DkC3ZFZmsS50nj6QfsfnwC1RBA+aX5VI/FWlZ6LfQQ2sHe9eYblnlON5LnLZj+QM3WsRMxqKh3w65aYc1WE6X13gz7CK8peKSk3GNVvxkNo4RgBhK+gBjWFs7iPmzHBFtxdmeNHxu32796XEYUN186Q= 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 pcw.home.local (8.15.2/8.15.2/Submit) id 41BBEanQ022162; Sun, 11 Feb 2024 12:14:36 +0100 Date: Sun, 11 Feb 2024 12:14:36 +0100 From: Willy Tarreau To: Rodrigo Campos Cc: Thomas =?iso-8859-1?Q?Wei=DFschuh?= , linux-kernel@vger.kernel.org Subject: Re: [PATCH 3/4] tools/nolibc: Fix strlcpy() return code and size usage Message-ID: <20240211111436.GD19364@1wt.eu> References: <20240129141516.198636-1-rodrigo@sdfg.com.ar> <20240129141516.198636-4-rodrigo@sdfg.com.ar> <20240211110814.GB19364@1wt.eu> 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=us-ascii Content-Disposition: inline In-Reply-To: <20240211110814.GB19364@1wt.eu> User-Agent: Mutt/1.10.1 (2018-07-13) On Sun, Feb 11, 2024 at 12:08:14PM +0100, Willy Tarreau wrote: > And I think we should explicitly mark > strlen() and the few other ones we're marking weak as noinline so that > the compiler perfers a call there to inlining. So actually the weak argument always prevents inlining from happening so this is not needed (I didn't have it in my previous test). Willy