All of lore.kernel.org
 help / color / mirror / Atom feed
From: akpm@linux-foundation.org
To: dwaipayanray1@gmail.com, joe@perches.com, mm-commits@vger.kernel.org
Subject: [folded-merged] checkpatch-update-__attribute__sectionname-quote-removal-v2.patch removed from -mm tree
Date: Tue, 15 Dec 2020 20:12:02 -0800	[thread overview]
Message-ID: <20201216041202.Fqtb9qtJx%akpm@linux-foundation.org> (raw)


The patch titled
     Subject: checkpatch-update-__attribute__sectionname-quote-removal-v2
has been removed from the -mm tree.  Its filename was
     checkpatch-update-__attribute__sectionname-quote-removal-v2.patch

This patch was dropped because it was folded into checkpatch-update-__attribute__sectionname-quote-removal.patch

------------------------------------------------------
From: Joe Perches <joe@perches.com>
Subject: checkpatch-update-__attribute__sectionname-quote-removal-v2

This is a slightly shorter/better patch as it eliminates the separate
test below the possible conversions loop.

Link: https://lkml.kernel.org/r/58e9d55e933dc8fdc6af489f2ad797fa8eb13e44.camel@perches.com
Cc: Dwaipayan Ray <dwaipayanray1@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 scripts/checkpatch.pl |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

--- a/scripts/checkpatch.pl~checkpatch-update-__attribute__sectionname-quote-removal-v2
+++ a/scripts/checkpatch.pl
@@ -6241,14 +6241,11 @@ sub process {
 						$fixed[$fixlinenr] =~ s/$remove//;
 						$fixed[$fixlinenr] =~ s/\b__attribute__/$new __attribute__/;
 						$fixed[$fixlinenr] =~ s/\}\Q$new\E/} $new/;
+						$fixed[$fixlinenr] =~ s/ __attribute__\s*\(\s*\(\s*\)\s*\)//;
 					}
 				}
 			}
 
-			if (show_type("PREFER_DEFINED_ATTRIBUTE_MACRO") && $fix) {
-				$fixed[$fixlinenr] =~ s/ __attribute__\s*\(\s*\(\s*\)\s*\)//;
-			}
-
 			# Check for __attribute__ unused, prefer __always_unused or __maybe_unused
 			if ($attr =~ /^_*unused/) {
 				WARN("PREFER_DEFINED_ATTRIBUTE_MACRO",
_

Patches currently in -mm which might be from joe@perches.com are

checkpatch-prefer-static-const-declarations.patch
checkpatch-allow-fix-removal-of-unnecessary-break-statements.patch
checkpatch-update-__attribute__sectionname-quote-removal.patch
checkpatch-add-__alias-and-__weak-to-suggested-__attribute__-conversions.patch
checkpatch-add-printk_once-and-printk_ratelimit-to-prefer-pr_level-warning.patch
checkpatch-add-printk_once-and-printk_ratelimit-to-prefer-pr_level-warning-fix.patch


                 reply	other threads:[~2020-12-16  4:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201216041202.Fqtb9qtJx%akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=dwaipayanray1@gmail.com \
    --cc=joe@perches.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mm-commits@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.