From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0074.outbound.protection.outlook.com [104.47.42.74]) by dpdk.org (Postfix) with ESMTP id E5DBE9A0C for ; Thu, 25 May 2017 20:10:01 +0200 (CEST) Received: from DM5PR03CA0005.namprd03.prod.outlook.com (10.175.104.15) by BY2PR03MB173.namprd03.prod.outlook.com (10.242.36.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Thu, 25 May 2017 18:10:00 +0000 Received: from BY2FFO11FD020.protection.gbl (2a01:111:f400:7c0c::195) by DM5PR03CA0005.outlook.office365.com (2603:10b6:3:118::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Thu, 25 May 2017 18:09:59 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD020.mail.protection.outlook.com (10.1.14.137) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1075.5 via Frontend Transport; Thu, 25 May 2017 18:09:59 +0000 Received: from b27504-OptiPlex-790.ap.freescale.net (b27504-OptiPlex-790.ap.freescale.net [10.232.132.60]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v4PI84WQ022340; Thu, 25 May 2017 11:09:56 -0700 From: Nipun Gupta To: CC: , , , , , , Nipun Gupta Date: Thu, 25 May 2017 23:37:46 +0530 Message-ID: <1495735671-4917-16-git-send-email-nipun.gupta@nxp.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1495735671-4917-1-git-send-email-nipun.gupta@nxp.com> References: <1495735671-4917-1-git-send-email-nipun.gupta@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131402093995073664; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39410400002)(39400400002)(39850400002)(39860400002)(39840400002)(39380400002)(39450400003)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(498600001)(81166006)(8676002)(47776003)(48376002)(8936002)(36756003)(5660300001)(50986999)(76176999)(50466002)(2351001)(189998001)(305945005)(356003)(105606002)(33646002)(106466001)(50226002)(86362001)(77096006)(54906002)(4326008)(104016004)(53936002)(85426001)(2906002)(38730400002)(6666003)(110136004)(2950100002)(8656002)(6916009)(5003940100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR03MB173; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD020; 1:X1b1AAt0ToDnFsUbkw7qDAtbPP8h9r04vRdRcAjH6eo2/JUTIzPACjHJyeHJiaPJiiQ55p9YvVThat9KmGArHwh6j+vRKSwRNuIcn79stKV2YLBArBQkQNsUXihblsK1cXoaltn8z9/keJbQYV5tYcXbnZNHCrNVgSxF6M4RsBiGeYukcptYVf7JBkVu6a6igg8CiVBNwxF2eDUf0DH5Ai5aYpxOR2t37lmBriFUnHmfCyscKZKhIAVuN6UpVcP4cWgBrQVzTCcVmnmAl79ZPy10ATuHHyMYHPdgVNtf6iArjnOVjy8ukD77VLYaPY/Yuu5b32GE5mlpw6qoxY1wafTVI496Vcxy9s2lTwP9JeugR8Zu4Da3U0mVq5hipgDbnrjzExMh8q2IL3+2go9g5ia2TbxLKjPoAOcAbi7OpS2kuARSczGlOtdWEp02Qe0700VduWra83G+R9cPdNAoN40TjvLvLnBjvElbfpuk9ueLBC/OWTeD7L3wTr8Grj6anJHCQ7f0GWcRujsjS7TwFK8kbBkcZ8C6GDa5H1j01zgWabhKNP8syeFgQcxyhanT4M03Xp8rfO4b4JHB54TSj9bw9y6UNyJ2XlX5+btHtn8DGdjfFuem41QnP9G/boGlfUWPudB2eJk5OlPpGzPHxaALT8etguMJZLoqXpNdoq6Z7uGtbXvpf2lnuyxCoUz7mNZeUyaxdKGYVIZAqJ9LpA== MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY2PR03MB173: X-MS-Office365-Filtering-Correlation-Id: 8b9b362f-c810-4d6f-3417-08d4a39941b3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:BY2PR03MB173; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB173; 3:To9UddFydc69TuT8ZLg3p+BwNwrp7grE2FixJFvvJ2VABSlXuZ4Qt6yHfqUFoA1dkZdKvVvjTRrMzUOPQvUgtr5W0tJdP5feEyMsnIR+JWro67sMkZwLPy05swrzcFa4K7MODJHuDdRXtn3jNQDc8f8dcOwGf++gu3tDR9YprGiV0jz+sqGnw9u4bKqdhVDc4tvHskk5hifXGQsD7kan6JC911jVhnm0AYemzmW9j1Z4a5Gpy1mZXdZexw+bX8Yw8OnB5GxwbALlu2E5szkzxd8C+43v1kZTjSlBR51I59ClARyjSXw7ICXI4Bk9Q6CzwtU81aE/3cCbefd0QSztwk7TK50bmMYmCYYIvAxYleh2hK3BanRlychrecqlRA/msM3zobAfDFbHyl+qoMzhTOrj0eMEeeDdZmN85WPuFEnfx29/2Rtic5JaL5Zyqcxp; 25:wYa9IpJHczzlpjNkUs90GthAvOTE2heJkIuDAx3Etq13XtJZAK7N1ze8+wqpeUMmI5hqZrhomHcq3+qPlS0wbG4zAyjFjRc4X9UPAcI61p84zJLM2qs0x/3duDVO4wouCDtdQxKuXQStdt3BVcamSGTE+dr8Wgxm2qltyslBmKBWsDu0eln8mx2y9tc8XdIyh+ExgBA6ba7WBZlr35nI/mEG2PHahKgHgwGVEpIPYxmC7jl5/hfBtmxC9lIgBDnOOl0kvCNxlJdml8wIMvMvJlP4Ae9b012tAF9rIA7WL58PjNbZMP0ir0fCQmRiEH6pz0QVDmy4065R9gsFjx0SWHomGYSSwVSGFvS0HDdW/U+b1ObyVcYFImtU43EjCzUMDZQQcxafej8qb3HJ//oJSWh0kgDxlLsLKIybSuT5NUEFZ/njDux31ZHl8U9v5k3qYf/b551UimzCpMbGwZByZfD4J/QPTlxWYXhGTZgTm2w= X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB173; 31:grV+v2hmxdubnGEb4EL69osyBW58Acn+s0gyHSwlJAtrVQcufpQRZ/O7eSc1zAGQhLX4uFs/LyKg9aDVLZHhrvbVAoFCJi8Ac1N0vhCM1RkdBM9FNHltizKgPk9vDUNdvLQuT4wa+7dx8ls7+5X/+06A8yB3xUQ6hfmG1p0NJmjOv0B4fzcdfQ78a3poAb0A23EUG5hX++RgrVqUpWn0VH142By3F9mZlEyc9Zc4sh1xSpWGLzeyHCHX9e7dEMQq X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(601004)(2401047)(13016025)(5005006)(13018025)(8121501046)(10201501046)(3002001)(93006095)(93001095)(6055026)(6096035)(20161123561025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123556025)(20161123559100)(20161123565025)(20161123563025); SRVR:BY2PR03MB173; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR03MB173; X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB173; 4:Mok1D4e9CLFrqyMWynPnAHr0kg5jeAvkQuxOW6OAS0A76G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r7uEIG2Xv9gdSX/xFG3UJXd4u/ehDPhbt6avLTgZg7TU; 24:EqYIztvO+sBXQpC1J2JVrdJPdW3QCQNRekhnJ4iQZ1P7DRWqWCo3UWspeaOj5EDWDXOsrM9ynUEuvndgwtdQ8ggb9vX7KpSpRzyRcqxBrCs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR03MB173; 7:3SSLXNxjjzXUaKLJOHxu+HMacN1SnO6aRRKDIfDvyj4dePPpusy13H33R61TvHl/eHHDVMNnRj2bp2rcIQ8PC9SAts/6Q+sLKl9oEPeWRPv2n9/ijscnLafT0L/AnBVwKmNgavYOE8YuYVww+EGAq2NN+aNoGfkWg/xpR52YAqZTt3XOysy9Xm61g91rV2c3oJgLGJDYv3TVks/ntN5Fje0KDCIkpD7F9e5Lx3DzFaBLfOE3aQj4MDENwyqWvlevZTUg9T5/ICJDRGbNVCRulzDk1Qpvp+8SGadcFWVH785x3jHX9s6ZQH53WD74kN8wSBrFpv96mMjrJVdsO2A4sw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2017 18:09:59.1641 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY2PR03MB173 Subject: [dpdk-dev] [PATCH 15/20] bus/fslmc: change func argument to const to avoid warning 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, 25 May 2017 18:10:02 -0000 qbman_get_dqrr_idx() API is required with constant dqrr entry in the eventdev driver. Also, this routine is not updating the dqrr. So, this patch updates its input argument to a const type. Signed-off-by: Nipun Gupta --- drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h | 2 +- drivers/bus/fslmc/qbman/qbman_portal.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h b/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h index 39407c8..06bd063 100644 --- a/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h +++ b/drivers/bus/fslmc/qbman/include/fsl_qbman_portal.h @@ -349,7 +349,7 @@ void qbman_pull_desc_set_channel(struct qbman_pull_desc *d, uint32_t chid, * * Return dqrr index. */ -uint8_t qbman_get_dqrr_idx(struct qbman_result *dqrr); +uint8_t qbman_get_dqrr_idx(const struct qbman_result *dqrr); /** * qbman_get_dqrr_from_idx() - Use index to get the dqrr entry from the diff --git a/drivers/bus/fslmc/qbman/qbman_portal.c b/drivers/bus/fslmc/qbman/qbman_portal.c index 3f1b31d..e201a34 100644 --- a/drivers/bus/fslmc/qbman/qbman_portal.c +++ b/drivers/bus/fslmc/qbman/qbman_portal.c @@ -1463,7 +1463,7 @@ int qbman_swp_CDAN_set_context_enable(struct qbman_swp *s, uint16_t channelid, 1, ctx); } -uint8_t qbman_get_dqrr_idx(struct qbman_result *dqrr) +uint8_t qbman_get_dqrr_idx(const struct qbman_result *dqrr) { return QBMAN_IDX_FROM_DQRR(dqrr); } -- 1.9.1