Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5387221rwb; Tue, 1 Aug 2023 01:26:45 -0700 (PDT) X-Google-Smtp-Source: APBJJlGOcCepOksXE67a0KEPxgPjMKku7h7AxcKQ/qSMlXleFV6V8MKSQIR5KELov0hHHhl2IvSP X-Received: by 2002:a05:620a:1a03:b0:76c:b2d5:5bbe with SMTP id bk3-20020a05620a1a0300b0076cb2d55bbemr6034679qkb.14.1690878404998; Tue, 01 Aug 2023 01:26:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690878404; cv=none; d=google.com; s=arc-20160816; b=q+u92Lsc21mXwp0fsGDQH/yjnOUq+WRN0QKrmR4sZuHJH+njpIoebmAW1yCdwAon6M rFfhS8mabZxmYtewD0uvK36ow3wD1erh5pCDu355sBz/MPJJ6Yf35L+o/lJpsSAmTIFU UL/zfvKmwgChQPCu8KB9DKYvPmsQgOEsFNWhymUmVU6hkqYrFdFXuFqDbAqg6BcOFCLF pF/QcDeeHg8wTe+3/iHNHp2WjXTPfghvEHUpxeLaMiw8n4zx4rjc2V/KZZdUtgqBE6av yozCbMW4NqI9lnp3bFxbOasMUt5BabNn+1RH/OEFYL1yz5OXBpkjl0IyFUQPQca6M7eX zoPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=K31GRlRrPZrhA1j7TCqvQsFRbXiKHkCpYQhNFQH7cX4=; fh=XLgxCw6kQWJd90UaW0QKkMGE292sSoLJai8ThDu4OTQ=; b=S0wHJPeEYXI+wLsSV+jQb9HHYOQP8h50f0AlSqyrEfdGICre84lSX1v8AO3DjdZsTY +mINUY2l9pOdxasEyi0VWjRt+L7bSEmdLSexajU/2BGW7QszbDcljL+NoL2EgKqsejrO sPnlMR0KslWUDEOggv9RZqhFqUYRlryeHIlR33dfpq5r4W1Sq4KLLrjeSTymIaTFgFIl DQfOjZZgMNQv8oYicShhjyLTfhkxJ77Z8XvgDWToXXHSBHAmzGOOOd18wRZq2VowH0gt VegiwlbfhSI47b0h/1HNx+QXwRjFKbpX/y2YVUT7ju65MgvxUWkZ8qEKp0C5nkVC6oA8 4gew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=YLyJZJ8k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ay21-20020a056a00301500b006862e207c34si8824283pfb.66.2023.08.01.01.26.31; Tue, 01 Aug 2023 01:26:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=YLyJZJ8k; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231743AbjHAHeX (ORCPT + 99 others); Tue, 1 Aug 2023 03:34:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45996 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229874AbjHAHeW (ORCPT ); Tue, 1 Aug 2023 03:34:22 -0400 Received: from todd.t-8ch.de (todd.t-8ch.de [IPv6:2a01:4f8:c010:41de::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D7171726; Tue, 1 Aug 2023 00:34:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1690875259; bh=qNGRHKsnBf+CzrhykXYrpIFs3s6raNyDUWsZW5CWNow=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=YLyJZJ8k1oRfvQd2F2WbhPPAW9vDexfyDyYd9i2aMcHbw1VWqzMRQEVc0VkK/nqfU sQU2bwlXxslCCqHQIt3pGKwZlwQlkH8vQ4n3lEvn5lf9BbOPKw1NNA+XbQUtgHzg5e STxXs07pQAXghKHPZ56wWLOGMZf5VNIvxcCx4JLA= Date: Tue, 1 Aug 2023 09:34:18 +0200 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Willy Tarreau Cc: Shuah Khan , linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Yuan Tan , Zhangjin Wu Subject: Re: [PATCH v2 06/10] selftests/nolibc: make functions static if possible Message-ID: References: <20230801-nolibc-warnings-v2-0-1ba5ca57bd9b@weissschuh.net> <20230801-nolibc-warnings-v2-6-1ba5ca57bd9b@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2023-08-01 08:52:19+0200, Willy Tarreau wrote: > On Tue, Aug 01, 2023 at 07:30:13AM +0200, Thomas Weißschuh wrote: > > diff --git a/tools/testing/selftests/nolibc/nolibc-test.c b/tools/testing/selftests/nolibc/nolibc-test.c > > index 1555759bb164..53a3773c7790 100644 > > --- a/tools/testing/selftests/nolibc/nolibc-test.c > > +++ b/tools/testing/selftests/nolibc/nolibc-test.c > [..] > > /* prepare what needs to be prepared for pid 1 (stdio, /dev, /proc, etc) */ > > -int prepare(void) > > +static int prepare(void) > > { > > struct stat stat_buf; > > > > @@ -1208,7 +1208,7 @@ static const struct test test_names[] = { > > { 0 } > > }; > > For these ones it will prevent gcc from putting breakpoints there, which > is counter-productive. Indeed. An alternative would be to add -g to CFLAGS (and remove -s from LDFLAGS). This way we get full debugability including breakpoints for everything. I didn't find the reasoning for -s in LDFLAGS. Thomas