From dc99b958ece281ffcd47366261115091caf1dcc9 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 25 Apr 2011 10:01:18 +0000 Subject: [PATCH] Follow-up for r3403: builds again against kernel 2.6.27. git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3405 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_pres.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scst/src/scst_pres.c b/scst/src/scst_pres.c index 412122c3e..8f1a5ff9f 100644 --- a/scst/src/scst_pres.c +++ b/scst/src/scst_pres.c @@ -908,11 +908,11 @@ out: } #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 25) \ - && LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 26) + && LINUX_VERSION_CODE <= KERNEL_VERSION(2, 6, 27) static int kern_path(const char *name, unsigned int flags, struct path *path) { struct nameidata nd; - int res = do_path_lookup(AT_FDCWD, name, flags, &nd); + int res = path_lookup(name, flags, &nd); if (!res) *path = nd.path; return res;