From patchwork Fri Jul 26 09:25:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anders Roxell X-Patchwork-Id: 169792 Delivered-To: patch@linaro.org Received: by 2002:a92:4782:0:0:0:0:0 with SMTP id e2csp12774401ilk; Fri, 26 Jul 2019 02:25:56 -0700 (PDT) X-Google-Smtp-Source: APXvYqxcn40VTDmC1wvHZy+V7lvO2FG0dnhb4xWnhMNciMKBPSfeC72ZFuoghDbUhqLQudJ9WD0t X-Received: by 2002:a63:30c6:: with SMTP id w189mr87561088pgw.398.1564133155812; Fri, 26 Jul 2019 02:25:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564133155; cv=none; d=google.com; s=arc-20160816; b=d1lne2XDT4PFHzI9IQKEHiiJbRE4LVBgjwuECutF2b+TyoC2lNGgu1z8mVHapFvlEQ 5+BaXq4O3ectvgTIGq/52d/v34x2WgjMrRfapQIb7Uk06ohKr/8zeUIDkJTuJ/jLVikM Aevplyj4+z0T+u2t8xzjT6ZwzIR20/5u1n7bV5r5+0iyDLk3wWHVrxl0YyOqvfGo1vqr dW+9DEC5A2R6Z1YCrY4o/hw8NmXM0089QXmqhAlZPzGJt8u2+1LCXsLKSme8LxhrgFEF DL118vs6mERVTblnDPMjguxM1M1ERokp5BXGfzCj0dTTjR1+7RbpaxancqRx27GXbd2a xlmQ== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=9+PIbmOU2L0JKXtCkLpSiyF+YIeyaYLwnS78i5Iju9M=; b=ETX8cZlavEDZ7E8odOVf0XZShBsVpRBg3Gv6Z0cIl2Ct178u+cckw5URBLuB6T2lop KOjqXgtQZtqYNf5CVgIp7dv38fWjwlD3Y/m52O51mtGHPUU83/Y6twGNnDeCQXOWhPqU A9rvEVl3dAhnS5CZ06QbNOcJwNMZVm/YFx3/Gv1uIFB2g84B/AlDGX04ngkTnc2TiP0e a4IpGlxh+KXeQV+Hq7CEWk0PzMnYPsYtGpqlNypTV7q9l6luBFxCyNHx0Bj4KLZjDdn9 kNkHu5jlHjLlykIkELYDVgfF8lQ3gKPKIZTmoQcSiG003Vk5iCnNOy8BnkGTViQQTCHJ DwSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dbYOmz3U; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z17si16617120pjr.21.2019.07.26.02.25.55; Fri, 26 Jul 2019 02:25:55 -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; dkim=pass header.i=@linaro.org header.s=google header.b=dbYOmz3U; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726283AbfGZJZy (ORCPT + 29 others); Fri, 26 Jul 2019 05:25:54 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:36755 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726007AbfGZJZy (ORCPT ); Fri, 26 Jul 2019 05:25:54 -0400 Received: by mail-lj1-f195.google.com with SMTP id i21so50834972ljj.3 for ; Fri, 26 Jul 2019 02:25:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=9+PIbmOU2L0JKXtCkLpSiyF+YIeyaYLwnS78i5Iju9M=; b=dbYOmz3UopyNMm7b+ZL7OYeHZdKMjC8uKvQEM6zd4xeZieU1Gi9gvjgH3EC1AIvYE7 duuZwTh1H+R8KFptKI/jmo5gs6vbyo1Hn4Yvszu+PAhMscpBeKE0NUDIEylJzsG9RQXx O2eO72Dl+2cezfYqquobSJ95toySzW4VpudQ7IDc/a/BCdxaZULQMFGSNR1MEkaqRfzu yw4myOKYtau9cDEFTvOv9lQXp+tPo3R7FgKpCKwXTLMufDI4BbufB6HK0z6U+rlKB8h6 Txn8SJkVcvNbYm8TbvLQK9gHymzUcOxdcaMUAG9qs1HWphbaCs1bXctY+Umltlf2xL9w VbSw== 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:mime-version :content-transfer-encoding; bh=9+PIbmOU2L0JKXtCkLpSiyF+YIeyaYLwnS78i5Iju9M=; b=lLn8rcYYTn1B+/uNiI4dtnEWPyJO52wsQMmjWavrnqDnlKM/ynx3zt6AjVaBA7wSQ0 YBi8INIUU+hV1u+b2wciayic7NJmuVtMTztvi6qAYX7TljZpO3zOarz9nBaLknlPWSYX nAutxoP1PLOrs297CBJS4yEkAINk3ciRWOZR1aG7iajejJYV02yCTrAF/bMiDSS5yXR8 amCdFxTFhMD022ISvQ5HK0gG9OyAq9UMbo5aqCJFdFJIpvXC3oVKH+mOOvl5cMJDBWLh z3RsI96TMMVxQovL3uz0prAa6P00TcU8QEWiff01jICvmAyPl6VCUqqg1bTs5rPI460l zjaQ== X-Gm-Message-State: APjAAAWB6k6zAlmqUCUYLbEZzHSW/ZZTtxgdzskKUxYfscgbzIBXTZQY BbCkJqVhlaa4Q8b2zrHyPIXSag== X-Received: by 2002:a2e:a16c:: with SMTP id u12mr46776497ljl.59.1564133151828; Fri, 26 Jul 2019 02:25:51 -0700 (PDT) Received: from localhost (c-243c70d5.07-21-73746f28.bbcust.telenor.se. [213.112.60.36]) by smtp.gmail.com with ESMTPSA id m17sm9919308lji.16.2019.07.26.02.25.51 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 02:25:51 -0700 (PDT) From: Anders Roxell To: bmt@zurich.ibm.com, dledford@redhat.com, jgg@ziepe.ca Cc: linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org, Anders Roxell Subject: [PATCH] rdma: siw: remove unused variable Date: Fri, 26 Jul 2019 11:25:40 +0200 Message-Id: <20190726092540.22467-1-anders.roxell@linaro.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The variable 'p' si no longer used and the compiler rightly complains that it should be removed. ../drivers/infiniband/sw/siw/siw_mem.c: In function ‘siw_free_plist’: ../drivers/infiniband/sw/siw/siw_mem.c:66:16: warning: unused variable ‘p’ [-Wunused-variable] struct page **p = chunk->plist; ^ Rework to remove unused variable. Fixes: 8288d030447f ("mm/gup: add make_dirty arg to put_user_pages_dirty_lock()") Signed-off-by: Anders Roxell --- drivers/infiniband/sw/siw/siw_mem.c | 2 -- 1 file changed, 2 deletions(-) -- 2.20.1 Reviewed-by: Bernard Metzler diff --git a/drivers/infiniband/sw/siw/siw_mem.c b/drivers/infiniband/sw/siw/siw_mem.c index 358d440efa11..ab83a9cec562 100644 --- a/drivers/infiniband/sw/siw/siw_mem.c +++ b/drivers/infiniband/sw/siw/siw_mem.c @@ -63,8 +63,6 @@ struct siw_mem *siw_mem_id2obj(struct siw_device *sdev, int stag_index) static void siw_free_plist(struct siw_page_chunk *chunk, int num_pages, bool dirty) { - struct page **p = chunk->plist; - put_user_pages_dirty_lock(chunk->plist, num_pages, dirty); }