aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2026-02-24 20:25:45 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2026-02-24 20:25:45 +0000
commit8d3f41dbcb2a949b52660501d7efc6bb12850b09 (patch)
tree42cc01ee623b4a6ddebb57d9f7749e1d321cd1f9
parent5faceb84142f3c9886f38a03dd5214785ac6961f (diff)
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
-rw-r--r--sys/crypto/ccp/ccp_hardware.h10
-rw-r--r--sys/modules/ccp/Makefile3
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