From patchwork Thu Jan 12 15:39:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 9513453 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8897760710 for ; Thu, 12 Jan 2017 15:39:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 79DEA23B23 for ; Thu, 12 Jan 2017 15:39:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6EAF128650; Thu, 12 Jan 2017 15:39:35 +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=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0C79723B23 for ; Thu, 12 Jan 2017 15:39:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750920AbdALPj1 (ORCPT ); Thu, 12 Jan 2017 10:39:27 -0500 Received: from mail-pf0-f193.google.com ([209.85.192.193]:32924 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750914AbdALPj0 (ORCPT ); Thu, 12 Jan 2017 10:39:26 -0500 Received: by mail-pf0-f193.google.com with SMTP id 127so4025725pfg.0 for ; Thu, 12 Jan 2017 07:39:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=EjhFFIryBb9FnzLWuFK0Qsfh5cWZ/qjtpTJhEJl4dt0=; b=SizNSjzUoWT6ulQz1L6+3N4upKViEZz38fM52Qpw+C9hj1RLJKplRn0U9y5CvB6/Qe 0/8/pyMqfMFTtPnTenMuTSEz/JaKXqrKyBFebpM/6N3++Hjr7iv2FraXndZti0mTG4cp l7aEhi1g4UYcRgNnL2Vp6gPllkC7S6RX+Pm8ReH+xOqM3Vq0NqdaNjQTgY6JrsDS40y1 HNXp//4dUoh/3FqhDZdBdtyC0XZuKkq9uku/kR987PsmzDDCtT8MGLH8rb+3I/bc29Kq Y4tBAqoTZSzNIWzBuC3UF6Gd2Ix3JSLw1yqmLQWVlcUSfpaHFeiZy5zlQRp9tHD8gc4d TMSQ== 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=EjhFFIryBb9FnzLWuFK0Qsfh5cWZ/qjtpTJhEJl4dt0=; b=pI8Xx7BO+6KGXO1oK6z0G6PH6rd9FzDCO6HgBhe7/3My7LTkYulkQOBIfiahbcjjFE ncX0ewn2c8Ufi8SfuG0x5qw4jLqxujo5xLY+vBrMEN+YPKtoLMd+ZY5p59Id/FnkX+0g YQ1ePlLS8En4wmZwgtUF4MLuSKwi4jWgpwHwy7W/RlexYvgM7husf/ZWYNg+vd0RqTHg BdtNHmiBVWfRC4XOcIInJl/hfiNITMKw/jKPON/OD8TKzNk3zYDK3A3aQZOI7qDifSgK SzAPDCoRx08fhNbmR5n+0/GGsIanLrfotMYzL+YnP+JkfrYQU389twlEIDie0MwWxAV6 0K8A== X-Gm-Message-State: AIkVDXICcBbx4IpHEbpEeIir7iOH8MyU+I2ecwwZ20kNlaj2ammY9/HeCCD80bD1cH08Tw== X-Received: by 10.84.231.205 with SMTP id g13mr20294084pln.118.1484235565538; Thu, 12 Jan 2017 07:39:25 -0800 (PST) Received: from 192.168.0.37 (ec2-52-192-197-227.ap-northeast-1.compute.amazonaws.com. [52.192.197.227]) by smtp.gmail.com with ESMTPSA id 66sm22643440pfx.29.2017.01.12.07.39.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jan 2017 07:39:25 -0800 (PST) From: Wei Yongjun To: Trond Myklebust , Anna Schumaker Cc: Wei Yongjun , linux-nfs@vger.kernel.org Subject: [PATCH -next] NFSv4: Fix warning for using 0 as NULL Date: Thu, 12 Jan 2017 15:39:18 +0000 Message-Id: <20170112153918.27888-1-weiyj.lk@gmail.com> X-Mailer: git-send-email 2.9.3 MIME-Version: 1.0 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Wei Yongjun Fixes the following sparse warning: fs/nfs/nfs4state.c:862:60: warning: Using plain integer as NULL pointer Signed-off-by: Wei Yongjun --- fs/nfs/nfs4state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/fs/nfs/nfs4state.c b/fs/nfs/nfs4state.c index 26b6b8b..64385b6 100644 --- a/fs/nfs/nfs4state.c +++ b/fs/nfs/nfs4state.c @@ -859,7 +859,7 @@ static struct nfs4_lock_state *nfs4_get_lock_state(struct nfs4_state *state, fl_ for(;;) { spin_lock(&state->state_lock); - lsp = __nfs4_find_lock_state(state, owner, 0); + lsp = __nfs4_find_lock_state(state, owner, NULL); if (lsp != NULL) break; if (new != NULL) {