From patchwork Mon Nov 19 11:04:15 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tushar Behera X-Patchwork-Id: 12924 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 6296823DFE for ; Mon, 19 Nov 2012 11:10:24 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id 0BDEAA18A14 for ; Mon, 19 Nov 2012 11:10:23 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so6241110iej.11 for ; Mon, 19 Nov 2012 03:10:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=pN61Cxkx1DcPrZfM7K58+Rhx/HMVGq7TVXI4Zd+VxE4=; b=kxBVsaKR8YkzG8JFd2jb/OyhNJHRw+HNoNmze21/LffvvvnhFnaSmav2mm3JeA1V/s /uCaQdsU16d7Dz/PADUfrjp6F2floQwkm2QwFTLKc5eGnC1o6CR1+nq2Fq9N2U2pZCu1 LsIwoCe7zFZdyh3Quelj5JV3poOTLHgR9MmPQ0MKcOCWcv92Qs+6F76vYBCbXawfNtgU yppY2K+gGIuos3bvTE42DVY81KalC6yTaMS9XIskV/yHOI7CGG1pRRWY/FFc19S1yz4r hWY2QUxwLtH9Jdp8eQH39nA9UoJRSAmhUOoAciHCaBWVB+itLuu/QZ/E+e3rq9n5GSlT alTQ== Received: by 10.50.91.195 with SMTP id cg3mr6157671igb.57.1353323423432; Mon, 19 Nov 2012 03:10:23 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp143096igt; Mon, 19 Nov 2012 03:10:23 -0800 (PST) Received: by 10.68.138.137 with SMTP id qq9mr38527790pbb.74.1353323422708; Mon, 19 Nov 2012 03:10:22 -0800 (PST) Received: from mail-pa0-f48.google.com (mail-pa0-f48.google.com [209.85.220.48]) by mx.google.com with ESMTPS id zz3si13368281pbc.181.2012.11.19.03.10.22 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Nov 2012 03:10:22 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.48 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) client-ip=209.85.220.48; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.48 is neither permitted nor denied by best guess record for domain of tushar.behera@linaro.org) smtp.mail=tushar.behera@linaro.org Received: by mail-pa0-f48.google.com with SMTP id kp12so3391692pab.35 for ; Mon, 19 Nov 2012 03:10:22 -0800 (PST) Received: by 10.68.230.2 with SMTP id su2mr37809649pbc.54.1353323422374; Mon, 19 Nov 2012 03:10:22 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id n7sm6023335pav.26.2012.11.19.03.10.18 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 19 Nov 2012 03:10:21 -0800 (PST) From: Tushar Behera To: linux-kernel@vger.kernel.org Cc: eparis@redhat.com, patches@linaro.org Subject: [PATCH] fsnotify: Fix sparse warning Date: Mon, 19 Nov 2012 16:34:15 +0530 Message-Id: <1353323055-4197-1-git-send-email-tushar.behera@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQkmDjm3rVMWqg1jzrDGQD7ZQmiVvIs2XsgwVt/u39fRDyaQJkCs8nepqxDqUCnJ0AXPhrNj Fixes following sparse warning. fs/notify/inode_mark.c:127:22: warning: symbol 'fsnotify_find_inode_mark_locked' was not declared. Should it be static? Signed-off-by: Tushar Behera --- fs/notify/inode_mark.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/fs/notify/inode_mark.c b/fs/notify/inode_mark.c index 2123020..f31e90f 100644 --- a/fs/notify/inode_mark.c +++ b/fs/notify/inode_mark.c @@ -124,8 +124,9 @@ void fsnotify_clear_inode_marks_by_group(struct fsnotify_group *group) * given a group and inode, find the mark associated with that combination. * if found take a reference to that mark and return it, else return NULL */ -struct fsnotify_mark *fsnotify_find_inode_mark_locked(struct fsnotify_group *group, - struct inode *inode) +static struct fsnotify_mark *fsnotify_find_inode_mark_locked( + struct fsnotify_group *group, + struct inode *inode) { struct fsnotify_mark *mark; struct hlist_node *pos;