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 7911BA034E; Sun, 6 Feb 2022 04:59:59 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E3F304116E; Sun, 6 Feb 2022 04:59:12 +0100 (CET) Received: from out203-205-221-149.mail.qq.com (out203-205-221-149.mail.qq.com [203.205.221.149]) by mails.dpdk.org (Postfix) with ESMTP id E066D410F3 for ; Sun, 6 Feb 2022 04:59:05 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1644119943; bh=HTu/tZ+uec/5ekUqe1vvMReZpbj6f1mMTSZnxXAH7Qs=; h=From:To:Subject:Date:In-Reply-To:References; b=qGVTE8hcgSwYEiEYCtCV3Yd6vfK0GLCyuHdNp8QJRrAFoKxq9IETK0MdNxyvvLaqM Hgx3/mvnWdmqbPK9UNTGJxeH9uTEX7bp2ePtEWyZ5F0ABQnPu1IHZhB6Z7+UeM9RQM urt9kmS50w9z7FVJ0QKNBujEh32/z9YKjGePwHDA= Received: from liwg-ubuntu.lan ([111.193.130.237]) by newxmesmtplogicsvrszc10.qq.com (NewEsmtp) with SMTP id EAE16474; Sun, 06 Feb 2022 11:58:46 +0800 X-QQ-mid: xmsmtpt1644119942tqyan2ai1 Message-ID: X-QQ-XMAILINFO: OBvbJS/7aDyUsFxSfDJH6vrUtNyLfEqAUfF3XrLW24o6FQpjqV+AOCMlMPblcC jgE/Jex3MPcfKjMb6gTFLtaHzU930XbaemtGwtFNwja/GkWLBK7eKP5+TZhg/lwjFv7InV7OS03n +CuI1VM45qq/VKVRftAhv6oN5OfhGrc6hod6nEVNNLqMBkZupL+ug4VE6i9gkIIm1GvWOvAtIkv6 gjHCISYefXp0hkd1sKrhThFh3DPcCT2K1AuJ1CQffbVUg6aD2TXOEU4hQjYtKsNnUFbacrLONEi2 cLWwGOLMlfqxMhwShVHfT/r0pGIiaUSx6l38/0KsabtUs0t/SNsxwicUyGeq2Wo2GGu5wIrwxers 3JQrjYSwaQv+3k8lP/3qzsrSW+YzHpRYcdz7jJFEZGciOrpITVWBV47RQ2W/2TQhNaaewKoUiqkp hxBeL1C6lpCgDTScIat1zuMEE+eKoRFdPAOiK0KNHSizusxlTizKfcSThUfcPvn0HZHD+s+5sPMM wG6ga2HvP/Q5vwQTs5ILcXf8M/KlXIyNPiRkHjlcBUJghWjvrq1N2byvpeSYUW9L6/SJoEfLFATm gBizPzQWuxBGLby5RnTMpyDJCX0kwwL0qgbVTGulRzXxM2X1qVxM2BNOIBoLGPt7yQI+3c+BsAfx xNn1bmZ0647c48Evho6r7T6H13hUhNuFi9owMQtxBi55sMO74ySyC0wmNxMhin7GOw6ZRVVPYHMD QBtWBL3A9su24fp01TY1qs2ia7+6TTIhGBOJDz+bQsbuePEuaN/Z9lV4oeYIGC88DtLKcG3ngini k2motcj2li0b7wxKAo8TiqbiDx7KTeM6gPToYJIwGIcPwOeiAIenGzKXg/72QeiehhX7y/UcOCib O/WShyrIz51JO4oz8huVE= From: Weiguo Li To: dev@dpdk.org Subject: [PATCH 10/16] raw/ifpga/base: add define guards to avoid multi-inclusion Date: Sun, 6 Feb 2022 11:58:40 +0800 X-OQ-MSGID: <20220206035846.2840462-10-liwg06@foxmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220206035846.2840462-1-liwg06@foxmail.com> References: <20220206035846.2840462-1-liwg06@foxmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Supplement define guards to prevent multiple inclusion. Signed-off-by: Weiguo Li --- drivers/raw/ifpga/base/opae_at24_eeprom.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/raw/ifpga/base/opae_at24_eeprom.h b/drivers/raw/ifpga/base/opae_at24_eeprom.h index caae9a3ec1..6ba6933409 100644 --- a/drivers/raw/ifpga/base/opae_at24_eeprom.h +++ b/drivers/raw/ifpga/base/opae_at24_eeprom.h @@ -3,6 +3,9 @@ * Copyright(c) 2010-2019 Intel Corporation */ +#ifndef _OPAE_AT24_EEPROM_H +#define _OPAE_AT24_EEPROM_H + #define AT24C512_PAGE_SIZE 128 #define AT24C512_IO_LIMIT 128 @@ -12,3 +15,5 @@ int at24_eeprom_read(struct altera_i2c_dev *dev, unsigned int slave_addr, u32 offset, u8 *buf, int count); int at24_eeprom_write(struct altera_i2c_dev *dev, unsigned int slave_addr, u32 offset, u8 *buf, int count); + +#endif /* _OPAE_AT24_EEPROM_H */ -- 2.25.1