From b09ba6a053f070b00a16d888b9975c32efd52e21 Mon Sep 17 00:00:00 2001 From: Xinhao Liu Date: Tue, 9 Nov 2021 20:41:02 +0800 Subject: [PATCH] libhns: The content of the header file should be protected with #define [ Upstream commit cdde13557b561038e9265dfbe0e23578e4b05659 ] Header files should be protected with #define to prevent repeated inclusion. Signed-off-by: Xinhao Liu Signed-off-by: Wenpeng Liang Signed-off-by: Leon Romanovsky Signed-off-by: Nicolas Morey-Chaisemartin --- providers/hns/hns_roce_u_db.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/providers/hns/hns_roce_u_db.h b/providers/hns/hns_roce_u_db.h index b44e64d4d..c3dd583a5 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 #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