mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH trivial] security: remove unused forwards
@ 2008-06-28 23:55 Hugh Dickins
  2008-06-30 10:58 ` James Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Hugh Dickins @ 2008-06-28 23:55 UTC (permalink / raw)
  To: Chris Wright; +Cc: Andrew Morton, linux-kernel

Why would linux/security.h need forward declarations for nfsctl_arg
and swap_info_struct?  It's hard to imagine: remove them.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
---

 include/linux/security.h |    2 --
 1 file changed, 2 deletions(-)

--- linux-next/include/linux/security.h	2008-06-27 13:39:19.000000000 +0100
+++ linux/include/linux/security.h	2008-06-27 14:08:00.000000000 +0100
@@ -101,9 +101,7 @@ extern unsigned long mmap_min_addr;
 #define LSM_SETID_FS	8
 
 /* forward declares to avoid warnings */
-struct nfsctl_arg;
 struct sched_param;
-struct swap_info_struct;
 struct request_sock;
 
 /* bprm_apply_creds unsafe reasons */

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH trivial] security: remove unused forwards
  2008-06-28 23:55 [PATCH trivial] security: remove unused forwards Hugh Dickins
@ 2008-06-30 10:58 ` James Morris
  0 siblings, 0 replies; 2+ messages in thread
From: James Morris @ 2008-06-30 10:58 UTC (permalink / raw)
  To: Hugh Dickins; +Cc: Chris Wright, Andrew Morton, linux-kernel

On Sun, 29 Jun 2008, Hugh Dickins wrote:

> Why would linux/security.h need forward declarations for nfsctl_arg
> and swap_info_struct?  It's hard to imagine: remove them.

Probably for some removed and long-forgotten security hooks.

> 
> Signed-off-by: Hugh Dickins <hugh@veritas.com>
> ---

Acked-by: James Morris <jmorris@namei.org>


-- 
James Morris
<jmorris@namei.org>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-30 11:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-28 23:55 [PATCH trivial] security: remove unused forwards Hugh Dickins
2008-06-30 10:58 ` James Morris

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®