From mboxrd@z Thu Jan 1 00:00:00 1970 From: Randy Dunlap Subject: [PATCH] lockd: fix FILE_LOCKING=n build error Date: Tue, 28 Apr 2009 08:22:50 -0700 Message-ID: <49F71F4A.3080908@oracle.com> References: <20090428165343.2e357d7a.sfr@canb.auug.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: linux-next@vger.kernel.org, LKML , Andrew Morton , Matthew Wilcox , linux-fsdevel To: Stephen Rothwell Return-path: In-Reply-To: <20090428165343.2e357d7a.sfr@canb.auug.org.au> Sender: linux-next-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org From: Randy Dunlap lockd/svclock.c is missing a header file . is missing a definition of locks_release_private() for the config case of FILE_LOCKING=n, causing a build error: fs/lockd/svclock.c:330: error: implicit declaration of function 'locks_release_private' Signed-off-by: Randy Dunlap --- fs/lockd/svclock.c | 1 + include/linux/fs.h | 4 ++++ 2 files changed, 5 insertions(+) --- linux-next-20090428.orig/fs/lockd/svclock.c +++ linux-next-20090428/fs/lockd/svclock.c @@ -22,6 +22,7 @@ #include #include +#include #include #include #include --- linux-next-20090428.orig/include/linux/fs.h +++ linux-next-20090428/include/linux/fs.h @@ -1183,6 +1183,10 @@ static inline void locks_remove_flock(st return; } +static inline void locks_release_private(struct file_lock *fl) +{ +} + static inline void posix_test_lock(struct file *filp, struct file_lock *fl) { return; -- ~Randy