Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753607AbcKPOT1 (ORCPT ); Wed, 16 Nov 2016 09:19:27 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:59426 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751589AbcKPOT0 (ORCPT ); Wed, 16 Nov 2016 09:19:26 -0500 From: Arnd Bergmann To: x86@kernel.org Cc: Arnd Bergmann , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Andy Lutomirski , Josh Poimboeuf , linux-kernel@vger.kernel.org Subject: [PATCH] x86: avoid warning for zero-filling .bss Date: Wed, 16 Nov 2016 15:17:09 +0100 Message-Id: <20161116141726.2013389-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:ptg9PvTtssF4gcFyrTChDhHSj0DLTeHdsmaCR5ztBj6OFKp35Fm UhwQOFsYWyE4otCXY/GLGWIp6nA1kXcgqXlu8bupQ2BM0/ceZFsqRjmkg78CZpzgnFWPIdy cPrLXXIhn68EG+i9sTUDJFFOq+e0jO+giut7MdoUmwYsOiTTKgotz1yVhQE4EeE8xoGLlzN pJPAUaPRLy5zSO0pFnFEw== X-UI-Out-Filterresults: notjunk:1;V01:K0:nz0ob3nv6bg=:hgu9vF8OL6xmCEdz4FeqZD AvKX7Xgi5ynvfqtm6J1kcQmbMU2TPNn+UjGzbfRuA5WZ7gXzaDdM05usM42qLyjA5vTvPEI6F 9a6iyOVARCBoAgbKnF+hHy2qUV+52zNN+ItLOHF3dCAISxflg1IfymeJMw5P4brkIE58qkcDu HRXMGEKJw36h+TkYoj2LoLxgrk7FCYJgAT8Ocii00qf71FpEPcVxVRBuu0wyqPQ3th5/CP9PB 4G22XnN0ANV5jOu4HMI3TSGLprSctlXwFL4xH78nmWOykde2wc0F0+KwrWHepvxv9MUORS+cx AjpF1EUC6rf12zBFf/C8zHQ13OR/G18Lf7T3nNa/HQB6OnP5ZkP4jUCX+eYW1HwRKWBKbfWYk kPb6p/XHy/lkqyTNPQy2qDKJ1Zc2KtR8+Z2ThjwocRVrL1MC95rL1j7bSWjxBPph6/43z4CjV YDpXPAiOuPjRy1kpQQFxtIqoZNBPGDQAqlGIWcmBSOJBY5TzibqzgveKmY4VUs7iotyOcX7hD 9gLji/HGquaN0h02aGkzMziTa99Eat6xs96uW9I3hG5bMf4ZLHWsKJq6Huzr76eVeODGea5R2 he7HpTKdZ1SlcPCjWJEW3McmCNi0nRESF6TjwgYVzTltr6fFZC5eHSZLcL0+z9pdyzy4y47f4 PvSOr3x3uDqaT8yVV27Bz4OAbdWvG3fajpcS/PxEipPFMcp8R0iGrvpzAKC6vYHlCCKM= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1235 Lines: 43 The latest binutils are warning about a .fill directive with an explicit value in a .bss section: arch/x86/kernel/head_32.S: Assembler messages: arch/x86/kernel/head_32.S:677: Warning: ignoring fill value in section `.bss..page_aligned' arch/x86/kernel/head_32.S:679: Warning: ignoring fill value in section `.bss..page_aligned' This comes from the 'ENTRY()' macro padding the space between the symbols with 'nop'. Open-coding the .globl directive without the padding avoids that warning. Signed-off-by: Arnd Bergmann --- arch/x86/kernel/head_32.S | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/arch/x86/kernel/head_32.S b/arch/x86/kernel/head_32.S index df541ac2071e..4e8577d03372 100644 --- a/arch/x86/kernel/head_32.S +++ b/arch/x86/kernel/head_32.S @@ -669,14 +669,17 @@ __PAGE_ALIGNED_BSS initial_pg_pmd: .fill 1024*KPMDS,4,0 #else -ENTRY(initial_page_table) +.globl initial_page_table +initial_page_table: .fill 1024,4,0 #endif initial_pg_fixmap: .fill 1024,4,0 -ENTRY(empty_zero_page) +.globl empty_zero_page +empty_zero_page: .fill 4096,1,0 -ENTRY(swapper_pg_dir) +.globl swapper_pg_dir +swapper_pg_dir: .fill 1024,4,0 EXPORT_SYMBOL(empty_zero_page) -- 2.9.0