From patchwork Sat Dec 1 02:06:11 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Yue Haibing X-Patchwork-Id: 10707533 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 93A401057 for ; Sat, 1 Dec 2018 01:58:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 776492F908 for ; Sat, 1 Dec 2018 01:58:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 679282F926; Sat, 1 Dec 2018 01:58:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0F7F2F908 for ; Sat, 1 Dec 2018 01:58:23 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id C9C5F6B5B56; Fri, 30 Nov 2018 20:58:22 -0500 (EST) Delivered-To: linux-mm-outgoing@kvack.org Received: by kanga.kvack.org (Postfix, from userid 40) id C4BD76B5B57; Fri, 30 Nov 2018 20:58:22 -0500 (EST) X-Original-To: int-list-linux-mm@kvack.org X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id B61536B5B58; Fri, 30 Nov 2018 20:58:22 -0500 (EST) X-Original-To: linux-mm@kvack.org X-Delivered-To: linux-mm@kvack.org Received: from mail-oi1-f198.google.com (mail-oi1-f198.google.com [209.85.167.198]) by kanga.kvack.org (Postfix) with ESMTP id 90F8F6B5B56 for ; Fri, 30 Nov 2018 20:58:22 -0500 (EST) Received: by mail-oi1-f198.google.com with SMTP id x65so4065694oix.0 for ; Fri, 30 Nov 2018 17:58:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-original-authentication-results:x-gm-message-state:from:to:cc :subject:date:message-id:content-transfer-encoding:mime-version; bh=QyYz46R7CPt/O1Z6VohAxaCkQnAqaygMAyfarJOigUE=; b=eW0FegxTiHfj/ug2IdwYzAhPrpXvThu//FAC497Z0NDQja8VrLW1waRKeMWC73Qtvv bt6y0eWOzG7LsmcLMnKbO8KjzG3mvEW6bekELRby6MQ+kGjq9QcEb03cYkV7/S6SdA8/ 378pJ7jwwH5UMzv3t4cPeaeaDQSgPUA/NriAYePJ8WBwPWf/TncGj014lAbJAYc0zRtn 6SRDRBm6pCwQ/mHaxpoNwUchKai73DEwX1PLUsZplUA7EhujDo+mMjKKyJv3TmspTZSH TSm7SpuDVdTMbxlWeBgPqFuAEV8NNnJbjHAFWMJw3F+Op4sqgglzPXon1mm4xZo6knUy 4DwA== X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of yuehaibing@huawei.com designates 45.249.212.190 as permitted sender) smtp.mailfrom=yuehaibing@huawei.com X-Gm-Message-State: AA+aEWbhl+X+B4Jgx46NP39VHvy+386+yr9jYtIM3EE3SA/nbJTRC7Af B9x7tqdoF5SqvOwon0oo7uQE8U/egDeQ6Q+dvMddGZL1GgfZVNV35xKL+W9ocprQA/aDYDEfrpV aLWsO3r1qSkAtph2+qSzann7JsHKZEkm4bBKeX8fMc2jrEg/MIDpEhIR+EBBWMoIoEg== X-Received: by 2002:a9d:1405:: with SMTP id h5mr4575737oth.331.1543629502362; Fri, 30 Nov 2018 17:58:22 -0800 (PST) X-Google-Smtp-Source: AFSGD/X/eILp/4I+l6JM1bM+eEYRjLDf6WxMmHaqSSBUmcKSBIMgwJzO8NGeYme7qtjoCdmqdUxt X-Received: by 2002:a9d:1405:: with SMTP id h5mr4575721oth.331.1543629501832; Fri, 30 Nov 2018 17:58:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543629501; cv=none; d=google.com; s=arc-20160816; b=zuNEneJnQT2Nn/BZkeufHRA7wBmlf3Xk/fi7lcF/ho8CdMuXTHTCpa8xkrC14vErUW OBuJe+TDCsXuQRXbO7VqZv2URAWisDO43aSU4evzYt0lCw6a5/h8igjS6uKO7QEk0/sz DRI7cGrGrQP9XaKbA8mZgOdQ0xdoRfcKrfqrRmvnrsAwBXMg0JtdVO3bWyM0AX51S2uS BczxBnkwBSmz7D9fXTeESTz7HoeeLOUQnuur5suiaMXFZILmxqMbWuMdVViN7jACY5Yb WMH1njdAauIzw0KfNiGAptnExF7ac4FvsBzA4P4TAsHGY+TEoSejY+Yxpx7gtl437eb3 TyzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:content-transfer-encoding:message-id:date:subject:cc :to:from; bh=QyYz46R7CPt/O1Z6VohAxaCkQnAqaygMAyfarJOigUE=; b=WWiSFAk+IsxGabD5VBYRTNOmcUyDoLHOlupeIPUcT8xrQ6mA3z5OAKfm8gwChIeCT7 eHf4bCov2RHSl3FTkK6v13LN2ErjtVxn/MZ019CjVOWxwvzGOW37qH1+A2MRbSxeZVeT E7NxBdX5zH3/Ba2xiDJs27TMgXE1TW1jEZakYNkztTLZdEFZXmqmp172iag24PuzTVF1 pbxwgzSYE2grxjYnm6uS0pe8dxIN8+9e/p9KDO+Z3tBNnwOJVgfGe48YOFaiX4SganSK 22/kVMcBBVAKZIBicgbIYTICTSNcBq+cj1qrfiQTXw/G4um2TTligOFvNnyeGRwkFSwf UlUw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of yuehaibing@huawei.com designates 45.249.212.190 as permitted sender) smtp.mailfrom=yuehaibing@huawei.com Received: from huawei.com (szxga04-in.huawei.com. [45.249.212.190]) by mx.google.com with ESMTPS id x10si2746429otk.295.2018.11.30.17.58.21 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 30 Nov 2018 17:58:21 -0800 (PST) Received-SPF: pass (google.com: domain of yuehaibing@huawei.com designates 45.249.212.190 as permitted sender) client-ip=45.249.212.190; Authentication-Results: mx.google.com; spf=pass (google.com: domain of yuehaibing@huawei.com designates 45.249.212.190 as permitted sender) smtp.mailfrom=yuehaibing@huawei.com Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 8831F7E4390A1; Sat, 1 Dec 2018 09:57:47 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.408.0; Sat, 1 Dec 2018 09:57:40 +0800 From: YueHaibing To: , , , CC: YueHaibing , , , Subject: [PATCH -next] mm/hmm: remove set but not used variable 'devmem' Date: Sat, 1 Dec 2018 02:06:11 +0000 Message-ID: <1543629971-128377-1-git-send-email-yuehaibing@huawei.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: X-Virus-Scanned: ClamAV using ClamSMTP Fixes gcc '-Wunused-but-set-variable' warning: mm/hmm.c: In function 'hmm_devmem_ref_kill': mm/hmm.c:995:21: warning: variable 'devmem' set but not used [-Wunused-but-set-variable] It not used any more since commit 35d39f953d4e ("mm, hmm: replace hmm_devmem_pages_create() with devm_memremap_pages()") Signed-off-by: YueHaibing Reviewed-by: Jérôme Glisse Reviewed-by: David Hildenbrand --- mm/hmm.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/mm/hmm.c b/mm/hmm.c index 50fbaf8..361f370 100644 --- a/mm/hmm.c +++ b/mm/hmm.c @@ -992,9 +992,6 @@ static void hmm_devmem_ref_exit(void *data) static void hmm_devmem_ref_kill(struct percpu_ref *ref) { - struct hmm_devmem *devmem; - - devmem = container_of(ref, struct hmm_devmem, ref); percpu_ref_kill(ref); }