Commit f30d0a81 authored by Arend van Spriel's avatar Arend van Spriel Committed by Greg Kroah-Hartman

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 98210b7f
  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: default avatarFengguang Wu <>
Signed-off-by: default avatarArend van Spriel <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent daa3d67f
......@@ -20,6 +20,7 @@
#include <linux/types.h>
struct device;
struct file_operations;
struct debugfs_blob_wrapper {
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