From 244ab906e0e7005866681e6320fcdec962822554 Mon Sep 17 00:00:00 2001 From: David Smith Date: Tue, 20 Oct 2015 13:19:42 -0500 Subject: [PATCH] Fixed PR19120 by rearranging the list of modules to search in @cast(). * tapset/linux/dentry.stp (fullpath_struct_path): Rearrange the list of modules to search for 'struct path' so that looking in "" comes last, so that RHEL5-era kernels don't make it that far. That include file doesn't exist on RHEL5-era kernels, which causes kbuild warnings. --- tapset/linux/dentry.stp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tapset/linux/dentry.stp b/tapset/linux/dentry.stp index d28a76a4b..4f77f06f8 100644 --- a/tapset/linux/dentry.stp +++ b/tapset/linux/dentry.stp @@ -324,12 +324,11 @@ function fullpath_struct_nameidata(nd) * the kernel d_path function. * @path: Pointer to "struct path". */ -function fullpath_struct_path(path) +function fullpath_struct_path:string(path:long) { - return task_dentry_path(task_current(), - @cast(path,"path","kernel:nfs")->dentry, - @cast(path,"path","kernel:nfs")->mnt) + @cast(path,"path","kernel:nfs:")->dentry, + @cast(path,"path","kernel:nfs:")->mnt) } /** -- 2.43.5