* [xilinx-xlnx:xlnx_rebase_v5.15 395/1080] drivers/usb/dwc3/otg.c:41: warning: expecting prototype for otg.c(). Prototype was for print_debug_regs() instead
@ 2022-04-06 18:02 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2022-04-06 18:02 UTC (permalink / raw)
To: Manish Narani; +Cc: kbuild-all, linux-arm-kernel, Michal Simek
tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15
head: 6474115d882fd9e82731ac2473875dc3e8ac9acc
commit: 833d0bbedec04953df2320fd9098ac2108b1affd [395/1080] usb: dwc3: Fix OTG driver to work with v5.10 kernel
config: sparc-randconfig-r032-20220406 (https://download.01.org/0day-ci/archive/20220407/202204070159.hjK0zEBD-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/Xilinx/linux-xlnx/commit/833d0bbedec04953df2320fd9098ac2108b1affd
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx xlnx_rebase_v5.15
git checkout 833d0bbedec04953df2320fd9098ac2108b1affd
# save the config file to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=sparc SHELL=/bin/bash drivers/usb/dwc3/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All warnings (new ones prefixed by >>):
drivers/usb/dwc3/otg.c:41: warning: Function parameter or member 'otg' not described in 'print_debug_regs'
>> drivers/usb/dwc3/otg.c:41: warning: expecting prototype for otg.c(). Prototype was for print_debug_regs() instead
vim +41 drivers/usb/dwc3/otg.c
d50e8d7c931f49 Piyush Mehta 2022-01-26 38
d50e8d7c931f49 Piyush Mehta 2022-01-26 39 /* Print the hardware registers' value for debugging purpose */
d50e8d7c931f49 Piyush Mehta 2022-01-26 40 static void print_debug_regs(struct dwc3_otg *otg)
d50e8d7c931f49 Piyush Mehta 2022-01-26 @41 {
d50e8d7c931f49 Piyush Mehta 2022-01-26 42 u32 gctl = otg_read(otg, DWC3_GCTL);
d50e8d7c931f49 Piyush Mehta 2022-01-26 43 u32 gsts = otg_read(otg, DWC3_GSTS);
d50e8d7c931f49 Piyush Mehta 2022-01-26 44 u32 gdbgltssm = otg_read(otg, DWC3_GDBGLTSSM);
d50e8d7c931f49 Piyush Mehta 2022-01-26 45 u32 gusb2phycfg0 = otg_read(otg, DWC3_GUSB2PHYCFG(0));
d50e8d7c931f49 Piyush Mehta 2022-01-26 46 u32 gusb3pipectl0 = otg_read(otg, DWC3_GUSB3PIPECTL(0));
d50e8d7c931f49 Piyush Mehta 2022-01-26 47 u32 dcfg = otg_read(otg, DWC3_DCFG);
d50e8d7c931f49 Piyush Mehta 2022-01-26 48 u32 dctl = otg_read(otg, DWC3_DCTL);
d50e8d7c931f49 Piyush Mehta 2022-01-26 49 u32 dsts = otg_read(otg, DWC3_DSTS);
d50e8d7c931f49 Piyush Mehta 2022-01-26 50 u32 ocfg = otg_read(otg, OCFG);
d50e8d7c931f49 Piyush Mehta 2022-01-26 51 u32 octl = otg_read(otg, OCTL);
d50e8d7c931f49 Piyush Mehta 2022-01-26 52 u32 oevt = otg_read(otg, OEVT);
d50e8d7c931f49 Piyush Mehta 2022-01-26 53 u32 oevten = otg_read(otg, OEVTEN);
d50e8d7c931f49 Piyush Mehta 2022-01-26 54 u32 osts = otg_read(otg, OSTS);
d50e8d7c931f49 Piyush Mehta 2022-01-26 55
d50e8d7c931f49 Piyush Mehta 2022-01-26 56 otg_info(otg, "gctl = %08x\n", gctl);
d50e8d7c931f49 Piyush Mehta 2022-01-26 57 otg_info(otg, "gsts = %08x\n", gsts);
d50e8d7c931f49 Piyush Mehta 2022-01-26 58 otg_info(otg, "gdbgltssm = %08x\n", gdbgltssm);
d50e8d7c931f49 Piyush Mehta 2022-01-26 59 otg_info(otg, "gusb2phycfg0 = %08x\n", gusb2phycfg0);
d50e8d7c931f49 Piyush Mehta 2022-01-26 60 otg_info(otg, "gusb3pipectl0 = %08x\n", gusb3pipectl0);
d50e8d7c931f49 Piyush Mehta 2022-01-26 61 otg_info(otg, "dcfg = %08x\n", dcfg);
d50e8d7c931f49 Piyush Mehta 2022-01-26 62 otg_info(otg, "dctl = %08x\n", dctl);
d50e8d7c931f49 Piyush Mehta 2022-01-26 63 otg_info(otg, "dsts = %08x\n", dsts);
d50e8d7c931f49 Piyush Mehta 2022-01-26 64 otg_info(otg, "ocfg = %08x\n", ocfg);
d50e8d7c931f49 Piyush Mehta 2022-01-26 65 otg_info(otg, "octl = %08x\n", octl);
d50e8d7c931f49 Piyush Mehta 2022-01-26 66 otg_info(otg, "oevt = %08x\n", oevt);
d50e8d7c931f49 Piyush Mehta 2022-01-26 67 otg_info(otg, "oevten = %08x\n", oevten);
d50e8d7c931f49 Piyush Mehta 2022-01-26 68 otg_info(otg, "osts = %08x\n", osts);
d50e8d7c931f49 Piyush Mehta 2022-01-26 69 }
d50e8d7c931f49 Piyush Mehta 2022-01-26 70
:::::: The code at line 41 was first introduced by commit
:::::: d50e8d7c931f49b3c396fd2aa71dc6f76604f61d usb: dwc3: otg: fix broken OTG HNP feature
:::::: TO: Piyush Mehta <piyush.mehta@xilinx.com>
:::::: CC: Michal Simek <michal.simek@xilinx.com>
--
0-DAY CI Kernel Test Service
https://01.org/lkp
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-04-06 18:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-06 18:02 [xilinx-xlnx:xlnx_rebase_v5.15 395/1080] drivers/usb/dwc3/otg.c:41: warning: expecting prototype for otg.c(). Prototype was for print_debug_regs() instead kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.