Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Dec 2025 04:58:19 +0000
Message-ID:  <6940e6eb.be81.19e4a158@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch stable/14 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=e5fbddef958d3ce81bf338def30a94c404762047

commit e5fbddef958d3ce81bf338def30a94c404762047
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:53 +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 0a9cc3831d41..b157dd1a8ddc 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 d5cd2173cd8b..48f3f90d2330 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?6940e6eb.be81.19e4a158>