2009-03-08 17:39:50

by Mhayk Whandson

[permalink] [raw]
Subject: doubt about path_walk() function

Hi all,

I am trying to compile the project McAfee LinuxShield with kernel
2.6.27-9 and I have a problem with function path_walk():
linuxshield/scan.c|998| error: implicit declaration of function ‘path_walk’

Searching in the internet, I can see that this function was removed in
one some kernel version, so how can I fix this problem ?

best regards,

--
Mhayk Whandson
Linux User #413723
E-mail: [email protected]


2009-03-08 18:17:32

by Peter Hallberg

[permalink] [raw]
Subject: Re: doubt about path_walk() function


> linuxshield/scan.c|998| error: implicit declaration of function ?path_walk?
> Searching in the internet, I can see that this function was removed in
> one some kernel version, so how can I fix this problem ?

It has been replaced with vfs_path_lookup, the fix for another fs looks like this:
- ret = path_walk(cachename, &nd);
+ ret = vfs_path_lookup(nnpfsp->cachedir, nnpfsp->cacheroot,
+ cachename,
+ flags & O_CREAT ? LOOKUP_PARENT : 0,
+ &nd);


_________________________________________________________________
Dela foton p? ett smidigt s?tt med Windows Live? Photos.
http://www.microsoft.com/windows/windowslive/products/photos.aspx-

2009-03-08 18:56:48

by Mhayk Whandson

[permalink] [raw]
Subject: Re: doubt about path_walk() function

Thanks Peter.

On Sun, Mar 8, 2009 at 2:11 PM, Peter Hallberg <[email protected]> wrote:
>
>> linuxshield/scan.c|998| error: implicit declaration of function ‘path_walk’
>> Searching in the internet, I can see that this function was removed in
>> one some kernel version, so how can I fix this problem ?
>
> It has been replaced with vfs_path_lookup, the fix for another fs looks like this:
> -    ret = path_walk(cachename, &nd);
> +    ret = vfs_path_lookup(nnpfsp->cachedir, nnpfsp->cacheroot,
> +                         cachename,
> +                         flags & O_CREAT ? LOOKUP_PARENT : 0,
> +                         &nd);
>
>
> _________________________________________________________________
> Dela foton på ett smidigt sätt med Windows Live™ Photos.
> http://www.microsoft.com/windows/windowslive/products/photos.aspx--
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to [email protected]
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>



--
Mhayk Whandson
Linux User #413723
E-mail: [email protected]