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 1F14CA0548; Tue, 31 May 2022 16:55:39 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id B02744067B; Tue, 31 May 2022 16:55:38 +0200 (CEST) Received: from mail-pg1-f172.google.com (mail-pg1-f172.google.com [209.85.215.172]) by mails.dpdk.org (Postfix) with ESMTP id 21C2840143 for ; Tue, 31 May 2022 16:55:38 +0200 (CEST) Received: by mail-pg1-f172.google.com with SMTP id f4so13058204pgf.4 for ; Tue, 31 May 2022 07:55:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=2l1V0Iv3um8jzUcq9q7eVZrmrfdYYYBT5NeB1Okk8g4=; b=NaVkLlM9NQA2NHKQmgfWJs4ztZBttqsiuSHJyrBzFQ+Yvo7dQll0vOrPpTU4WCys4s is8TnwRHjKfBnShel3ScHngxwh8MZCZxxSMeyjq25tNzLQcWmyKRTEFQKrsUDm4w16cK vJctwbpbR4fNMpLHk/YrSfKE4MFqkYYW3SSNch+SYOlKgj5yOBbRLMndoLN+7OrvK2De YOPbJLrLqVaIZxNqYn78IFENx7zYIquC4HEwZ/7X51epH6JpT429Dnq83wchxckl0kUp 2QUQJegMdB7U3gi8+CqCeSFQqwwrUxIuhLR2PoivnFW2x0w64cBcMmAKe/IY3s5yc95H /RiQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2l1V0Iv3um8jzUcq9q7eVZrmrfdYYYBT5NeB1Okk8g4=; b=felMIWhefg5v8IPdvo6iaXBcfpzWfBARBOUSMdm6HJqivQ1PKoIrquDbFhtQHBCn43 PoSSZolUQl+8XfSXq1xZDm2wE1PYJ5er62KzF0bG39nVsHlEtxsCCJ0qzDXWxuCUOjQO ShAjosN3c2W5j7z6vSUQnJkaMPtpkUj1Kkur/Lyi3mH9twKjeWD3R5WFXZp8fjfXZlC9 piaBzLTHVpPAm+hZ4S8eUqjsJC4LqP7IhG4yTCDwYYim1lbhFw9wbFDxQT59xd/M0yTW UnBeMOQdupAjuXbjFdik9awOCqC1hM7ap8s0AEL+Wbc/QmfBGZGXVGRLi216LiVJPdp7 grIQ== X-Gm-Message-State: AOAM533H30mYGO2DNbtTaCN+nNXIqZJlCCUEtDZ3oilPfZTC7/Wwz2KK SoHTAegFNEyow0WtMuyp65M4Mg== X-Google-Smtp-Source: ABdhPJwl8BXBQeOc+5JJBxVbe2kRdUsEGYCBUR7/PWo6P3iCEmb2COCZjGEHiilQd+Mzu1gYQjye8g== X-Received: by 2002:a63:1209:0:b0:3fc:818e:861d with SMTP id h9-20020a631209000000b003fc818e861dmr1304499pgl.62.1654008937205; Tue, 31 May 2022 07:55:37 -0700 (PDT) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id r19-20020a170903021300b001636c0b98a7sm11217686plh.226.2022.05.31.07.55.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 31 May 2022 07:55:36 -0700 (PDT) Date: Tue, 31 May 2022 07:55:34 -0700 From: Stephen Hemminger To: Ke Zhang Cc: ferruh.yigit@intel.com, dev@dpdk.org Subject: Re: [PATCH] examples/kni: clear warning about discarding const qualifier Message-ID: <20220531075534.300b9958@hermes.local> In-Reply-To: <20220531091330.230715-1-ke1x.zhang@intel.com> References: <20220531091330.230715-1-ke1x.zhang@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 Tue, 31 May 2022 09:13:30 +0000 Ke Zhang wrote: > The warning info: > warning: passing argument 1 of =E2=80=98memcpy=E2=80=99 discards =E2=80= =98const=E2=80=99 > qualifier from pointer target type >=20 > Compulsory type conversion to clear compile warning. >=20 > Signed-off-by: Ke Zhang Agree with other comments, please use eth_hw_addr_set() and eth_hw_addr_random() helpers.