From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0058.outbound.protection.outlook.com [104.47.36.58]) by dpdk.org (Postfix) with ESMTP id 1EB07199B6 for ; Tue, 15 May 2018 13:41:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=99y10jXl1MuAUUJeWumLONNiT7eqbk2wMEOYpfreklw=; b=oEqY/b8pxDclX0P1zMcG/wjeqaeP80ariyfvP7vmHkCC1uMWdivxxQ7yPoJ1M3+QbucdYNNFyQX2MuIWEAvqy1/VZQUGgDUFNxOTF99dIqcoSSP/00pNzZwNsZuVzZtc0RIGVVg8jU/kGS/Xan0CT85QT74/nD5CoCsgib17+ds= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (111.93.218.67) by CY1PR07MB2522.namprd07.prod.outlook.com (2a01:111:e400:c636::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.755.16; Tue, 15 May 2018 11:41:51 +0000 Date: Tue, 15 May 2018 17:11:34 +0530 From: Jerin Jacob To: Gavin Hu Cc: dev@dpdk.org Message-ID: <20180515114133.GA19163@jerin> References: <1526372924-28411-1-git-send-email-gavin.hu@arm.com> <1526376227-25534-1-git-send-email-gavin.hu@arm.com> <1526376227-25534-3-git-send-email-gavin.hu@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1526376227-25534-3-git-send-email-gavin.hu@arm.com> User-Agent: Mutt/1.9.5 (2018-04-13) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: BM1PR0101CA0063.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:19::25) To CY1PR07MB2522.namprd07.prod.outlook.com (2a01:111:e400:c636::13) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:CY1PR07MB2522; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2522; 3:jBcNWIulQNXZtURpCDgP62j78hOAUMb107YjqmIDY9EDjpmZDhMPCFDc7u/Ih8RCVfFeBZioxm/dbTlyQDfromxFjsYhfF9vlEA9tpAN1jqrbrwZyJeRqD4AVa2VBB3kFB9ut5Q4Xbfr7f8tjlzGXZMw49R857KhtChyLfL5rtFx0YimJLOw6otup7CRSmr+qpwCdin1i0hgg0Xo9IGXOxUAppxncRiJzYx3oFzs6pruwHers9A0WSFjMBorw322; 25:wWuEQXov6Qmp7dAq8q4AFSPCcIEcGok2jGlFH7F6EJzKDIuQSEiSGzfegKz5KsC/F4U4//mnI/jCP4uJGnvh/p+pRWJ4zfruqm2jHmXYuee0wRL8F8ahHqkSxPpR03pHc+mewvj51+DCC2xK57R2FnZCiBTWLnjJR6AVHoN+0zya63VPonwlwexqrRJMrQ6YHHsgCkvIlz9R1koDiqucUXC8I1nsJXmVCZ7STzwPpJQgaWOwy6oK8iaaMFTAWiTl/adsllJuwyCZyIZtJzKnXbOhjzGKDYetiD2xPfbf5yy+kshpSVWCiC3X0W2od9L287h4PxD0Y6eYWwntYYh8Ew==; 31:dqEhhyu1bdX48kXVk5hvhLMxQUIgiWUYMyAg0ZRPdcAMETtALibac1wLeGaS0VPj213lZpLhs3O3bqycz4de14ANyoOz4zCP2lJiTpnv0+x5hrdNK4G6XifUgfIByMfdSN9P6oN+T8gBOVKaL0MlyWFAuWxvejQNMi4aO62YGcm9DZoAgNJGG37LgmUInwdRaIPTA77kb/f6Dt7YNxz7XJvPpEHHug2CKEJRBZOYkBY= X-MS-TrafficTypeDiagnostic: CY1PR07MB2522: X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2522; 20:PLRqs2I/32+zjF3zEVDk2hwKxQZ/fmzZ9JFUN1KULkXirsZUuM/HEIzTUfXxxkwaaVm8vb1lQoVH84CkbJH9ykK64MPiylh6atHOGvjLd/tVRpZt9k8YorHbQ2uRMcQ+6hjyNk1/TCq8w8Qxjob9A6lLNCJGMeS3bzkWaXF+UnqWg6JTMkCknhS6F5fBT1AUDWu3jMUw13+dp2TjxHXa1Szon/EFypEl89ch1cl+aBL33St/fCvuHw0bhoYao07KSZsZGcU6wrd89AJt1ReXSxdTknC/M0gbPzLuWG4JNS+wkhQFFmMmp2GpxJkC2FF5q/LeAzHp4bbAjQxF2zWfT+20Ktfo/8Iml5rpqU1txawupB9n8w84RnR5WlDhBFgA1zP30T6rVx2V3ffxdw/0fi3UYgV2YjljPoeBIDG3QSMkndvcgJxzoengnPwwu1IBedO+yUP6UuXLZeD1B59qob+3eqyAXrFCnf1Qa/zagw/WNwLTOvz8T/zKRF1epX7bmIJX3pdxK3XsyH35xpYqXJe1TA6RJIMH8xFk4fXlzZnDcz2LILTwmkQmEVr0V62/ndRPkxOFWKZfAWdOR4zMOIJD1m4b+hN1ox/r4aPh5XI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(180628864354917)(131327999870524); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231254)(944501410)(52105095)(93006095)(149027)(150027)(6041310)(20161123560045)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:CY1PR07MB2522; BCL:0; PCL:0; RULEID:; SRVR:CY1PR07MB2522; X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2522; 4:neJcXCv7OgQT3fElazClBkOxlLBzG1swyTNU7dCAha1Pe/Qmz2LgSS8wIiTeQdM8pAMdQnqNZebboGQOqIq3lNkv4SZJ7S+Yf1XAYxVXFetIGIRGfyRgeKuhbF+J5LVyoHTvieYOcArZ7p55qqnMKFgkHQuBFe/UfLOPvxdBGyZlpxtXNdFnFHEKzbkeU42UyEAvpKPiUZypdLwTC7yx8S8zcnZydCNMsp9tqacFtdrYH72jiB0ujmq4apaIrlA0uG5QPEY+q8WpMeEu0IiMYwBBpy/PhZhuby94pamyryx2HEs/nhk/pZOxMz2naIYttc59mrIhTF9TkAkI3fKwHhYu+6y2dIT3LmDgtP5dGvQ= X-Forefront-PRVS: 0673F5BE31 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(39380400002)(346002)(39860400002)(366004)(376002)(199004)(189003)(13464003)(33716001)(72206003)(25786009)(305945005)(97736004)(478600001)(68736007)(6916009)(229853002)(44832011)(6666003)(33656002)(59450400001)(47776003)(66066001)(53546011)(4326008)(386003)(58126008)(5009440100003)(5660300001)(76176011)(33896004)(6246003)(186003)(42882007)(16526019)(1076002)(956004)(446003)(11346002)(476003)(2906002)(3846002)(23726003)(26005)(6116002)(53936002)(50466002)(81166006)(8676002)(81156014)(486006)(8936002)(106356001)(105586002)(6496006)(9686003)(52116002)(16586007)(55016002)(316002)(7736002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR07MB2522; H:jerin; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR07MB2522; 23:tYB5yA/6pDrvj9Irrkw8V9tvjUOAQ9o0R722sv0cR?= =?us-ascii?Q?Q9xdC3Ltbt47zpOksF5NCTD7h0rOVMFGl+f76cnA1H09PMy+n/iRorffBvGs?= =?us-ascii?Q?10Pato0Nl+n4mN0K+aImSkHoy7Cih0PTyAwmat5ZhRxnieFPsSdDv/hND60G?= =?us-ascii?Q?RxAW60j72j8I2Uk9PzknTupOsEvTNbQt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ye5gXTbu533TgnWTxfevG2XiiYUmIfIXK938L8xcdFjBKnSaWhDCLuW3gCYBFwqjM3bldIG2/V8F+MoCvPHwljhtYiPFfvmusmPhwqg==; 5:H8brZcfaNLMGj+L1PqSK7axPR2BLB3xhtaTj6bjGEl6j0Q8/lPQV2XFrQM+gE93kfcOxwYwMt/wNVx9ViIV5YxQZfz1hlpq4iRCTN+tHPKhs3xFivYYwF7PP+nfuTqnq5r8TybJaknOXqifq3clf0ATCQp5VM5MAPLWl7xw4igE=; 24:v1eIPp7AcKcoZ1zQf8rNzbLc96imS37kbKIpJ+twGf+ipAbXetXFuxmbCI8D8DJ2apoCbYysTomARQ08YcbRWIQb052Vsg5dlB1L/qY5EpI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR07MB2522; 7:CUoTVpodVE5RQt0SsLSQ1L1zCSMMtqZJwqsjjdz51APHblabjENy7x6XZsjYQ2jKp71Dzithz2vUK9FvFW1O7TtGzhVvYEY2UpLgst3bu2f3tvoT1i+S3xHgHIJNeFzsnwg4peBt9ppc8afl/KfQ7ENTiIO663G1dI9k1FV0E12xgByBw2mvtAcFgUyRXWJy4SEUD3POsR823VfeF4l0IgNKMkr9v9aQrD9gIXZYROAaytT1pAM/G3XqQGgTDscr X-MS-Office365-Filtering-Correlation-Id: 757346a2-48c3-4172-2432-08d5ba58da56 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 May 2018 11:41:51.4197 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 757346a2-48c3-4172-2432-08d5ba58da56 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR07MB2522 Subject: Re: [dpdk-dev] [PATCH v2 3/4] cryptodev: fix the clang compiling issue 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: Tue, 15 May 2018 11:41:54 -0000 -----Original Message----- > Date: Tue, 15 May 2018 05:23:46 -0400 > From: Gavin Hu > To: dev@dpdk.org > Subject: [dpdk-dev] [PATCH v2 3/4] cryptodev: fix the clang compiling issue > X-Mailer: git-send-email 2.1.4 > > ~/dpdk/lib/librte_eventdev/rte_event_crypto_adapter.c:530:49: error: > 'rte_memcpy' call operates on objects of type 'struct rte_event' > while the size is based on a different type > 'struct rte_event *' [-Werror,-Wsizeof-pointer-memaccess] > rte_memcpy(ev, &m_data->response_info, sizeof(ev)); > ~/arm_repo/dpdk/lib/librte_eventdev/rte_event_crypto_adapter.c:530:49: > note: did you mean to dereference the argument to 'sizeof' (and multiply > it by the number of elements)? > rte_memcpy(ev, &m_data->response_info, sizeof(ev)); > > Signed-off-by: Gavin Hu > Reviewed-by: Honnappa Nagarahalli > --- > lib/librte_eventdev/rte_event_crypto_adapter.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/lib/librte_eventdev/rte_event_crypto_adapter.c b/lib/librte_eventdev/rte_event_crypto_adapter.c > index 831f842..0f34fe0 100644 > --- a/lib/librte_eventdev/rte_event_crypto_adapter.c > +++ b/lib/librte_eventdev/rte_event_crypto_adapter.c > @@ -527,7 +527,8 @@ eca_ops_enqueue_burst(struct rte_event_crypto_adapter *adapter, > continue; > } > > - rte_memcpy(ev, &m_data->response_info, sizeof(ev)); > + rte_memcpy(ev, &m_data->response_info, > + sizeof(struct rte_event)); Following could be a shorter replacement. rte_memcpy(ev, &m_data->response_info, sizeof(*ev)); > ev->event_ptr = ops[i]; > ev->event_type = RTE_EVENT_TYPE_CRYPTODEV; > if (adapter->implicit_release_disabled) > -- > 2.1.4 >