From patchwork Fri Dec 29 03:06:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 183839 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp2357533dyb; Thu, 28 Dec 2023 19:14:58 -0800 (PST) X-Google-Smtp-Source: AGHT+IFmJBohBZK72ewDhJ6ltt1ja+O5B/Ow/nq89GU1o0P8dSvjWf4JgVfoz9kKTFCMIjwnmQsn X-Received: by 2002:a05:6e02:1787:b0:35f:f5b8:6973 with SMTP id y7-20020a056e02178700b0035ff5b86973mr9550403ilu.7.1703819698646; Thu, 28 Dec 2023 19:14:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703819698; cv=none; d=google.com; s=arc-20160816; b=Rc8N+Mmj2SvrsxBDMBW18NA98/tF1mbNEKUKL3dIWJ4YNjXTnGYTdNkJTJB+udERq4 6ShNKEFqU7yO6E/3ZtkhPzBFneAs+sDGTutI9fQwvhptO4XHoiK9/yCKhmAgUw60PcIf ZgywQc7/XsOE7fhlxPaw6L9RwNnIXVVkF+uWeVaodzN/nTp4N+bd0pLsL/TCVBHMd5/V Wlbn7YfaHmlmPEA+Y7chxaUPukOG6cHxDTxpa/qpeQyP7s5VAFGvFM5dS+oqTVagSOTl o2pd9HaIHySg/Wde21gyMd0w2Ewt17woDq50CTaEqEucY77ZXCrqtQHQUoPLyS0hbfF2 /kWQ== 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:message-id:date :subject:cc:to:from:dkim-signature; bh=zIDiXG3+rJvVvjQABxQz0WXDsZkt/2/mbG2+VguXXrs=; fh=cJXu3rTOD15yRoO6NtAC/2uNJGS3T5iwjcD2x+HlDA8=; b=SMyrC2c/dspZtMKklk6QgjmCl4Tp4uxhhIoMA9hxDj/biKIpgGQG4Z/2/boWzHql2x QyWaAcgPa7YVuenfZF958WXOiJxxORuVAT2xF3CHzOHwWLnJN+JD9rnqc3IsTXwO4opv 3+81QB+VYgMFw2XQn9fo3039B4M1kuxFSVy07S0r3jKfbR9nxmVQo+lWZ8aVoFiLylIY ghY5mcYTvPQGBmnts/Wc09fwrJ4jRu5F0MTSfiGdRD+D5CFJiGoBvj+gZ/UhwMrgFjfe hO49jvq7Mscc7Xp/wgd5nGSjbJwaCtLnFCdwyi/BjjgXPVKwMZhHoboA+0FaYZD0EjUT HRoA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=SoYKo1F5; spf=pass (google.com: domain of linux-kernel+bounces-12919-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12919-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 d14-20020a170902aa8e00b001d09e7f1e1esi13441966plr.429.2023.12.28.19.14.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 19:14:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12919-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=SoYKo1F5; spf=pass (google.com: domain of linux-kernel+bounces-12919-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12919-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 9F3DA2861D0 for ; Fri, 29 Dec 2023 03:07:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B064623B3; Fri, 29 Dec 2023 03:07:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="SoYKo1F5" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-ej1-f52.google.com (mail-ej1-f52.google.com [209.85.218.52]) (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 9FE2217C0 for ; Fri, 29 Dec 2023 03:07:02 +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-ej1-f52.google.com with SMTP id a640c23a62f3a-a2358a75b69so1131873666b.1 for ; Thu, 28 Dec 2023 19:07:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703819221; x=1704424021; darn=vger.kernel.org; h=message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zIDiXG3+rJvVvjQABxQz0WXDsZkt/2/mbG2+VguXXrs=; b=SoYKo1F5dK1We2DCH5HiXF+H81yA3/QztVXzIgO0aUetmxREVa01SsK8BVevd869gA AcJS2O7n4Ey6FlajLyA8xuEs5PCTWunVuoIN8ArvRICkkQRYusCDta3UeFTDIY774cay 9CGqfSZuFVMLx1HozURY0HevJGQjnGFD9viO6SLUqkohN3LiJff3c4e4Xme3UdRs2+Fw AoNQbE2DTN+ops8H4L8ihAKfjB5jqxX1YOdAi8pU7MMEl0isgO6WubS9pGIk02cUehrI /3sff+bfrbRYhnrOeSwfBOc76DCbNihvrEkCqN8ftHcM4xzSUfPs7Sm7VgeKgsvHAxxh yzPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703819221; x=1704424021; h=message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zIDiXG3+rJvVvjQABxQz0WXDsZkt/2/mbG2+VguXXrs=; b=jvAiZEgMT5hm6BvlRpl9ThUFOZBdU5BZ2d4AQAEn8PKt2DND44n5J9AO9wvpyH2ZVf 3KckKNkb+OrdQRjvIPgnieI5uTb9zXlk9TIViDHa6ClgctzdIhXnK6u0dCNCL4HF+qaj bhkveWVe17iE25Zub7+oif9K/zDUoIjfleH/9LcoWnPV9xRKgFl7QoBcwpRy95l050id LukqdJr90DW2nj1cRbDFKLqYDGJTkXu+SK0lMrAQB1o+I0LaxU7PcvN/3pUfqGTsZ8oF mkWq941P/UWdVmWy3vk07qgEOZSKQQpB+5b9uwkjoUDht56M5HaP17Jl8Vk5n044RqJN yptA== X-Gm-Message-State: AOJu0YxWlFvfBJ4vG5lN4luUvKI/5U9Dw6E1DmxbJuJZI3ORh79fgluD 4mvkm45yvEDlJAnU1j/H8lI= X-Received: by 2002:a17:906:74c2:b0:a26:d9f3:d3da with SMTP id z2-20020a17090674c200b00a26d9f3d3damr7765220ejl.13.1703819220571; Thu, 28 Dec 2023 19:07:00 -0800 (PST) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id jt6-20020a170906dfc600b00a234085cfa2sm7965462ejc.190.2023.12.28.19.06.59 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Dec 2023 19:06:59 -0800 (PST) From: Wei Yang To: gregkh@linuxfoundation.org, masahiroy@kernel.org, nicolas@fjasle.eu Cc: linux-kernel@vger.kernel.org, Wei Yang , Guennadi Liakhovetski , WANG Cong , Michal Marek Subject: [PATCH 1/4] scripts/tags.sh: use more portable -path instead of -wholename Date: Fri, 29 Dec 2023 03:06:51 +0000 Message-Id: <20231229030654.17474-1-richard.weiyang@gmail.com> X-Mailer: git-send-email 2.11.0 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: 1786584444342772586 X-GMAIL-MSGID: 1786584444342772586 According to the manual, -path is more portable than -wholename. Also for consistency, let's use -path here. Signed-off-by: Wei Yang CC: Guennadi Liakhovetski CC: WANG Cong CC: Michal Marek merg --- scripts/tags.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tags.sh b/scripts/tags.sh index a70d43723146..fbae1a087ee1 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -50,7 +50,7 @@ fi find_arch_sources() { for i in $archincludedir; do - prune="$prune -wholename $i -prune -o" + prune="$prune ( -path $i ) -prune -o" done find ${tree}arch/$1 $ignore $prune -name "$2" -not -type l -print; } 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; From patchwork Fri Dec 29 03:06:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yang X-Patchwork-Id: 183841 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:6f82:b0:100:9c79:88ff with SMTP id tb2csp2357650dyb; Thu, 28 Dec 2023 19:15:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IF+ebBWiB3HdFsU/NbNrS1n6aE6X8bqzZdy0RAr/pzLStmqPyolpwEzeJYLNh77Eoh6ncK1 X-Received: by 2002:a17:902:daca:b0:1d4:368d:3d62 with SMTP id q10-20020a170902daca00b001d4368d3d62mr11962928plx.31.1703819719318; Thu, 28 Dec 2023 19:15:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703819719; cv=none; d=google.com; s=arc-20160816; b=ySvv3yQwwY1QhbNLk1dp+DKPJr3Ef7z+JZ2JyRLvWc49VBNb2z/1up9wN+lWkFFLcm pWUthLip8ZTuP3ZgrpbxkfhQSepGL3EQTzDuZvWW4fq8tFeYSHS9Mvd8uX0PwwJkUY2q Njad+qMhvEvBgubCw1q+15GUgZsno/Vmysi8VyA/+knJjUKmChmih6uqkKaWrNHF2A/e a4o+Orp8k6ASomkj/I/X7HUjCWm2gMuhPd9vCqdfekunX/Tl5eSqZYFkAa34Eq3o6PLe FtvlnkeQcHmIjARVEEr2GuJRnGQLE8B9oN/ic4O9zHqdF3U5h/1lb0VnTvnXyW5v4rJE a0TA== 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=JxXfZU6ERWOuyrGVdyKmHBSuejXo21h0N1ktZLk7XHk=; fh=aB+egI/WTF5s+LX2osA9vcylFBrU5U2BLBvHTUzqHpY=; b=1Ba5MTActk6TjEJWrshUKWHipkjaY5gBskOpBP5XCZHRkBkU5hBirZ0fE+axpDmfIN 6vB5XYYbcJlcltllsVVsqXQ4zSdvzAK9OW9s6v3I6BmuF4LZR5+MMyPaWZHFDDBwiYAk cin6ppHYSmjEjQVq1WKjApUAxaauMrHHcLO/Zcy+D7UOcGR3jkkZ/fWOSAjxXKailb+Q oeIUhj4iPAauR462EoTgBm/Qf0rSZ4Szn0RW40l2moelQkk3E3jcghLuHz2iNtGFOtCG SiH9uv2HAulaaytRerYbqYUM3HqT30nhXI+tydaYKdwkdoUZk9/aqh/dIuydIJqMb29e SQXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=ObbJUePb; spf=pass (google.com: domain of linux-kernel+bounces-12921-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12921-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 k1-20020a170902c40100b001d4273c04desi11278465plk.459.2023.12.28.19.15.19 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Dec 2023 19:15:19 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-12921-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=ObbJUePb; spf=pass (google.com: domain of linux-kernel+bounces-12921-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-12921-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 82E9B286884 for ; Fri, 29 Dec 2023 03:07:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E903E7472; Fri, 29 Dec 2023 03:07:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ObbJUePb" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-wm1-f42.google.com (mail-wm1-f42.google.com [209.85.128.42]) (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 ED5485241 for ; Fri, 29 Dec 2023 03:07:14 +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-wm1-f42.google.com with SMTP id 5b1f17b1804b1-40d5bc68bb7so24591325e9.3 for ; Thu, 28 Dec 2023 19:07:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703819233; x=1704424033; 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=JxXfZU6ERWOuyrGVdyKmHBSuejXo21h0N1ktZLk7XHk=; b=ObbJUePbok7Fd+hzNkPI0HfFuF9XvxUNMFY1D6Cankj7DkuyoRcOpvM7fvqRZ6DMuT K2UqaeN87agQ9EgbW4KrTkDmZF39h5sNLYXudcRZB+ji8fU+ZX/h+km/Ni4HV/Pjvyqk M8GfAyUfwMFcSf3hRGji1IFYBqm6sUX6ZeTtSAkdtQRs0SEkg2cjpdC94vXcEpzFX7+K OyHrw2vr5rceVSePwPb0bek1BX435w2h1wbX86zpD9tI+Bi/3pDMcpaLCMK/lh9CUFpx B70gLk56WICeNCCucR4KtgwMWVJxowdY+f0qsui2G21QSUPJFXdvwR2jpsWOyG1x4ucb X4pA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703819233; x=1704424033; 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=JxXfZU6ERWOuyrGVdyKmHBSuejXo21h0N1ktZLk7XHk=; b=ubtSVPpviiCPUJNUmRHhbjmolF3CFK/ZfokIG5Sa9W9/YDAxToLR2T8wd6UCeXLy5T 54xPYDdEtA0e5Wh5pgeZTMzMxXMOI8kbyrbdPvKNpzhzVhs4HeVV0GHyKyO37xRWj+CU CdbY9SXw1Nn76b8x8Fw5J3F/M/mLxf16c6CSOf6CJTtFIWglpdjabJr1C7NztIh9xaOS HMlNz3MYG4D0qW0Ui9a7QS/PyxFO+yWCXn4kGZsvfKus8GzkXh2ki87B+9FrLgH34JrJ k8f7AfDo9d/ZyA4PqonVicwpjrmejiyWhnz3e499hkwbJFox5e6suFLldHfKn+w968Iv 9E2Q== X-Gm-Message-State: AOJu0Yyv6fFPwqFocsX9/vH+/1eKKycTHI/3Wr+CRR7kE9QFFvsjdtJC cOSwM15CT2klq6zSFMz5+zc= X-Received: by 2002:a05:600c:4f0f:b0:40d:56dd:af56 with SMTP id l15-20020a05600c4f0f00b0040d56ddaf56mr3375564wmq.162.1703819233260; Thu, 28 Dec 2023 19:07:13 -0800 (PST) Received: from localhost ([185.92.221.13]) by smtp.gmail.com with ESMTPSA id mf6-20020a1709071a4600b00a26aa8f3372sm7354822ejc.27.2023.12.28.19.07.12 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 28 Dec 2023 19:07:12 -0800 (PST) From: Wei Yang To: gregkh@linuxfoundation.org, masahiroy@kernel.org, nicolas@fjasle.eu Cc: linux-kernel@vger.kernel.org, Wei Yang , Sam Ravnborg Subject: [PATCH 3/4] scripts/tags.sh: use -n to test archinclude Date: Fri, 29 Dec 2023 03:06:53 +0000 Message-Id: <20231229030654.17474-3-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: 1786584466139089740 X-GMAIL-MSGID: 1786584466139089740 In bash, "! -z" is equivalent to "-n", which seems to be more intuitive. Signed-off-by: Wei Yang CC: Sam Ravnborg --- scripts/tags.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tags.sh b/scripts/tags.sh index 83e3731b5bdf..5061ec255291 100755 --- a/scripts/tags.sh +++ b/scripts/tags.sh @@ -89,7 +89,7 @@ find_sources() all_sources() { find_arch_include_sources ${SRCARCH} '*.[chS]' - if [ ! -z "$archinclude" ]; then + if [ -n "$archinclude" ]; then find_arch_include_sources $archinclude '*.[chS]' fi find_include_sources '*.[chS]'