Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp8103226imu; Tue, 4 Dec 2018 03:03:57 -0800 (PST) X-Google-Smtp-Source: AFSGD/Ul1fvm4rWjoPU9WJAA9usKbGWhVRM5oHcOCCRyTiNU5tRY5yWmC6lu1TkmQH8p1xVBJ48p X-Received: by 2002:a63:a16:: with SMTP id 22mr16459863pgk.318.1543921436970; Tue, 04 Dec 2018 03:03:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543921436; cv=none; d=google.com; s=arc-20160816; b=ise7D26FSKjDjpv2xee8LwLeDs90acKMJgSaFndOhzvQib1hQXFiqoRm2A85rb6CFp zDxBubMU4XlEuruaSBrrc+lxkUdJGnWYBDZX7azlqPAN0alPi9uZX9QXaQnVk22K1FvQ 8C6EF3o5WSZ///eG1scFjQkqo72aJa9EcogoLfzstzFGwRHx7CzlkdWP3bYu2niVjn5A lByr7xHpfD4fU6YJgHOpXhacrDnaKc1TmfV+LzLtr70ML6iVePgPch4pIE9UKBeJJHLA bMmxqy1Mqr8S7AZ1WdTQqq5K2RhMYCWy84JiPmJC0rp3eA0ASXbkJtem+yYGdjECaf7B Dnzw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ibt5H+9svAJDwOXUNwNOuHiiUZwkQzNMCLP1EBKvxBA=; b=C2wSEEysyYUMQarlrtDpGjkwvrP0J//p6x64U61IurmLp0uF70V9eLGqvzRWlQt0D7 dr+chf7sBD2Hfb1MG+jO9JAuiUwM22WdieR3ef8yQ3wZZzxHNhTsDtiEJTBgZk6+fzuO Nn9TFwaCe2kyqFgOz0WPhBsNmegP0w5pjcnMJsIlrj5xGkmTHhl4J7b+XTEz/9Rq6JUI 2KxI7L6bnp9ZkDpmM/vZ4cjdAGOvWyywoob7Vkiz074t4LP+GBiNI5Mwn9RuNvZAxDAZ waqgcVOApJ4ibNweIgc8g2cuDyUi7snfUUclc0yAPDDpdIRt1KSHIfn/FvLcPGoE7l4h IUlQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ix6KzFHG; 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 1si4690112plr.189.2018.12.04.03.03.41; Tue, 04 Dec 2018 03:03:56 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=default header.b=ix6KzFHG; 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 S1727401AbeLDLA4 (ORCPT + 99 others); Tue, 4 Dec 2018 06:00:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:46204 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727384AbeLDLAw (ORCPT ); Tue, 4 Dec 2018 06:00:52 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 5AB99214C1; Tue, 4 Dec 2018 11:00:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1543921251; bh=R3Mq0D3gOTIu9ZzydZ+0LhtYD5w3f9Xohu81Tv5rqZk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ix6KzFHG1Pza9hsogKQmB73rsG8lIiA9XLjm9IZ8j+vqLNBD1OX+q21HHVLE2jIfC nsyDUIlmjERte9zSq+9jMtC02vJfAMFUAnZPaZ9WOyKHKaRCnxKhPBpn3RwdDp8f1g itBH6pfVFC4OYuQOFp0RWlw5OyzkzCZqNQp/vPgU= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, YueHaibing Subject: [PATCH 4.19 139/139] misc: mic/scif: fix copy-paste error in scif_create_remote_lookup Date: Tue, 4 Dec 2018 11:50:20 +0100 Message-Id: <20181204103656.593928957@linuxfoundation.org> X-Mailer: git-send-email 2.19.2 In-Reply-To: <20181204103649.950154335@linuxfoundation.org> References: <20181204103649.950154335@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.19-stable review patch. If anyone has any objections, please let me know. ------------------ From: YueHaibing commit 6484a677294aa5d08c0210f2f387ebb9be646115 upstream. gcc '-Wunused-but-set-variable' warning: drivers/misc/mic/scif/scif_rma.c: In function 'scif_create_remote_lookup': drivers/misc/mic/scif/scif_rma.c:373:25: warning: variable 'vmalloc_num_pages' set but not used [-Wunused-but-set-variable] 'vmalloc_num_pages' should be used to determine if the address is within the vmalloc range. Fixes: ba612aa8b487 ("misc: mic: SCIF memory registration and unregistration") Signed-off-by: YueHaibing Cc: stable Signed-off-by: Greg Kroah-Hartman --- drivers/misc/mic/scif/scif_rma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/misc/mic/scif/scif_rma.c +++ b/drivers/misc/mic/scif/scif_rma.c @@ -416,7 +416,7 @@ static int scif_create_remote_lookup(str if (err) goto error_window; err = scif_map_page(&window->num_pages_lookup.lookup[j], - vmalloc_dma_phys ? + vmalloc_num_pages ? vmalloc_to_page(&window->num_pages[i]) : virt_to_page(&window->num_pages[i]), remote_dev);