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 2A8F0A034E; Wed, 9 Feb 2022 04:03:44 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4CA67411AB; Wed, 9 Feb 2022 04:02:58 +0100 (CET) Received: from out203-205-221-249.mail.qq.com (out203-205-221-249.mail.qq.com [203.205.221.249]) by mails.dpdk.org (Postfix) with ESMTP id 88D174115A for ; Wed, 9 Feb 2022 04:02:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=foxmail.com; s=s201512; t=1644375769; bh=FTmNVacgwVkkdiX3iTLHmQlDqXZKVaBc489Aj0r0YNc=; h=From:To:Subject:Date:In-Reply-To:References; b=TOl+CMfB3hjgcWarRevWElfnf2Dusv01LQm7R83NP7Svz4YAYOI7p25nVyXWYwyFh 26rAW1EgFd0iEZ+ghlWSd/JzutoAJilFxKCwpERFM635/fE0iVkeghN84ORncogWrH r/ZHtWULl1T3qAX0XpdGzdGy2uGv/phmsv8FrpYY= Received: from liwg-ubuntu.lan ([111.193.130.237]) by newxmesmtplogicsvrszb7.qq.com (NewEsmtp) with SMTP id 98A6079; Wed, 09 Feb 2022 11:02:24 +0800 X-QQ-mid: xmsmtpt1644375768thce2c09z Message-ID: X-QQ-XMAILINFO: MxtMpmMtaOnyNDbGSYPN0G/4PXlln8mDtOwu1tteajYKufCeq+ERxpUVdPo25+ t345WV859oXLfcP/LfA75//oYIzqb1DNWGR54OsQE+UPRN72R09K5Sp3c6l+mfU6lWOpp8DiHTiy 9EU5RJ6YQrGnOb1kmzgxSiIctpfmDGq0Hxk0/4Bi9dBfZC/u4WO4BC0dhmuNUu2GROO1hKCl+qRb wkJLsc9F37aIAk0uNQI+kXTiajOrrQuWtYOJXhGwcMDzawaRCaHkRmNLllxroLJ1MeHJAnKzY/V0 NUaXmhXJaXO2N5Pk0i/KkkT2kkroay/Ps6lB/Lh+ZsJlbrqVtToCTgnPPLQYV9IyrpldNeOILPfc xu4bBPeb3SBaOfBbH+++TaOrCcBFG5ovYtLJrjUdGU3VQG+yP1Z+okJZkjSyZ1fTFyTX9sBwcv/v RIGkaW1OggQ988GGe7Xy0H0a4pF8HsdbAuop98lar2jcGQ60e0jgGj2tjlG0XQ1GcQr8OfLvpZkp GUnYymVXfa2KzeIvWLCK/b9ziGIStrQ79dxyvOeyTRrrOQ3T6XeiA6jir4r82Kshxe8CD9NScHUW 9GMwZeCPC2j9LDxCP1vjG1aE0e75Kw377wf3PsftqAbT65If2rZEvF8dxPPXkxTqVmJ3vrtnOvAt 5UhePfeLQ5s4OwSm00x2k4Lph9V0+UdLDGcKXu6bPGjn38OD9zLAZh00de43oiQxSzwtsG9kfQyW mXwmiDMGiluCzfWfqVtDedWOyMv8R63/hnX1Kbmq4steuNCd+OcJkZoRTveq5vuxc84byN+nDSGY 5kx/La/Ud5KeJpUfw0L19QwnFIT+yVHbhDCoT/x3T/Xjfi6+0XeKUFjo8QfKF5pHMLDG6G5RVRMi rm5aYctq8PnnkFLR8VcUFZ7BTFdAhPng== X-QQ-SPAM: true From: Weiguo Li To: dev@dpdk.org Subject: [PATCH v2 10/16] raw/ifpga/base: add define guards to avoid multi-inclusion Date: Wed, 9 Feb 2022 11:02:18 +0800 X-OQ-MSGID: X-Mailer: git-send-email 2.25.1 In-Reply-To: References: 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..9d40b84304 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