Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1799633pxa; Thu, 6 Aug 2020 16:42:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJworpANLGkJ0Z6SM+pXz1UoDywH0q4wXk7VwOAIXSYfpf6fT9V/PH6iEkEHecF8Wu9v/Lct X-Received: by 2002:a17:906:1414:: with SMTP id p20mr6565491ejc.247.1596757328995; Thu, 06 Aug 2020 16:42:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596757328; cv=none; d=google.com; s=arc-20160816; b=VnhsF5kmR/TJDZu+B8R0KW9KX8QftgpjZj10mjzqfJ398sJ+OHQ8RQ3/xjbuW0IKmm 3V95avoqjagosiipoBOXghMU1yeMafmsMMylxuV/XNUOebbkQ/HXN8wq30GDv3Dtxw8R KMY8hy6MbjmxHW2wuSnjvKc3Ih8tQfmMg0+/ylnUOwMVdLXEvSJAbBBiYdkFkAEUXSyz UAzFWaaJoJYM0F5fWLCXJ0ztBtd0mBFBJXJhlejl4wZsydgYS0/9v8LeBnyWhRux/5GZ LKpYyAbB6Tike4QhTYEN7UhGiVWF2zZAc5+qcbnUipD8LUB9gInqmUjbNGF6lnj56vhZ nUuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :robot-unsubscribe:robot-id:message-id:mime-version:references :in-reply-to:cc:subject:to:reply-to:from:dkim-signature :dkim-signature:date; bh=CLpJDeFxy+PTx4/tTPkZdjyWW+ZYuXF66k678B1t4rs=; b=mUKgyoX5D0FcozDt4N4zt1vnrPAdiE+hfAilWwY4wdTbYTQ2B/LH3K9pGReFWwrnfP YyEK69RjYJf2Mq7gXXC6cWhKs7x3rsMLsapN4RXItXyFDbS5KWwKAxsBzanTFnfT+kCk FgTnRl7/EcpOQoCoOl91hlADzyT17OLMxqc/ZP+QHmcJXATyEc55Nav4Z/UNDqabhI9B bieFt+z7ZdNFLT1DVID8bp7wmJjbDSJNUhhWT6wpEYecD9ScpB3znU1G6d7k+63G2IBl 2iBBdQ9lSMCNSDWEv8zGm66jCnHkAoDPgyMUUhcvOBdiZTgB+H6vqkH+mC/Bql1jZ8pT ocqQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=aMqoema1; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e header.b="Tk5EY1R/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h18si4622745eds.431.2020.08.06.16.41.46; Thu, 06 Aug 2020 16:42:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@linutronix.de header.s=2020 header.b=aMqoema1; dkim=neutral (no key) header.i=@vger.kernel.org header.s=2020e header.b="Tk5EY1R/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727062AbgHFXkP (ORCPT + 99 others); Thu, 6 Aug 2020 19:40:15 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:60936 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726547AbgHFXiy (ORCPT ); Thu, 6 Aug 2020 19:38:54 -0400 Date: Thu, 06 Aug 2020 23:38:51 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1596757132; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CLpJDeFxy+PTx4/tTPkZdjyWW+ZYuXF66k678B1t4rs=; b=aMqoema19u4I+UEZh/OHpX5/t6hc11TnLMeDgv9Mykk5ndN6t0a0D9hb80Rr8TrKzOf4T+ M1hKA5DMqC+ByNdKyMeXRVUpj/IbOaeCdQB2QsWVlvJfTx0t+ZHqE+OFC8IoWDx4ETA0M3 pJxbrIz9VR8tJ7gFPrkWhKCWseErQo62fRUB6+3ZxZgQeFaRje5J5fJXuhDUnuJb9W2bUl LLPVCtb+yU2Rahqcf1a+471yDc0slYbdm4ff9VC7Mv/bzmDvQcA+cv7OfthIJSllM9WB7h 15iuWnlDG0KknkhKQgBBbO3HTvUTC8A8p5JUtggojMZoJYi6XPViNYRehKwd0Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1596757132; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=CLpJDeFxy+PTx4/tTPkZdjyWW+ZYuXF66k678B1t4rs=; b=Tk5EY1R/kqCQMZVHzBKj/uBDdZc3YcUMe768w0kFwSteOd8CX5tRXVQPPm0Hl1yM/t+XhC 1esuHuCd7zLWQJAw== From: "tip-bot2 for Arvind Sankar" Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: x86/kaslr] x86/kaslr: Replace 'unsigned long long' with 'u64' Cc: Arvind Sankar , Ingo Molnar , x86 , LKML In-Reply-To: <20200728225722.67457-20-nivedita@alum.mit.edu> References: <20200728225722.67457-20-nivedita@alum.mit.edu> MIME-Version: 1.0 Message-ID: <159675713178.3192.13197922720000433482.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the x86/kaslr branch of tip: Commit-ID: 3a066990a35eb289d54036637d2793d4743b8f07 Gitweb: https://git.kernel.org/tip/3a066990a35eb289d54036637d2793d4743b8f07 Author: Arvind Sankar AuthorDate: Tue, 28 Jul 2020 18:57:20 -04:00 Committer: Ingo Molnar CommitterDate: Fri, 31 Jul 2020 11:08:17 +02:00 x86/kaslr: Replace 'unsigned long long' with 'u64' No functional change. Signed-off-by: Arvind Sankar Signed-off-by: Ingo Molnar Link: https://lore.kernel.org/r/20200728225722.67457-20-nivedita@alum.mit.edu --- arch/x86/boot/compressed/kaslr.c | 13 ++++++------- arch/x86/boot/compressed/misc.h | 4 ++-- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/arch/x86/boot/compressed/kaslr.c b/arch/x86/boot/compressed/kaslr.c index 3244f5b..db8589c 100644 --- a/arch/x86/boot/compressed/kaslr.c +++ b/arch/x86/boot/compressed/kaslr.c @@ -98,7 +98,7 @@ static bool memmap_too_large; * Store memory limit: MAXMEM on 64-bit and KERNEL_IMAGE_SIZE on 32-bit. * It may be reduced by "mem=nn[KMG]" or "memmap=nn[KMG]" command line options. */ -static unsigned long long mem_limit; +static u64 mem_limit; /* Number of immovable memory regions */ static int num_immovable_mem; @@ -141,8 +141,7 @@ enum parse_mode { }; static int -parse_memmap(char *p, unsigned long long *start, unsigned long long *size, - enum parse_mode mode) +parse_memmap(char *p, u64 *start, u64 *size, enum parse_mode mode) { char *oldp; @@ -172,7 +171,7 @@ parse_memmap(char *p, unsigned long long *start, unsigned long long *size, */ *size = 0; } else { - unsigned long long flags; + u64 flags; /* * efi_fake_mem=nn@ss:attr the attr specifies @@ -211,7 +210,7 @@ static void mem_avoid_memmap(enum parse_mode mode, char *str) while (str && (i < MAX_MEMMAP_REGIONS)) { int rc; - unsigned long long start, size; + u64 start, size; char *k = strchr(str, ','); if (k) @@ -612,7 +611,7 @@ static void __process_mem_region(struct mem_vector *entry, unsigned long region_end; /* Enforce minimum and memory limit. */ - region.start = max_t(unsigned long long, entry->start, minimum); + region.start = max_t(u64, entry->start, minimum); region_end = min(entry->start + entry->size, mem_limit); /* Give up if slot area array is full. */ @@ -673,7 +672,7 @@ static bool process_mem_region(struct mem_vector *region, * immovable memory and @region. */ for (i = 0; i < num_immovable_mem; i++) { - unsigned long long start, end, entry_end, region_end; + u64 start, end, entry_end, region_end; struct mem_vector entry; if (!mem_overlaps(region, &immovable_mem[i])) diff --git a/arch/x86/boot/compressed/misc.h b/arch/x86/boot/compressed/misc.h index 726e264..3efce27 100644 --- a/arch/x86/boot/compressed/misc.h +++ b/arch/x86/boot/compressed/misc.h @@ -70,8 +70,8 @@ int cmdline_find_option(const char *option, char *buffer, int bufsize); int cmdline_find_option_bool(const char *option); struct mem_vector { - unsigned long long start; - unsigned long long size; + u64 start; + u64 size; }; #if CONFIG_RANDOMIZE_BASE