From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 17726A04C8; Fri, 15 Nov 2019 04:45:23 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 61CEB2C19; Fri, 15 Nov 2019 04:45:22 +0100 (CET) Received: from mail-il1-f196.google.com (mail-il1-f196.google.com [209.85.166.196]) by dpdk.org (Postfix) with ESMTP id EB1582C18; Fri, 15 Nov 2019 04:45:20 +0100 (CET) Received: by mail-il1-f196.google.com with SMTP id q15so7899224ils.8; Thu, 14 Nov 2019 19:45:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ot5XEVCynCdiHFEdZdM2XpNbQrcm0c6Vcc6nt4c/+EY=; b=UMmG9ZyY6P3FkfvTPpBJ0axRX3+3NuH3wRUns6Q2en15kXbEJI+uoL4fJ0V4jF73mH M/hBcuYd3AwTxZ2szFMqr2q0Ob6Vt22Q8rXdx6SiETU4gVG72o3jXaIt3P+Q/tPXNQ4y k3SdFImd17U+msEkQ4ZKqv2WRnuyk8UZa7/bS5lkAHuqCJKyr4icet909oGrlBz1DtLp NaevLmPs4tzNuRHBQqykIaD4W/9Wz0SGMTfqCOza3WWEpu3yna6W+MK4mjil0lWLp4FV /TigyIU7okilGC64faR/jdOn0ozUfWTJE9e8KxXr6BrCs6g7lc2Sq0AyNGNrISJOl20W 0aQg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ot5XEVCynCdiHFEdZdM2XpNbQrcm0c6Vcc6nt4c/+EY=; b=drQPKPuEghdR66JaD9dz9JXP0lOIiin4PxwfC3leKZhrieuU5ppw8Pwb4a1BJR+men 1FPlVIXZHSugrdpM5IXt+uyz0BHLf/yd26/8jeZpM44CIGyrUPjngEaey/6gqt1pxwm+ AAICvLl/IA1gGWk0L5rg6A07MVKoGojXVg7ycbxAJDCeyhy3Fk/4uDfeTTA0sktTQdhD Y/juR3RkWWBn97oZnJmlHeSe/YXHtGeisdrd0BlahSUY375xk63WMeK7hLO81INu63RP RcTcrRiZ4g1nA+NC5HFs2y/Qdzlmy7Kq0XJBcSfb9ZYOOARGBivAtFYucGyd9ayGCkSp mErw== X-Gm-Message-State: APjAAAVuIivZOUvFZuNKGQcUkZPUEENHJe3MfYj/bZK1+gYR/C01up3c OU7wOPW/e2H1Hu6SGdMiY8ilkgJHzF2hvg/tpE4= X-Google-Smtp-Source: APXvYqy0mm4S++OYR7NfnS8vWQtFIqJ/rmITqvNIIF38ldgZxqZTLpYdf+6iTABB0TVOCOtbm/xH7o+nPwdIEWG+nmE= X-Received: by 2002:a92:5e49:: with SMTP id s70mr14583319ilb.130.1573789520032; Thu, 14 Nov 2019 19:45:20 -0800 (PST) MIME-Version: 1.0 References: <20191115031801.83730-1-ruifeng.wang@arm.com> In-Reply-To: <20191115031801.83730-1-ruifeng.wang@arm.com> From: Jerin Jacob Date: Fri, 15 Nov 2019 09:15:04 +0530 Message-ID: To: Ruifeng Wang Cc: Jerin Jacob , Gavin Hu , dpdk-dev , Honnappa Nagarahalli , nd , stable@dpdk.org Content-Type: text/plain; charset="UTF-8" Subject: Re: [dpdk-dev] [PATCH] lib/bpf: fix clang build warnings for aarch64 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Fri, Nov 15, 2019 at 8:48 AM Ruifeng Wang wrote: > > Couple of warnings will block build when warnings been treated as errors. > Clang version 8.0 was used. > > Warning messages during build: > ../lib/librte_bpf/bpf_jit_arm64.c:1438:26: warning: incompatible pointer > types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type > 'char *' [-Wincompatible-pointer-types] > __builtin___clear_cache(ctx.ins, ctx.ins + ctx.idx); > ^~~~~~~ > ../lib/librte_bpf/bpf_jit_arm64.c:1438:35: warning: incompatible pointer > types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type > 'char *' [-Wincompatible-pointer-types] > __builtin___clear_cache(ctx.ins, ctx.ins + ctx.idx); > ^~~~~~~~~~~~~~~~~ > > Fixes: f3e516772464 ("bpf/arm: add prologue and epilogue") > Cc: stable@dpdk.org No need to CC stable as this has been added in this release. Is clang prototype for __builtin___clear_cache() different? If so, update the git commit for the reason for the failure. in gcc[1], it is void *. [1] void __builtin___clear_cache (void *begin, void *end) > > Signed-off-by: Ruifeng Wang > Reviewed-by: Phil Yang > Reviewed-by: Gavin Hu