From patchwork Fri Dec 29 03:06:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 183840 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp2357543dyb; Thu, 28 Dec 2023 19:15:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IEko0htSNRRed7byEUHbGgLCvCrxQn2cMNLkulTCi6BGvzxskWLR3LMOHVgb004KqJymGgs X-Received: by 2002:a05:6808:ecc:b0:3b8:b063:6bb1 with SMTP id q12-20020a0568080ecc00b003b8b0636bb1mr12625478oiv.96.1703819701403; Thu, 28 Dec 2023 19:15:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703819701; cv=none; d=google.com; s=arc-20160816; b=UoCZnwvhy45nb3/rhCyJPtkjSeUlaGCY++xx8WY851eELZiiaWv6y35mB9DkAgV6h4 D1JMmlZx7POaGxYPUf7pOQ1jr9CQxbkGsBMEPLuccxBBkQ5OjSoDB6HTKaobuQ1HKmWY 6WktUl+FziHKyuWnx8D/w/IYlgkKQnuVwfHoSnt7ZsCUy1lt9Vk9tRC4gXF/nlEPOvIO xOnSA+zhL5sOnFfzKrnGNVm6IQGcg/awVdUvYgsbV3iLq4uXx3hTStSiTt4YcB78TNPS ltZQKylPdUT5nTpb73hT9nT3yx1dcY/LdzlehZAF4IH9XQrgFN4WFjMrX/O4nMd5Rdq1 0w1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-id:precedence:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=IIzt4t8eJHHk4X4J6CbXERVLfadafJ99wsxF/MUFPhk=; fh=Vu+EfmXrkmbR+ECW1cDNSsmp6UTvrS7KXuWSte3Z7ls=; b=aj+nbPNS+oqRs62qbU0KFjBmu5YlWso1xM6tWI8ESA4S7+ygXNzmFP7GETT3DzYGJa SXa7iZob3fxdfwA0iA/jz7YH+7kxd8bTEVyruVUtq0New0lGVfR/s9CZ1wr6drcJ9cj6 5AOAQ7juTvGljTo2GZhJswLo9nKH4koeHnMQi85MI75VUYEZz+F9Jx7GcbVFWFXJtaCL xV57Z2bHLGibLURxgDPXXWCOHoxq1nml7aXULPO3vU/46aw50OpyQ7XgTZBuHQEON7DX gs3gJWv4sJ1X+eSeZz0cEiuD1YI9HdcqhaHohR/oDqPCPvFiTonLNquYXq11JyzQSDHE E9/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JDFDJgJ3; spf=pass (google.com: domain of linux-kernel+bounces-12920-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12920-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i5-20020a170902c94500b001d43d129c26si9538292pla.629.2023.12.28.19.15.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 19:15:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12920-ouuuleilei=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; dkim=pass header.i=@gmail.com header.s=20230601 header.b=JDFDJgJ3; spf=pass (google.com: domain of linux-kernel+bounces-12920-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12920-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 B01032863F1 for ; Fri, 29 Dec 2023 03:07:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8D45853B6; Fri, 29 Dec 2023 03:07:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="JDFDJgJ3" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DF74823B8 for ; Fri, 29 Dec 2023 03:07:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-555526a060aso2476664a12.1 for ; Thu, 28 Dec 2023 19:07:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703819229; x=1704424029; darn=vger.kernel.org; h=references:in-reply-to:message-id:date:subject:cc:to:from:from:to :cc:subject:date:message-id:reply-to; bh=IIzt4t8eJHHk4X4J6CbXERVLfadafJ99wsxF/MUFPhk=; b=JDFDJgJ3Qdjji7fHsjWoutGYd7D7YhtYutQPs32lfBoD5ey1VkjYh35hZzW1dSl9v9 zWi5Izz/wKL4Td+gC8phN+g/OTKNzniwElGQbQwY8ReamC/0JcnGoYtIw1Sd2hMfwL77 uZ4C0PylZt3gK2HHcn20KrBS2IMfSJJagtIFzKqCJRDOkv6Ea6xI9fuq6xY/TVu0UguQ q4/GRQoXAdmW12ek7U4zDsHkT7AWJXUBUB60dEHQ0EPkIB8MGtYqn/UnPmQWqKXEhZIB R2YdnpfvhC83WW9CZ/ot2Pkyj1+wDUz0A03oyZbbaSs7ucw5xzbx2h1cwIfF3SoYY8tB OmlQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703819229; x=1704424029; h=references:in-reply-to:message-id:date:subject:cc:to:from :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=IIzt4t8eJHHk4X4J6CbXERVLfadafJ99wsxF/MUFPhk=; b=jNzn8J+BUmI348vYCcH4XFV+Vgc/LGUJH09FN3detpGYsuWXMtfldg8bMzi7jFwXAC qKVFpbCDSE8RO0mr/PbpW74RX98e4MtIGa6cdIIREVfnZssXr/mvmBR4CSNEzIVytPeZ kjdIeVYmfrH+Gqq3AVQiYmFfHSrtBqyYmrWjWkZvnT+udE965bE2stuf63HHhEsOI3Yc IyRA90yEet5Mdh2MwtQway5fr0Yk8gcdQLz96f6ss1MmLPe5Nbg8oa1xS6FUg0V/pGf3 CNoGhjUSRWyOOQQBbu0FbyEydlcAdwVofxMpH2VFPIXaUF58UqT1cTPEYoqHVWoDOSa9 Q+1g== X-Gm-Message-State: AOJu0Yzm9vmqKmKDIxv0nGQ16+E86DSLAlarO79ZehOimCgfviCqvHHQ hqSCihQir15yECMkvZ+SABw= X-Received: by 2002:a17:906:d4:b0:a26:d9a9:fff0 with SMTP id 20-20020a17090600d400b00a26d9a9fff0mr3083033eji.81.1703819228899; Thu, 28 Dec 2023 19:07:08 -0800 (PST) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id gh13-20020a1709073c0d00b00a2797a545a3sm106704ejc.193.2023.12.28.19.07.08 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Dec 2023 19:07:08 -0800 (PST) From: Wei Yang To: gregkh@linuxfoundation.org, masahiroy@kernel.org, nicolas@fjasle.eu Cc: linux-kernel@vger.kernel.org, Wei Yang Subject: [PATCH 2/4] scripts/tags.sh: add local annotation Date: Fri, 29 Dec 2023 03:06:52 +0000 Message-Id: <20231229030654.17474-2-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20231229030654.17474-1-richard.weiyang@gmail.com> References: <20231229030654.17474-1-richard.weiyang@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1786584447518644683 X-GMAIL-MSGID: 1786584447518644683 Commit 'f81b1be40c44 tags: include headers before source files' introduce two local variables. Let's add local annotation to make it obvious. Signed-off-by: Wei Yang --- scripts/tags.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/tags.sh b/scripts/tags.sh index fbae1a087ee1..83e3731b5bdf 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -50,7 +50,7 @@ fi find_arch_sources() { for i in $archincludedir; do - prune="$prune ( -path $i ) -prune -o" + local prune="$prune ( -path $i ) -prune -o" done find ${tree}arch/$1 $ignore $prune -name "$2" -not -type l -print; } @@ -58,7 +58,7 @@ find_arch_sources() # find sources in arch/$1/include find_arch_include_sources() { - include=$(find ${tree}arch/$1/ -name include -type d -print); + local include=$(find ${tree}arch/$1/ -name include -type d -print); if [ -n "$include" ]; then archincludedir="$archincludedir $include" find $include $ignore -name "$2" -not -type l -print;