Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Geert Uytterhoeven and committed by
Al Viro
254844d3 4385bab1

+2 -2
+1 -1
arch/arm/mach-msm/last_radio_log.c
··· 66 66 pr_err("%s: last radio log is %d bytes long\n", __func__, 67 67 radio_log_size); 68 68 last_radio_log_fops.owner = owner; 69 - entry->size = radio_log_size; 69 + proc_set_size(entry, radio_log_size); 70 70 } 71 71 EXPORT_SYMBOL(msm_init_last_radio_log);
+1 -1
arch/cris/kernel/profile.c
··· 76 76 entry = proc_create("system_profile", S_IWUSR | S_IRUGO, NULL, 77 77 &cris_proc_profile_operations); 78 78 if (entry) { 79 - entry->size = SAMPLE_BUFFER_SIZE; 79 + proc_set_size(entry, SAMPLE_BUFFER_SIZE); 80 80 } 81 81 prof_running = 1; 82 82