Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4313403imm; Fri, 18 May 2018 03:04:02 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpR44SLS8OczmrfM+R7Klk59akHyiO1sGlMzMUaRACfp2GK/Utd3oJ6yrSuoVoG2A25Mw4z X-Received: by 2002:a17:902:9686:: with SMTP id n6-v6mr8676184plp.136.1526637842321; Fri, 18 May 2018 03:04:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526637842; cv=none; d=google.com; s=arc-20160816; b=qaq3c2D0BGGhCxZS0jnv3EIv/WA4H4iFjUxonuudgKwvAqgLnkHKE8ipZMrLhlfCrU HHaabcgUI/QbPhw70frSLpfM0jmlyyuMsunuolETL+WvOzXACLIAr1vsKqXHZTdEYVdx j45anxAXWPaWcux/urXt0EOJhfgCbdne6ffHngnzKQHSoV0WG3kwXUcdfsW6cjUF5OU1 mSMBNh5jb8+EUypYbE11FI2wCgtB/S5qzPUbyG36ZdV9yIJMBhu+0eSTRCUybtfAs0kt X8M11SNx7R9vg1ajZjy+PxfpVT+DrH6QWOMcdKPvJlfNvjN8OJz8agOV9gmo3ccNHgEy NTcw== 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=Yzr375WXBHmbLy+qxyj3SWqbrS+zFQIgXhoHkgf2vl0=; b=ZOxW5mdCmsxIuurWJFCPzL+ZV2IjfHkfNO61LaWzU3cqtmE1dp6nnflZyRsKjqnjgD hui5oTvrmmKscNgnXNF+Z/viaQwVNK5tIaS4+42U3a+JrxbcewX/tUUe8Jb0eN29jcwt JCzwzwRBffTKraD5slCY6UWWWtxJbQnp7S5zYdSnbCAnov3doRqKdPYgZLCkuV8YUGWw pp16DJN0RBX06DYik/fHErT49yw+OfinAeGPgbLOJeIrclJL+Bqem+fAiWQM83yv9ki4 P/t1g5Ku08gcva5xEozMhZuolEvd4UBi93AHWCmFl+wGzmS1t60hMFBI8ercLzjTxXik xixg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b=C9/PRSUs; 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 j6-v6si7246864pfb.25.2018.05.18.03.03.47; Fri, 18 May 2018 03:04:02 -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=C9/PRSUs; 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 S1752389AbeERKDZ (ORCPT + 99 others); Fri, 18 May 2018 06:03:25 -0400 Received: from mail-ot0-f193.google.com ([74.125.82.193]:41034 "EHLO mail-ot0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752168AbeERKDV (ORCPT ); Fri, 18 May 2018 06:03:21 -0400 Received: by mail-ot0-f193.google.com with SMTP id t1-v6so8453101oth.8; Fri, 18 May 2018 03:03:21 -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=Yzr375WXBHmbLy+qxyj3SWqbrS+zFQIgXhoHkgf2vl0=; b=C9/PRSUsH7pOKiDSqxM3kOQdiO0iHFXSX18PHlzlFHv+1hovxI4BdgANfrqBTgOqKd qZaxGpfBZn8kJt9fKNyvGP4IeUnzomqGdLS1LUowTnyPNsijagb9lFiqLDusMAE46p+8 3Z7OKSIEHiT2YBpyTmYABJNpCw6Dft6G72uH7TsrFLoUHtHwygaACjixexnrnlnT36vi cA1BFZUnzyfrIFRFnlAtnkdOVJHezm7n/stZ5y8C55E9Ihparss9r8W9l1DIO6IpxiIG E8usO//Cb+bSwOk3L4TLjEOK4h6OWBPGrX0Bv+j4kNP5Y8+vBT/Ck5SzgBecMx/Drxci QN5A== 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=Yzr375WXBHmbLy+qxyj3SWqbrS+zFQIgXhoHkgf2vl0=; b=QjsPFZlW366e1tl+UOM+2cb7YiqiDjmvUhyk6Cwx6FC05wIvfNn17fk6dA1pw9kVKw W9KubtWY/6RsDKbYYo+3uqhu62LFlbg/uvtPfVbckGgFU3kip4sKNX36sMdD0OJypYqp 1tTVpCg5pFphZHW5AY42CWV0smU9U/e0ngKLju20WcIyuwGPdLNhUSYodRwjAq2D+UpN cSQ2G+k7QhKQAIyGGzCBTOa3rJj14zzVQlEE5u0a8iP86/t4+KVqHxbK3KI0pYV5gWND ytackgQT+Fzb7TyygRaHYpg9T9gzSPtu3ptopnVRvBRa2QMStP2t9JAHn8l2waBC0g/g Iogg== X-Gm-Message-State: ALKqPwf5sE3GSA0VMvi+PC78Fp6gzZRbbn3VLfsOTwh/id1Su3w/CjK0 qqxQ7HG1HPP2bqNUnKcFj589gSvkCwI4+bEHW/U= X-Received: by 2002:a9d:5990:: with SMTP id u16-v6mr5582847oth.370.1526637801023; Fri, 18 May 2018 03:03:21 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:1468:0:0:0:0:0 with HTTP; Fri, 18 May 2018 03:03:20 -0700 (PDT) In-Reply-To: <20180518091721.7604-3-jslaby@suse.cz> References: <20180518091721.7604-1-jslaby@suse.cz> <20180518091721.7604-3-jslaby@suse.cz> From: "Rafael J. Wysocki" Date: Fri, 18 May 2018 12:03:20 +0200 X-Google-Sender-Auth: sKunSjCpImGYVkcQ0phG2NW5hz4 Message-ID: Subject: Re: [PATCH v6 02/28] x86/asm/suspend: drop ENTRY from local 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: > ENTRY was intended for functions and shall be paired with ENDPROC. > ENTRY also aligns symbols which creates unnecessary holes here between > data. > > So drop ENTRY from saved_eip in wakeup_32 and many saved_* in wakeup_64, > as these symbols are local only. > > We could use SYM_DATA_LOCAL for these symbols, but it was discouraged > earlier [1]. > > [1] https://lkml.org/lkml/2017/4/27/244 > > 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 | 12 ++++++------ > 2 files changed, 7 insertions(+), 7 deletions(-) > > diff --git a/arch/x86/kernel/acpi/wakeup_32.S b/arch/x86/kernel/acpi/wakeup_32.S > index 0c26b1b44e51..4203d4f0c68d 100644 > --- a/arch/x86/kernel/acpi/wakeup_32.S > +++ b/arch/x86/kernel/acpi/wakeup_32.S > @@ -90,7 +90,7 @@ ret_point: > .data > ALIGN > ENTRY(saved_magic) .long 0 > -ENTRY(saved_eip) .long 0 > +saved_eip: .long 0 > > # saved registers > saved_idt: .long 0,0 > diff --git a/arch/x86/kernel/acpi/wakeup_64.S b/arch/x86/kernel/acpi/wakeup_64.S > index 50b8ed0317a3..510fa12aab73 100644 > --- a/arch/x86/kernel/acpi/wakeup_64.S > +++ b/arch/x86/kernel/acpi/wakeup_64.S > @@ -125,12 +125,12 @@ ENTRY(do_suspend_lowlevel) > ENDPROC(do_suspend_lowlevel) > > .data > -ENTRY(saved_rbp) .quad 0 > -ENTRY(saved_rsi) .quad 0 > -ENTRY(saved_rdi) .quad 0 > -ENTRY(saved_rbx) .quad 0 > +saved_rbp: .quad 0 > +saved_rsi: .quad 0 > +saved_rdi: .quad 0 > +saved_rbx: .quad 0 > > -ENTRY(saved_rip) .quad 0 > -ENTRY(saved_rsp) .quad 0 > +saved_rip: .quad 0 > +saved_rsp: .quad 0 > > ENTRY(saved_magic) .quad 0 > -- > 2.16.3 >