Received: by 2002:a05:6622:f08:0:0:0:0 with SMTP id l8csp4489430ivc; Tue, 3 Nov 2020 13:24:07 -0800 (PST) X-Google-Smtp-Source: ABdhPJxc+l50GfBDNhxZwR5WlpjCCVin/PpG+xw2COxRwv/j8shzohSr3UCMx/e7GT6gyCfktxj3 X-Received: by 2002:a05:6402:1148:: with SMTP id g8mr24805097edw.271.1604438646971; Tue, 03 Nov 2020 13:24:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604438646; cv=none; d=google.com; s=arc-20160816; b=vz3Cjv/A6s0nNWDbD5bEyhAoq81FH1cV20RA7BfLk7g9Mm1wdDS5L8z6o6TRSxfaVr 3ledX5FwXhTr2dZM1pCyeHVODPjRVGpJwlieqHGAy4JQ50Lh9akpV9ASUKeGP5Irpzpp xzvDzjG54yM+cUxo0JEwGb2Blt8768xIDFFO/zWeqIu3wLGexADQrCfzDQBt5TZHfgpo YAXlwMMNMREOUJfSTYMisnM/DSJM2XbEl0Z6AOet5P9CksZ4EOOs/NoHL+1UuFEAiSGh ystHF//qWOmv/LtZnzFW7QymDTqzQkFSWHx06iHjs7SdkJvZh/GIKmlzoQ/8oWWEF41X bEsQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=SnvK9BC+heYWpoatRC6Bes6szCeXfwAQc0jVaKj4+2g=; b=pKMtPhHsl1XnWbpO51AW8IHFEzWLVgc1Jc/iTJMHRiQI6z3VHCgY8oPionf3G8Jssx iEwxT7PnJr0Hrk4B7WKNwUvsP3fXPe3Un/9L9T0qJRZdD4v5sOyGdrH3WOEKs2/GZ8pb iOVsF57KAzPUmk2BBNwQsEJ2Pm74V/rYaCVblYp/xJOLGXXePccw90rAIG8L4tUnf8Ub 2QblmJWCoLyI+KZiUSwKOGSFxHPTo7J5EkuW9Mek/VihgumX08tQQNs7n0GL90rm/B/J 86QV7dtI8tNpwoleIfFh9FK0FOpRZZBBD/Jtto4RuCUzCnsbzLm1mAg/zOV0VHAXmRx/ 88ew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="nUB8S/vp"; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f11si12666751edj.402.2020.11.03.13.23.44; Tue, 03 Nov 2020 13:24:06 -0800 (PST) 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=pass header.i=@kernel.org header.s=default header.b="nUB8S/vp"; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388246AbgKCVUj (ORCPT + 99 others); Tue, 3 Nov 2020 16:20:39 -0500 Received: from mail.kernel.org ([198.145.29.99]:46112 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387918AbgKCVG6 (ORCPT ); Tue, 3 Nov 2020 16:06:58 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 63163207BC; Tue, 3 Nov 2020 21:06:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1604437617; bh=SsQ21psauNQMOVAYcBGWoatKQJJ8ekw1kabgZusMIC4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=nUB8S/vpHKAbZiYC0hV4oRj6iN0yHKlNlLNg7sodbJv36gk8/IoNiP+U/FseyOelY 3Gzyn9ZeRCGAJkwCG3/Y23EKfmO6nyB57fG8VCNkD6wtNFmrC6FhcDiARcF10fg201 b3v5stHTAiA3F31ReRkzCCf5HFBIP9uLiMe9OC+s= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Aneesh Kumar K.V" , Nathan Lynch , Michael Ellerman Subject: [PATCH 4.19 153/191] powerpc/drmem: Make lmb_size 64 bit Date: Tue, 3 Nov 2020 21:37:25 +0100 Message-Id: <20201103203246.934541690@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201103203232.656475008@linuxfoundation.org> References: <20201103203232.656475008@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Aneesh Kumar K.V commit ec72024e35dddb88a81e40071c87ceb18b5ee835 upstream. Similar to commit 89c140bbaeee ("pseries: Fix 64 bit logical memory block panic") make sure different variables tracking lmb_size are updated to be 64 bit. This was found by code audit. Cc: stable@vger.kernel.org Signed-off-by: Aneesh Kumar K.V Acked-by: Nathan Lynch Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20201007114836.282468-2-aneesh.kumar@linux.ibm.com Signed-off-by: Greg Kroah-Hartman --- arch/powerpc/include/asm/drmem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/arch/powerpc/include/asm/drmem.h +++ b/arch/powerpc/include/asm/drmem.h @@ -24,7 +24,7 @@ struct drmem_lmb { struct drmem_lmb_info { struct drmem_lmb *lmbs; int n_lmbs; - u32 lmb_size; + u64 lmb_size; }; extern struct drmem_lmb_info *drmem_info; @@ -83,7 +83,7 @@ struct of_drconf_cell_v2 { #define DRCONF_MEM_AI_INVALID 0x00000040 #define DRCONF_MEM_RESERVED 0x00000080 -static inline u32 drmem_lmb_size(void) +static inline u64 drmem_lmb_size(void) { return drmem_info->lmb_size; }