Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4282299imm; Fri, 18 May 2018 02:26:07 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrh56kaV8GXc8OHOb1Qu4TvGyjfVQZlJ37yYST2d3m+dpdlyXLUY+icTQkgQTKbURqMOwKl X-Received: by 2002:a62:4353:: with SMTP id q80-v6mr8639351pfa.228.1526635566988; Fri, 18 May 2018 02:26:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526635566; cv=none; d=google.com; s=arc-20160816; b=PHPQXGXm+RzdAZHpOSrAX/5iNeJbaktsMA01UW55XTPGs/ccm26TztIYKBx0NCbwVg mcnXUhwGatfsS3OstfeS36hjcXFN3tALa7KQBfS80mWyr4e9R8zeeE0VQnVOdV4wLt8e Tc2PdqsqXeWPzsk15oxvuQr3+pCW0hexSkDRrv7q3GVgATobZ3ZK0JU6QSlspkSXVDde cpdznfcoaVBIKYrYi3D03hTv1Z2v5myXhkROXD4oMLuH9KNmh6jgVY+zJs9SWOrZm4a+ IL75p1ygqpLtTNbCLftp/X0jUGHJ9KTIMSmGmhfg78sKAAa2ZOltTdH38NI5gEhOLCod FJyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=c+BAGxobtpt9FWSeAUU1Ywl51zErfbPmNcf8RxIljEM=; b=rXy9Tl70HY5lJSD29gCwVl5/GfDaRXC2xDkgtRHGf2MwJHonKj1af0wo4NSMQek7xD YEPnTmpvZykjyxWtdHYEyVcTnJDUsLQSAS8zhnF4667avLLlL5GD6JsTkiTXlU8WsFX2 F+JZlIyDA/xZhpBmCmS8gn7oFnGUc4//U3l7vD0Ri8C5Aux2C3sPOvF9kRFnOkZP3KLu c6IXlRmTAYq6OwOfE8V6DDArWVr0znC4tVqKMJWiCkq1uL037UReOxTB7nNgJ8zHFp2s reUBnJ3/ckdoWLB+WijNAiW/OwuYIqu9gdZ4uakY0gm0ZQ96OPQhEykukWkIlT+292Nk cXLw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a36-v6si7123512pla.575.2018.05.18.02.25.52; Fri, 18 May 2018 02:26:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753340AbeERJYz (ORCPT + 99 others); Fri, 18 May 2018 05:24:55 -0400 Received: from mx2.suse.de ([195.135.220.15]:45405 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752858AbeERJRg (ORCPT ); Fri, 18 May 2018 05:17:36 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 3BB4CAF3F; Fri, 18 May 2018 09:17:34 +0000 (UTC) From: Jiri Slaby To: mingo@redhat.com Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby , "H. Peter Anvin" , Thomas Gleixner , x86@kernel.org Subject: [PATCH v6 08/28] x86/boot/compressed: annotate local functions Date: Fri, 18 May 2018 11:17:01 +0200 Message-Id: <20180518091721.7604-9-jslaby@suse.cz> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180518091721.7604-1-jslaby@suse.cz> References: <20180518091721.7604-1-jslaby@suse.cz> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org relocated, paging_enabled, and no_longmode are self-standing local functions, annotate them as such. paging_enabled is annotated as NOALIGN, since the trampoline code has to be compact. Signed-off-by: Jiri Slaby Cc: "H. Peter Anvin" Cc: Thomas Gleixner Cc: Ingo Molnar Cc: x86@kernel.org --- arch/x86/boot/compressed/head_32.S | 3 ++- arch/x86/boot/compressed/head_64.S | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/arch/x86/boot/compressed/head_32.S b/arch/x86/boot/compressed/head_32.S index 37380c0d5999..7e8ab0bb6968 100644 --- a/arch/x86/boot/compressed/head_32.S +++ b/arch/x86/boot/compressed/head_32.S @@ -209,7 +209,7 @@ ENDPROC(efi32_stub_entry) #endif .text -relocated: +SYM_FUNC_START_LOCAL(relocated) /* * Clear BSS (stack is currently empty) @@ -260,6 +260,7 @@ relocated: */ xorl %ebx, %ebx jmp *%eax +SYM_FUNC_END(relocated) #ifdef CONFIG_EFI_STUB .data diff --git a/arch/x86/boot/compressed/head_64.S b/arch/x86/boot/compressed/head_64.S index fca012baba19..614dc4868915 100644 --- a/arch/x86/boot/compressed/head_64.S +++ b/arch/x86/boot/compressed/head_64.S @@ -469,7 +469,7 @@ ENDPROC(efi64_stub_entry) #endif .text -relocated: +SYM_FUNC_START_LOCAL(relocated) /* * Clear BSS (stack is currently empty) @@ -511,6 +511,7 @@ relocated: * Jump to the decompressed kernel. */ jmp *%rax +SYM_FUNC_END(relocated) .code32 /* @@ -575,9 +576,10 @@ ENTRY(trampoline_32bit_src) lret .code64 -paging_enabled: +SYM_FUNC_START_LOCAL_NOALIGN(paging_enabled) /* Return from the trampoline */ jmp *%rdi +SYM_FUNC_END(paging_enabled) /* * The trampoline code has a size limit. @@ -587,11 +589,12 @@ paging_enabled: .org trampoline_32bit_src + TRAMPOLINE_32BIT_CODE_SIZE .code32 -no_longmode: +SYM_FUNC_START_LOCAL(no_longmode) /* This isn't an x86-64 CPU, so hang intentionally, we cannot continue */ 1: hlt jmp 1b +SYM_FUNC_END(no_longmode) #include "../../kernel/verify_cpu.S" -- 2.16.3