All of lore.kernel.org
 help / color / mirror / Atom feed
* [merged] scripts-bloat-o-meter-use-startswith-rather-than-fragile-slicing.patch removed from -mm tree
@ 2013-11-11 18:44 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2013-11-11 18:44 UTC (permalink / raw)
  To: mm-commits, josh

Subject: [merged] scripts-bloat-o-meter-use-startswith-rather-than-fragile-slicing.patch removed from -mm tree
To: josh@joshtriplett.org,mm-commits@vger.kernel.org
From: akpm@linux-foundation.org
Date: Mon, 11 Nov 2013 10:44:02 -0800


The patch titled
     Subject: scripts/bloat-o-meter: use .startswith rather than fragile slicing
has been removed from the -mm tree.  Its filename was
     scripts-bloat-o-meter-use-startswith-rather-than-fragile-slicing.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Josh Triplett <josh@joshtriplett.org>
Subject: scripts/bloat-o-meter: use .startswith rather than fragile slicing

str.startswith has existed since at least Python 2.0, in 2000; use it
rather than a fragile comparison against an initial slice of a string,
which requires hard-coding the length of the string to compare against.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 scripts/bloat-o-meter |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff -puN scripts/bloat-o-meter~scripts-bloat-o-meter-use-startswith-rather-than-fragile-slicing scripts/bloat-o-meter
--- a/scripts/bloat-o-meter~scripts-bloat-o-meter-use-startswith-rather-than-fragile-slicing
+++ a/scripts/bloat-o-meter
@@ -19,7 +19,7 @@ def getsizes(file):
         size, type, name = l[:-1].split()
         if type in "tTdDbBrR":
             # strip generated symbols
-            if name[:6] == "__mod_": continue
+            if name.startswith("__mod_"): continue
             if name == "linux_banner": continue
             # statics and some other optimizations adds random .NUMBER
             name = re.sub(r'\.[0-9]+', '', name)
_

Patches currently in -mm which might be from josh@joshtriplett.org are

origin.patch
checkpatch-report-missing-spaces-around-trigraphs-with-strict.patch
checkpatchpl-check-for-the-fsf-mailing-address.patch
documentation-abi-document-the-non-abi-status-of-kconfig-and-symbols.patch
linux-next.patch


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-11-11 18:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-11 18:44 [merged] scripts-bloat-o-meter-use-startswith-rather-than-fragile-slicing.patch removed from -mm tree akpm

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.