git: 5060e3d2dae2 - stable/13 - ses: Guard the elm_type_names declaration by _KERNEL
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 07 Oct 2021 21:41:18 UTC
The branch stable/13 has been updated by asomers: URL: https://cgit.FreeBSD.org/src/commit/?id=5060e3d2dae25914e8b89caa71039621c552bc76 commit 5060e3d2dae25914e8b89caa71039621c552bc76 Author: Alan Somers <asomers@FreeBSD.org> AuthorDate: 2021-08-30 20:45:13 +0000 Commit: Alan Somers <asomers@FreeBSD.org> CommitDate: 2021-10-07 21:41:12 +0000 ses: Guard the elm_type_names declaration by _KERNEL Sponsored by: Axcient (cherry picked from commit cc2d08d3880c2e726849ab2aa23b3d15f8aa3938) --- 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 */