From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20062.outbound.protection.outlook.com [40.107.2.62]) by dpdk.org (Postfix) with ESMTP id 87A9BCF9E for ; Thu, 19 Apr 2018 14:34:48 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=PIDha/OvPJNm/S1cbDefsrgu4InVl42wTIJnq1Smrhs=; b=yI41N3rTSqBF4aPqbvwsJCE1yBIKt6a+8939nhl1sYQGM9MfVoUX54o6lrO9xXVejzwX7nkJah9i/Qi3gnhESbU3manwEE2N61xK3/42GQUI5Ry7m04Z/V/huWFyut/0qmMhVpEJx/LgKUOhD1mKD7g7/ymIQ6MCXSYobmHuEWo= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.675.14; Thu, 19 Apr 2018 12:34:44 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: kirill.rybalchenko@intel.com, maxime.coquelin@redhat.com Date: Thu, 19 Apr 2018 18:02:39 +0530 Message-Id: <1524141159-19909-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: MA1PR0101CA0003.INDPRD01.PROD.OUTLOOK.COM (2603:1096:a00:21::13) To AM2PR04MB0754.eurprd04.prod.outlook.com (2a01:111:e400:8411::14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(48565401081)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0754; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 3:erYb1ReKKIPgtMR1mMIoLDPoiUL7GU/gpY5XdSpka0ve3QQaouw70s31HhYNvGKwgwGbQduChcZr7Tk+U5KM8KtKXmrtHSr4KLg9mFjenDZKMv2nEXhGzY1iWX1LVb6zkemi0/HdKPJtZoZ1NMTdubuLptLpvVRCTd23xNQ43K1Dzan7vQKkY2kOxwgEC/NN9cZ4Gk8ldSfgZzLuH7ZeMt4/V91ZiJsoSKS3ARKCs7auxaqsV/OmFKhLh3fQlfmj; 25:FWMSvRAjV1VVv0NY5g5McKNYrb9fKvi9LNUKtGKt186QUxZ8YnV4VYOyBaD4WJBQK6om/LvCMSx9s177sZRT7wqlsKWwXkuOd7WErFBlVVKKaNr8NNAnDmmhamNgTn4Deic4uhQdBBnIFJ3JCcRdbXOFrjfXir8S7tJR763oYFXc+ihw4eUL+ARXsAJUjCW5jC+Ydiahr6CtQazMruHTUTE9IhAPA1D2LAWJbZ0arBBsPSjCbia27yJsF6ln7GAy9sBIamMe7bR0HoU1TuY7rS1yP6zukwwYeX3f9GVFJ471trxt5TMmIPcrGj0NWf+PBw3/wirSNYRK5jEMc/GBlrdzO36qBweMF3NDnJTMJwc=; 31:e3PGrxFimL96JGBWBrixMq/Zn6ZmxmQm8W2VFssANlbctvmY0mz/0m5v6j6QzPpjRSh1WHS72plcWJvAlP+PmtDAAsR4PQvroTSQONYEwCbHuN6fhlnHN0byDtc6zzEMqckmkN9+mzADqMPxrYqpMtQkCTlot3vtRq7U4Uy+hrw+cNEzmPUqtPZbPhUIQvXQGnV2zKHWod8ChBXzUzXH16PjrgormRnBzPEyK2fJgKg= X-MS-TrafficTypeDiagnostic: AM2PR04MB0754: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 20:kMsZTDKdwRqU3cdpeScG8YLp71647T5ypIqGEREnrO9wKb+6B1Slci3+WVWQZX8Zy5cY/VZu83kSC3zQjk6Q9PeTzOaovW7ov149Zp3kV2yabmQ9HJTQNiyqptJaFuXTsBcnn/YEQI/zxzaUa0XZujamfpqNbF+qZOqGGISMuaz4nmvd+sx4CtraogN4FON5G2uypS2411xlZ1Vpq0NBw+ZMPb0wze0q6P9Lz1VmjF2Ksf303YUl3P/ssGH1yG0/SjSmbSd6byUX0/FSYB/tLiynvneN3WEHB3+dJA9IClIRESQMCl4K+oIjyoIaDfe5xCeWcwHUMKBhb+rrlEb6JED2CYr8Lhp0dCf5k+AtWclU0wND752qVKn9UfGVp1YPhisUKtaKTdj/EX1OlyAcPBkcgspBPWaC0qels28THbyXoYVPS3zgjs5THeA5NK6IQf9Cq92TzrkFRxupT4YrZgPjtLRl1lyHaczrRdvBCrubqU6eFE7yJopxXI2z+z/E; 4:LLzD9MQ7sAATRqM20BMLGy3XYeKXvD3TIhpSHi2Z/Y35jcNkhxTPmeSpXBeIwtOQ4J2uoFxH1wqIGqlCB18vH681/8GscrxoPEWu7/CKRJmqoB7Mk43AU3YxT3AqO6fiiCuhx50lQ3tpk9HLQgDq/5foXVTZExoqBvtkTjwDG+EHKhyE8+AFkTTksD9FWlHG4CUNAqmNpXKQ7lGrKnrX9YB6vtWEgMy3ilLYyds1qocfICJFG/InbUlbTDtXiEhvCBULRPdv9tmXGi8I9K5UyEs8MD2v1a5TPuEQBLl15hIudcyG5i5VBnCO2/FC38tA X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231232)(944501327)(52105095)(10201501046)(93006095)(93001095)(3002001)(6055026)(6041310)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(6072148)(201708071742011); SRVR:AM2PR04MB0754; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0754; X-Forefront-PRVS: 0647963F84 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39380400002)(366004)(396003)(346002)(39860400002)(376002)(25786009)(6512007)(50226002)(5660300001)(4326008)(51416003)(53936002)(52116002)(8676002)(47776003)(6486002)(2906002)(66066001)(2361001)(2351001)(44832011)(26005)(8936002)(6116002)(3846002)(55236004)(16586007)(575784001)(316002)(86362001)(6916009)(6666003)(1857600001)(36756003)(305945005)(16526019)(186003)(2616005)(48376002)(50466002)(956004)(476003)(59450400001)(386003)(81166006)(6506007)(478600001)(7736002)(5009440100003)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0754; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; MLV:nov; PTR:InfoNoRecords; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0754; 23:8m4rHVACOzObQzo+N2x5KZePDUY4ySeuTEYrHypUn?= =?us-ascii?Q?HsBohf252FZ3GTufHIxCFCWZe9gno2XTwqXKF5Pb/yXL5Ygk9Wt68BRWnLdM?= =?us-ascii?Q?5s6Go3+ZEHjCXq9lJnEwkMOr628dQxvF51N9Fq4C/ZgQ7SzmtIHfW4VgXv5A?= =?us-ascii?Q?70vY+5HArHCBQNLB4sJKDhtkF59ZGQw0whjcWmMtTFB15LIlyF1b1igCpjp4?= =?us-ascii?Q?2r2G81qKHdRtWxaHy7dR480qQ0yEQDeqLdcowiRrCS5ZMbU7JbpuG9SZV5fC?= =?us-ascii?Q?PiVv9fghlkKuO5R7w2OTzyOx/dmM3Ll3XMTx0UKPaN9LrpL0hxYpmifC3s5K?= =?us-ascii?Q?KvXuDJwgUluFyjGJxnej7kghjxgJ/VIqBN/0Db11qfgoPuGtCgW3oLMZdZJt?= =?us-ascii?Q?lamxwijAWPKKHM7vJf5ZAA6WHHBJ3jMOozE4DEo56SkBEphzsgUMqp+820/d?= =?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lhtzdsTImjbfipA5Se3vIqohdZLPgyAHfKZ8Zp8jDHOlztr+foSpR X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 6:ebtDc1aJqMz1XbJ44korwiNv3vCfrJij0t6uF6YkVSN1Mm2QC9wdRkHd5xSZV/jHS5szb5c2HpIVZGfxBq2G817tlRvfngjKOxvrc2uc8E1df+fRfE2oL+w88z3d60ybewS35jr5xWCMYULYXsHma7FkhNTt/Y2UuqD+2emGrBxBS/AH64BDBVLgRgZ0wopxNkyB4sLYnflmqVPG6+RrImSxcsy35BtSPdiy6kRNjy3V78Ck+/oSDsW7qKaaxOkNf5aAe0utXfaagzz62Z7Pka3BZzhPOB32r4RWYKs9drfZfkgnVMzLB3rW65F6QHDxYAyXAJssW/AxUVH31l3KPvUlWlPxdx6+d3Vsr5h1p+mGQ5m/JHNHdgM/3PLk6KKaDC9+6u4e3CuDp7HG1MJIGvDtcpMtlE8iqe4S2TA8DQH1dSnhGthZCeh61iem8f94+hflVQnMeyZDqBK835JZAA==; 5:28ZInJUgJzUVSfVjRGZUwzjcY+KPpxorBls9lh9tsV8jzmTSF0Y29NqVF1IClXoBTkPAa/6m5Xd15zy0jh/KljNnE3xeYK/hinj43BqD7RPbOh3una3UuE1kU4wRdBqsToGA/XLuELjrkbrozqpesN5bHkJCJ7jYF1dKtmmmBI8=; 24:khDbmyQbmnGKq/RIe9wau104PhYGeJoGpdaGMHrtNtllOO6OEREFE8iieNmeCWYwBbaDQlsvkaGt6A69q3lW6rZyLd28kXb4FEQf784fgEo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0754; 7:SQ7qKL4C9cYHtbgWn7O69jra35mikuhMWQYEIkxyQicrDQis1ZtyknQjnF6VlaG+X1agNDLh9kE7rEyjvhKdAtcnfluy6nHGllwqXnP4dTm/yMM3TrFVFaA6NmN+H+1CCOPVahvfKMIsHtqnSG9oxw3HjZ5AtFE2Tl94T7sjPia/bX+b4S64gj6Klufd7uAg3Sf8tQk5stJ2E9VQ+JQ77XZyUVZaVGAhp88EAVVRYrK76hjNBgMf1KIyW57R80qu X-MS-Office365-Filtering-Correlation-Id: 02396985-b692-42b1-47ce-08d5a5f1ef0b X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Apr 2018 12:34:44.7879 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 02396985-b692-42b1-47ce-08d5a5f1ef0b X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0754 Subject: [dpdk-dev] [PATCH] bus/fslmc: fix the compilation with clang 3.4 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 19 Apr 2018 12:34:48 -0000 error: redefinition of typedef 'dma_addr_t' is a C11 feature [-Werror,-Wtypedef-redefinition] Fixes: 4bc5ab88dbd6 ("net/dpaa2: fix Tx only mode") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/include/fsl_qbman_base.h | 2 -- drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c | 3 +++ drivers/net/dpaa2/dpaa2_rxtx.c | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/bus/fslmc/qbman/include/fsl_qbman_base.h b/drivers/bus/fslmc/qbman/include/fsl_qbman_base.h index 96269ed..bb60a98 100644 --- a/drivers/bus/fslmc/qbman/include/fsl_qbman_base.h +++ b/drivers/bus/fslmc/qbman/include/fsl_qbman_base.h @@ -6,8 +6,6 @@ #ifndef _FSL_QBMAN_BASE_H #define _FSL_QBMAN_BASE_H -typedef uint64_t dma_addr_t; - /** * DOC: QBMan basic structures * diff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c index 23012e3..3700d70 100644 --- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c +++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c @@ -30,6 +30,9 @@ #include "dpaa2_sec_priv.h" #include "dpaa2_sec_logs.h" +/* Required types */ +typedef uint64_t dma_addr_t; + /* RTA header files */ #include #include diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index ef3a897..dc0da96 100644 --- a/drivers/net/dpaa2/dpaa2_rxtx.c +++ b/drivers/net/dpaa2/dpaa2_rxtx.c @@ -481,7 +481,7 @@ dpaa2_dev_prefetch_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) q_storage->last_num_pkts); qbman_pull_desc_set_fq(&pulldesc, fqid); qbman_pull_desc_set_storage(&pulldesc, dq_storage, - (dma_addr_t)(DPAA2_VADDR_TO_IOVA(dq_storage)), 1); + (uint64_t)(DPAA2_VADDR_TO_IOVA(dq_storage)), 1); if (check_swp_active_dqs(DPAA2_PER_LCORE_ETHRX_DPIO->index)) { while (!qbman_check_command_complete( get_swp_active_dqs( @@ -517,7 +517,7 @@ dpaa2_dev_prefetch_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) qbman_pull_desc_set_numframes(&pulldesc, DPAA2_DQRR_RING_SIZE); qbman_pull_desc_set_fq(&pulldesc, fqid); qbman_pull_desc_set_storage(&pulldesc, dq_storage1, - (dma_addr_t)(DPAA2_VADDR_TO_IOVA(dq_storage1)), 1); + (uint64_t)(DPAA2_VADDR_TO_IOVA(dq_storage1)), 1); /* Check if the previous issued command is completed. * Also seems like the SWP is shared between the Ethernet Driver -- 2.7.4