All of lore.kernel.org
 help / color / mirror / Atom feed
* [Adeos-main] [PATCH] cleanup unused EXPORTs
@ 2006-12-13 17:33 Jan Kiszka
  2006-12-14 20:46 ` Philippe Gerum
  0 siblings, 1 reply; 2+ messages in thread
From: Jan Kiszka @ 2006-12-13 17:33 UTC (permalink / raw)
  To: adeos-main


[-- Attachment #1.1: Type: text/plain, Size: 137 bytes --]

As I'm unable to find any modular users of the symbols below, I suggest
to remove the EXPORTs and make __ipipe_pipelock static.

Jan

[-- Attachment #1.2: cleanup-exports.patch --]
[-- Type: text/plain, Size: 1563 bytes --]

---
 include/linux/ipipe.h |    2 --
 kernel/ipipe/core.c   |    7 +------
 2 files changed, 1 insertion(+), 8 deletions(-)

Index: linux-2.6.19-ipipe/include/linux/ipipe.h
===================================================================
--- linux-2.6.19-ipipe.orig/include/linux/ipipe.h
+++ linux-2.6.19-ipipe/include/linux/ipipe.h
@@ -241,8 +241,6 @@ extern unsigned long __ipipe_virtual_irq
 
 extern struct list_head __ipipe_pipeline;
 
-extern ipipe_spinlock_t __ipipe_pipelock;
-
 extern int __ipipe_event_monitors[];
 
 /* Private interface */
Index: linux-2.6.19-ipipe/kernel/ipipe/core.c
===================================================================
--- linux-2.6.19-ipipe.orig/kernel/ipipe/core.c
+++ linux-2.6.19-ipipe/kernel/ipipe/core.c
@@ -47,7 +47,7 @@ struct ipipe_domain ipipe_root =
 DEFINE_PER_CPU(struct ipipe_domain *, ipipe_percpu_domain) =
 	{ &ipipe_root };
 
-ipipe_spinlock_t __ipipe_pipelock = IPIPE_SPIN_LOCK_UNLOCKED;
+static IPIPE_DEFINE_SPINLOCK(__ipipe_pipelock);
 
 LIST_HEAD(__ipipe_pipeline);
 
@@ -1396,12 +1396,7 @@ EXPORT_SYMBOL(__ipipe_restore_root);
 EXPORT_SYMBOL(__ipipe_test_and_stall_root);
 EXPORT_SYMBOL(__ipipe_test_root);
 EXPORT_SYMBOL(__ipipe_dispatch_event);
-EXPORT_SYMBOL(__ipipe_dispatch_wired);
-EXPORT_SYMBOL(__ipipe_sync_stage);
 EXPORT_SYMBOL(__ipipe_pipeline);
-EXPORT_SYMBOL(__ipipe_pipelock);
-EXPORT_SYMBOL(__ipipe_virtual_irq_map);
-
 EXPORT_SYMBOL(ipipe_register_domain);
 EXPORT_SYMBOL(ipipe_unregister_domain);
 EXPORT_SYMBOL(ipipe_free_virq);

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

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

* Re: [Adeos-main] [PATCH] cleanup unused EXPORTs
  2006-12-13 17:33 [Adeos-main] [PATCH] cleanup unused EXPORTs Jan Kiszka
@ 2006-12-14 20:46 ` Philippe Gerum
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Gerum @ 2006-12-14 20:46 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: adeos-main

On Wed, 2006-12-13 at 18:33 +0100, Jan Kiszka wrote:
> As I'm unable to find any modular users of the symbols below, I suggest
> to remove the EXPORTs and make __ipipe_pipelock static.

Looks ok. I've queued this for the next release. Thanks.

> 
> Jan
> plain text document attachment (cleanup-exports.patch)
> ---
>  include/linux/ipipe.h |    2 --
>  kernel/ipipe/core.c   |    7 +------
>  2 files changed, 1 insertion(+), 8 deletions(-)
> 
> Index: linux-2.6.19-ipipe/include/linux/ipipe.h
> ===================================================================
> --- linux-2.6.19-ipipe.orig/include/linux/ipipe.h
> +++ linux-2.6.19-ipipe/include/linux/ipipe.h
> @@ -241,8 +241,6 @@ extern unsigned long __ipipe_virtual_irq
>  
>  extern struct list_head __ipipe_pipeline;
>  
> -extern ipipe_spinlock_t __ipipe_pipelock;
> -
>  extern int __ipipe_event_monitors[];
>  
>  /* Private interface */
> Index: linux-2.6.19-ipipe/kernel/ipipe/core.c
> ===================================================================
> --- linux-2.6.19-ipipe.orig/kernel/ipipe/core.c
> +++ linux-2.6.19-ipipe/kernel/ipipe/core.c
> @@ -47,7 +47,7 @@ struct ipipe_domain ipipe_root =
>  DEFINE_PER_CPU(struct ipipe_domain *, ipipe_percpu_domain) =
>  	{ &ipipe_root };
>  
> -ipipe_spinlock_t __ipipe_pipelock = IPIPE_SPIN_LOCK_UNLOCKED;
> +static IPIPE_DEFINE_SPINLOCK(__ipipe_pipelock);
>  
>  LIST_HEAD(__ipipe_pipeline);
>  
> @@ -1396,12 +1396,7 @@ EXPORT_SYMBOL(__ipipe_restore_root);
>  EXPORT_SYMBOL(__ipipe_test_and_stall_root);
>  EXPORT_SYMBOL(__ipipe_test_root);
>  EXPORT_SYMBOL(__ipipe_dispatch_event);
> -EXPORT_SYMBOL(__ipipe_dispatch_wired);
> -EXPORT_SYMBOL(__ipipe_sync_stage);
>  EXPORT_SYMBOL(__ipipe_pipeline);
> -EXPORT_SYMBOL(__ipipe_pipelock);
> -EXPORT_SYMBOL(__ipipe_virtual_irq_map);
> -
>  EXPORT_SYMBOL(ipipe_register_domain);
>  EXPORT_SYMBOL(ipipe_unregister_domain);
>  EXPORT_SYMBOL(ipipe_free_virq);
> _______________________________________________
> Adeos-main mailing list
> Adeos-main@domain.hid
> https://mail.gna.org/listinfo/adeos-main
-- 
Philippe.




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

end of thread, other threads:[~2006-12-14 20:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-13 17:33 [Adeos-main] [PATCH] cleanup unused EXPORTs Jan Kiszka
2006-12-14 20:46 ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.