Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3654154pxb; Mon, 24 Jan 2022 14:32:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJyh66/PDOfcoaePpY9bqcRAlCq1bqowkr3JnK4ilzZr9w33rnQRmpdhnUmJY6u3XXiJTRZ5 X-Received: by 2002:a17:902:a38a:b0:14a:d175:9b06 with SMTP id x10-20020a170902a38a00b0014ad1759b06mr15592720pla.64.1643063530042; Mon, 24 Jan 2022 14:32:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643063530; cv=none; d=google.com; s=arc-20160816; b=YpvLA7UIkUE2o86hP7UgFoCcAEWOt5bDRyzQ3Ce8ISk0BkS3iMhXHx3M8c9sxCrmHf PD9LOax7uA9G33rbUZDesINOP43GHbL0zTAK1rPwWUlA5ORM2Ors7ozMqPzaxmsY6w6f +yHfz2P6pUwt1oBsEmJoBXYqbMAtQQWVCt3SChQbBOvrSNiDnk0ir2MG02n9q/7Mc8Vi xbGKz9HgS6AjxKGKkwaUflPwm978VmAjeGbcN38Q4RBsceBsZQtLFWJ00tlXR+ubQM4b 069pGjMJ+S/qppXjDTUrxppSmy4QndNLniRD1UjXlU5EwVEqBsmc6nrbIYIptzLGyioA jbmQ== 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=6lA7JTgSLfgGTOS2oToZZZ/zsM33t/Gh78crNOIOKFA=; b=nIHuM3ElJmhleYaLFvnJj33QEDQuTU6NkEXNNPt29ClGWx59woTgqJtJQPNgusLQLq eURnCc+GgOXDv3bFfCqrcu1V4g4uPoivqEZYGuD1u6+gZVZGKW8Gs6hNk0NuEghKIJ0f wqn/ZfB0Gm3kVEIYxDY2wNzAyenyArww5ZG+eF7tWIIZ3YYkE0qbZwZtQVUOri6hm7uf w6adALyo+0Isa38F6ihD4geoyl2btYX2vNwr9rsCO3gmBS10oD9nlQWeGHhelsoE3yDX zhix+pBhWqWSUZeEYRcT+V0lOpEsuGN4Qy4/f4v1rHKFlGgfNBeZQqVUzXeH8aRhwz2Y SZ5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=WCBXIWm5; 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=pass (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 j5si8884928pfj.271.2022.01.24.14.31.57; Mon, 24 Jan 2022 14:32:10 -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=@linuxfoundation.org header.s=korg header.b=WCBXIWm5; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1587836AbiAXW3r (ORCPT + 99 others); Mon, 24 Jan 2022 17:29:47 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1456071AbiAXVhm (ORCPT ); Mon, 24 Jan 2022 16:37:42 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 58550C0BD127; Mon, 24 Jan 2022 12:23:53 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E9E9D614F5; Mon, 24 Jan 2022 20:23:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9418CC340E5; Mon, 24 Jan 2022 20:23:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643055832; bh=EjYjonRQitSknKhd+4bksVPMqHt1V78cIUfxjZQC6x8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=WCBXIWm5mqKw161ku+zft7OV5+mRWEgidbB92wD/oV+dCNA8dBZwwSPaChKVdkujE a2fe5E7DZVms0FGYimRLyxC+iZZ6qE/v3G/p+v1F/VlzmpVTaMRvR3r9iFg6B+XLrl z6A2n6ERy0A+jLl/JhYgWGNrByPYGJ5XoricaQOs= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Al Viro , Johannes Berg , Richard Weinberger , Sasha Levin Subject: [PATCH 5.15 280/846] um: virt-pci: Fix 32-bit compile Date: Mon, 24 Jan 2022 19:36:37 +0100 Message-Id: <20220124184110.591715988@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184100.867127425@linuxfoundation.org> References: <20220124184100.867127425@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: Johannes Berg [ Upstream commit d73820df6437b5d0a57be53faf39db46a0264b3a ] There were a few 32-bit compile warnings that of course turned into errors with -Werror, fix the 32-bit build. Fixes: 68f5d3f3b654 ("um: add PCI over virtio emulation driver") Reported-by: Al Viro Signed-off-by: Johannes Berg Signed-off-by: Richard Weinberger Signed-off-by: Sasha Levin --- arch/um/drivers/virt-pci.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/um/drivers/virt-pci.c b/arch/um/drivers/virt-pci.c index c080666330234..0ab58016db22f 100644 --- a/arch/um/drivers/virt-pci.c +++ b/arch/um/drivers/virt-pci.c @@ -181,15 +181,15 @@ static unsigned long um_pci_cfgspace_read(void *priv, unsigned int offset, /* buf->data is maximum size - we may only use parts of it */ struct um_pci_message_buffer *buf; u8 *data; - unsigned long ret = ~0ULL; + unsigned long ret = ULONG_MAX; if (!dev) - return ~0ULL; + return ULONG_MAX; buf = get_cpu_var(um_pci_msg_bufs); data = buf->data; - memset(data, 0xff, sizeof(data)); + memset(buf->data, 0xff, sizeof(buf->data)); switch (size) { case 1: @@ -304,7 +304,7 @@ static unsigned long um_pci_bar_read(void *priv, unsigned int offset, /* buf->data is maximum size - we may only use parts of it */ struct um_pci_message_buffer *buf; u8 *data; - unsigned long ret = ~0ULL; + unsigned long ret = ULONG_MAX; buf = get_cpu_var(um_pci_msg_bufs); data = buf->data; -- 2.34.1