Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp550335ybb; Thu, 28 Mar 2019 07:38:48 -0700 (PDT) X-Google-Smtp-Source: APXvYqx995XNL4EYrGGzKP6MFpfektnIVPVDwxYyphZ6vV7/7c9OBP8P5+a2wsOeMxTWW/yafJP+ X-Received: by 2002:a63:4343:: with SMTP id q64mr10785934pga.105.1553783928563; Thu, 28 Mar 2019 07:38:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553783928; cv=none; d=google.com; s=arc-20160816; b=d9hYflESKCZuWBmwnH4T+dBMJLtLrvJreBCckJo3z1uTwYFx560nF6phrbdhMerHiB rn8eOzCkxcnU2bHTFQGzOWGwxZYDXLvzno8o8HjhwNyFrL4HQ+5eLpBmgipUM3hVauIH rOBfwT33bt+Yv5OFkTSJbeD+MPsoPeBfrc5Gwk8d97IQXP6Ika1ducEfzsbyGdp6Wc0F IwfHYIbX0lsEk4+Z1kSrG1VmbSjHN+7j+bHuKwWlG34MANqGcFWAcubRtawn+bi4sEA1 M6bZ91yGIREGwXmajReVVZlhPyRm36c9qyomP+Dvs/0U4/dsdOzlTda6gBHtIXlbs3J5 SSDw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:to:subject:dmarc-filter:dkim-signature :dkim-signature; bh=706tMWvG1tpvZmoF3PmxMRoeBuow+awCgwxzc0YbH1s=; b=Rguv6eT/3+ZqgCc0z+hic4nwC8+BAgGd4GqxbDBkUsUgT1EMdLXBpDtcOoPoBUtFWb 9OAi2vPZ47GaDfdvUpepgt/WoIQoMyExHuC5LIW7kFar1CFGQxaZi8xkIVqGAo+PQE0Q Zur+Zre6rQlhSr6gT+O+wjPnyLr+7V+P5ms2bqIPyrHKQgbd5Ts8k5L8X0MfEew8Kzi2 +XWPFNff23uhca6VrDbGJ3xrpqjRcIlG8KeDTdh1llxRXYzZ0U1I8S5T3VR5C1jQXiKR rgaliN99O283aQSAU1PoVS5oCcgyWtbNqIpU8L9vqr92WO+W7nu2pQUW458cuSKjaOms Nq6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=VjrIjovF; dkim=pass header.i=@codeaurora.org header.s=default header.b=aM0Bw8VT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f66si9804532pgc.400.2019.03.28.07.38.32; Thu, 28 Mar 2019 07:38:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@codeaurora.org header.s=default header.b=VjrIjovF; dkim=pass header.i=@codeaurora.org header.s=default header.b=aM0Bw8VT; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726484AbfC1Og2 (ORCPT + 99 others); Thu, 28 Mar 2019 10:36:28 -0400 Received: from smtp.codeaurora.org ([198.145.29.96]:37804 "EHLO smtp.codeaurora.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725849AbfC1Og2 (ORCPT ); Thu, 28 Mar 2019 10:36:28 -0400 Received: by smtp.codeaurora.org (Postfix, from userid 1000) id 794F26087A; Thu, 28 Mar 2019 14:36:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1553783787; bh=sBRUGr4QtW5Bk45iBhvdyNhyKiNESDR7U1nKNggJRBY=; h=Subject:To:References:From:Date:In-Reply-To:From; b=VjrIjovFaFO/R0KsbsHXIRnZ0U4mmd9WnJYj1p8oTwp82Xp734rxxiDR64ihQZcvN V+IMrL9t+OJ84GBn4RhtKB8NpvRg/1jXpMVoBIYNgcMDoZPOKVActWTdtxo3YkYpY1 wgSgcaSvR7Q2k3oMGBZgpvcuDpO1GEo01W7Tx2B0= X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on pdx-caf-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=2.0 tests=ALL_TRUSTED,BAYES_00, DKIM_INVALID,DKIM_SIGNED autolearn=no autolearn_force=no version=3.4.0 Received: from [10.204.79.83] (blr-c-bdr-fw-01_globalnat_allzones-outside.qualcomm.com [103.229.19.19]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: mojha@smtp.codeaurora.org) by smtp.codeaurora.org (Postfix) with ESMTPSA id 6DF0F6053B; Thu, 28 Mar 2019 14:36:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=codeaurora.org; s=default; t=1553783778; bh=sBRUGr4QtW5Bk45iBhvdyNhyKiNESDR7U1nKNggJRBY=; h=Subject:To:References:From:Date:In-Reply-To:From; b=aM0Bw8VTAw5R9vY58a89Ym3SdRH21TQln4tOklIUVrmdNmXXE2xCgE1oIRC5mEeK7 X/eXoB8+UpQhr4CsH3EhABpE6NnmCBNH92y99JOeQLbKRft2org2zQnyJmxFLP/YVG 2r0d+B1YH1h/hHPvByXVi5AhMCvF0l/NY1n+xpco= DMARC-Filter: OpenDMARC Filter v1.3.2 smtp.codeaurora.org 6DF0F6053B Authentication-Results: pdx-caf-mail.web.codeaurora.org; dmarc=none (p=none dis=none) header.from=codeaurora.org Authentication-Results: pdx-caf-mail.web.codeaurora.org; spf=none smtp.mailfrom=mojha@codeaurora.org Subject: =?UTF-8?B?UmU6IFtQQVRDSF0gYnBmOiBicGZ0b29sOiBjb252ZXJ0IOKAmGNvbnN0?= =?UTF-8?Q?_char_*=e2=80=99_type_into_=27char_*=27_in_assignment?= To: ast@kernel.org, daniel@iogearbox.net, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, jakub.kicinski@netronome.com, df@google.com, quentin.monnet@netronome.com, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190328141652.wssqboyekxmp6tkw@yubo-2> From: Mukesh Ojha Message-ID: <9846e3b1-1878-990a-61ef-464eb71fe048@codeaurora.org> Date: Thu, 28 Mar 2019 20:06:06 +0530 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: <20190328141652.wssqboyekxmp6tkw@yubo-2> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/28/2019 7:46 PM, Bo YU wrote: > When compiling with check flag: make -C tools/bpf/bpftool/ > gcc will warning: > > jit_disasm.c:119:29: warning: assignment discards ‘const’ qualifier > from pointer target type [-Wdiscarded-qualifiers] >   info.disassembler_options = disassembler_options; > > So convert 'const char *' type into 'char *' to fix the warning. > > Fixes:3ddeac6705aba(tools: bpftool: use 4 context mode for the NFP > disasm) > Signed-off-by: Bo YU Reviewed-by: Mukesh Ojha -Mukesh > --- > tools/bpf/bpftool/jit_disasm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/tools/bpf/bpftool/jit_disasm.c > b/tools/bpf/bpftool/jit_disasm.c > index 3ef3093560ba..40b46e46454a 100644 > --- a/tools/bpf/bpftool/jit_disasm.c > +++ b/tools/bpf/bpftool/jit_disasm.c > @@ -116,7 +116,7 @@ void disasm_print_insn(unsigned char *image, > ssize_t len, int opcodes, >     info.arch = bfd_get_arch(bfdf); >     info.mach = bfd_get_mach(bfdf); >     if (disassembler_options) > -        info.disassembler_options = disassembler_options; > +        info.disassembler_options = (char *)disassembler_options; >     info.buffer = image; >     info.buffer_length = len; >