From: Arend van Spriel Date: Sun, 30 Nov 2014 15:31:21 +0000 (+0100) Subject: fs: debugfs: add forward declaration for struct device type X-Git-Tag: firefly_0821_release~176^2~2677^2~1 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f30d0a815bb9b8ac1a3ab4d0c333d2379220d91d;p=firefly-linux-kernel-4.4.55.git fs: debugfs: add forward declaration for struct device type The function debugfs_create_devm_seqfile() has a parameter of type struct device pointer. This type needs to be forward declared to avoid compilation issues on certain architectures and/or kernel configurations. The function was introduced with: commit 98210b7f73f1db182bd9a558a031093cd166e907 Author: Arend van Spriel Date: Sun Nov 9 11:31:58 2014 +0100 debugfs: add helper function to create device related seq_file The reported build failure for sparc64 architecture was: make.cross ARCH=sparc64 All warnings: In file included from fs/debugfs/file.c:21:0: include/linux/debugfs.h:105:10: warning: 'struct device' declared inside parameter list void *data)); ^ Reported-by: Fengguang Wu Signed-off-by: Arend van Spriel Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h index 4bbe2ace972a..e3e9f31f91d2 100644 --- a/include/linux/debugfs.h +++ b/include/linux/debugfs.h @@ -20,6 +20,7 @@ #include +struct device; struct file_operations; struct debugfs_blob_wrapper {