From patchwork Mon May 11 12:07:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ma Feng X-Patchwork-Id: 11540513 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id F2508139A for ; Mon, 11 May 2020 12:01:13 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E34C820746 for ; Mon, 11 May 2020 12:01:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729720AbgEKMBK (ORCPT ); Mon, 11 May 2020 08:01:10 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:53574 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729416AbgEKMBJ (ORCPT ); Mon, 11 May 2020 08:01:09 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 5EE5B974246F5E3FBDED; Mon, 11 May 2020 20:01:07 +0800 (CST) Received: from linux-lmwb.huawei.com (10.175.103.112) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Mon, 11 May 2020 20:01:01 +0800 From: Ma Feng To: , CC: , Subject: [PATCH] nfsd: Fix old-style function definition Date: Mon, 11 May 2020 20:07:08 +0800 Message-ID: <1589198828-11226-1-git-send-email-mafeng.ma@huawei.com> X-Mailer: git-send-email 2.6.2 MIME-Version: 1.0 X-Originating-IP: [10.175.103.112] X-CFilter-Loop: Reflected Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Fix warning: fs/nfsd/nfssvc.c:604:6: warning: old-style function definition [-Wold-style-definition] bool i_am_nfsd() ^~~~~~~~~ Reported-by: Hulk Robot Signed-off-by: Ma Feng --- fs/nfsd/nfssvc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.6.2 diff --git a/fs/nfsd/nfssvc.c b/fs/nfsd/nfssvc.c index 4f588c0..b603dfc 100644 --- a/fs/nfsd/nfssvc.c +++ b/fs/nfsd/nfssvc.c @@ -601,7 +601,7 @@ static const struct svc_serv_ops nfsd_thread_sv_ops = { .svo_module = THIS_MODULE, }; -bool i_am_nfsd() +bool i_am_nfsd(void) { return kthread_func(current) == nfsd; }