Skip to content

Commit

Permalink
libhns: The content of the header file should be protected with #define
Browse files Browse the repository at this point in the history
[ Upstream commit cdde135 ]

Header files should be protected with #define to prevent repeated
inclusion.

Signed-off-by: Xinhao Liu <liuxinhao5@hisilicon.com>
Signed-off-by: Wenpeng Liang <liangwenpeng@huawei.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
  • Loading branch information
Xinhao Liu authored and nmorey committed Nov 15, 2021
1 parent b514a22 commit b09ba6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions providers/hns/hns_roce_u_db.h
Expand Up @@ -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
Expand Down

0 comments on commit b09ba6a

Please sign in to comment.