git: 8d3f41dbcb2a - main - ccp: Don't name anonymous structure and union types
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 24 Feb 2026 20:25:59 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=8d3f41dbcb2a949b52660501d7efc6bb12850b09
commit 8d3f41dbcb2a949b52660501d7efc6bb12850b09
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2026-02-24 20:25:45 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2026-02-24 20:25:45 +0000
ccp: Don't name anonymous structure and union types
Keep the dword labels as comments instead. Anonymous structs and
unions don't have type names in C11+.
Differential Revision: https://reviews.freebsd.org/D55144
---
sys/crypto/ccp/ccp_hardware.h | 10 +++++-----
sys/modules/ccp/Makefile | 3 ---
2 files changed, 5 insertions(+), 8 deletions(-)
diff --git a/sys/crypto/ccp/ccp_hardware.h b/sys/crypto/ccp/ccp_hardware.h
index 95779491acf2..1a1063acbe13 100644
--- a/sys/crypto/ccp/ccp_hardware.h
+++ b/sys/crypto/ccp/ccp_hardware.h
@@ -259,7 +259,7 @@ enum ccp_passthru_byteswap {
*/
struct ccp_desc {
- union dword0 {
+ union /* dword0 */ {
struct {
uint32_t hoc:1; /* Halt on completion */
uint32_t ioc:1; /* Intr. on completion */
@@ -382,7 +382,7 @@ struct ccp_desc {
uint32_t length;
uint32_t src_lo;
- struct dword3 {
+ struct /* dword3 */ {
uint32_t src_hi:16;
uint32_t src_mem:2;
uint32_t lsb_ctx_id:8;
@@ -390,12 +390,12 @@ struct ccp_desc {
uint32_t src_fixed:1;
};
- union dword4 {
+ union /* dword4 */ {
uint32_t dst_lo; /* NON-SHA */
uint32_t sha_len_lo; /* SHA */
};
- union dword5 {
+ union /* dword5 */ {
struct {
uint32_t dst_hi:16;
uint32_t dst_mem:2;
@@ -407,7 +407,7 @@ struct ccp_desc {
uint32_t key_lo;
- struct dword7 {
+ struct /* dword7 */ {
uint32_t key_hi:16;
uint32_t key_mem:2;
uint32_t reserved_5:14;
diff --git a/sys/modules/ccp/Makefile b/sys/modules/ccp/Makefile
index d268f0b58a91..9ab5f524b35c 100644
--- a/sys/modules/ccp/Makefile
+++ b/sys/modules/ccp/Makefile
@@ -10,9 +10,6 @@ SRCS+= device_if.h
SRCS+= cryptodev_if.h
SRCS+= pci_if.h
-CFLAGS+= -fms-extensions
-CFLAGS.clang+= -Wno-microsoft-anon-tag
-
MFILES= kern/bus_if.m kern/device_if.m opencrypto/cryptodev_if.m \
dev/pci/pci_if.m