extern void qedf_remove_sysfs_attr(struct Scsi_Host *shost,
                                    struct sysfs_bin_attrs *iter);
 
+struct qedf_debugfs_ops {
+       char *name;
+       struct qedf_list_of_funcs *qedf_funcs;
+};
+
+extern const struct qedf_debugfs_ops qedf_debugfs_ops[];
+extern const struct file_operations qedf_dbg_fops[];
+
 #ifdef CONFIG_DEBUG_FS
 /* DebugFS related code */
 struct qedf_list_of_funcs {
        ssize_t (*oper_func)(struct qedf_dbg_ctx *qedf);
 };
 
-struct qedf_debugfs_ops {
-       char *name;
-       struct qedf_list_of_funcs *qedf_funcs;
-};
-
 #define qedf_dbg_fileops(drv, ops) \
 { \
        .owner  = THIS_MODULE, \
 }
 
 extern void qedf_dbg_host_init(struct qedf_dbg_ctx *qedf,
-                               struct qedf_debugfs_ops *dops,
-                               struct file_operations *fops);
+                               const struct qedf_debugfs_ops *dops,
+                               const struct file_operations *fops);
 extern void qedf_dbg_host_exit(struct qedf_dbg_ctx *qedf);
 extern void qedf_dbg_init(char *drv_name);
 extern void qedf_dbg_exit(void);
 
  **/
 void
 qedf_dbg_host_init(struct qedf_dbg_ctx *qedf,
-                   struct qedf_debugfs_ops *dops,
-                   struct file_operations *fops)
+                   const struct qedf_debugfs_ops *dops,
+                   const struct file_operations *fops)
 {
        char host_dirname[32];
        struct dentry *file_dentry = NULL;
        qedf_dbg_root = NULL;
 }
 
-struct qedf_debugfs_ops qedf_debugfs_ops[] = {
+const struct qedf_debugfs_ops qedf_debugfs_ops[] = {
        { "fp_int", NULL },
        { "io_trace", NULL },
        { "debug", NULL },
 
 #include <linux/if_vlan.h>
 #include <linux/cpu.h>
 #include "qedf.h"
+#include "qedf_dbg.h"
 #include <uapi/linux/pci_regs.h>
 
 const struct qed_fcoe_ops *qed_ops;
 static int qedf_probe(struct pci_dev *pdev, const struct pci_device_id *id);
 static void qedf_remove(struct pci_dev *pdev);
 
-extern struct qedf_debugfs_ops qedf_debugfs_ops;
-extern struct file_operations qedf_dbg_fops;
-
 /*
  * Driver module parameters.
  */
        }
 
 #ifdef CONFIG_DEBUG_FS
-       qedf_dbg_host_init(&(qedf->dbg_ctx), &qedf_debugfs_ops,
-                           &qedf_dbg_fops);
+       qedf_dbg_host_init(&(qedf->dbg_ctx), qedf_debugfs_ops,
+                           qedf_dbg_fops);
 #endif
 
        /* Start LL2 */