Skip to content

define __builtin_add_overflow for MSVC

Andre Muezerie dpdk-dev 1 version Applied

Status from this message: Applied to dpdk-next-net-intel.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v6 Latest1 patch 2 repliesApplied

Changes in v6 from the cover letter

- Moved definition of __builtin_add_overflow to the only driver that needs it, making it private to that driver.

Patches in v6 Applied

#Subject and filesSizeRepliesApplied
1/1net/intel: define __builtin_add_overflow for MSVCdrivers/net/intel/ice/base/ice_osdep.h+9 -02 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchBruce RichardsonMorten Brørup
1/1A-b A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v6 thread

Cover letter [PATCH v6 0/1] define __builtin_add_overflow for MSVC

__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