Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp687461pxb; Wed, 20 Jan 2021 18:36:02 -0800 (PST) X-Google-Smtp-Source: ABdhPJwu+JVt2eOFb8IAfVg2cxzv2HGRxn5hNTx4PCcbvRGNQHw0Qj0Fmxx6Zb4lE9sLkEbt4rdb X-Received: by 2002:a05:6402:268a:: with SMTP id w10mr9408348edd.331.1611196562596; Wed, 20 Jan 2021 18:36:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611196562; cv=none; d=google.com; s=arc-20160816; b=Tcrqyl8t3b+4eGFUBPjMXb3Xlz1eS5ufopNRSjjaVBHo9r2TwvS863o2B56uCoftqE PgIyRa+eKEnEHSIG41LlDMBwwOLDxTdJbU3hstOyncetIPLws+TZ01wKZHRph+bVzYEK 26OR9OHvITCoQ6zzhpazM1M391mncann7J1j7kSlUQJRqkpJ+2uiaNVnMRUcMl64umKV Guh0lDRMSDxzVq+dQ5PNuNWX4CINH+Yqu+M70Mh5xI+8kQ08M9asfYW101DB3GYvMiit hJyBcuWMfJs8Nq+wvNLzL05tCwpw0uGI9UeZCZy3+bMqpgTUb9bmAmNQsGW/P++DDgnK hAdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Om7VwHKhcnxl7GarBDwRVzXmPEeOP48pbHGghTabBUQ=; b=SUsaIenn3K0utFY5quTqrnsfnMTmNIRNit5wyHAEbcgDga+ca3dBmvWjx8weQ4v9MI y1Upg890n+8WdjvXdxn6yARl7q6T6BUcNgRJxjYmFMb3OKfFMsvO/3fJK7AYVA7PqZt/ w2ecj6ZQgGz6ev9/0SImgsEpFVwiuP6pSUl76RhqFbuJ9QlCJFWl+aksbgI26DsNtzsE AoNOxjoPZSoOOWKmuUzJfLwNqXIAwnq2relhFIBLFVjdu9DmQhf32jqT0q/pV3Eq+eCb h7B2StkZXMc6WuerZ8qzqLnjdIJKdh8S8+bjDFrE7Mh4CY4yH+2IC9w6+lWz7hl0gcuL Pqhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GIRK0qnv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n26si1276423ejg.362.2021.01.20.18.35.38; Wed, 20 Jan 2021 18:36:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=GIRK0qnv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730349AbhAUAS2 (ORCPT + 99 others); Wed, 20 Jan 2021 19:18:28 -0500 Received: from us-smtp-delivery-124.mimecast.com ([216.205.24.124]:34365 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725798AbhATXQ5 (ORCPT ); Wed, 20 Jan 2021 18:16:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611184459; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Om7VwHKhcnxl7GarBDwRVzXmPEeOP48pbHGghTabBUQ=; b=GIRK0qnvFF/7JldCdDrP0Y9OPDyeCkiDkQpXi4wB5GfYSbvz4GUFqk3rA/AguMptq9QEEE cIv9AGZopCMzUgTtuuACs4On3SWO9lri21F9ikbpwAGZ4d5WZJH3J4znRD9dKYaxNEuoJ0 MIS0UZPI+QLyI+nUUkGmH+RzYCqzjrY= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-123-SHMIIL66OSu14XH1DwGo3w-1; Wed, 20 Jan 2021 17:59:53 -0500 X-MC-Unique: SHMIIL66OSu14XH1DwGo3w-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 96227107ACE3; Wed, 20 Jan 2021 22:59:51 +0000 (UTC) Received: from treble (ovpn-116-102.rdu2.redhat.com [10.10.116.102]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 89D5060C6D; Wed, 20 Jan 2021 22:59:50 +0000 (UTC) Date: Wed, 20 Jan 2021 16:59:48 -0600 From: Josh Poimboeuf To: Nick Desaulniers Cc: Aditya , LKML , Lukas Bulwahn , dwaipayanray1@gmail.com, Mark Brown , linux-kernel-mentees@lists.linuxfoundation.org, clang-built-linux , Joe Perches Subject: Re: [PATCH] checkpatch: add warning for avoiding .L prefix symbols in assembly files Message-ID: <20210120225948.lgbfhy5s265we6jn@treble> References: <20210120072547.10221-1-yashsri421@gmail.com> <14707ab9-1872-4f8c-3ed8-e77b663c3adb@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 20, 2021 at 10:57:03AM -0800, Nick Desaulniers wrote: > > $ git grep -P '^\s*SYM_[A-Z]+_(?:START|END)(?:_[A-Z_]+)?\s*\(\s*\.L' -- '*.S' > > arch/x86/boot/compressed/head_32.S:SYM_FUNC_START_LOCAL_NOALIGN(.Lrelocated) > > arch/x86/boot/compressed/head_32.S:SYM_FUNC_END(.Lrelocated) > > arch/x86/boot/compressed/head_64.S:SYM_FUNC_START_LOCAL_NOALIGN(.Lrelocated) > > arch/x86/boot/compressed/head_64.S:SYM_FUNC_END(.Lrelocated) > > arch/x86/boot/compressed/head_64.S:SYM_FUNC_START_LOCAL_NOALIGN(.Lpaging_enabled) > > arch/x86/boot/compressed/head_64.S:SYM_FUNC_END(.Lpaging_enabled) > > arch/x86/boot/compressed/head_64.S:SYM_FUNC_START_LOCAL_NOALIGN(.Lno_longmode) > > arch/x86/boot/compressed/head_64.S:SYM_FUNC_END(.Lno_longmode) > > arch/x86/boot/pmjump.S:SYM_FUNC_START_LOCAL_NOALIGN(.Lin_pm32) > > arch/x86/boot/pmjump.S:SYM_FUNC_END(.Lin_pm32) > > arch/x86/entry/entry_64.S:SYM_CODE_START_LOCAL_NOALIGN(.Lbad_gs) > > arch/x86/entry/entry_64.S:SYM_CODE_END(.Lbad_gs) > > arch/x86/lib/copy_user_64.S:SYM_CODE_START_LOCAL(.Lcopy_user_handle_tail) > > arch/x86/lib/copy_user_64.S:SYM_CODE_END(.Lcopy_user_handle_tail) > > arch/x86/lib/getuser.S:SYM_CODE_START_LOCAL(.Lbad_get_user_clac) > > arch/x86/lib/getuser.S:SYM_CODE_END(.Lbad_get_user_clac) > > arch/x86/lib/getuser.S:SYM_CODE_START_LOCAL(.Lbad_get_user_8_clac) > > arch/x86/lib/getuser.S:SYM_CODE_END(.Lbad_get_user_8_clac) > > arch/x86/lib/putuser.S:SYM_CODE_START_LOCAL(.Lbad_put_user_clac) > > arch/x86/lib/putuser.S:SYM_CODE_END(.Lbad_put_user_clac) > > arch/x86/realmode/rm/wakeup_asm.S:SYM_DATA_START_LOCAL(.Lwakeup_idt) > > arch/x86/realmode/rm/wakeup_asm.S:SYM_DATA_END(.Lwakeup_idt) > > Josh, I assume objtool does not annotate code under: > arch/x86/boot/ > arch/x86/entry/ > arch/x86/realmode/ > ? > > The rest, ie > arch/x86/lib/ > seem potentially relevant? Both arch/x86/entry/* and arch/x86/lib/* are read by objtool and should probably be fixed up. -- Josh