Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp358534ybn; Wed, 25 Sep 2019 00:38:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqw4akCL37RRZGF0XpPtiYkNtbj+BG9pQDo+30Klwa2HeMunprN1BrY2MI1pTVZBqDpDrSm1 X-Received: by 2002:a7b:c258:: with SMTP id b24mr5801885wmj.21.1569397107395; Wed, 25 Sep 2019 00:38:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569397107; cv=none; d=google.com; s=arc-20160816; b=ryd60XBD2o7mYsdsCx5t+qFxJ7kuxvLAikaLdOwHgnHLG+Xb2EZb+JaoCCzne9aFh0 pYvhnpovpZUjvQV6xOn7DSUl4tzDHHGFl+3gtKismWls+yKCpjqYjAzZQWJ8ekNDHH7Y 74D17k/8WGKCFQ89skreS43w/T1S2H3A6Pt02M4QYefJGPaUbRhwEIm0VEfdcqjlGpK5 BVcp8Jkj+SNbZwc6VpS4j0OqgFXIAkFncAFOWcUMF/e+iQr7BDYm11P3FLqdgy8/nNqn hspnYbfVfrKt/6Uhg8OAgouwiITKjjegqQNhT88OpMrIuTqC4paNKcwPNVmdZnfe3g65 AjAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=CBph77x5aQjd+f7qiwIkDuNUL1vHozb/Uo4/VVuZROE=; b=wGg6BvDIyzhoDngi3W1Y/B7sZY8TM74oUfo8KQJ+4B4JoVYqjHOHNTLgIH4N3LP0w1 iW7IjVunu/ubvr6sJ/NFbC7OB7K0CcqFgECAb+qqcKKqwqZYzMqTSiBnGgpBOqfK5FWl 9Ccj6ezen/yd/6cdfKPk3fj0atcfzhFh/EF5JF4mcKNUJaRK8XQsrc8OebSMM9/7A9De n6rkvPLLtdpC+wtjH+8SjPp6oZBJdyZ8MOv9sW88483Ugn+a7d/sHCHsToh/nUA1q9ge TJTvt9Az4NWC+Rog9+3CxPOZ5QInv8q4ZNtuLz6rb2AELGhPHZKfC/qgx/XLNetoPikn qM/w== ARC-Authentication-Results: i=1; mx.google.com; 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 m10si2725187eds.428.2019.09.25.00.38.03; Wed, 25 Sep 2019 00:38:27 -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; 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 S2437739AbfIWIUq (ORCPT + 99 others); Mon, 23 Sep 2019 04:20:46 -0400 Received: from www62.your-server.de ([213.133.104.62]:42736 "EHLO www62.your-server.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392126AbfIWIUp (ORCPT ); Mon, 23 Sep 2019 04:20:45 -0400 Received: from [178.197.248.15] (helo=localhost) by www62.your-server.de with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256) (Exim 4.89_1) (envelope-from ) id 1iCJaJ-0007z4-U5; Mon, 23 Sep 2019 10:20:40 +0200 Date: Mon, 23 Sep 2019 10:20:39 +0200 From: Daniel Borkmann To: Andrii Nakryiko Cc: Kefeng Wang , Joe Perches , Andrew Morton , Ingo Molnar , "David S. Miller" , Arnaldo Carvalho de Melo , Andy Whitcroft , Peter Zijlstra , Alexei Starovoitov , Greg Kroah-Hartman , Sergey Senozhatsky , Petr Mladek , Arnd Bergmann , open list , Martin KaFai Lau , Song Liu , Yonghong Song , bpf Subject: Re: [PATCH 30/32] tools lib bpf: Renaming pr_warning to pr_warn Message-ID: <20190923082039.GA2530@pc-63.home> References: <20190920062544.180997-1-wangkefeng.wang@huawei.com> <20190920062544.180997-31-wangkefeng.wang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.12.1 (2019-06-15) X-Authenticated-Sender: daniel@iogearbox.net X-Virus-Scanned: Clear (ClamAV 0.101.4/25580/Sun Sep 22 10:23:13 2019) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Sep 22, 2019 at 02:07:21PM -0700, Andrii Nakryiko wrote: > On Fri, Sep 20, 2019 at 10:06 AM Kefeng Wang wrote: > > > > For kernel logging macro, pr_warning is completely removed and > > replaced by pr_warn, using pr_warn in tools lib bpf for symmetry > > to kernel logging macro, then we could drop pr_warning in the > > whole linux code. > > > > Cc: Alexei Starovoitov > > Cc: Daniel Borkmann > > Cc: Martin KaFai Lau > > Cc: Song Liu > > Cc: Yonghong Song > > Cc: bpf@vger.kernel.org > > Signed-off-by: Kefeng Wang > > --- > > tools/lib/bpf/btf.c | 56 +-- > > tools/lib/bpf/btf_dump.c | 20 +- > > tools/lib/bpf/libbpf.c | 652 ++++++++++++++++---------------- > > tools/lib/bpf/libbpf_internal.h | 2 +- > > tools/lib/bpf/xsk.c | 4 +- > > 5 files changed, 363 insertions(+), 371 deletions(-) > > Thanks! This will allow to get rid of tons warnings from checkpatch.pl. > > Alexei, Daniel, can we take this through bpf-next tree once it's open? I'd be fine with that, in fact, it probably should be in order to avoid merge conflicts since pr_warn{ing}() is used all over the place in libbpf. Kefeng would then however also need to include the original patch which adds the pr_warn() to tools in the first place. > Acked-by: Andrii Nakryiko > > [...]