Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp531569ybb; Thu, 28 Mar 2019 07:17:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqwR/Upo6Wp/LlN+ZIOfKuFwP7MvQb/q8VqLEoHwPMPlETHPb8dS7niXfpeulR4qa/QfAqrx X-Received: by 2002:a63:c64a:: with SMTP id x10mr10619768pgg.12.1553782674738; Thu, 28 Mar 2019 07:17:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553782674; cv=none; d=google.com; s=arc-20160816; b=EbiSP6AqZx+WUH1PZDjZEqbK3K74v8HOIwe+6jlP6SwOM22TNS5r3ouMTkhzF/+muy Vd5V+1RuaqLpN5BL6Q3PHj9C5dvlDt6THxHGdzsK+3q996RoUK+GeEu1CVMULtz9FBXS W1TzfBb0tCRM/oczIVph0BpflHMzO+Dju6ouLtksEMsw1cCHz5+mqkubjdCWQ3mKTJsS LW3868eJoAkQ8bblfLC/K9sGJrSLWBs06VwObmAEHblg7YURDET6do96W40MOuJbISYb d80YIXrwVvnceYrcGe8Fx+dBs6C0yJbM6StB6s/5yCqJJIgJwxZr/QJw3YKE735POygB o5bw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-transfer-encoding :content-disposition:mime-version:mail-followup-to:message-id :subject:cc:to:from:date:dkim-signature; bh=s1PNxO9w6P66F4KHKA/rF9ZUedXG3vp7Y93p0h/JBlc=; b=OkrdK4JxrGkAtR5R2uU9V876MgtkDQA3ockqnGGOyAtapIe3Mi5usJCBDQcr27AgHW UD8DVGllyvZ/U75i7feuQAs03p+dUW1Yk+ZMCzmOBDZGNjp1fVbZfNsc5WKawNzkj9Qp 2TBRd7frhgJLCP8klYlhzvLKTzG0ZtZVWM7gd5b6oWg1EN1qipfWXAys8YGubAiaTjy8 Q2TWeRI7LFyGKeFiW8Uh4fbPRT20NywGS5ezes1mvxJwm+QvS5EaL3sO3CrMZr/v6c9/ Y+ikY/m63cibkzf8AzUJKc1FtGZoL7gSIX8VcPr0I1IYYSlZ/xvLMz+WYFeh31mHeVOz pe5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=rE0qnyPf; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d3si21069808pgd.147.2019.03.28.07.17.38; Thu, 28 Mar 2019 07:17:54 -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=@gmail.com header.s=20161025 header.b=rE0qnyPf; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726891AbfC1OQ6 (ORCPT + 99 others); Thu, 28 Mar 2019 10:16:58 -0400 Received: from mail-yw1-f68.google.com ([209.85.161.68]:41214 "EHLO mail-yw1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725849AbfC1OQ5 (ORCPT ); Thu, 28 Mar 2019 10:16:57 -0400 Received: by mail-yw1-f68.google.com with SMTP id l15so14695269ywe.8; Thu, 28 Mar 2019 07:16:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mail-followup-to:mime-version :content-disposition:content-transfer-encoding:user-agent; bh=s1PNxO9w6P66F4KHKA/rF9ZUedXG3vp7Y93p0h/JBlc=; b=rE0qnyPfdPMVZByGli6s9HNBo6aiVYZIrpytKGVE6xoNYpcT8B5/Usu9hYw03obMR1 L14UXrAHXmiL5tAXahfaEedmOTv+Qx3rCw1ppAnbVAl6TGBAZxdjO2BIhRejFovXFoEq BqXnIIG7Q2WHvyQxUoft0FZLJWG9WqfoZFWRpkkQjVhH5QLtlvVJ05AJxGEThmw5PB1W vsn9NzyahA79Uf+jN+b7HiVA36zIGULyFWkVgC2HGfBqhKZRwqvitxqjlxI3PiN1hNj5 fI9ShKLgBrJfcbtHyXs98ZZymm3m2oz9HsQXK2NIhM4m3ZzIwXUtLBXZBAi/Y4+Je5J7 j3zg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id :mail-followup-to:mime-version:content-disposition :content-transfer-encoding:user-agent; bh=s1PNxO9w6P66F4KHKA/rF9ZUedXG3vp7Y93p0h/JBlc=; b=RDJ2O3rmuFOPIGDMtrhoeIJqMvEIMfj/UQ8RSYsCgcjRzpiqon51r/DH1WpG+Z0hbA RXNhFG07VAX3cfYebAvhQNfM58SgxvltrjLJ+C7sbKPrgeghbvQz7hgWonpkGxshVBFl 2cNU1p9FJiHveHYE4NoJY+fcnQbK9DpiNWQsr/EAMv0wy7LuklaofarcFtkVOQKz+utw vkEZ9UsafF9VjW/gjKPWOrfBYRD6GQp9AGFctdNlwr+KdXd6V5zGM4f7ydybk0vC0UQF quomuP+c6npE9zQHEl0U+xSzPLCDFlcguztqZtMupoaff6ZzRUpdHtGdBmFSwNKs8XSf Nd0Q== X-Gm-Message-State: APjAAAW9hbAFQ7JgrHJPGgRsLLav/vvkzJ1jUoopTIsvx5tY0IR2ZnlX snC/uk+5ya11TycJ32Y5vX8= X-Received: by 2002:a81:178c:: with SMTP id 134mr37022676ywx.480.1553782616680; Thu, 28 Mar 2019 07:16:56 -0700 (PDT) Received: from yubo-2 ([191.101.9.198]) by smtp.gmail.com with ESMTPSA id t71sm17023324ywc.4.2019.03.28.07.16.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Mar 2019 07:16:56 -0700 (PDT) Date: Thu, 28 Mar 2019 10:16:54 -0400 From: Bo YU To: ast@kernel.org, daniel@iogearbox.net, kafai@fb.com, songliubraving@fb.com, yhs@fb.com, jakub.kicinski@netronome.com, df@google.com Cc: tsu.yubo@gmail.com, quentin.monnet@netronome.com, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] bpf: bpftool: convert =?utf-8?B?4oCYY29uc3QgY2hhciAq?= =?utf-8?B?4oCZ?= type into 'char *' in assignment Message-ID: <20190328141652.wssqboyekxmp6tkw@yubo-2> Mail-Followup-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 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: NeoMutt/20180512-62-03f98a Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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; -- 2.11.0