Message ID | 20211109124103.54326-7-liangwenpeng@huawei.com (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | libhns: Cleanup about removing redundant code and cleaning up static alarms | expand |
diff --git a/providers/hns/hns_roce_u_db.h b/providers/hns/hns_roce_u_db.h index b44e64d4..c3dd583a 100644 --- a/providers/hns/hns_roce_u_db.h +++ b/providers/hns/hns_roce_u_db.h @@ -30,13 +30,13 @@ * SOFTWARE. */ +#ifndef _HNS_ROCE_U_DB_H +#define _HNS_ROCE_U_DB_H + #include <linux/types.h> #include "hns_roce_u.h" -#ifndef _HNS_ROCE_U_DB_H -#define _HNS_ROCE_U_DB_H - #if __BYTE_ORDER == __LITTLE_ENDIAN #define HNS_ROCE_PAIR_TO_64(val) ((uint64_t) val[1] << 32 | val[0]) #elif __BYTE_ORDER == __BIG_ENDIAN