lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <AANLkTin_az45dt=BA38=6N52Qz8X+TyntjWzDo1_73q6@mail.gmail.com>
Date:	Sun, 16 Jan 2011 23:00:55 +0800
From:	Hui Zhu <teawater@...il.com>
To:	Greg Kroah-Hartman <gregkh@...e.de>,
	Nick Piggin <npiggin@...nel.dk>,
	Jeff Layton <jlayton@...hat.com>,
	Al Viro <viro@...iv.linux.org.uk>,
	Arnd Bergmann <arnd@...db.de>, devel@...verdev.osuosl.org,
	linux-kernel@...r.kernel.org
Subject: [PATCH] Fix smbfs/dir.o build error

  CC [M]  drivers/staging/smbfs/dir.o
/home/teawater/kernel/linux-2.6/drivers/staging/smbfs/dir.c:286:
error: static declaration of 'smbfs_dentry_operations' follows
non-static declaration
/home/teawater/kernel/linux-2.6/drivers/staging/smbfs/proto.h:42:
note: previous declaration of 'smbfs_dentry_operations' was here
/home/teawater/kernel/linux-2.6/drivers/staging/smbfs/dir.c:294:
error: static declaration of 'smbfs_dentry_operations_case' follows
non-static declaration
/home/teawater/kernel/linux-2.6/drivers/staging/smbfs/proto.h:41:
note: previous declaration of 'smbfs_dentry_operations_case' was here
make[5]: *** [drivers/staging/smbfs/dir.o] Error 1
make[4]: *** [drivers/staging/smbfs] Error 2
make[3]: *** [drivers/staging] Error 2
make[2]: *** [drivers] Error 2
make[1]: *** [sub-make] Error 2
make: *** [all] Error 2

Not sure it is fixed or not.

Thanks,
Hui

Signed-off-by: Hui Zhu <teawater@...il.com>
---
 drivers/staging/smbfs/dir.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

--- a/drivers/staging/smbfs/dir.c
+++ b/drivers/staging/smbfs/dir.c
@@ -283,7 +283,7 @@ static int smb_compare_dentry(const stru
 		unsigned int, const char *, const struct qstr *);
 static int smb_delete_dentry(const struct dentry *);

-static const struct dentry_operations smbfs_dentry_operations =
+const struct dentry_operations smbfs_dentry_operations =
 {
 	.d_revalidate	= smb_lookup_validate,
 	.d_hash		= smb_hash_dentry,
@@ -291,7 +291,7 @@ static const struct dentry_operations sm
 	.d_delete	= smb_delete_dentry,
 };

-static const struct dentry_operations smbfs_dentry_operations_case =
+const struct dentry_operations smbfs_dentry_operations_case =
 {
 	.d_revalidate	= smb_lookup_validate,
 	.d_delete	= smb_delete_dentry,
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ