linux-next: build failure after merge of the battery tree

Mark Brown <[email protected]> Tue, 21 Jul 2026 15:50:58 +0100
Newsgroups org.kernel.vger.linux-next,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
Hi all,

After merging the battery tree, today's linux-next build (x86_64
allmodconfig) failed like this:

/tmp/next/build/drivers/power/supply/sgm41542_charger.c:209:12: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  209 |         reg_val = FIELD_PREP(SGM4154X_PRECHRG_CUR_MASK, reg_val);
      |                   ^
/tmp/next/build/drivers/power/supply/sgm41542_charger.c:249:8: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  249 |         val = FIELD_GET(SGM4154X_ICHRG_CUR_MASK, reg);
      |               ^
/tmp/next/build/drivers/power/supply/sgm41542_charger.c:271:12: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  271 |         reg_val = FIELD_PREP(SGM4154X_VREG_V_MASK, reg_val);
      |                   ^
/tmp/next/build/drivers/power/supply/sgm41542_charger.c:293:8: error: call to undeclared function 'FIELD_GET'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  293 |         val = FIELD_GET(SGM4154X_VREG_V_MASK, reg);
      |               ^
/tmp/next/build/drivers/power/supply/sgm41542_charger.c:452:9: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
  452 |         time = FIELD_PREP(SGM4154X_WDT_TIMER_MASK, time);
      |                ^
5 errors generated.


Caused by commit

   ac55d04627d41 (power: supply: sgm41542: Add SG Micro sgm41542 charger)

I have used the version from next-20260720 instead.
signature.asc (application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE-----

iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmpfh1EACgkQJNaLcl1U
h9BqdQf7Bm8FWAMJ71C7+goot7LOqKK4uKSotsdyEb+sd5x9q4XgLO5f52Vz9ha3
LG1sK1dqDBEEPp2758TU5nNPPzurM4a4hqadfJ00kHfcod1aLz1cqFsrdVGtR96J
MjW+hWOYmHfa8qi1qINA/fWbaODuHKrhzfanOE9vyn2Qj3AUNsaYydFHW1zgJoFF
MMFjDx/Ap6htKsFq1RCfDptuGjv3gtNrlzVUiYdOMIvHxp2ORjZPvc+Nt0RP2L6c
LRFhN/tJOw799cK7chU8pnzXpzRJftCIRW39jwYnyWx95LkFFbP5b6qTI5Uyur2C
i+uygQd0TmZhDu8RiDxG510dB/Qmrg==
=GQ2M
-----END PGP SIGNATURE-----