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: <4C8E95D0.9040502@freemail.hu>
Date:	Mon, 13 Sep 2010 23:21:20 +0200
From:	Németh Márton <nm127@...email.hu>
To:	"H. Peter Anvin" <hpa@...or.com>, autofs@...ux.kernel.org
CC:	LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] autofs: only declare function when CONFIG_COMPAT is defined

From: Márton Németh <nm127@...email.hu>

The patch solves tohe following warnings message when CONFIG_COMPAT is not defined:
fs/autofs/root.c:30: warning: ‘autofs_root_compat_ioctl’ declared ‘static’ but never defined

Signed-off-by: Márton Németh <nm127@...email.hu>
---
--- linux-2.6.36-rc4/fs/autofs/root.c.orig	2010-09-13 20:18:15.000000000 +0200
+++ linux-2.6.36-rc4/fs/autofs/root.c	2010-09-13 21:02:11.000000000 +0200
@@ -27,7 +27,9 @@ static int autofs_root_unlink(struct ino
 static int autofs_root_rmdir(struct inode *,struct dentry *);
 static int autofs_root_mkdir(struct inode *,struct dentry *,int);
 static long autofs_root_ioctl(struct file *,unsigned int,unsigned long);
+#ifdef CONFIG_COMPAT
 static long autofs_root_compat_ioctl(struct file *,unsigned int,unsigned long);
+#endif

 const struct file_operations autofs_root_operations = {
 	.llseek		= generic_file_llseek,
--
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