Re: [PATCH v1 1/2] extcon: add Realtek DHC RTD SoC Type-C driver

From: kernel test robot
Date: Tue Aug 22 2023 - 20:27:04 EST


Hi Stanley,

kernel test robot noticed the following build errors:

[auto build test ERROR on chanwoo-extcon/extcon-next]
[also build test ERROR on linus/master v6.5-rc7 next-20230822]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url: https://github.com/intel-lab-lkp/linux/commits/Stanley-Chang/dt-bindings-extcon-Add-Realtek-DHC-RTD-SoC-Type-C/20230822-183332
base: https://git.kernel.org/pub/scm/linux/kernel/git/chanwoo/extcon.git extcon-next
patch link: https://lore.kernel.org/r/20230822102846.4683-1-stanley_chang%40realtek.com
patch subject: [PATCH v1 1/2] extcon: add Realtek DHC RTD SoC Type-C driver
config: m68k-randconfig-r024-20230823 (https://download.01.org/0day-ci/archive/20230823/202308230843.294BX49W-lkp@xxxxxxxxx/config)
compiler: m68k-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230823/202308230843.294BX49W-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308230843.294BX49W-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

m68k-linux-ld: drivers/extcon/extcon-rtk-type-c.o: in function `create_debug_files':
>> drivers/extcon/extcon-rtk-type-c.c:873:(.text+0x1948): undefined reference to `usb_debug_root'


vim +873 drivers/extcon/extcon-rtk-type-c.c

870
871 static inline void create_debug_files(struct type_c_data *type_c)
872 {
> 873 type_c->debug_dir = debugfs_create_dir("type_c", usb_debug_root);
874 if (!type_c->debug_dir)
875 return;
876
877 if (!debugfs_create_file("parameter", 0444, type_c->debug_dir, type_c,
878 &type_c_parameter_fops))
879 goto file_error;
880
881 if (!debugfs_create_file("status", 0444, type_c->debug_dir, type_c,
882 &type_c_status_fops))
883 goto file_error;
884
885 return;
886
887 file_error:
888 debugfs_remove_recursive(type_c->debug_dir);
889 }
890

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki