Message ID | 20230124004707.GA318943@paulmck-ThinkPad-P17-Gen-1 |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:adf:eb09:0:0:0:0:0 with SMTP id s9csp1900680wrn; Mon, 23 Jan 2023 17:06:35 -0800 (PST) X-Google-Smtp-Source: AMrXdXuUsZISlFPkWMz2a/j0z2s7xU/x0xDDje5eCuO1bfaP1pSYj1RW9MhRXjYNs0qvjtgN6CQ8 X-Received: by 2002:a17:902:dac9:b0:189:81a2:d616 with SMTP id q9-20020a170902dac900b0018981a2d616mr37658752plx.16.1674522395574; Mon, 23 Jan 2023 17:06:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674522395; cv=none; d=google.com; s=arc-20160816; b=tAd8ouvIpsOx4ORWSPBDv+XghqWS+OWPT16G7guB45TwmaBF9XozBNZXpjt02VSYNy 63AVonCFZJ8goE86EbMGOzmU4VcoTE6PNPI3EF6WIEnZLh3NlwvmAmK38HMXBQPPEDVg 4CT3xFf5sbl5GitW4iKf8QOaBru0BWUYfY5484h/NJiyc4Jwc48UrWSCT2J2DDsFK73r YniDCt+Bbl75qImANpwN0zUiUwjfzu7bbY9Ksvp96BmHmNxJtRqUB9JXQ51BrgxUzF+Z 6F9pRFsqkoULZ8/Zgx5QfwK+d8FTazJ8zAfD5Pl0yn5nxSHU4kz3yoZcnaR1LH+6550o SekA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:reply-to :message-id:subject:cc:to:from:date:dkim-signature; bh=wWi5XJZ0GbQ4+MxCBYykTXjyZXIzQK3CNWy0+zEt1pY=; b=V74TVDlIXPBdR8U+0Ntvb9y34SPJ6kBSRbBA4KXLOoAarY6dAeWbpjeykkpesNCvmB tkKn2CUDU6yZiIlkdrAb/Xa6BiALrUf3c9zIAQHI7v45dAsA1AK58JkJAGso4eLRaRDy CjydfOUmsK0YCnkYS+OtEhONrbPUoveR1qUB2y7+zeIG2bAkQBcyknhACgMJHfpWgKwG kqiwHxZUfZlxNgq3LVmbr2FpmZPvUiC4DS4/pFeEf2cWe35cRej4fL4uQ1+y6nCLqmb7 nv0TzRNx+COl9sRt0ISHgJGauMO/Deipq4ESwf1KwKz5QTI+D0p7TkS4Kkg+kWpYbT8L FgSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=oCBLZWsR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p8-20020a170902e74800b00195f50cb90dsi1040675plf.265.2023.01.23.17.06.14; Mon, 23 Jan 2023 17:06:35 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=oCBLZWsR; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231923AbjAXArM (ORCPT <rfc822;rust.linux@gmail.com> + 99 others); Mon, 23 Jan 2023 19:47:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60966 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229589AbjAXArL (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 23 Jan 2023 19:47:11 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ED02B2ED4C for <linux-kernel@vger.kernel.org>; Mon, 23 Jan 2023 16:47:10 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 9B0C9B80E99 for <linux-kernel@vger.kernel.org>; Tue, 24 Jan 2023 00:47:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 281E8C433D2; Tue, 24 Jan 2023 00:47:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674521228; bh=TwEEJ6BKO130ehEx2hhnhostX+GgOKcWcy+KnFJIDCM=; h=Date:From:To:Cc:Subject:Reply-To:From; b=oCBLZWsRy2ErOMcMdyGkMrML347nAThHkajjVfFEEsIg2VoTBnUKb8950Y75NC4yB pbcBECVq1wCng1cnGJX2P6O3iLh82+EMHk46ZTz09tkAY0Qa7bUvNNCXH92gg7C79K sE5Hsh4DOo5kl1tk7ztCS8ZiBvXeuRnpQudNmlx1sq90EZisu6J+stk9GjexplgMlG 2Z3n7j7YwrZOL55sAt8otPL7hizWVjwai0VOKFcFw3cjGKEQftBulNVNMYAXg0zt+O w+sdXWrK4VGPvfo1WJ3C15YIfdiTutGUZeJdp0QWPgHQgu41AFQClyf8rOHXqp463J l4iHUo1gk3BqQ== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id BC7295C0865; Mon, 23 Jan 2023 16:47:07 -0800 (PST) Date: Mon, 23 Jan 2023 16:47:07 -0800 From: "Paul E. McKenney" <paulmck@kernel.org> To: linux-kernel@vger.kernel.org Cc: w@1wt.eu, ammarfaizi2@gnuweeb.org, svens@linux.ibm.com Subject: [PATCH RFC] tools/nolibc: Add gitignore to avoid git complaints about sysroot Message-ID: <20230124004707.GA318943@paulmck-ThinkPad-P17-Gen-1> Reply-To: paulmck@kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1755863995095048495?= X-GMAIL-MSGID: =?utf-8?q?1755863995095048495?= |
Series |
[RFC] tools/nolibc: Add gitignore to avoid git complaints about sysroot
|
|
Commit Message
Paul E. McKenney
Jan. 24, 2023, 12:47 a.m. UTC
Testing of nolibc can produce a tools/include/nolibc/sysroot file, which
is not known to git. Because it is automatically generated, there is no
reason for it to be known to git. Therefore, add a .gitignore to remove
it from git's field of view.
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Cc: Willy Tarreau <w@1wt.eu>
Cc: Ammar Faizi <ammarfaizi2@gnuweeb.org>
Cc: Sven Schnelle <svens@linux.ibm.com>
Comments
On Mon, Jan 23, 2023 at 04:47:07PM -0800, Paul E. McKenney wrote: > Testing of nolibc can produce a tools/include/nolibc/sysroot file, which > is not known to git. Because it is automatically generated, there is no > reason for it to be known to git. Therefore, add a .gitignore to remove > it from git's field of view. Yeah, I hit the same "git status" complaint and have a pending patch for that too: https://github.com/ammarfaizi2/linux-block/commit/89bfe86a03c173863de12.patch ^ I'll drop this one. > Signed-off-by: Paul E. McKenney <paulmck@kernel.org> > Cc: Willy Tarreau <w@1wt.eu> > Cc: Ammar Faizi <ammarfaizi2@gnuweeb.org> > Cc: Sven Schnelle <svens@linux.ibm.com> > > diff --git a/tools/include/nolibc/.gitignore b/tools/include/nolibc/.gitignore > new file mode 100644 > index 0000000000000..dea22eaaed2ba > --- /dev/null > +++ b/tools/include/nolibc/.gitignore > @@ -0,0 +1 @@ > +sysroot Small nit about the naming, not so much important, but the common pattern for directory has a trailing slash. So, I would write "sysroot/". ".gitignore" and "tools/testing/selftests/.gitignore" do that too :-) Reviewed-by: Ammar Faizi <ammarfaizi2@gnuweeb.org> Thanks!
On Tue, Jan 24, 2023 at 08:06:00AM +0700, Ammar Faizi wrote: > On Mon, Jan 23, 2023 at 04:47:07PM -0800, Paul E. McKenney wrote: > > Testing of nolibc can produce a tools/include/nolibc/sysroot file, which > > is not known to git. Because it is automatically generated, there is no > > reason for it to be known to git. Therefore, add a .gitignore to remove > > it from git's field of view. > > Yeah, I hit the same "git status" complaint and have a pending patch > for that too: > > https://github.com/ammarfaizi2/linux-block/commit/89bfe86a03c173863de12.patch > > ^ I'll drop this one. Actually, why don't we take yours? Either way, I have to change something per your feedback below. No hurry, send it along when you normally would have. Thanx, Paul > > Signed-off-by: Paul E. McKenney <paulmck@kernel.org> > > Cc: Willy Tarreau <w@1wt.eu> > > Cc: Ammar Faizi <ammarfaizi2@gnuweeb.org> > > Cc: Sven Schnelle <svens@linux.ibm.com> > > > > diff --git a/tools/include/nolibc/.gitignore b/tools/include/nolibc/.gitignore > > new file mode 100644 > > index 0000000000000..dea22eaaed2ba > > --- /dev/null > > +++ b/tools/include/nolibc/.gitignore > > @@ -0,0 +1 @@ > > +sysroot > > Small nit about the naming, not so much important, but the common > pattern for directory has a trailing slash. So, I would write > "sysroot/". > > ".gitignore" and "tools/testing/selftests/.gitignore" do that too :-) > > Reviewed-by: Ammar Faizi <ammarfaizi2@gnuweeb.org> > > Thanks! > > -- > Ammar Faizi >
On Mon, Jan 23, 2023 at 05:12:57PM -0800, Paul E. McKenney wrote: > On Tue, Jan 24, 2023 at 08:06:00AM +0700, Ammar Faizi wrote: > > On Mon, Jan 23, 2023 at 04:47:07PM -0800, Paul E. McKenney wrote: > > > Testing of nolibc can produce a tools/include/nolibc/sysroot file, which > > > is not known to git. Because it is automatically generated, there is no > > > reason for it to be known to git. Therefore, add a .gitignore to remove > > > it from git's field of view. > > > > Yeah, I hit the same "git status" complaint and have a pending patch > > for that too: > > > > https://github.com/ammarfaizi2/linux-block/commit/89bfe86a03c173863de12.patch > > > > ^ I'll drop this one. > > Actually, why don't we take yours? Either way, I have to change something > per your feedback below. > > No hurry, send it along when you normally would have. OK, I'll keep it then. Will send it together with my other patches later :-) Thanks.
On Tue, Jan 24, 2023 at 08:17:01AM +0700, Ammar Faizi wrote: > On Mon, Jan 23, 2023 at 05:12:57PM -0800, Paul E. McKenney wrote: > > On Tue, Jan 24, 2023 at 08:06:00AM +0700, Ammar Faizi wrote: > > > On Mon, Jan 23, 2023 at 04:47:07PM -0800, Paul E. McKenney wrote: > > > > Testing of nolibc can produce a tools/include/nolibc/sysroot file, which > > > > is not known to git. Because it is automatically generated, there is no > > > > reason for it to be known to git. Therefore, add a .gitignore to remove > > > > it from git's field of view. > > > > > > Yeah, I hit the same "git status" complaint and have a pending patch > > > for that too: > > > > > > https://github.com/ammarfaizi2/linux-block/commit/89bfe86a03c173863de12.patch > > > > > > ^ I'll drop this one. > > > > Actually, why don't we take yours? Either way, I have to change something > > per your feedback below. > > > > No hurry, send it along when you normally would have. > > OK, I'll keep it then. Will send it together with my other patches later :-) Sorry, I didn't notice it previously. Ack from me for either of your patches of course. Ammar, please note that Paul's subject is a bit more descriptive, so please consider updating when you resend. Thanks! Willy
diff --git a/tools/include/nolibc/.gitignore b/tools/include/nolibc/.gitignore new file mode 100644 index 0000000000000..dea22eaaed2ba --- /dev/null +++ b/tools/include/nolibc/.gitignore @@ -0,0 +1 @@ +sysroot