Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1297817ybg; Fri, 18 Oct 2019 15:25:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqxt3/03AuBy6E8rXyAZAjZ7Um8F3QlXjvU2J+Pw7+1GcE/oR0+ZBdIwwnw5cHSdV2E9Ljrm X-Received: by 2002:a17:906:48cf:: with SMTP id d15mr11294994ejt.59.1571437554434; Fri, 18 Oct 2019 15:25:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571437554; cv=none; d=google.com; s=arc-20160816; b=LS8cKJjeivjY5PwBCQIvNbODHaygWUC8jH2Z8YZTI1Jew4ZKtVJED/kZ0/jXvVYwhq B1+ZUNoq+45VK7cKiu7rzMLyKrfKR1fpqLPxC+Yk5kZBV19BIRYzPtxqlbJmSEKz4E4y PhOesdvZ2k3oLahuGJf2F37oiQ3FADxLnHgFGqR1gjEJ335bNml7/eXdPx5f29mLTXKo V8BbNKkih16ZujM05SvGRTKEiv/gcGP6EtvjtfW+MhYR15kKpyBzjhs5Z5JylT2R58Ze UYs77d4x9QgkHdUBkZF5Oi+Qgg7X2P7v30RUY6YE4GpUqJCiaF9M95PvHdUOmgv0ww4d D+Hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=kroOBDq9NIrSz5QHpXMxdBQFS2GNrZ4XqoVTVh+JI7w=; b=cEvoREBiNrAiVdLyzPNKXGFbkqMvTCavQpzjhUGFqhS1KsaIets/Ry3Hoqbe1+EY/d vVe/m/D6m9VzIWfXfiq2w3jiUDFdJofsL0FcPGJpl21weiH85IGlf+Q+yDjZk0PjSIDr zy28Tl1bmq6lSneLRwSu2wr4zlzXF4PliOqkY21QAO1/91bixKGmh4gQbEKnloBpCL/I /kfQOwsh4vU/m7E2ptC534h5K+Lu03CaWT6yT5DkgRn/wnhXucYxPBRAdoNYOkvSjdk3 mVL3/fD+RozzpNC0o1uirbgdpoCktL71OgIZqDYjLrbu/VwatF/C3rkNUYf8lTMd0BrJ 9z9g== 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 w2si5060351edc.386.2019.10.18.15.25.31; Fri, 18 Oct 2019 15:25: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; 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 S2409188AbfJRBLR (ORCPT + 99 others); Thu, 17 Oct 2019 21:11:17 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:4247 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2392283AbfJRBLR (ORCPT ); Thu, 17 Oct 2019 21:11:17 -0400 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 0BA28C49BC07D5EF93FC; Fri, 18 Oct 2019 09:11:15 +0800 (CST) Received: from [127.0.0.1] (10.133.217.137) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.439.0; Fri, 18 Oct 2019 09:11:10 +0800 Subject: Re: [PATCH 00/32] Kill pr_warning in the whole linux code To: Joe Perches , Petr Mladek CC: Linus Torvalds , Arnd Bergmann , Andy Whitcroft , "DavidS. Miller" , Sergey Senozhatsky , Peter Zijlstra , Daniel Borkmann , AlexeiStarovoitov , Andrew Morton , GregKroah-Hartman , ArnaldoCarvalho de Melo , Ingo Molnar , References: <20190920062544.180997-1-wangkefeng.wang@huawei.com> <20191002085554.ddvx6yx6nx7tdeey@pathway.suse.cz> <20191017130550.nwswlnwdroyjwwun@pathway.suse.cz> <21f6322c-1c2b-f857-2e6e-e1c6aa45dd2d@huawei.com> From: Kefeng Wang Message-ID: <4698b6c1-a112-b327-29e7-706a4e46a430@huawei.com> Date: Fri, 18 Oct 2019 09:11:08 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.133.217.137] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/10/18 0:38, Joe Perches wrote: > On Thu, 2019-10-17 at 21:29 +0800, Kefeng Wang wrote: >> On 2019/10/17 21:05, Petr Mladek wrote: >>> On Tue 2019-10-08 14:39:32, Kefeng Wang wrote: >>>> On 2019/10/2 16:55, Petr Mladek wrote: >>>>> On Fri 2019-09-20 14:25:12, Kefeng Wang wrote: >>>>>> There are pr_warning and pr_warng to show WARNING level message, >>>>>> most of the code using pr_warn, number based on next-20190919, >>>>>> >>>>>> pr_warn: 5189 pr_warning: 546 (tools: 398, others: 148) >>>>> >>>>> The ratio is 10:1 in favor of pr_warn(). It would make sense >>>>> to remove the pr_warning(). >>>>> >>>>> Would you accept pull request with these 32 simple patches >>>>> for rc2, please? >>>>> >>>>> Alternative is to run a simple sed. But it is not trivial >>>>> to fix indentation of the related lines. >>>> >>>> Kindly ping, should I respin patches with comments fixed? >>>> Is the patchset acceptable, hope to be clear that what to do next :) >>> >>> I am going to check how many conflicts appeared in linux-next. >>> >>> If there are only few then I'll take it via printk.git. This way >>> we get proper indentation and other changes. > [] >> For tools parts(api/bpf/perf, patch [29-31]), it renames pr_warning >> to pr_warn, and make manually changes in some place, simply 'sed' >> maybe not enough. > > Perhaps tools/ should not be changed. > > Last time I did this, I did not convert tools/ as there are > possible external dependencies and code like pr_warning_wrapper > exists and that adds some complexity to the change. The pr_warning dependencies and wrappers in tools may not seem to be much in following head files, and build test all passed. tools/lib/api/debug-internal.h tools/lib/bpf/libbpf_internal.h tools/perf/lib/internal.h tools/perf/util/debug.h Let's remove all pr_warning if there is no objection.> > https://lore.kernel.org/patchwork/cover/761816/ > > > > . >