Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6C4DAC433DB for ; Sat, 27 Feb 2021 02:33:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 33F6D64F2F for ; Sat, 27 Feb 2021 02:33:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230211AbhB0Cdi (ORCPT ); Fri, 26 Feb 2021 21:33:38 -0500 Received: from mail.kernel.org ([198.145.29.99]:52534 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230134AbhB0Cc7 (ORCPT ); Fri, 26 Feb 2021 21:32:59 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8E66164F32; Sat, 27 Feb 2021 02:32:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1614393144; bh=h46gPAIR5Z0cz3ANO7lMXvJbMlqBbsBRxGkEmt8cefw=; h=Date:From:To:Subject:From; b=AcgM7PJL9gRvNKRBtCtlCgQJ3T4i+4veiDg191dLZLcSLvdJGwLoDSRbTDkXulUTS Lx56tY75Bq43BMHD2P4DpXn4j+GvrnScZ3/L1DeuO9zdcyqyMLkDiJki0l2O/YGvMN 8N+HtDhdb92m8N9PLnVw8fcSzacna/+VTs6TGuF8= Date: Fri, 26 Feb 2021 18:32:24 -0800 From: akpm@linux-foundation.org To: broonie@kernel.org, dwaipayanray1@gmail.com, joe@perches.com, jpoimboe@redhat.com, lukas.bulwahn@gmail.com, mm-commits@vger.kernel.org, ndesaulniers@google.com, yashsri421@gmail.com Subject: [merged] =?US-ASCII?Q?checkpatch-add-warning-for-avoiding-l-prefix-symbols-in-asse?= =?US-ASCII?Q?mbly-files.patch?= removed from -mm tree Message-ID: <20210227023224.TjFfvW5X8%akpm@linux-foundation.org> User-Agent: s-nail v14.8.16 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org The patch titled Subject: checkpatch: add warning for avoiding .L prefix symbols in assembly files has been removed from the -mm tree. Its filename was checkpatch-add-warning-for-avoiding-l-prefix-symbols-in-assembly-files.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Aditya Srivastava Subject: checkpatch: add warning for avoiding .L prefix symbols in assembly files objtool requires that all code must be contained in an ELF symbol. Symbol names that have a '.L' prefix do not emit symbol table entries, as they have special meaning for the assembler. '.L' prefixed symbols can be used within a code region, but should be avoided for denoting a range of code via 'SYM_*_START/END' annotations. Add a new check to emit a warning on finding the usage of '.L' symbols for '.S' files, if it denotes range of code via SYM_*_START/END annotation pair. Link: https://lkml.kernel.org/r/20210123190459.9701-1-yashsri421@gmail.com Link: https://lore.kernel.org/lkml/20210112210154.GI4646@sirena.org.uk Signed-off-by: Aditya Srivastava Suggested-by: Mark Brown Acked-by: Joe Perches Acked-by: Nick Desaulniers Cc: Aditya Srivastava Cc: Lukas Bulwahn Cc: Dwaipayan Ray Cc: Josh Poimboeuf Signed-off-by: Andrew Morton --- scripts/checkpatch.pl | 7 +++++++ 1 file changed, 7 insertions(+) --- a/scripts/checkpatch.pl~checkpatch-add-warning-for-avoiding-l-prefix-symbols-in-assembly-files +++ a/scripts/checkpatch.pl @@ -3599,6 +3599,13 @@ sub process { } } +# check for .L prefix local symbols in .S files + if ($realfile =~ /\.S$/ && + $line =~ /^\+\s*(?:[A-Z]+_)?SYM_[A-Z]+_(?:START|END)(?:_[A-Z_]+)?\s*\(\s*\.L/) { + WARN("AVOID_L_PREFIX", + "Avoid using '.L' prefixed local symbol names for denoting a range of code via 'SYM_*_START/END' annotations; see Documentation/asm-annotations.rst\n" . $herecurr); + } + # check we are in a valid source file C or perl if not then ignore this hunk next if ($realfile !~ /\.(h|c|pl|dtsi|dts)$/); _ Patches currently in -mm which might be from yashsri421@gmail.com are