All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: Marek Vasut <marex@nabladev.com>
Cc: oe-kbuild-all@lists.linux.dev, 0day robot <lkp@intel.com>
Subject: drivers/usb/dwc3/dwc3-generic-plat.c:114:35: error: implicit declaration of function 'FIELD_PREP'
Date: Mon, 31 Aug 2026 04:39:51 +0200	[thread overview]
Message-ID: <202608310438.95i46Myq-lkp@intel.com> (raw)

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

             reply	other threads:[~2026-08-31  2:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-31  2:39 kernel test robot [this message]
2026-08-31  3:12 ` drivers/usb/dwc3/dwc3-generic-plat.c:114:35: error: implicit declaration of function 'FIELD_PREP' Marek Vasut

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202608310438.95i46Myq-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=marex@nabladev.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.