From: Marc Dionne Date: Fri, 19 Oct 2012 17:31:53 +0000 (+0100) Subject: Linux: fix afs_putname wrapper for pre-3.7 kernels X-Git-Tag: upstream/1.8.0_pre1^2~1893 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=115850076c09625e37d75da6dc29a68b0a2d638e;p=packages%2Fo%2Fopenafs.git Linux: fix afs_putname wrapper for pre-3.7 kernels Make the compatibility function use the right type for pre-3.7 kernels. Change-Id: I9222a3dc5a923c97dc36f69485d9cd3ecc6810fb Reviewed-on: http://gerrit.openafs.org/8276 Tested-by: BuildBot Reviewed-by: Derrick Brashear --- diff --git a/src/afs/LINUX/osi_compat.h b/src/afs/LINUX/osi_compat.h index 35eafc547..68604b71a 100644 --- a/src/afs/LINUX/osi_compat.h +++ b/src/afs/LINUX/osi_compat.h @@ -525,10 +525,11 @@ afs_dentry_open(struct dentry *dp, struct vfsmount *mnt, int flags, const struct #endif static inline void -afs_putname(struct filename *name) { #if defined(HAVE_LINUX_PUTNAME) +afs_putname(char *name) { putname(name); #else +afs_putname(struct filename *name) { kmem_cache_free(names_cachep, (void *)name); #endif }