Commit 254844d3 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Al Viro

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 271a15ea
("proc: Supply PDE attribute setting accessor functions")
Signed-off-by: default avatarGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 4385bab1
...@@ -66,6 +66,6 @@ void msm_init_last_radio_log(struct module *owner) ...@@ -66,6 +66,6 @@ void msm_init_last_radio_log(struct module *owner)
pr_err("%s: last radio log is %d bytes long\n", __func__, pr_err("%s: last radio log is %d bytes long\n", __func__,
radio_log_size); radio_log_size);
last_radio_log_fops.owner = owner; last_radio_log_fops.owner = owner;
entry->size = radio_log_size; proc_set_size(entry, radio_log_size);
} }
EXPORT_SYMBOL(msm_init_last_radio_log); EXPORT_SYMBOL(msm_init_last_radio_log);
...@@ -76,7 +76,7 @@ static int __init init_cris_profile(void) ...@@ -76,7 +76,7 @@ static int __init init_cris_profile(void)
entry = proc_create("system_profile", S_IWUSR | S_IRUGO, NULL, entry = proc_create("system_profile", S_IWUSR | S_IRUGO, NULL,
&cris_proc_profile_operations); &cris_proc_profile_operations);
if (entry) { if (entry) {
entry->size = SAMPLE_BUFFER_SIZE; proc_set_size(entry, SAMPLE_BUFFER_SIZE);
} }
prof_running = 1; prof_running = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment