public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [Patch] kallsyms: remove deprecated print_fn_descriptor_symbol()
@ 2009-10-15  6:27 Amerigo Wang
  2009-10-15 16:47 ` Bjorn Helgaas
  0 siblings, 1 reply; 2+ messages in thread
From: Amerigo Wang @ 2009-10-15  6:27 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm, Amerigo Wang, Bjorn Helgaas


According to feature-removal-schedule.txt, it is the time
to remove print_fn_descriptor_symbol().

And a quick grep shows that it no longer has any callers.

Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>

---
diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt
index 04e6c81..42ba573 100644
--- a/Documentation/feature-removal-schedule.txt
+++ b/Documentation/feature-removal-schedule.txt
@@ -283,15 +283,6 @@ Who:	Glauber Costa <gcosta@redhat.com>
 
 ---------------------------
 
-What: print_fn_descriptor_symbol()
-When: October 2009
-Why:  The %pF vsprintf format provides the same functionality in a
-      simpler way.  print_fn_descriptor_symbol() is deprecated but
-      still present to give out-of-tree modules time to change.
-Who:  Bjorn Helgaas <bjorn.helgaas@hp.com>
-
----------------------------
-
 What:	/sys/o2cb symlink
 When:	January 2010
 Why:	/sys/fs/o2cb is the proper location for this information - /sys/o2cb
diff --git a/include/linux/kallsyms.h b/include/linux/kallsyms.h
index 7922742..d8e9b3d 100644
--- a/include/linux/kallsyms.h
+++ b/include/linux/kallsyms.h
@@ -107,18 +107,6 @@ static inline void print_symbol(const char *fmt, unsigned long addr)
 		       __builtin_extract_return_addr((void *)addr));
 }
 
-/*
- * Pretty-print a function pointer.  This function is deprecated.
- * Please use the "%pF" vsprintf format instead.
- */
-static inline void __deprecated print_fn_descriptor_symbol(const char *fmt, void *addr)
-{
-#if defined(CONFIG_IA64) || defined(CONFIG_PPC64)
-	addr = *(void **)addr;
-#endif
-	print_symbol(fmt, (unsigned long)addr);
-}
-
 static inline void print_ip_sym(unsigned long ip)
 {
 	printk("[<%p>] %pS\n", (void *) ip, (void *) ip);

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

* Re: [Patch] kallsyms: remove deprecated print_fn_descriptor_symbol()
  2009-10-15  6:27 [Patch] kallsyms: remove deprecated print_fn_descriptor_symbol() Amerigo Wang
@ 2009-10-15 16:47 ` Bjorn Helgaas
  0 siblings, 0 replies; 2+ messages in thread
From: Bjorn Helgaas @ 2009-10-15 16:47 UTC (permalink / raw)
  To: Amerigo Wang; +Cc: linux-kernel, akpm

On Thursday 15 October 2009 12:27:00 am Amerigo Wang wrote:
> 
> According to feature-removal-schedule.txt, it is the time
> to remove print_fn_descriptor_symbol().
> 
> And a quick grep shows that it no longer has any callers.
> 
> Signed-off-by: WANG Cong <amwang@redhat.com>
> Cc: Bjorn Helgaas <bjorn.helgaas@hp.com>

Thanks!

Acked-by: Bjorn Helgaas <bjorn.helgaas@hp.com>

> ---
> diff --git a/Documentation/feature-removal-schedule.txt b/Documentation/feature-removal-schedule.txt
> index 04e6c81..42ba573 100644
> --- a/Documentation/feature-removal-schedule.txt
> +++ b/Documentation/feature-removal-schedule.txt
> @@ -283,15 +283,6 @@ Who:	Glauber Costa <gcosta@redhat.com>
>  
>  ---------------------------
>  
> -What: print_fn_descriptor_symbol()
> -When: October 2009
> -Why:  The %pF vsprintf format provides the same functionality in a
> -      simpler way.  print_fn_descriptor_symbol() is deprecated but
> -      still present to give out-of-tree modules time to change.
> -Who:  Bjorn Helgaas <bjorn.helgaas@hp.com>
> -
> ----------------------------
> -
>  What:	/sys/o2cb symlink
>  When:	January 2010
>  Why:	/sys/fs/o2cb is the proper location for this information - /sys/o2cb
> diff --git a/include/linux/kallsyms.h b/include/linux/kallsyms.h
> index 7922742..d8e9b3d 100644
> --- a/include/linux/kallsyms.h
> +++ b/include/linux/kallsyms.h
> @@ -107,18 +107,6 @@ static inline void print_symbol(const char *fmt, unsigned long addr)
>  		       __builtin_extract_return_addr((void *)addr));
>  }
>  
> -/*
> - * Pretty-print a function pointer.  This function is deprecated.
> - * Please use the "%pF" vsprintf format instead.
> - */
> -static inline void __deprecated print_fn_descriptor_symbol(const char *fmt, void *addr)
> -{
> -#if defined(CONFIG_IA64) || defined(CONFIG_PPC64)
> -	addr = *(void **)addr;
> -#endif
> -	print_symbol(fmt, (unsigned long)addr);
> -}
> -
>  static inline void print_ip_sym(unsigned long ip)
>  {
>  	printk("[<%p>] %pS\n", (void *) ip, (void *) ip);
> 



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

end of thread, other threads:[~2009-10-15 16:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-15  6:27 [Patch] kallsyms: remove deprecated print_fn_descriptor_symbol() Amerigo Wang
2009-10-15 16:47 ` Bjorn Helgaas

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