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 54AB8A04FD; Wed, 8 Jun 2022 14:54:19 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 492B64282D; Wed, 8 Jun 2022 14:54:19 +0200 (CEST) Received: from NAM12-MW2-obe.outbound.protection.outlook.com (mail-mw2nam12on2079.outbound.protection.outlook.com [40.107.244.79]) by mails.dpdk.org (Postfix) with ESMTP id B172840687; Wed, 8 Jun 2022 14:54:17 +0200 (CEST) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oCLRI7S0/zxhMtIfc3lfqrCT4W+Uh2aaCRW5PbgedWLMURwzrEHvTCkggOhJDXy+T1JKRM63WDVCkSEtXAdBzvQ3aBK2Fd/3E/N7CyaoEK8+pT0LtGd4nMxcW0gBoUFaR5OK+Lv35RfPKEqW31D282o37JnyBfYz11f+Un8oQgFktAiaCZbe2bOwyWbg1K7VgwKlWuV/MVLgzCq9SWhhpCgRszi0+GLZ+eXlmbf5UYsszkKCW4oVmKac1kVx/CXA9gmJzsYiXbzSS1uM1lMS/iMiGfSke1gxbLEi4CJXLH8KBadJdDFVEW/hVAusCIj/BhaO7k0LWOc4jnoKCzqk8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oMZXFlay6hqCQv4avBp8FtzyDo3Rb3k5HDRVQSOxRAs=; b=DZ7w765jbIXfuuRmf1tkRY8nmRODf1SA5yA5+igZYy8BAtfn35w2TggWdGLPz8NzIKF+dpsAy29aJWd3ox7EXIXKID5pRuvJt0WXTepQJ5yU/LkFyG8KACTWElVsT2MGXWQOLgBZGEQPldFOxhwMscolmdmX9caILn5wYeLJTMBvlty2O51ntXFCqTna7Qg++2gCE+gOdGmTvykRTEjpPQF62eD9HGfyUXQHhUz9d5xwEHtBa4t2PyO8/YUcKRxbq8B+yPcUIsc/aBiXYaVpM4EuBuuYv9Q5dV7uTvK2mag8acvpVFdtfsA8Aig87DqEaufqG9XCdSRrInm/BQnkDg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 149.199.80.198) smtp.rcpttodomain=oktetlabs.ru smtp.mailfrom=xilinx.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=xilinx.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector2-xilinx-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oMZXFlay6hqCQv4avBp8FtzyDo3Rb3k5HDRVQSOxRAs=; b=Wsy/yEZ5PWc3/5wRdRARXlQcHIntvj0VcFcVQ/EsRXlj8gC3F3Q1I9FfduW11m/lkREhmJ3qMoeQcz09AMGMVAf3ucaZHnjZwCwD/WzP2t9rGeBNT3/8lPQOZw5x+En+PQyGO9PE3ypFGW/cNbe1MlLYFPqgWb2Mh7ksvGUuRWM= Received: from BN9P220CA0027.NAMP220.PROD.OUTLOOK.COM (2603:10b6:408:13e::32) by MW4PR02MB7153.namprd02.prod.outlook.com (2603:10b6:303:65::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5332.12; Wed, 8 Jun 2022 12:54:14 +0000 Received: from BN1NAM02FT003.eop-nam02.prod.protection.outlook.com (2603:10b6:408:13e:cafe::18) by BN9P220CA0027.outlook.office365.com (2603:10b6:408:13e::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5314.13 via Frontend Transport; Wed, 8 Jun 2022 12:54:13 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 149.199.80.198) smtp.mailfrom=xilinx.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.80.198 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.80.198; helo=xir-pvapexch01.xlnx.xilinx.com; pr=C Received: from xir-pvapexch01.xlnx.xilinx.com (149.199.80.198) by BN1NAM02FT003.mail.protection.outlook.com (10.13.2.122) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5332.12 via Frontend Transport; Wed, 8 Jun 2022 12:54:12 +0000 Received: from xir-pvapexch01.xlnx.xilinx.com (172.21.17.15) by xir-pvapexch01.xlnx.xilinx.com (172.21.17.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.14; Wed, 8 Jun 2022 13:54:12 +0100 Received: from smtp.xilinx.com (172.21.105.198) by xir-pvapexch01.xlnx.xilinx.com (172.21.17.15) with Microsoft SMTP Server id 15.1.2176.14 via Frontend Transport; Wed, 8 Jun 2022 13:54:12 +0100 Envelope-to: andrew.rybchenko@oktetlabs.ru, stephen@networkplumber.org, dev@dpdk.org, humin29@huawei.com, ke1x.zhang@intel.com, stable@dpdk.org Received: from [10.71.117.247] (port=62111) by smtp.xilinx.com with esmtp (Exim 4.90) (envelope-from ) id 1nyvCM-0001Fh-9c; Wed, 08 Jun 2022 13:54:11 +0100 Message-ID: <6808bb6d-f107-9712-1466-a9adfd00a5c5@xilinx.com> Date: Wed, 8 Jun 2022 13:54:10 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v5 2/2] kni: fix warning about discarding const qualifier Content-Language: en-US To: Andrew Rybchenko , Stephen Hemminger CC: , Min Hu , Ke Zhang , References: <20220531091330.230715-1-ke1x.zhang@intel.com> <20220608121117.1445731-1-andrew.rybchenko@oktetlabs.ru> <20220608121117.1445731-3-andrew.rybchenko@oktetlabs.ru> From: Ferruh Yigit In-Reply-To: <20220608121117.1445731-3-andrew.rybchenko@oktetlabs.ru> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 260575cb-7668-44ee-608b-08da494dfced X-MS-TrafficTypeDiagnostic: MW4PR02MB7153:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: ZEQiDmHBvVgCkI5/7WYTJY5XrWldRmYykYDuqzHy4+OjBd7GF5vFE2X3XizndFAr/dqqv87bYwpJDomv//2gE+5H+4aaVhRKl57xc9+cLunGMXwPLe4+4Q2cQKJfq52oB0W1A3zTdUwkc73iRX/Q68BkXaCy/J0X9GoMpkS+7k6wcch+JaAmi7HPxI9Hgr5AfSfUxZsfjCDJSqRU2NzhNAcBFtS63p+oa7zciD5hNGhE1R/G3twjGE7DKlw9Pw2kMyf/2woevqve+uT00L/KQ82mbQLRLs9b+TsifKxq+loI9p17gOZrFtMTUYTqhYPTi2tzTYeZkSIpSWjE61CIFiBWQmU1rXb7vKfpgnBxq8lK+1Gb3sKHwwIc18ZO2LqyDK4DgIDW6yWSQi+UeqgiI9urF/Atnn7bEVVtV5xwsAxECWpbAjQE9isJLLG/TGdKvB5Y/v6WBIiK6Clg01RzF5QOjYsohSYyLw6CMethqmGKzNMdqQAT/qu3IKty/H6WQvzStFuN9a+TesmrZ4xj3akXLNqxGBi7b3jwXswlbiv3cQOGr0yOKOZUp0bRJMdrXz8xX8WeSh7SR7nrr1/wcHXIEuPggexPovj5QD6PXTt0ckZlBKwi36Y6sNkOqi3n3pD1AN9fyJ4oviS8OHLhNjcDYyTY/LvViYPTPH8ytk0n5s1R90g4YFGuSPvaI+t7+bi2Nhq+PuGLl2FQsaWHCHpM1GIGjMVyI7p3SB1BoscKdeMAo95yG7ed34diUCkm73qew5iru/GkmhsQg3Yp/ldu8thQRrbDvjUXggcVxTMfUPbvPqgXcB9+NDgHN5+d X-Forefront-Antispam-Report: CIP:149.199.80.198; CTRY:IE; LANG:en; SCL:1; SRV:; IPV:CAL; SFV:NSPM; H:xir-pvapexch01.xlnx.xilinx.com; PTR:unknown-80-198.xilinx.com; CAT:NONE; SFS:(13230001)(4636009)(36840700001)(40470700004)(46966006)(36756003)(31686004)(508600001)(44832011)(4744005)(36860700001)(110136005)(54906003)(4326008)(9786002)(5660300002)(8936002)(186003)(8676002)(2906002)(53546011)(26005)(70206006)(70586007)(316002)(40460700003)(426003)(47076005)(2616005)(336012)(7636003)(82310400005)(966005)(356005)(83380400001)(31696002)(50156003)(43740500002); DIR:OUT; SFP:1101; X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Jun 2022 12:54:12.9508 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 260575cb-7668-44ee-608b-08da494dfced X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c; Ip=[149.199.80.198]; Helo=[xir-pvapexch01.xlnx.xilinx.com] X-MS-Exchange-CrossTenant-AuthSource: BN1NAM02FT003.eop-nam02.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW4PR02MB7153 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 On 6/8/2022 1:11 PM, Andrew Rybchenko wrote: > > From: Ke Zhang > > The warning info: > warning: passing argument 1 of ‘memcpy’ discards ‘const’ > qualifier from pointer target type > > Variable dev_addr is done const intentionally in v5.17 to prevent using > it directly. See kernel series [1] for more information. > > [1] https://lore.kernel.org/netdev/YZYAb4X%2FVQFy0iks@shredder/T/ Can you add Linux kernel commit log, instead of the mail list archive? This helps to check the relevant code change in kernel easier, and verify in which versions it exists etc.. > > Fixes: ea6b39b5b847 ("kni: remove ethtool support") > Cc: stable@dpdk.org > > Signed-off-by: Ke Zhang > Signed-off-by: Andrew Rybchenko Acked-by: Ferruh Yigit