Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Oct 2021 19:49:19 GMT
From:      Alan Somers <asomers@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 4bfc58be8696 - stable/12 - ses: Guard the elm_type_names declaration by _KERNEL
Message-ID:  <202110071949.197JnJX7068682@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/12 has been updated by asomers:

URL: https://cgit.FreeBSD.org/src/commit/?id=4bfc58be8696f50390aeaa25d26709fc6a7646a8

commit 4bfc58be8696f50390aeaa25d26709fc6a7646a8
Author:     Alan Somers <asomers@FreeBSD.org>
AuthorDate: 2021-08-30 20:45:13 +0000
Commit:     Alan Somers <asomers@FreeBSD.org>
CommitDate: 2021-10-07 19:47:27 +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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202110071949.197JnJX7068682>