diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2013-05-07 05:20:26 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-05-07 15:01:11 -0400 |
commit | 254844d3b9959b52fedf2f22810cc66e82a1ca16 (patch) | |
tree | 1bc220b4c667b6d696ed2620798c2783cf24e1de /arch | |
parent | 4385bab128911df14ab25f0b5ae1a48d7b53dd94 (diff) |
proc: Use PDE attribute setting accessor functions
arch/arm/mach-msm/last_radio_log.c: In function 'msm_init_last_radio_log':
arch/arm/mach-msm/last_radio_log.c:69:7: error: dereferencing pointer to incomplete type
arch/cris/kernel/profile.c: In function 'init_cris_profile':
arch/cris/kernel/profile.c:79:8: error: dereferencing pointer to incomplete type
Use proc_set_size(), cfr. commit 271a15eabe094538d958dc68ccfc9c36b699247a
("proc: Supply PDE attribute setting accessor functions")
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-msm/last_radio_log.c | 2 | ||||
-rw-r--r-- | arch/cris/kernel/profile.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-msm/last_radio_log.c b/arch/arm/mach-msm/last_radio_log.c index 7777767ee89a..9c392a29fc7e 100644 --- a/arch/arm/mach-msm/last_radio_log.c +++ b/arch/arm/mach-msm/last_radio_log.c | |||
@@ -66,6 +66,6 @@ void msm_init_last_radio_log(struct module *owner) | |||
66 | pr_err("%s: last radio log is %d bytes long\n", __func__, | 66 | pr_err("%s: last radio log is %d bytes long\n", __func__, |
67 | radio_log_size); | 67 | radio_log_size); |
68 | last_radio_log_fops.owner = owner; | 68 | last_radio_log_fops.owner = owner; |
69 | entry->size = radio_log_size; | 69 | proc_set_size(entry, radio_log_size); |
70 | } | 70 | } |
71 | EXPORT_SYMBOL(msm_init_last_radio_log); | 71 | EXPORT_SYMBOL(msm_init_last_radio_log); |
diff --git a/arch/cris/kernel/profile.c b/arch/cris/kernel/profile.c index b82e08615d1b..cd9f15b92f8f 100644 --- a/arch/cris/kernel/profile.c +++ b/arch/cris/kernel/profile.c | |||
@@ -76,7 +76,7 @@ static int __init init_cris_profile(void) | |||
76 | entry = proc_create("system_profile", S_IWUSR | S_IRUGO, NULL, | 76 | entry = proc_create("system_profile", S_IWUSR | S_IRUGO, NULL, |
77 | &cris_proc_profile_operations); | 77 | &cris_proc_profile_operations); |
78 | if (entry) { | 78 | if (entry) { |
79 | entry->size = SAMPLE_BUFFER_SIZE; | 79 | proc_set_size(entry, SAMPLE_BUFFER_SIZE); |
80 | } | 80 | } |
81 | prof_running = 1; | 81 | prof_running = 1; |
82 | 82 | ||