+ scripts-tagssh-use-find-for-allsource_archs-generation-v4.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     Subject: scripts/tags.sh: use `find` for $ALLSOURCE_ARCHS generation
has been added to the -mm tree.  Its filename is
     scripts-tagssh-use-find-for-allsource_archs-generation-v4.patch

This patch should soon appear at
    http://ozlabs.org/~akpm/mmots/broken-out/scripts-tagssh-use-find-for-allsource_archs-generation-v4.patch
and later at
    http://ozlabs.org/~akpm/mmotm/broken-out/scripts-tagssh-use-find-for-allsource_archs-generation-v4.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/process/submit-checklist.rst when testing your code ***

The -mm tree is included into linux-next and is updated
there every 3-4 working days

------------------------------------------------------
From: Joey Pabalinas <joeypabalinas@xxxxxxxxx>
Subject: scripts/tags.sh: use `find` for $ALLSOURCE_ARCHS generation

Parsing `ls' is fragile at best and _will_ fail when $tree contains
spaces.  Replace this with a find-generated string and directly assign it
to $ALLSOURCE_ARCHS; a subshell is implied by $(), so `cd' doesn't affect
the current working directory.

Link: http://lkml.kernel.org/r/20180518115619.jqb4hqdym7fmrs2p@xxxxxxxxx
Signed-off-by: Joey Pabalinas <joeypabalinas@xxxxxxxxx>
Cc: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>
Cc: Arend van Spriel <arend.vanspriel@xxxxxxxxxxxx>
Cc: Robert Jarzmik <robert.jarzmik@xxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 scripts/tags.sh |   11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff -puN scripts/tags.sh~scripts-tagssh-use-find-for-allsource_archs-generation-v4 scripts/tags.sh
--- a/scripts/tags.sh~scripts-tagssh-use-find-for-allsource_archs-generation-v4
+++ a/scripts/tags.sh
@@ -28,20 +28,11 @@ fi
 # ignore userspace tools
 ignore="$ignore ( -path ${tree}tools ) -prune -o"
 
-# Find all available archs
-find_all_archs()
-{
-	ALLSOURCE_ARCHS=""
-	for arch in `ls ${tree}arch`; do
-		ALLSOURCE_ARCHS="${ALLSOURCE_ARCHS} "${arch##\/}
-	done
-}
-
 # Detect if ALLSOURCE_ARCHS is set. If not, we assume SRCARCH
 if [ "${ALLSOURCE_ARCHS}" = "" ]; then
 	ALLSOURCE_ARCHS=${SRCARCH}
 elif [ "${ALLSOURCE_ARCHS}" = "all" ]; then
-	find_all_archs
+	ALLSOURCE_ARCHS="$(find "${tree}arch/" -mindepth 1 -maxdepth 1 -type d -printf ' %f')"
 fi
 
 # find sources in arch/$ARCH
_

Patches currently in -mm which might be from joeypabalinas@xxxxxxxxx are

scripts-tagssh-use-find-for-allsource_archs-generation-v4.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux