Received: by 10.192.165.156 with SMTP id m28csp1909118imm; Thu, 12 Apr 2018 05:44:24 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+TfpHxV7jd8V+EuaYrdr+83I0ybQIlHMr3/wJjYDobJTkywcG5Jv9ehMQmRZxQoBKEgw96 X-Received: by 2002:a17:902:579d:: with SMTP id l29-v6mr875301pli.163.1523537064467; Thu, 12 Apr 2018 05:44:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523537064; cv=none; d=google.com; s=arc-20160816; b=Xj3123o4zDhTyF9f3oCrH1MMic4+jACF6RTcjnRu+KnmAxP70nPLvjmRBLCIuvJdXS Vbh7AXauEHrNuPoBg+krpl1E7jZV2M7cAvtU7C6Q964ss0KPOavNWb820Ln9EY3JfYHu 5Ta5wUv1TH8jG/1zW/QFPatNlUqh2Wxi/hAo02RnMIS0i2ILzEPmcwZwvbz2XA/dSLvh mFHboySv/hOnuosTuc4mJJrf6geJ4cNtKA0MPk0+92DwehDI695mNOaE9CNUMqDVEPd1 8COyTBtmZl4H25rnsWqmvjbjPoh25daHHEsfs3BR1TS9RdUe+GpeQDBIlbxxKCGPPr+G RhDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :subject:cc:to:from:date:arc-authentication-results; bh=uvmhibTuqGiabw7BYth4g8YYfYTEFqmV7jt9csALaDU=; b=a9eEgVWQ8jRIreTJY7kCZugYwxbV+wDP4jVM8fy2Rr/vpA0UxV1b3LBzQCKRjldt42 zav7WWyieOL7cL0jZ3HGv+L8FwPsRZ7rMEBmDDuQNOm6DmAYiKjTBJZ7WYp8x9HQAt01 aIiV7d6F13ek+UhJVqgz6ZQzqzh60lyN24rW2WA9UDQjsTpIHskB+xuxRy1WQRWzNrp+ QzLjYkic4RI8rsCdbTOryV9keM+xNSizacUqTdEoztbnn+jYADg1rW6I5TXnbv2M84tn 515NYLx7ZRd8zd5TkxY+r7binV+fzwXVlPQiP0oG0xyW740I0j3ZjSfrbBZQF1iH9ZGT L4qA== 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 y11-v6si3283753plg.173.2018.04.12.05.43.47; Thu, 12 Apr 2018 05:44:24 -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 S1753090AbeDLMjQ (ORCPT + 99 others); Thu, 12 Apr 2018 08:39:16 -0400 Received: from mx2.suse.de ([195.135.220.15]:56178 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751832AbeDLMjP (ORCPT ); Thu, 12 Apr 2018 08:39:15 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 2F867ABDF; Thu, 12 Apr 2018 12:39:13 +0000 (UTC) Date: Thu, 12 Apr 2018 14:39:10 +0200 (CEST) From: Jiri Kosina To: Thomas Gleixner , Ingo Molnar , "Kirill A. Shutemov" cc: linux-kernel@vger.kernel.org, x86@kernel.org Subject: [PATCH] x86/mm: vmemmap and vmalloc base addressess are usngined longs Message-ID: User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Jiri Kosina Commits 9b46a051e4 ("x86/mm: Initialize vmemmap_base at boot-time") and a7412546d8 ("x86/mm: Adjust vmalloc base and size at boot-time") lost the type information for __VMALLOC_BASE_L4, __VMALLOC_BASE_L5, __VMEMMAP_BASE_L4 and __VMEMMAP_BASE_L5 constants. Let's declare them explicitly unsigned long again. Fixes: 9b46a051e4 ("x86/mm: Initialize vmemmap_base at boot-time") Fixes: a7412546d8 ("x86/mm: Adjust vmalloc base and size at boot-time") Signed-off-by: Jiri Kosina --- arch/x86/include/asm/pgtable_64_types.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/include/asm/pgtable_64_types.h b/arch/x86/include/asm/pgtable_64_types.h index d5c21a3..adb4755 100644 --- a/arch/x86/include/asm/pgtable_64_types.h +++ b/arch/x86/include/asm/pgtable_64_types.h @@ -105,14 +105,14 @@ #define LDT_PGD_ENTRY (pgtable_l5_enabled ? LDT_PGD_ENTRY_L5 : LDT_PGD_ENTRY_L4) #define LDT_BASE_ADDR (LDT_PGD_ENTRY << PGDIR_SHIFT) -#define __VMALLOC_BASE_L4 0xffffc90000000000 -#define __VMALLOC_BASE_L5 0xffa0000000000000 +#define __VMALLOC_BASE_L4 0xffffc90000000000UL +#define __VMALLOC_BASE_L5 0xffa0000000000000UL #define VMALLOC_SIZE_TB_L4 32UL #define VMALLOC_SIZE_TB_L5 12800UL -#define __VMEMMAP_BASE_L4 0xffffea0000000000 -#define __VMEMMAP_BASE_L5 0xffd4000000000000 +#define __VMEMMAP_BASE_L4 0xffffea0000000000UL +#define __VMEMMAP_BASE_L5 0xffd4000000000000UL #ifdef CONFIG_DYNAMIC_MEMORY_LAYOUT # define VMALLOC_START vmalloc_base -- Jiri Kosina SUSE Labs