diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2022-07-21 19:49:47 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2022-07-21 19:49:58 +0000 |
commit | 95204d7a6368990e216db0ad51ef3e6018aed27c (patch) | |
tree | 037b92443e6179b5a938e89e6019ab8b08b01537 /sys/dev/pms | |
parent | 1eea6b9097834484f2238298f550bb418901c313 (diff) | |
download | src-95204d7a6368990e216db0ad51ef3e6018aed27c.tar.gz src-95204d7a6368990e216db0ad51ef3e6018aed27c.zip |
Adjust tdsaContext_t::NvmdResponseSet declaration to avoid clang 15 warning
With clang 15, the following -Werror warnings are produced:
In file included from sys/dev/pms/freebsd/driver/ini/src/agtiapi.c:70:
sys/dev/pms/RefTisa/tisa/sassata/common/tdsatypes.h:346:13: error: type specifier missing, defaults to 'int'; ISO C99 and later do not support implicit int [-Wimplicit-int]
volatile NvmdResponseSet;
~~~~~~~~ ^
int
The NvmdResponseSet member is effectively only used as a boolean in the
pms(4) driver, so it could be a single bit. But to avoid changing the
semantics at all in this unmaintained driver, simply declare it as a
volatile int.
MFC after: 3 days
Diffstat (limited to 'sys/dev/pms')
-rw-r--r-- | sys/dev/pms/RefTisa/tisa/sassata/common/tdsatypes.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pms/RefTisa/tisa/sassata/common/tdsatypes.h b/sys/dev/pms/RefTisa/tisa/sassata/common/tdsatypes.h index 9f56775f06b8..ad62ac40997d 100644 --- a/sys/dev/pms/RefTisa/tisa/sassata/common/tdsatypes.h +++ b/sys/dev/pms/RefTisa/tisa/sassata/common/tdsatypes.h @@ -343,7 +343,7 @@ typedef struct tdsaContext_s { bit8 FatalErrorData[(5 * (1024 * 1024))]; #endif /* TI_GETFOR_ONRESET */ bit32 sgpioResponseSet; /*Used to sync between SGPIO Req and Resp */ - volatile NvmdResponseSet; + volatile int NvmdResponseSet; } tdsaContext_t; #ifdef FAST_IO_TEST |