Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp802540imu; Tue, 11 Dec 2018 07:49:46 -0800 (PST) X-Google-Smtp-Source: AFSGD/U+TRrdCsvMWy6atatVQlNozwd7ca4o+pHVd4nyRpNoGfxPrEYgQ+Y/N7TZ2D0y3EOZGtGo X-Received: by 2002:a17:902:6185:: with SMTP id u5mr16396001plj.194.1544543386358; Tue, 11 Dec 2018 07:49:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544543386; cv=none; d=google.com; s=arc-20160816; b=oHe0tIK9VQDX25bl6aKBbotBCmnhWksBqIEbtGygy39hHJiIZzrhB8XJHD4Ns5TuTQ akV0f99Acrcl8zv//NiixcMAqSX77HQZuWraaDaFjBQ+mvzY2f9xTMvw92entc0udhQW XH2kIOlsbGyGARbOfiQF0+bfF/aA/XvAb26x+DrCW1sj9YEPu8XHNYvSL6EpJOY968za Eyfzm3s3M6w4ms4q6IlVQ9XsABbbHQzKxRTuFE/5vsQJewbuulS+Z9O6GiyFNm73Dnid ak1Ts0MvVMDetUtlUrO7CzfwTJk2pE79VTTJKMlhfHNKYGDqQ+yZyJb2d8deBIiT5QyY f0aQ== 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=OS9E9B1TIm4Fg1QHqruEwj55pStCACDh4Xv51oiTMRA=; b=ufK9oloUOrO610xeoPmKtjrKJ1v8VRHjLKPt9tP+uBwsatC7Ku86PE91o3VuBYKOPm NdmkAR3YFJ2QAQfceuEDzUBuaucM4YnF7VO1NULb3Y/CX7gn8N2W6iIQDZQhSIl8bweo L8rOVJk0Wo5DTa3qefyhRuzE2eIw5dmxv7+cAyCMESJ3sbbnPefdheWWFFgnKY8Z9HWb N9MBMJEis8CWsZONIUBgeSDlpExcX9V65mC20fiJS58ylVgG6MYZ7M6D/T3XM+d6DIfh pGhQ6shfDU+j9d4SEavelYvgFW2miRv0X1ITPpqXJHWelLnbNaQ2fg3S/GkSDvhwR9wf rzyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Ra7FLk4F; 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 c11si12446002pgj.255.2018.12.11.07.49.31; Tue, 11 Dec 2018 07:49:46 -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=Ra7FLk4F; 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 S1728417AbeLKPqu (ORCPT + 99 others); Tue, 11 Dec 2018 10:46:50 -0500 Received: from mail.kernel.org ([198.145.29.99]:35166 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727912AbeLKPqr (ORCPT ); Tue, 11 Dec 2018 10:46:47 -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 5597A2087F; Tue, 11 Dec 2018 15:46:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544543206; bh=LtE0N+9Br/zOevKM8nOtBH6a6VW+TdTNwi4bYBW/TAQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Ra7FLk4FjO0O1r4P8I8m/mbffwEqNZWrqyZeXNQxIgHH2Sd1O4ZI7RHxBMpqE7h4R kOxMlITJwSVc13gzPWhpOpQMPiMNMpQV+WWoh4btRLfw+iS2cdReI8OPHhr0CNQsEz RyqK1cOtstYsaCsMprEPSwg/m2LUKJQ8GXYCSo+c= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, YueHaibing Subject: [PATCH 4.4 20/91] misc: mic/scif: fix copy-paste error in scif_create_remote_lookup Date: Tue, 11 Dec 2018 16:40:39 +0100 Message-Id: <20181211151607.457147313@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181211151606.026852373@linuxfoundation.org> References: <20181211151606.026852373@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.4-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 @@ -414,7 +414,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);