The branch stable/12 has been updated by imp:

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

commit 4fad4eeb75fe440a9f307af4804cc211a451e603
Author:     Warner Losh <[email protected]>
AuthorDate: 2021-07-02 21:58:14 +0000
Commit:     Warner Losh <[email protected]>
CommitDate: 2021-07-31 00:02:53 +0000

    nvme: style nit
    
    Put the { on the same line as the struct nvme_foo when we define these
    structures. It's FreeBSD standard and these were inconsistent.
    
    Sponsored by:           Netflix
    
    (cherry picked from commit 80a75155e1601bddc2c595c06ab6ea916c603071)
---
 sys/dev/nvme/nvme.h | 21 +++++++--------------
 1 file changed, 7 insertions(+), 14 deletions(-)

diff --git a/sys/dev/nvme/nvme.h b/sys/dev/nvme/nvme.h
index 2caf8171be5b..d53bf3dd9357 100644
--- a/sys/dev/nvme/nvme.h
+++ b/sys/dev/nvme/nvme.h
@@ -546,8 +546,7 @@ enum shst_value {
        NVME_SHST_COMPLETE      = 0x2,
 };
 
-struct nvme_registers
-{
+struct nvme_registers {
        uint32_t        cap_lo; /* controller capabilities */
        uint32_t        cap_hi;
        uint32_t        vs;     /* version */
@@ -584,8 +583,7 @@ struct nvme_registers
 
 _Static_assert(sizeof(struct nvme_registers) == 0x1008, "bad size for 
nvme_registers");
 
-struct nvme_command
-{
+struct nvme_command {
        /* dword 0 */
        uint8_t opc;            /* opcode */
        uint8_t fuse;           /* fused operation */
@@ -1453,8 +1451,7 @@ struct nvme_sanitize_status_page {
 _Static_assert(sizeof(struct nvme_sanitize_status_page) == 512,
     "bad size for nvme_sanitize_status_page");
 
-struct intel_log_temp_stats
-{
+struct intel_log_temp_stats {
        uint64_t        current;
        uint64_t        overtemp_flag_last;
        uint64_t        overtemp_flag_life;
@@ -1468,8 +1465,7 @@ struct intel_log_temp_stats
 
 _Static_assert(sizeof(struct intel_log_temp_stats) == 13 * 8, "bad size for 
intel_log_temp_stats");
 
-struct nvme_resv_reg_ctrlr
-{
+struct nvme_resv_reg_ctrlr {
        uint16_t                ctrlr_id;       /* Controller ID */
        uint8_t                 rcsts;          /* Reservation Status */
        uint8_t                 reserved3[5];
@@ -1479,8 +1475,7 @@ struct nvme_resv_reg_ctrlr
 
 _Static_assert(sizeof(struct nvme_resv_reg_ctrlr) == 24, "bad size for 
nvme_resv_reg_ctrlr");
 
-struct nvme_resv_reg_ctrlr_ext
-{
+struct nvme_resv_reg_ctrlr_ext {
        uint16_t                ctrlr_id;       /* Controller ID */
        uint8_t                 rcsts;          /* Reservation Status */
        uint8_t                 reserved3[5];
@@ -1491,8 +1486,7 @@ struct nvme_resv_reg_ctrlr_ext
 
 _Static_assert(sizeof(struct nvme_resv_reg_ctrlr_ext) == 64, "bad size for 
nvme_resv_reg_ctrlr_ext");
 
-struct nvme_resv_status
-{
+struct nvme_resv_status {
        uint32_t                gen;            /* Generation */
        uint8_t                 rtype;          /* Reservation Type */
        uint8_t                 regctl[2];      /* Number of Registered 
Controllers */
@@ -1504,8 +1498,7 @@ struct nvme_resv_status
 
 _Static_assert(sizeof(struct nvme_resv_status) == 24, "bad size for 
nvme_resv_status");
 
-struct nvme_resv_status_ext
-{
+struct nvme_resv_status_ext {
        uint32_t                gen;            /* Generation */
        uint8_t                 rtype;          /* Reservation Type */
        uint8_t                 regctl[2];      /* Number of Registered 
Controllers */
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/dev-commits-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to