Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp3556919rwr; Sat, 22 Apr 2023 07:21:02 -0700 (PDT) X-Google-Smtp-Source: AKy350ZJGSoNg6yGXnHH5wyKCyBbAl1FCYIUZoGkJpyBFCv50kZZmiBoljfwV1S6k4vyDOtQlyfn X-Received: by 2002:a05:6a00:1c95:b0:5e4:f141:568b with SMTP id y21-20020a056a001c9500b005e4f141568bmr10021154pfw.3.1682173261875; Sat, 22 Apr 2023 07:21:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682173261; cv=none; d=google.com; s=arc-20160816; b=xkLu97W/sf+J74ujcEtHbjrNwduZJAa/fNiiBS4ds4GLALUm7C/OA9+NosNwqstmt9 JheEQlhWojt8sIgzfLJ3T0dZE05z7SWjthYN/FCjW9S2Qz5H8rpnMqlu8NFKu5B3CdBe 0RwYMJKjEaA8roAgEiZeITbJkNUp+Rh9WbCcu5qU2pFKpZ45eVcLyNy26OUAJzR+/JAV 0ORnRALiC0o1T+mH50VLW3bbWL1o/0O+KHCJOlym34jvDTDwqv5gX0SZwOEgE/6tfHO4 bT+K5OcNaQel5I8Dx/mh0dZQp+1oFZhlCwS2j6eCWSNDsLuItEdI0hlNp3X+bSGLrUZw f7Ww== 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-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=echBn7wOteUGSvtvbbIPzPQfMb+BgnJ2zmTl6mo0nEs=; b=xJVjoaPw5wTIUiHZC6YxMr68aqCVK6RtsYvQ1eksniOxzgoQIoCZI4DQDhxbkHalsh lIl0Cy/VJQFWbDuDBYFe78xPahC9N0HmIazgrldoanBvx9kSFzzbDDOdHmKzR4Zm5i79 BJ5k2moabhdjZe7IfodWfQ3H8QzrJsy1StGqI/jgShyVKGTmETn08kk849R5eu3/ktnh 7M+J2ZfZ3ebWwGw2INr1nXvZezi9IK/Fd2jajVOI/ST20zfrO8QQ0TanS18zJc0VwHJf hFfm5CW3ULqNICUog2w206ddvECzOLBCCkMgJ34nztvw6FEDWdjIbguYOY/MV8Q2GxUF CmpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=yRQs6YJx; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y184-20020a638ac1000000b005139bc2e38dsi7189027pgd.507.2023.04.22.07.20.42; Sat, 22 Apr 2023 07:21:01 -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=@linaro.org header.s=google header.b=yRQs6YJx; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229548AbjDVOMG (ORCPT + 99 others); Sat, 22 Apr 2023 10:12:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229753AbjDVOMF (ORCPT ); Sat, 22 Apr 2023 10:12:05 -0400 Received: from mail-yb1-xb2d.google.com (mail-yb1-xb2d.google.com [IPv6:2607:f8b0:4864:20::b2d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7BD631FFB for ; Sat, 22 Apr 2023 07:12:01 -0700 (PDT) Received: by mail-yb1-xb2d.google.com with SMTP id 3f1490d57ef6-b996127ec71so211228276.0 for ; Sat, 22 Apr 2023 07:12:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1682172720; x=1684764720; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=echBn7wOteUGSvtvbbIPzPQfMb+BgnJ2zmTl6mo0nEs=; b=yRQs6YJx7F7rLwT8JmhecHlL87pLGlDJNq+KV4Ukn0l7ZbNHwioKf1VNq4zReAwN5J v2ULTDkSVEqAXsehky5jGM5E4vIXailIn+ZyVCD9cyNrOxVC+vSmjXRB7o+5ZuxQFCwu WzFaSKgfXYV3mEkDbgvyShv+dol26PcmMS9Fv1NbExzaniy4jhgKQ6C1YvgA2rfzazJd c4wglvPOutYBW+kIVQPXMr2aCGb6LOa17hsbzg88xd/Mkg/ftl4mPh07uvkcoh5LeSGY J8hElC/c6m5cs2+exoF2UpORbYQgx1TDi/7h93RDRKiuJhbAiq7tWLY9KnduVe2y4wQJ bYbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682172720; x=1684764720; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=echBn7wOteUGSvtvbbIPzPQfMb+BgnJ2zmTl6mo0nEs=; b=KnrF5sQXLFdDkmPymcctB7zf1yuh6B3VdGL8DwgtDZwsY3aqBACqAiMZtl9WLPrceL GYsm+RbgRAJir+YvDh80hBicl2h4vKoLwgXezumaT+iBlvfKID+mcWSxQVVrZRpYWfqB dgkFbmkovZ9zKKxboQnGgGaP6w+ZrOkByqTw9hOFIaYDlHUwjQQapLURjcgubIefCWbr F05IHVoNaRYddK+kXj6aOaSLPSva+2JN/zGTiX6u7+UQ6MoDK9vKirYSM564e4UVVbqQ JjyH+Chho5bd6wXRh39FK8ErVI++lGeXAlm1f2mQ/Mvr6mcXqGENBWCDkZ8vh2YdnPm4 ZdGQ== X-Gm-Message-State: AAQBX9fr7TZvcjPp9I4dUPlSqTN+DTpnNSl0xiGohBsV4taTZ56YPIwM d4mYHlC3JqSXywOOv81s/ss38oMr2tTMr7PNBto= X-Received: by 2002:a25:428b:0:b0:b92:5d8d:aa77 with SMTP id p133-20020a25428b000000b00b925d8daa77mr5169680yba.18.1682172720576; Sat, 22 Apr 2023 07:12:00 -0700 (PDT) Received: from fedora (69-109-179-158.lightspeed.dybhfl.sbcglobal.net. [69.109.179.158]) by smtp.gmail.com with ESMTPSA id 144-20020a250496000000b00b8f09a8f4f5sm1639005ybe.46.2023.04.22.07.11.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 22 Apr 2023 07:11:59 -0700 (PDT) Date: Sat, 22 Apr 2023 10:11:57 -0400 From: William Breathitt Gray To: Rong Tao Cc: rongtao@cestc.cn, "open list:COUNTER SUBSYSTEM" , open list Subject: Re: [PATCH] tools/counter: Makefile: Remove useless 'include' when make clean Message-ID: References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="PalkCyC95nRJfXq7" Content-Disposition: inline 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,RCVD_IN_DNSWL_NONE, 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 --PalkCyC95nRJfXq7 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Rong, This is a nitpick, but I think the word "lingering" is better than "useless" for the title. On Fri, Apr 21, 2023 at 07:47:25PM +0800, Rong Tao wrote: > From: Rong Tao >=20 > 'make' create 'include' directory, we should remove it when 'make clean'. There are a few typos here, so I think you mean something like this: 'make' creates the 'include' directory, so we should remove it on 'make clean'. >=20 > Signed-off-by: Rong Tao > --- > tools/counter/Makefile | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/tools/counter/Makefile b/tools/counter/Makefile > index 8843f0fa6119..e2475a1f10d8 100644 > --- a/tools/counter/Makefile > +++ b/tools/counter/Makefile > @@ -39,7 +39,7 @@ $(OUTPUT)counter_example: $(COUNTER_EXAMPLE) > =20 > clean: > rm -f $(ALL_PROGRAMS) > - rm -rf $(OUTPUT)include/linux/counter.h > + rm -rf $(OUTPUT)include The Makefile actually first creates the 'include/linux' directory via the `mkdir -p` command, and then creates a symbolic link for 'include/linux/counter.h'. It would be more appropriate instead to unroll these actions here in the `clean` section: rm -rf $(OUTPUT)include/linux/counter.h rmdir -p $(OUTPUT)include/linux William Breathitt Gray > find $(or $(OUTPUT),.) -name '*.o' -delete -o -name '\.*.d' -delete > =20 > install: $(ALL_PROGRAMS) > --=20 > 2.40.0 >=20 --PalkCyC95nRJfXq7 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQSNN83d4NIlKPjon7a1SFbKvhIjKwUCZEPrLQAKCRC1SFbKvhIj K4NLAQD18cZH+ATS9hLsCTEKGucTk0Xj4b02+6vTP3OlFHqJiwEA9k+3QwJ4ekCK 76nIX3lB+Y2ac+NmiBLPljRfYaTQDgs= =r+mV -----END PGP SIGNATURE----- --PalkCyC95nRJfXq7--