Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4313666imm; Fri, 18 May 2018 03:04:18 -0700 (PDT) X-Google-Smtp-Source: AB8JxZqyjCvD73mBYFs0a53QMf3Iu0is+btCVffqYHqglqKBBhFhwwQte57EdK7pR68IymIydZoM X-Received: by 2002:a17:902:8207:: with SMTP id x7-v6mr8946115pln.100.1526637858151; Fri, 18 May 2018 03:04:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526637858; cv=none; d=google.com; s=arc-20160816; b=pXZ5+O7LvDfuyYYohSk1tfe+CsosSzqdY38l0/YrP9Q0O0uzWo+SgWz2aoTeNmCmuY CCH2jPcHi3ZtVAD25zbt/nXgZUrrpwd3FsCqxsVJ0V4c3lIqIwjOvatAvTVb/A0aBQDM Ossk+NX+hkaYupqfWYuMIbFZ3esocTdEe/7kSttfI4XZ4l+7e+MY5GdDIuAgdlohViTl ON/qfI58Bv8J5Oaj+Lqwi9pnr8cnFpmDWVZ8LazDAawLnCcd/Xwa6ke8NhurJ8S6nLBv 2NUwiDT2n98WFrUL75OGSFfVQ3ycrNhf10s+vO+oCrKwyYb8iJGmlzEH35OLSUHeoQdp nb7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=Bo0O4mTKsbGn+uge+9eNjMKSjMmn3j7OMeQ7vLjMZsE=; b=kOf6C0LhH6RFziaXJZ2a+ZzXrCc1DoNlSJ4UaYfcawFnCfpr9vXoUJt/mbMuMaprNA /1CiJEK03sOWXbkQsP4tyX1paUWaQccKg7ABIvFe0Nhk2lOKknnY3hKKffLt6HCuyktJ qRPqTb/hQR6AAoJTR3zW9Lb4rW5ANNBOqXCY7eQ3l9znYqhkgu2mhqcvX9ldq/gWpkPN CVwpeMhC0gSonOooh6UIyEyP11A+NMRDzqkl7l0l/Ko5Wn+wpq8WINALp+1M0215mxno mFL//6jtdXF5pfpctPwWnNy2yep2RxJTMrjLs2T4yV0ay90rD1MtRuSqanGbl0Ccv6R8 KNKQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=c+nbiTaF; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bc2-v6si7022294plb.43.2018.05.18.03.04.04; Fri, 18 May 2018 03:04:18 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b=c+nbiTaF; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752526AbeERKDv (ORCPT + 99 others); Fri, 18 May 2018 06:03:51 -0400 Received: from mail-ot0-f194.google.com ([74.125.82.194]:44113 "EHLO mail-ot0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751589AbeERKDt (ORCPT ); Fri, 18 May 2018 06:03:49 -0400 Received: by mail-ot0-f194.google.com with SMTP id g7-v6so8436585otj.11; Fri, 18 May 2018 03:03:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=Bo0O4mTKsbGn+uge+9eNjMKSjMmn3j7OMeQ7vLjMZsE=; b=c+nbiTaFFH3TvukYQRS8Mlj5yoAK5QSjeii5hBS/nDbHBTLSlFm7I/ckVPUbRjbciG +dTevxXrgrPLuTeHtp2zsmIYQJq4MTue6un4VB8yREWkW/MMTyy9u1hGYcWuwPkt/qlj cIt8SQHF8xjPOC+OCac8LDArhhkmDX1PB1fHe+iXu4SyDw+MOkwptGHKuY5XiGXLzpwu hXaJCN9lWG5Y9QhOGTSpGIroSorTlZ+k+pgGjDtpYzQ8MnyqUvMqEvLD71PqF3kXtBSD 2Xc9HdoXu7SggSwuVaJHla3hySVPZLrUbecBIkk9XCqd669CyDNuVNsKSZLLkj9KjJY5 rh4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=Bo0O4mTKsbGn+uge+9eNjMKSjMmn3j7OMeQ7vLjMZsE=; b=PZTLNM6kRQ+9tHvZtChzekZmvuDidkLHVaPt+4xA1zkIvPZdQcIz1gGIB+UXo3FKxx uV7oZCeKn4VwMu6pLSZvmTUVKrllCT00SNdhKE51nzSj2xGTGLLk9UvBkc8lPwE80o9R VbBrmnUFTlf8H89eCj3Lcstdzj10fz8ItzBw7S00KcQhoFU0xscrkpRnwttKcBKLCihJ qlJVZ8vtJ08c6DQ/WJ+6lWUP/25icORFeVDC6DEft0RqulG+uEiUZRLtdx5ejApG2jvW DNMqgwMDNl7vGdFqfwVKq3//riwpjdEimXYXhLtjhvnIXnrKrkyc6mH0W9AxbrMifbpo QmQw== X-Gm-Message-State: ALKqPwfJb40u/5AtDKcVZQch+OLqVbWa3fbudAhBQmG4LrDYyMCDaVS8 LICsw8oZwBTNJ8Tf3u3rYU7Acr7rl7t873/v5Zw= X-Received: by 2002:a9d:3e07:: with SMTP id a7-v6mr5672040otd.150.1526637828723; Fri, 18 May 2018 03:03:48 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1468:0:0:0:0:0 with HTTP; Fri, 18 May 2018 03:03:48 -0700 (PDT) In-Reply-To: <20180518091721.7604-4-jslaby@suse.cz> References: <20180518091721.7604-1-jslaby@suse.cz> <20180518091721.7604-4-jslaby@suse.cz> From: "Rafael J. Wysocki" Date: Fri, 18 May 2018 12:03:48 +0200 X-Google-Sender-Auth: DuZVbs_NtOU_VSDakIB85GNA-qs Message-ID: Subject: Re: [PATCH v6 03/28] x86/asm/suspend: use SYM_DATA for data To: Jiri Slaby Cc: Ingo Molnar , linux-arch , Linux Kernel Mailing List , "Rafael J. Wysocki" , Len Brown , Pavel Machek , Thomas Gleixner , "H. Peter Anvin" , "the arch/x86 maintainers" , Linux PM Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 18, 2018 at 11:16 AM, Jiri Slaby wrote: > Some global data in the suspend code were marked as `ENTRY'. ENTRY was > intended for functions and shall be paired with ENDPROC. ENTRY also > aligns symbols which creates unnecessary holes here between data. Since > we are dropping historical markings, make proper use of newly added > SYM_DATA in this code. > > Signed-off-by: Jiri Slaby > Cc: "Rafael J. Wysocki" > Cc: Len Brown > Cc: Pavel Machek > Cc: Thomas Gleixner > Cc: Ingo Molnar > Cc: "H. Peter Anvin" > Cc: x86@kernel.org > Cc: linux-pm@vger.kernel.org Acked-by: Rafael J. Wysocki > --- > arch/x86/kernel/acpi/wakeup_32.S | 2 +- > arch/x86/kernel/acpi/wakeup_64.S | 2 +- > arch/x86/kernel/head_32.S | 6 ++---- > arch/x86/kernel/head_64.S | 5 ++--- > 4 files changed, 6 insertions(+), 9 deletions(-) > > diff --git a/arch/x86/kernel/acpi/wakeup_32.S b/arch/x86/kernel/acpi/wakeup_32.S > index 4203d4f0c68d..feac1e5ecba0 100644 > --- a/arch/x86/kernel/acpi/wakeup_32.S > +++ b/arch/x86/kernel/acpi/wakeup_32.S > @@ -89,7 +89,7 @@ ret_point: > > .data > ALIGN > -ENTRY(saved_magic) .long 0 > +SYM_DATA(saved_magic, .long 0) > saved_eip: .long 0 > > # saved registers > diff --git a/arch/x86/kernel/acpi/wakeup_64.S b/arch/x86/kernel/acpi/wakeup_64.S > index 510fa12aab73..551758f48eb7 100644 > --- a/arch/x86/kernel/acpi/wakeup_64.S > +++ b/arch/x86/kernel/acpi/wakeup_64.S > @@ -133,4 +133,4 @@ saved_rbx: .quad 0 > saved_rip: .quad 0 > saved_rsp: .quad 0 > > -ENTRY(saved_magic) .quad 0 > +SYM_DATA(saved_magic, .quad 0) > diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S > index b59e4fb40fd9..80965fd75fea 100644 > --- a/arch/x86/kernel/head_32.S > +++ b/arch/x86/kernel/head_32.S > @@ -507,10 +507,8 @@ GLOBAL(early_recursion_flag) > > __REFDATA > .align 4 > -ENTRY(initial_code) > - .long i386_start_kernel > -ENTRY(setup_once_ref) > - .long setup_once > +SYM_DATA(initial_code, .long i386_start_kernel) > +SYM_DATA(setup_once_ref, .long setup_once) > > /* > * BSS section > diff --git a/arch/x86/kernel/head_64.S b/arch/x86/kernel/head_64.S > index 8344dd2f310a..17543533642d 100644 > --- a/arch/x86/kernel/head_64.S > +++ b/arch/x86/kernel/head_64.S > @@ -463,9 +463,8 @@ early_gdt_descr: > early_gdt_descr_base: > .quad INIT_PER_CPU_VAR(gdt_page) > > -ENTRY(phys_base) > - /* This must match the first entry in level2_kernel_pgt */ > - .quad 0x0000000000000000 > +/* This must match the first entry in level2_kernel_pgt */ > +SYM_DATA(phys_base, .quad 0x0000000000000000) > EXPORT_SYMBOL(phys_base) > > #include "../../x86/xen/xen-head.S" > -- > 2.16.3 >