[PATCH v6 0/1] define __builtin_add_overflow for MSVC
Andre Muezerie
andremue at linux.microsoft.com
Thu Jun 5 16:47:24 CEST 2025
__builtin_add_overflow is gcc specific. A macro needs to be defined
for code using this to be compiled with MSVC.
Since only one driver is using this, this patch adds the macro to
that driver only. It can be moved to some common place if/when
needed.
v6:
- Moved definition of __builtin_add_overflow to the only driver that
needs it, making it private to that driver.
v5:
- Combined patches 1 with 5 and 2 with 3.
v4:
- Added define in ice_osdep.h to use portable version of
__builtin_add_overflow when using MSVC.
- Undid all changes from drivers/net/intel/ice/base/ice_nvm.c.
v3:
- Rebase on top of latest main.
Andre Muezerie (1):
net/intel: define __builtin_add_overflow for MSVC
drivers/net/intel/ice/base/ice_osdep.h | 9 +++++++++
1 file changed, 9 insertions(+)
--
2.49.0.vfs.0.3
More information about the dev
mailing list