Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp107081ybb; Thu, 19 Mar 2020 12:30:11 -0700 (PDT) X-Google-Smtp-Source: ADFU+vt2tdGnuTJ7dyAbbfvPMs8XKu6zkrb0L1j43YXGL8U4ZUvReuql+ZwdvRYyoOlNMa5NHgTB X-Received: by 2002:aca:bc86:: with SMTP id m128mr3696927oif.11.1584646211818; Thu, 19 Mar 2020 12:30:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584646211; cv=none; d=google.com; s=arc-20160816; b=R/Q32y0tj/k2wPS+7M7JEreEbVR6U34SlsqUyerW1rkM7StULewOrtFCAVFA0o5gez 2It+V0sWof1iS4JWPPimBtPoA5FvIFWr5d+xL5FJ0h1A/2lcqqMpk0SwgTKmf4SHumZR RhX6y7npn1xze+vslc69XBooSGVnuw+csACHbjv+HaElkq7wPtvIDs7EwJW7PKE855Xd 6L8S/vHbPX1oE2YNuTBW5kMf+4RquYHErtBU6zsBveAImGIuoAFwdrNIbmGoEpMW6d9o H+9klwCI+CaNjk8QYgU7+wieMmyzT41YXTjsOBZv74N2at1HwtahVfmUvZFprMXw3sbF 6qig== 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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=IbeHQl1XqMr+8edKb2icuORkyf9Hpoc/AyZgQ5A8vls=; b=QWiSrfYDGnx3n82gkMJHv5/23TlnV4ZVpWaUkhDriklgyGcAPyqcdVlIX4OIy5M8Kj Mu+SP9p01aDx5M3V+qFaOt2Xt/7IV2ZJeQo8kXXT1SzvGlo7/OPyJkont+alQMsrayjt SPN7ZVjSpF9GOrhVu6ISf1Qapbvp6EA1/zWnYbKm7h1wABAGaetCuQXSFWWnKM9Waazs 4xyONFRha7er6DKYTyLoVAdiwhbMW0Zz2sMeq5n2pc7Va3OFM6PayfyaqX3Is/J6xLpB 4KGpL/kgV9xBOIyHo5SC0YO8st1bRz/IjzFnQOzagPz4SexxcD1YVPqrng8XRNfPNZL6 I6Vg== 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 u21si1356673oiv.267.2020.03.19.12.29.59; Thu, 19 Mar 2020 12:30:11 -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 S1727775AbgCST3K (ORCPT + 99 others); Thu, 19 Mar 2020 15:29:10 -0400 Received: from mail-qk1-f194.google.com ([209.85.222.194]:33774 "EHLO mail-qk1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727639AbgCST3E (ORCPT ); Thu, 19 Mar 2020 15:29:04 -0400 Received: by mail-qk1-f194.google.com with SMTP id p6so4459991qkm.0; Thu, 19 Mar 2020 12:29:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=IbeHQl1XqMr+8edKb2icuORkyf9Hpoc/AyZgQ5A8vls=; b=idy4yyNwb4MI3FFc5UjJ6ni3QuM/fcDK8Vn/Kzlsf+sH51Ps7xSZOGsELcXuEmzB2d dg8MtnzlZOjxZK+AoX1FpMcuBCQPuqTbQ4vKtrVr/qGQah2dyjlnssweF35inTvBFogF UIuvXxo6dP3cce2fRZ1ecprLnrilL4AU82QgyET8pwIds0smrxI4exu66CK9rpWa0ZtN dYgIsBlVEGdF34Fnc+Txfn2DZWJVwqaUTOnR5Q4CypicqjGgbJCGudCKVcKfnj0UP0/k zc+18wLKqVFX18gjKrttpcDMB54dWhUAl945jB7OMlaqqW7YPsnKb/uTCngbtKv5rTVN sMUg== X-Gm-Message-State: ANhLgQ0wJAlhZpzzdiUQQm9VAomHvI9col9py5l5uAbpB8ok/l0BJ3CB NDXzs4+tq9kwMIgsHiart6A= X-Received: by 2002:a37:9f58:: with SMTP id i85mr4494627qke.196.1584646143519; Thu, 19 Mar 2020 12:29:03 -0700 (PDT) Received: from rani.riverdale.lan ([2001:470:1f07:5f3::b55f]) by smtp.gmail.com with ESMTPSA id x89sm2292649qtd.43.2020.03.19.12.29.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Mar 2020 12:29:03 -0700 (PDT) From: Arvind Sankar To: Ard Biesheuvel Cc: linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 07/14] efi/gop: Use helper macros for populating lfb_base Date: Thu, 19 Mar 2020 15:28:48 -0400 Message-Id: <20200319192855.29876-8-nivedita@alum.mit.edu> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200319192855.29876-1-nivedita@alum.mit.edu> References: <20200319192855.29876-1-nivedita@alum.mit.edu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the lower/upper_32_bits macros from kernel.h to initialize si->lfb_base and si->ext_lfb_base. Signed-off-by: Arvind Sankar --- drivers/firmware/efi/libstub/gop.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/efi/libstub/gop.c b/drivers/firmware/efi/libstub/gop.c index 0d195060a370..7b0baf9a912f 100644 --- a/drivers/firmware/efi/libstub/gop.c +++ b/drivers/firmware/efi/libstub/gop.c @@ -158,8 +158,8 @@ static efi_status_t setup_gop(struct screen_info *si, efi_guid_t *proto, si->lfb_height = info->vertical_resolution; fb_base = efi_table_attr(mode, frame_buffer_base); - si->lfb_base = fb_base; - si->ext_lfb_base = (u64)(unsigned long)fb_base >> 32; + si->lfb_base = lower_32_bits(fb_base); + si->ext_lfb_base = upper_32_bits(fb_base); if (si->ext_lfb_base) si->capabilities |= VIDEO_CAPABILITY_64BIT_BASE; -- 2.24.1