Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3705493pxb; Mon, 24 Jan 2022 15:54:27 -0800 (PST) X-Google-Smtp-Source: ABdhPJxSOKzwI9WfCxBLrma6VS3sPPYryyUKOg2KE9feNflhdyKkw7yxvFXLIsfDayjQsNhESE3g X-Received: by 2002:a17:902:bcc1:b0:149:a13f:af62 with SMTP id o1-20020a170902bcc100b00149a13faf62mr16496436pls.147.1643068467121; Mon, 24 Jan 2022 15:54:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643068467; cv=none; d=google.com; s=arc-20160816; b=Uz2mJyTef+VP6qsXsXWmcFZWg/+i7+AKwuqps/NfM0wEot2sP4faYjOMLiAKFnh7uI bCFTnIByiPsiUdpXDZw+U+Vpvh2Dj48pUlDusyhu4RncA926vUZiOrlljCAriWPPpqRL Tby3PchTQicpnm747nEWbY1yL0eeRYm+XhxOK+EfUSvsBvdlmAw07QapADvij/ZaDqkO 9T3NNQCQJLPUNRojhr2hJfefpYj0tT0/uDlTBM1T9fRtU1GKzL5m3idBKHaG+fjX2PC0 dF1qChxM1c6yGPnKg+5XCK3KLN49fOp/N+X7Mp4JiEWPYeX35HrTCAAm13EOTYF/KdIf wodQ== 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=wDEEJeFcbapJc4CAOUo/75HLiBk/J4bcg1O8uyh1J2+Y3SDOynR5xFPeWHxLJd309/ hAdmiXPr6aMe/+aD54qh6GLH/wm5DtMpVZ9VRq7wO6mqu6nxBrnNDIl3MFcUiA4sgXKi 37Kn8J15YYrlWqs8lOBnnXdUS8kUWOYj54ijXPP6lOSfskBj2GqDVuTPHaljOn8nKD7S VyvffWtFWt43mJThzsJeicJsLvfJYFfIz4c1mbSR6K/TwupRTG29Gb6OIkg5ehx/bbHV RFCUMX9VHRm76TwwhuizSsyT7KwlbZaOyI5x+gm5OkjOMk/3xFj30PDMJUQFT0oxaw6f t4/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tqmrEQ0l; 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 q9si13665502pll.90.2022.01.24.15.54.14; Mon, 24 Jan 2022 15:54:27 -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=tqmrEQ0l; 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 S1841214AbiAXXqO (ORCPT + 99 others); Mon, 24 Jan 2022 18:46:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1587682AbiAXW4K (ORCPT ); Mon, 24 Jan 2022 17:56:10 -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 B7C29C055AB9; Mon, 24 Jan 2022 13:11:31 -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 5542A612E9; Mon, 24 Jan 2022 21:11:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37E74C340E5; Mon, 24 Jan 2022 21:11:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643058690; bh=EjYjonRQitSknKhd+4bksVPMqHt1V78cIUfxjZQC6x8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=tqmrEQ0lA+GZgDVofYxvIol4+SCyesyj1f0UsiTN5uMDA25z/QeZQ38ENdo+HvxYz v01+6lx2lTo49My9PqBXLyF3gcSCb4PuMj2UHcu/ykZz7diw2JEyHgJFO2FF5NXkyp bVocoyqZTwPZfSjy3Clta3zKOCcrGGRi2iWEI9y8= 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.16 0338/1039] um: virt-pci: Fix 32-bit compile Date: Mon, 24 Jan 2022 19:35:27 +0100 Message-Id: <20220124184136.668044062@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@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