Skip to content

Commit a9f2f63

Browse files
Jeremy Kerrglikely
authored andcommitted
of: include linux/proc_fs.h
We use a few procfs-specific functions (eg, proc_device_tree_*) which aren't covered by the current includes. This causes the following build error on arm: drivers/of/base.c: In function 'prom_add_property': drivers/of/base.c:861: error: implicit declaration of function 'proc_device_tree_add_prop' drivers/of/base.c: In function 'prom_remove_property': drivers/of/base.c:902: error: implicit declaration of function 'proc_device_tree_remove_prop' drivers/of/base.c: In function 'prom_update_property': drivers/of/base.c:946: error: implicit declaration of function 'proc_device_tree_update_prop' Add proc_fs.h for these prototypes. Signed-off-by: Jeremy Kerr <jeremy.kerr@canonical.com> Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
1 parent 51975db commit a9f2f63

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎drivers/of/base.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <linux/module.h>
2121
#include <linux/of.h>
2222
#include <linux/spinlock.h>
23+
#include <linux/proc_fs.h>
2324

2425
struct device_node *allnodes;
2526

0 commit comments

Comments
 (0)