From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id D7220425A3; Fri, 15 Sep 2023 11:17:47 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B781141153; Fri, 15 Sep 2023 11:16:39 +0200 (CEST) Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2126.outbound.protection.outlook.com [40.107.237.126]) by mails.dpdk.org (Postfix) with ESMTP id 61F63410E3 for ; Fri, 15 Sep 2023 11:16:36 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BQm02KShxvBUxnfQBfSfQ38NYtPHxQNG2XW/oOeUOypwGo97Gz17XMeHk3i9yEOgWuxcmI3p7GMUlyvymhm2p1AF8Z79sM44MSpj6kp9NYHgZXy9PPDeybboUca9YbLKtIBtDDMFL94/7d4zBPVAvkniHnCmQaKlJTFxnrlCyGu/rgUEvHHJ3/z7EDMpTdDtj/kCMpgIppEIRyPq143aiwo/gZhu1T9g4E0s8mLkZv6R72WfZc8F/H105smyZTxNePXn+zC6bS+akdKbmmfcP9MqEI19+c5uus4J5fM0qFld7tWDqG0OwtxtNSLSnhVXCoQg/0hdwmNpad/ur3ucDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=Nart79U2eIQ715z8CazlK3l3facOoPbmIcfF0+QAlxc=; b=QF6hGraKl05/xkBYl5caeO8C3tpc0OQDGl2j0njo0OpDpUcGZYLmSy6mnJ0nK2/eLHJ78eknnaUvoCTC9UZIYYpbH8ItBUVVY4hGzkRffTXMpVHneD1ftA9h8J6mg1TgRdB9KEc407lRJ4JYEG1iu0LJy2Fgi4iVeQeRK/Zdh4OuyAXliRrBfRhf5AcYZeqpe007BPvMsTrqbIEE3TihWATBnOhSpp0vipenlp+K5XnzYceG0hQu5RMaDejm4pjqbedZXxuCwHwQf6j6Ps9z15nWm3sg4and+9lKAPCPU6i/7QO5bUgIVKaxn3sQKZFilklEkN0q2BVRnKS+j6D9Hg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=corigine.com; dmarc=pass action=none header.from=corigine.com; dkim=pass header.d=corigine.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corigine.onmicrosoft.com; s=selector2-corigine-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Nart79U2eIQ715z8CazlK3l3facOoPbmIcfF0+QAlxc=; b=Gi3JmHa0ef2WHpD2PGh+6+Ni/Jg5yxcZYm0YZSVuht7YOPUG7W/5MutHpwdcEDS2dwjbVUuPJDIF1u0eB5DeuEDTVquhEUdk/K02wUZSE6oIRBT8yg+J4Yp6NhUCrBd3OkyZJ9pCnM49gBB8vOzab3ETW+DO4oJAKm0MMeN94UA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=corigine.com; Received: from SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) by CO1PR13MB4773.namprd13.prod.outlook.com (2603:10b6:303:fb::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6792.21; Fri, 15 Sep 2023 09:16:35 +0000 Received: from SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::c05c:6915:1628:70c4]) by SJ0PR13MB5545.namprd13.prod.outlook.com ([fe80::c05c:6915:1628:70c4%7]) with mapi id 15.20.6768.029; Fri, 15 Sep 2023 09:16:35 +0000 From: Chaoyong He To: dev@dpdk.org Cc: oss-drivers@corigine.com, Chaoyong He , =?UTF-8?q?Niklas=20S=C3=B6derlund?= Subject: [PATCH v3 10/27] net/nfp: unify the guide line of header file Date: Fri, 15 Sep 2023 17:15:34 +0800 Message-Id: <20230915091551.1459606-11-chaoyong.he@corigine.com> X-Mailer: git-send-email 2.39.1 In-Reply-To: <20230915091551.1459606-1-chaoyong.he@corigine.com> References: <20230830021457.2064750-1-chaoyong.he@corigine.com> <20230915091551.1459606-1-chaoyong.he@corigine.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-ClientProxiedBy: PH7PR10CA0017.namprd10.prod.outlook.com (2603:10b6:510:23d::10) To SJ0PR13MB5545.namprd13.prod.outlook.com (2603:10b6:a03:424::5) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR13MB5545:EE_|CO1PR13MB4773:EE_ X-MS-Office365-Filtering-Correlation-Id: b2aa68d2-2274-4802-aac6-08dbb5cc752d X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yF5QoRkFsQAQSaDUQyT5AZZjrpKSOwr9TiX+stlPsOtF6BEBq516MTFc1W30rHc3+ARRVIsXgUnVz4A9/hZcgSdKCqqBX4lz5SrbTMK0p4yOC2ioeKJC+Cl0VQC8vYPFQi4DKNKP5zUCkQnMI62WqM4OXw6g9i4dKjOOa8ElFjQn5K/cPcB88/ySp2v6Dx0cFNCNGQIcnxjQIbUbfMtAL1tJsiAWoVCetPYpGmQKf6PIT953YFXYS3u8b3D8FE4TyVa1iRtk+ND4HMZMOjWNodFdkXmgK2jbc7Uj42rKbooRkzLRCNlXDzVFNVH3koAZDXOPHBbQ9lWV2UfJfFWbPhd9QJ3iczm/dAa6UAxnFupMF5T+04Hqc1OWL9byOVDZBi0H4ToAg4zpA6Fg/3u3HzyE7kw2TFbUxISW61rjuYg/m119VZYcjkk+Cvl31fi+LyT3CIA2a/z2+yz8gXKyUAMrLy+6+ktpEdc/eww0GTUqOAevMhRxx9ND0h488gL9DXobQdN9j8EmaKYy1yo4Y1caVx9IcnvHyPGTNdOe/Fd4VEgI3PzXJ8a5l/zfdO+DSzR8oT6AJmsIwvdeIdji/xgXX+0wA0aS3eugHbYVLG3knzvbhdGgOl+eXVeIcUcqLrOjuv+PLOHhbMpi+bd5knJHq8yAUWY0E7fd7fhVg+k= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:SJ0PR13MB5545.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39840400004)(346002)(136003)(376002)(396003)(366004)(451199024)(186009)(1800799009)(6512007)(107886003)(1076003)(2616005)(52116002)(6506007)(6486002)(66946007)(26005)(316002)(41300700001)(66476007)(66556008)(6916009)(54906003)(5660300002)(4326008)(8676002)(38350700002)(8936002)(38100700002)(478600001)(66574015)(83380400001)(36756003)(44832011)(86362001)(2906002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?bUk2elVPaVAyNjR5YnVtTXQ5VjhmY1JUUE9RMzhjQ0x4cGFLTGNSUTVVVEtM?= =?utf-8?B?S0lYajNOMzRnNFcxYTlxUFRvbTdaQTNjU2FsM0plY2xGYUZtQXJNc1k5alhP?= =?utf-8?B?L0Y4WWdRUjNCOCs4UEYzNDZJeEdmaWV4S0NKeE54c2pwZTN6eitFVmVPTDZs?= =?utf-8?B?c3pzVU56eFc4VWFpZm1lWmp1WUlZZUtQSjVFWWorUHg5Zm9JMzJsb1BtQlZS?= =?utf-8?B?eS95cE1zcTJlNElBSjY0QytJRTlkUzUrZHhDY1k5dUxvTHZyZ3Nvclp4NUd1?= =?utf-8?B?S1ZpRDJVcnNHeG1OR21MckJlaHZmcDlVQmNwUUtieXZqejZMWW5qQlNSRi9s?= =?utf-8?B?RmdrVjR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QytO?= =?utf-8?B?S2c9PQ==?= X-OriginatorOrg: corigine.com X-MS-Exchange-CrossTenant-Network-Message-Id: b2aa68d2-2274-4802-aac6-08dbb5cc752d X-MS-Exchange-CrossTenant-AuthSource: SJ0PR13MB5545.namprd13.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Sep 2023 09:16:34.9951 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: fe128f2c-073b-4c20-818e-7246a585940c X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: ah4Ebf1hPfyUwT/knKmGxGUtGl88dbqD8mOHsk6NXo2Coe4B/UGBPc6LNGPAcokF/Roc1RA5ElMi2MM4r/giIZTtauN8TYkw+cGOawE6lpg= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR13MB4773 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Unify the guide line of header file, we choose '__FOO_BAR_H__' style. Signed-off-by: Chaoyong He Reviewed-by: Niklas Söderlund --- drivers/net/nfp/nfpcore/nfp_cpp.h | 2 +- drivers/net/nfp/nfpcore/nfp_hwinfo.h | 2 +- drivers/net/nfp/nfpcore/nfp_mip.h | 2 +- drivers/net/nfp/nfpcore/nfp_nffw.h | 2 +- drivers/net/nfp/nfpcore/nfp_nsp.h | 6 +++--- drivers/net/nfp/nfpcore/nfp_resource.h | 6 +++--- drivers/net/nfp/nfpcore/nfp_rtsym.h | 2 +- drivers/net/nfp/nfpcore/nfp_target.h | 6 +++--- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/drivers/net/nfp/nfpcore/nfp_cpp.h b/drivers/net/nfp/nfpcore/nfp_cpp.h index 92cae2557a..ceb4d56a08 100644 --- a/drivers/net/nfp/nfpcore/nfp_cpp.h +++ b/drivers/net/nfp/nfpcore/nfp_cpp.h @@ -442,4 +442,4 @@ int nfp_cpp_mutex_trylock(struct nfp_cpp_mutex *mutex); uint32_t nfp_cpp_mu_locality_lsb(struct nfp_cpp *cpp); -#endif /* !__NFP_CPP_H__ */ +#endif /* __NFP_CPP_H__ */ diff --git a/drivers/net/nfp/nfpcore/nfp_hwinfo.h b/drivers/net/nfp/nfpcore/nfp_hwinfo.h index 37427bb6c8..543562779a 100644 --- a/drivers/net/nfp/nfpcore/nfp_hwinfo.h +++ b/drivers/net/nfp/nfpcore/nfp_hwinfo.h @@ -81,4 +81,4 @@ struct nfp_hwinfo *nfp_hwinfo_read(struct nfp_cpp *cpp); const char *nfp_hwinfo_lookup(struct nfp_hwinfo *hwinfo, const char *lookup); -#endif +#endif /* __NFP_HWINFO_H__ */ diff --git a/drivers/net/nfp/nfpcore/nfp_mip.h b/drivers/net/nfp/nfpcore/nfp_mip.h index 16824a6769..371c635b97 100644 --- a/drivers/net/nfp/nfpcore/nfp_mip.h +++ b/drivers/net/nfp/nfpcore/nfp_mip.h @@ -19,4 +19,4 @@ void nfp_mip_strtab(const struct nfp_mip *mip, uint32_t *addr, uint32_t *size); int nfp_nffw_info_mip_first(struct nfp_nffw_info *state, uint32_t *cpp_id, uint64_t *off); -#endif +#endif /* __NFP_MIP_H__ */ diff --git a/drivers/net/nfp/nfpcore/nfp_nffw.h b/drivers/net/nfp/nfpcore/nfp_nffw.h index e032b6cce7..f84be463c4 100644 --- a/drivers/net/nfp/nfpcore/nfp_nffw.h +++ b/drivers/net/nfp/nfpcore/nfp_nffw.h @@ -75,4 +75,4 @@ struct nfp_nffw_info { struct nfp_nffw_info *nfp_nffw_info_open(struct nfp_cpp *cpp); void nfp_nffw_info_close(struct nfp_nffw_info *state); -#endif +#endif /* __NFP_NFFW_H__ */ diff --git a/drivers/net/nfp/nfpcore/nfp_nsp.h b/drivers/net/nfp/nfpcore/nfp_nsp.h index ee58bf33b8..7bf584dcd0 100644 --- a/drivers/net/nfp/nfpcore/nfp_nsp.h +++ b/drivers/net/nfp/nfpcore/nfp_nsp.h @@ -3,8 +3,8 @@ * All rights reserved. */ -#ifndef NSP_NSP_H -#define NSP_NSP_H 1 +#ifndef __NSP_NSP_H__ +#define __NSP_NSP_H__ #include "nfp_cpp.h" #include "nfp_nsp.h" @@ -260,4 +260,4 @@ enum nfp_nsp_sensor_id { int nfp_hwmon_read_sensor(struct nfp_cpp *cpp, enum nfp_nsp_sensor_id id, uint32_t *val); -#endif +#endif /* __NSP_NSP_H__ */ diff --git a/drivers/net/nfp/nfpcore/nfp_resource.h b/drivers/net/nfp/nfpcore/nfp_resource.h index 4236950caf..18196d273c 100644 --- a/drivers/net/nfp/nfpcore/nfp_resource.h +++ b/drivers/net/nfp/nfpcore/nfp_resource.h @@ -3,8 +3,8 @@ * All rights reserved. */ -#ifndef NFP_RESOURCE_H -#define NFP_RESOURCE_H +#ifndef __NFP_RESOURCE_H__ +#define __NFP_RESOURCE_H__ #include "nfp_cpp.h" @@ -33,4 +33,4 @@ uint64_t nfp_resource_address(const struct nfp_resource *res); uint64_t nfp_resource_size(const struct nfp_resource *res); -#endif /* NFP_RESOURCE_H */ +#endif /* __NFP_RESOURCE_H__ */ diff --git a/drivers/net/nfp/nfpcore/nfp_rtsym.h b/drivers/net/nfp/nfpcore/nfp_rtsym.h index de1966f04b..fdde1eb75b 100644 --- a/drivers/net/nfp/nfpcore/nfp_rtsym.h +++ b/drivers/net/nfp/nfpcore/nfp_rtsym.h @@ -58,4 +58,4 @@ uint64_t nfp_rtsym_read_le(struct nfp_rtsym_table *rtbl, const char *name, uint8_t *nfp_rtsym_map(struct nfp_rtsym_table *rtbl, const char *name, uint32_t min_size, struct nfp_cpp_area **area); -#endif +#endif /* __NFP_RTSYM_H__ */ diff --git a/drivers/net/nfp/nfpcore/nfp_target.h b/drivers/net/nfp/nfpcore/nfp_target.h index 195e599d31..2a2f083914 100644 --- a/drivers/net/nfp/nfpcore/nfp_target.h +++ b/drivers/net/nfp/nfpcore/nfp_target.h @@ -3,7 +3,7 @@ * All rights reserved. */ -#ifndef NFP_TARGET_H -#define NFP_TARGET_H +#ifndef __NFP_TARGET_H__ +#define __NFP_TARGET_H__ -#endif /* NFP_TARGET_H */ +#endif /* __NFP_TARGET_H__ */ -- 2.39.1