All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/usb/dwc3/dwc3-generic-plat.c:114:35: error: implicit declaration of function 'FIELD_PREP'
@ 2026-08-31  2:39 kernel test robot
  2026-08-31  3:12 ` Marek Vasut
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2026-08-31  2:39 UTC (permalink / raw)
  To: Marek Vasut; +Cc: oe-kbuild-all, 0day robot

tree:   https://github.com/intel-lab-lkp/linux/commits/Marek-Vasut/dt-bindings-phy-Document-ST-STM32MP25-USB2-FEMTO-PHY/20260822-094634
head:   37913ed44bd5c9e2fe5e7bd8ea4188171e6740b7
commit: baaedb19717a9c195ea1823e134a40ac6ca68036 usb: dwc3: dwc3-generic-plat: Add ST STM32MP2 DWC3 xHCI USB controller glue
date:   8 days ago
config: m68k-allmodconfig (https://download.01.org/0day-ci/archive/20260831/202608310438.95i46Myq-lkp@intel.com/config)
compiler: m68k-linux-gcc (GCC) 16.1.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260831/202608310438.95i46Myq-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202608310438.95i46Myq-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/usb/dwc3/dwc3-generic-plat.c: In function 'dwc3_stm32mp25_init':
>> drivers/usb/dwc3/dwc3-generic-plat.c:114:35: error: implicit declaration of function 'FIELD_PREP' [-Wimplicit-function-declaration]
     114 |                                   FIELD_PREP(STM32MP2_USB3DRCR_HOST_PORT_POWER_CONTROL_PRESENT,
         |                                   ^~~~~~~~~~


vim +/FIELD_PREP +114 drivers/usb/dwc3/dwc3-generic-plat.c

    93	
    94	static int dwc3_stm32mp25_init(struct dwc3_generic *dwc3g)
    95	{
    96		struct device *dev = dwc3g->dev;
    97		bool ovrcur_polarity_low = device_property_read_bool(dev, "over-current-active-low");
    98		bool prt_pwr_ctrl = device_property_read_bool(dev, "st,enable-port-power-control");
    99		bool usb2only_conf = device_property_match_string(dev, "phy-names", "usb3-phy") < 0;
   100		bool vbusen_polarity_low = device_property_read_bool(dev, "st,vbusen-active-low");
   101		struct regmap *regmap;
   102		u32 drcr;
   103	
   104		regmap = syscon_regmap_lookup_by_phandle_args(dev->of_node, "st,syscfg", 1, &drcr);
   105		if (IS_ERR(regmap))
   106			return dev_err_probe(dev, PTR_ERR(regmap), "No st,syscfg phandle specified\n");
   107	
   108		return regmap_update_bits(regmap, drcr,
   109					  STM32MP2_USB3DRCR_HOST_PORT_POWER_CONTROL_PRESENT |
   110					  STM32MP2_USB3DRCR_OVRCUR_POLARITY |
   111					  STM32MP2_USB3DRCR_VBUSEN_POLARITY |
   112					  STM32MP2_USB3DRCR_USB2ONLYD |
   113					  STM32MP2_USB3DRCR_USB2ONLYH,
 > 114					  FIELD_PREP(STM32MP2_USB3DRCR_HOST_PORT_POWER_CONTROL_PRESENT,
   115						     prt_pwr_ctrl) |
   116					  FIELD_PREP(STM32MP2_USB3DRCR_OVRCUR_POLARITY,
   117						     ovrcur_polarity_low) |
   118					  FIELD_PREP(STM32MP2_USB3DRCR_VBUSEN_POLARITY,
   119						     vbusen_polarity_low) |
   120					  FIELD_PREP(STM32MP2_USB3DRCR_USB2ONLYD,
   121						     !!usb2only_conf) |
   122					  FIELD_PREP(STM32MP2_USB3DRCR_USB2ONLYH,
   123						     !!usb2only_conf));
   124	}
   125	

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-08-31  3:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-31  2:39 drivers/usb/dwc3/dwc3-generic-plat.c:114:35: error: implicit declaration of function 'FIELD_PREP' kernel test robot
2026-08-31  3:12 ` Marek Vasut

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.