tree:   https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/driver-core.git 
fi_cleanup
head:   e5f4139a329f9c5b0ddaa1e636721d546b179928
commit: e5f4139a329f9c5b0ddaa1e636721d546b179928 [1/1] fault_inject: clean up 
fault_create_debugfs_attr
config: x86_64-allmodconfig (attached as .config)
compiler: gcc-8 (Debian 8.3.0-2) 8.3.0
reproduce:
        git checkout e5f4139a329f9c5b0ddaa1e636721d546b179928
        # save the attached .config to linux build tree
        make ARCH=x86_64 

All errors (new ones prefixed by >>):

   drivers/infiniband//hw/hfi1/fault.c: In function 'hfi1_fault_init_debugfs':
>> drivers/infiniband//hw/hfi1/fault.c:277:2: error: implicit declaration of 
>> function 'DEBUGFS_SEQ_FILE_CREATE'; did you mean 'DEBUGFS_SEQ_FILE_OPEN'? 
>> [-Werror=implicit-function-declaration]
     DEBUGFS_SEQ_FILE_CREATE(fault_stats, fault_dir, ibd);
     ^~~~~~~~~~~~~~~~~~~~~~~
     DEBUGFS_SEQ_FILE_OPEN
>> drivers/infiniband//hw/hfi1/fault.c:277:26: error: 'fault_stats' undeclared 
>> (first use in this function); did you mean 'fault_attr'?
     DEBUGFS_SEQ_FILE_CREATE(fault_stats, fault_dir, ibd);
                             ^~~~~~~~~~~
                             fault_attr
   drivers/infiniband//hw/hfi1/fault.c:277:26: note: each undeclared identifier 
is reported only once for each function it appears in
   cc1: some warnings being treated as errors

vim +277 drivers/infiniband//hw/hfi1/fault.c

   249  
   250  int hfi1_fault_init_debugfs(struct hfi1_ibdev *ibd)
   251  {
   252          struct dentry *parent = ibd->hfi1_ibdev_dbg;
   253          struct dentry *fault_dir;
   254  
   255          ibd->fault = kzalloc(sizeof(*ibd->fault), GFP_KERNEL);
   256          if (!ibd->fault)
   257                  return -ENOMEM;
   258  
   259          ibd->fault->attr.interval = 1;
   260          ibd->fault->attr.require_end = ULONG_MAX;
   261          ibd->fault->attr.stacktrace_depth = 32;
   262          ibd->fault->attr.dname = NULL;
   263          ibd->fault->attr.verbose = 0;
   264          ibd->fault->enable = false;
   265          ibd->fault->opcode = false;
   266          ibd->fault->fault_skip = 0;
   267          ibd->fault->skip = 0;
   268          ibd->fault->direction = HFI1_FAULT_DIR_TXRX;
   269          ibd->fault->suppress_err = false;
   270          bitmap_zero(ibd->fault->opcodes,
   271                      sizeof(ibd->fault->opcodes) * BITS_PER_BYTE);
   272  
   273          fault_dir = fault_create_debugfs_attr("fault", parent,
   274                                                &ibd->fault->attr);
   275          ibd->fault->dir = fault_dir;
   276  
 > 277          DEBUGFS_SEQ_FILE_CREATE(fault_stats, fault_dir, ibd);
   278          debugfs_create_bool("enable", 0600, fault_dir, 
&ibd->fault->enable);
   279          debugfs_create_bool("suppress_err", 0600, fault_dir,
   280                              &ibd->fault->suppress_err);
   281          debugfs_create_bool("opcode_mode", 0600, fault_dir,
   282                              &ibd->fault->opcode);
   283          debugfs_create_file("opcodes", 0600, fault_dir, ibd->fault,
   284                              &__fault_opcodes_fops);
   285          debugfs_create_u64("skip_pkts", 0600, fault_dir,
   286                             &ibd->fault->fault_skip);
   287          debugfs_create_u64("skip_usec", 0600, fault_dir,
   288                             &ibd->fault->fault_skip_usec);
   289          debugfs_create_u8("direction", 0600, fault_dir, 
&ibd->fault->direction);
   290  
   291          return 0;
   292  }
   293  

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

Attachment: .config.gz
Description: application/gzip

_______________________________________________
devel mailing list
de...@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

Reply via email to