* FIXING names for debugfs
@ 2008-05-03 14:35 monstr
2008-05-03 14:35 ` [PATCH 1/1] DEBUGFS: Fixing name for debug fs monstr
0 siblings, 1 reply; 5+ messages in thread
From: monstr @ 2008-05-03 14:35 UTC (permalink / raw)
To: paulus; +Cc: arnd, linux-kernel, linux-arch
Hi All,
this patch fix powerpc specific name to arch independent name.
I did these changes because I would like to use prom.c file
for Microblaze.
Thanks for applying this change,
Michal Simek
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/1] DEBUGFS: Fixing name for debug fs
2008-05-03 14:35 FIXING names for debugfs monstr
@ 2008-05-03 14:35 ` monstr
2008-05-03 21:07 ` Arnd Bergmann
0 siblings, 1 reply; 5+ messages in thread
From: monstr @ 2008-05-03 14:35 UTC (permalink / raw)
To: paulus; +Cc: arnd, linux-kernel, linux-arch, Michal Simek
From: Michal Simek <monstr@monstr.eu>
This change is made because powerpc_debugfs_root is arch
specific name.
Signed-off-by: Michal Simek <monstr@monstr.eu>
---
arch/powerpc/kernel/irq.c | 2 +-
arch/powerpc/kernel/prom.c | 2 +-
arch/powerpc/kernel/setup-common.c | 6 +++---
include/asm-powerpc/system.h | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/arch/powerpc/kernel/irq.c b/arch/powerpc/kernel/irq.c
index 2f73f70..95008ee 100644
--- a/arch/powerpc/kernel/irq.c
+++ b/arch/powerpc/kernel/irq.c
@@ -1072,7 +1072,7 @@ static const struct file_operations virq_debug_fops = {
static int __init irq_debugfs_init(void)
{
- if (debugfs_create_file("virq_mapping", S_IRUGO, powerpc_debugfs_root,
+ if (debugfs_create_file("virq_mapping", S_IRUGO, debugfs_root,
NULL, &virq_debug_fops))
return -ENOMEM;
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index 2aefe2a..0946370 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -1631,7 +1631,7 @@ static int __init export_flat_device_tree(void)
flat_dt_blob.size = initial_boot_params->totalsize;
d = debugfs_create_blob("flat-device-tree", S_IFREG | S_IRUSR,
- powerpc_debugfs_root, &flat_dt_blob);
+ debugfs_root, &flat_dt_blob);
if (!d)
return 1;
diff --git a/arch/powerpc/kernel/setup-common.c b/arch/powerpc/kernel/setup-common.c
index db540ea..e47caba 100644
--- a/arch/powerpc/kernel/setup-common.c
+++ b/arch/powerpc/kernel/setup-common.c
@@ -661,13 +661,13 @@ late_initcall(check_cache_coherency);
#endif /* CONFIG_CHECK_CACHE_COHERENCY */
#ifdef CONFIG_DEBUG_FS
-struct dentry *powerpc_debugfs_root;
+struct dentry *debugfs_root;
static int powerpc_debugfs_init(void)
{
- powerpc_debugfs_root = debugfs_create_dir("powerpc", NULL);
+ debugfs_root = debugfs_create_dir("powerpc", NULL);
- return powerpc_debugfs_root == NULL;
+ return debugfs_root == NULL;
}
arch_initcall(powerpc_debugfs_init);
#endif
diff --git a/include/asm-powerpc/system.h b/include/asm-powerpc/system.h
index 2b6559a..9d1ef16 100644
--- a/include/asm-powerpc/system.h
+++ b/include/asm-powerpc/system.h
@@ -570,7 +570,7 @@ static inline void create_function_call(unsigned long addr, void * func)
extern void account_system_vtime(struct task_struct *);
#endif
-extern struct dentry *powerpc_debugfs_root;
+extern struct dentry *debugfs_root;
#endif /* __KERNEL__ */
#endif /* _ASM_POWERPC_SYSTEM_H */
--
1.5.4.GIT
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] DEBUGFS: Fixing name for debug fs
2008-05-03 14:35 ` [PATCH 1/1] DEBUGFS: Fixing name for debug fs monstr
@ 2008-05-03 21:07 ` Arnd Bergmann
2008-05-04 8:28 ` Michal Simek
0 siblings, 1 reply; 5+ messages in thread
From: Arnd Bergmann @ 2008-05-03 21:07 UTC (permalink / raw)
To: monstr; +Cc: paulus, linux-kernel, linux-arch, Michal Simek
On Saturday 03 May 2008, monstr@seznam.cz wrote:
> From: Michal Simek <monstr@monstr.eu>
>
> This change is made because powerpc_debugfs_root is arch
> specific name.
...
>
> static int powerpc_debugfs_init(void)
> {
> - powerpc_debugfs_root = debugfs_create_dir("powerpc", NULL);
> + debugfs_root = debugfs_create_dir("powerpc", NULL);
>
You left the name as "powerpc", which sort of defeats the purpose of your
patch. Files in debugfs are by definition not part of the ABI, so it's
actually possible to change this as well. How about making this "of"
instead of "powerpc"?
Arnd <><
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] DEBUGFS: Fixing name for debug fs
2008-05-03 21:07 ` Arnd Bergmann
@ 2008-05-04 8:28 ` Michal Simek
2008-05-05 14:27 ` Grant Likely
0 siblings, 1 reply; 5+ messages in thread
From: Michal Simek @ 2008-05-04 8:28 UTC (permalink / raw)
To: Arnd Bergmann; +Cc: monstr, paulus, linux-kernel, linux-arch
Hi Arnd,
This is question up to PowerPC guys not to me.
of_debugfs_root sounds good.
M
>> This change is made because powerpc_debugfs_root is arch
>> specific name.
> ...
>>
>> static int powerpc_debugfs_init(void)
>> {
>> - powerpc_debugfs_root = debugfs_create_dir("powerpc", NULL);
>> + debugfs_root = debugfs_create_dir("powerpc", NULL);
>>
>
> You left the name as "powerpc", which sort of defeats the purpose of your
> patch. Files in debugfs are by definition not part of the ABI, so it's
> actually possible to change this as well. How about making this "of"
> instead of "powerpc"?
>
> Arnd <><
>
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 1/1] DEBUGFS: Fixing name for debug fs
2008-05-04 8:28 ` Michal Simek
@ 2008-05-05 14:27 ` Grant Likely
0 siblings, 0 replies; 5+ messages in thread
From: Grant Likely @ 2008-05-05 14:27 UTC (permalink / raw)
To: monstr; +Cc: Arnd Bergmann, paulus, linux-kernel, linux-arch
On Sun, May 4, 2008 at 2:28 AM, Michal Simek <monstr@monstr.eu> wrote:
> Hi Arnd,
>
> This is question up to PowerPC guys not to me.
> of_debugfs_root sounds good.
Make sure you cc: the linuxppc-dev@ozlabs.org mailing list on the next
iteration of this patch.
Cheers,
g.
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-05-05 14:27 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-03 14:35 FIXING names for debugfs monstr
2008-05-03 14:35 ` [PATCH 1/1] DEBUGFS: Fixing name for debug fs monstr
2008-05-03 21:07 ` Arnd Bergmann
2008-05-04 8:28 ` Michal Simek
2008-05-05 14:27 ` Grant Likely
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox