Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp136821iog; Wed, 29 Jun 2022 20:07:46 -0700 (PDT) X-Google-Smtp-Source: AGRyM1twgUibQ01hVZEAKFsf9CZLat3fsPJtd0I0oTHTqBp+pCG+TfPygaEhsqAiPO7PamiwCjvm X-Received: by 2002:a05:6a00:1acb:b0:525:b64b:79c3 with SMTP id f11-20020a056a001acb00b00525b64b79c3mr12206882pfv.76.1656558466552; Wed, 29 Jun 2022 20:07:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656558466; cv=none; d=google.com; s=arc-20160816; b=iskJf0dchCFKzPqb6ylZFXnmvF1Ay7B7FOhNyIQz/SR5c98u/xX7FNu2WdDMFlcARx //BRIX4QB3uISTbAw+TpvqR/1pyHX9GYIIDoHUXHJ8FCcMaO98/2oSNUMYmR1j924R4K u3Sg22i4LwOY/AKLRmObmxjnckdExp+QwMY5Ht4/6qDrSsjGJ+ZL55M3/81ucx/j1rJH dxBWu/ejPQ4hOKc7mO3JWNMw4hlsLZbXvB3xE9N7cPNdWfE9l0FNCz/xTTlinl/DhQLj OjB0p1W6kR9/AW7Pxo8F7IEIRygSj6thOX9/Lz9o8UqV4Bs9VZU7kyW4v3vcV4Ka48j8 VprA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=+L7NfVip5ayxs44nzeWz5st0bLNw8YdWPY9PGeVA9WY=; b=QTHldhRwBcMzdfD5IABDIEUUy3u0ivUDkjtuAskbx5ReNBcdhteWc8YnonVKxdM0f5 XQSzMWELO2ngln/4euBkCad9EXvgKXYVQOwU+gY8JHEJ3Na5ZKVOkSRqnkCo2lq5p3f2 vMN0xWgvlsXYI/iBTauN2kv71s0d4KTHghsCrFI16V9QK2nGtgqp1mIMOi3UhzSc18VP WjmsqKqDzpXOWBInF/ZEC45VCVtdiVoxmtUJamq9XpTICnYtQMkHzPXyEK8X0MFDHAsT Atox6KNBZ62/NKGX0ybfDrOWLMt2DLCyCcN9IG/837d3D++vDCUu9yqEgy3KgxcHPKfY UwAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m2-20020a632602000000b003fa0267a169si7745840pgm.864.2022.06.29.20.07.32; Wed, 29 Jun 2022 20:07:46 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229732AbiF3Clu (ORCPT + 99 others); Wed, 29 Jun 2022 22:41:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59270 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229635AbiF3Cls (ORCPT ); Wed, 29 Jun 2022 22:41:48 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A7D18CE3D; Wed, 29 Jun 2022 19:41:47 -0700 (PDT) Received: from dggpemm500024.china.huawei.com (unknown [172.30.72.57]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4LYMww0jZXzhYcx; Thu, 30 Jun 2022 10:39:28 +0800 (CST) Received: from dggpemm500013.china.huawei.com (7.185.36.172) by dggpemm500024.china.huawei.com (7.185.36.203) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 30 Jun 2022 10:41:45 +0800 Received: from [127.0.0.1] (10.67.108.67) by dggpemm500013.china.huawei.com (7.185.36.172) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Thu, 30 Jun 2022 10:41:45 +0800 Message-ID: <99883975-4fb7-b073-ac16-7a5474f5ac79@huawei.com> Date: Thu, 30 Jun 2022 10:41:42 +0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.7.0 Subject: Re: [PATCH v6 18/33] arm64: Change symbol type annotations Content-Language: en-US To: Mark Brown CC: , , , , , , , , , , , , , , , , , , References: <20220623014917.199563-1-chenzhongjin@huawei.com> <20220623014917.199563-19-chenzhongjin@huawei.com> From: Chen Zhongjin In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.108.67] X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To dggpemm500013.china.huawei.com (7.185.36.172) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_MED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Mark, Thanks for review! On 2022/6/30 1:47, Mark Brown wrote: > On Thu, Jun 23, 2022 at 09:49:02AM +0800, Chen Zhongjin wrote: >> Code symbols not following the aarch64 procedure call convention should >> be annotated with SYM_CODE_* instead of SYM_FUNC_* >> >> Mark relevant symbols as generic code symbols. > >> -SYM_CODE_START(tramp_exit_native) >> +SYM_CODE_START_LOCAL(tramp_exit_native) >> tramp_exit >> SYM_CODE_END(tramp_exit_native) >> >> -SYM_CODE_START(tramp_exit_compat) >> +SYM_CODE_START_LOCAL(tramp_exit_compat) > > The commit log says this is fixing things mistakenly lablelld SYM_FUNC > but this bit of the actual change is making some symbols local. > It makes sense. I'll remove this because whether this symbol is global makes few difference here. >> -SYM_FUNC_START_LOCAL(__create_page_tables) >> +SYM_CODE_START_LOCAL(__create_page_tables) >> mov x28, lr >> >> /* >> @@ -389,7 +389,7 @@ SYM_FUNC_START_LOCAL(__create_page_tables) >> bl dcache_inval_poc >> >> ret x28 >> -SYM_FUNC_END(__create_page_tables) >> +SYM_CODE_END(__create_page_tables) > > This is removed by Ard's recent refactoring, the others that are still > present look valid enough (for things that don't use the stack IIRC they > could be seen as conforming but equally this is all running in non > standard environments). You are right, for SYM_CODE_, objtool won't generate ORC automatically as other normal functions, unless UNWIND_HINT is explicitly specified for non-standard stack frames.