git: cc2d08d3880c - main - ses: Guard the elm_type_names declaration by _KERNEL
Alan Somers
asomers at FreeBSD.org
Thu Sep 2 20:48:03 UTC 2021
The branch main has been updated by asomers:
URL: https://cgit.FreeBSD.org/src/commit/?id=cc2d08d3880c2e726849ab2aa23b3d15f8aa3938
commit cc2d08d3880c2e726849ab2aa23b3d15f8aa3938
Author: Alan Somers <asomers at FreeBSD.org>
AuthorDate: 2021-08-30 20:45:13 +0000
Commit: Alan Somers <asomers at FreeBSD.org>
CommitDate: 2021-09-02 20:47:18 +0000
ses: Guard the elm_type_names declaration by _KERNEL
MFC after: 2 weeks
Sponsored by: Axcient
---
sys/cam/scsi/scsi_enc.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/sys/cam/scsi/scsi_enc.h b/sys/cam/scsi/scsi_enc.h
index cafec644bde4..b816a6a5d4cd 100644
--- a/sys/cam/scsi/scsi_enc.h
+++ b/sys/cam/scsi/scsi_enc.h
@@ -154,7 +154,9 @@ typedef enum {
"SAS Connector" \
}
+#ifdef _KERNEL
extern const char *elm_type_names[];
+#endif
typedef struct encioc_element {
/* Element Index */
More information about the dev-commits-src-all
mailing list