Date: Tue, 16 Dec 2025 04:57:30 +0000 From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: 90c370615158 - stable/15 - ofed/libibverbs: remove no longer needed local alloca.h Message-ID: <6940e6ba.b34b.5726ef56@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=90c3706151583a1efa51f8bc16c3fa4a503d0146 commit 90c3706151583a1efa51f8bc16c3fa4a503d0146 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2025-12-08 23:10:07 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2025-12-16 04:57:02 +0000 ofed/libibverbs: remove no longer needed local alloca.h (cherry picked from commit 70edd3c126a591dec129958d3e103521de84746d) --- contrib/ofed/libibverbs/alloca.h | 18 ------------------ contrib/ofed/libibverbs/cmd.c | 1 - contrib/ofed/libibverbs/compat-1_0.c | 1 - contrib/ofed/libibverbs/device.c | 1 - 4 files changed, 21 deletions(-) diff --git a/contrib/ofed/libibverbs/alloca.h b/contrib/ofed/libibverbs/alloca.h deleted file mode 100644 index b0311c066275..000000000000 --- a/contrib/ofed/libibverbs/alloca.h +++ /dev/null @@ -1,18 +0,0 @@ -#ifndef _LIBIBVERBS_ALLOCA_H_ -#define _LIBIBVERBS_ALLOCA_H_ -#include <stdlib.h> -#include <string.h> -#include <stdlib.h> - -#define strdupa(_s) \ -({ \ - char *_d; \ - int _len; \ - \ - _len = strlen(_s) + 1; \ - _d = alloca(_len); \ - if (_d) \ - memcpy(_d, _s, _len); \ - _d; \ -}) -#endif /* _LIBIBVERBS_ALLOCA_H_ */ diff --git a/contrib/ofed/libibverbs/cmd.c b/contrib/ofed/libibverbs/cmd.c index df6af3933e36..af2ff7f21f64 100644 --- a/contrib/ofed/libibverbs/cmd.c +++ b/contrib/ofed/libibverbs/cmd.c @@ -38,7 +38,6 @@ #include <unistd.h> #include <stdlib.h> #include <errno.h> -#include <alloca.h> #include <string.h> #include "ibverbs.h" diff --git a/contrib/ofed/libibverbs/compat-1_0.c b/contrib/ofed/libibverbs/compat-1_0.c index d63bd55cc09d..73170756ef65 100644 --- a/contrib/ofed/libibverbs/compat-1_0.c +++ b/contrib/ofed/libibverbs/compat-1_0.c @@ -36,7 +36,6 @@ #include <stddef.h> #include <stdlib.h> #include <unistd.h> -#include <alloca.h> #include "ibverbs.h" diff --git a/contrib/ofed/libibverbs/device.c b/contrib/ofed/libibverbs/device.c index 6ea7fc241ed8..c840be7cb140 100644 --- a/contrib/ofed/libibverbs/device.c +++ b/contrib/ofed/libibverbs/device.c @@ -40,7 +40,6 @@ #include <fcntl.h> #include <unistd.h> #include <stdlib.h> -#include <alloca.h> #include <errno.h> #include "ibverbs.h"help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6940e6ba.b34b.5726ef56>
