Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1738128imu; Tue, 6 Nov 2018 03:37:58 -0800 (PST) X-Google-Smtp-Source: AJdET5fw1XvJMLxRuYBNVmOt+TU4dD1rLW0AJn6qKOQhX33VFYA7DR6CvmhZTvhrAEf/wF23xO4d X-Received: by 2002:a62:8d92:: with SMTP id p18-v6mr26575173pfk.217.1541504278408; Tue, 06 Nov 2018 03:37:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541504278; cv=none; d=google.com; s=arc-20160816; b=jvKVW3JI6LYBIRmtlm3oF0aIUUa+T2ZuJGBhLD+ItwgfW9xWvOd9MyEW159FzSTASl m5uOkSr6CXyAtzu7+hW3ROufu5Zh1nB7Q1F+8trjGRp09F0aQvt3LokeIEpHa/PunNkn 0BDa2hRVEJsO4oFYKJotcrFUTVZS2tAz3t61Cz+SjQMKTtHHWY+KgPcPuoFYxMCidKkQ ZY2K8ui+4jewUms/4Ll8rBrLhK5B+edTgWNm3grjs9tIYwOcmgrkfAn0b1ZvC6oKIGUG 5wJKLHRmJShcNS2zSucjyeWVaAsEvgKqbMo8pu6BIzZp7jZy7VUV6lIz64i9Rw5ayTnF rncA== 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:mail-followup-to :message-id:subject:cc:to:from:date:dkim-signature; bh=0l4Fd2VPkGRcQpITZhcxqNJcoYTw9lq1oiaUBmHGLpY=; b=dCyb0knm36fP10XfzyocZV24ovmens0c7JMKzVWeaZICiYaAbU0bTdcSG7FXcOw4D0 5PARPb/gPVInCHSKyh3wucWX3uJTxKiQ2jZ7PRZlwACZQMk42JUDbVLQaHsBzprP8BKw /3s3ZBECccBFgFC9izgLh531c3Gn60EjYQO4supMQvwFqq9+frcikn8oI4bd1KXZH2zW tu7ZtNUis7lckdO6oMbKJ95KnLp1nAjOOdqINBCE+wBpYq639RBzanAsELxmvVzKN1/F 7X5Tn06xxvDGoi6HTRNLWxtAlHi4rW4wQ2eJs+ARioZU/s0AXMw2umrWgFuT0tE6Bpyz JxpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=sgf80wR2; 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 1-v6si42983703plk.253.2018.11.06.03.37.43; Tue, 06 Nov 2018 03:37:58 -0800 (PST) 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=sgf80wR2; 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 S1730413AbeKFVAw (ORCPT + 99 others); Tue, 6 Nov 2018 16:00:52 -0500 Received: from mail-pf1-f196.google.com ([209.85.210.196]:36031 "EHLO mail-pf1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726976AbeKFVAw (ORCPT ); Tue, 6 Nov 2018 16:00:52 -0500 Received: by mail-pf1-f196.google.com with SMTP id j22-v6so6002520pfh.3 for ; Tue, 06 Nov 2018 03:36:06 -0800 (PST) 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=0l4Fd2VPkGRcQpITZhcxqNJcoYTw9lq1oiaUBmHGLpY=; b=sgf80wR2KH7vOmMwKfCONU1dw7TKYF8mi5L6031uFXZD3A7k4S6gtmg9+f92mYnXKm 3AWnXExeiUwB9rOy882BbMV5JjnqYKnNUIwYjSGaJfhrqjE5e9qnek3Re43VnjK60YTo oJaudbC/qqfwve4iY0L8291HA+bUwFBp1GSfd8sd0+6oYkGtQYDNpaqzp1HW+u1TEFNr BCQXOcl3b4w1L2qx35YG+JqAq52BEXA3f+btmr8xdzPOKl6abasIOmImtyB1rEh6duou ZgAKsV02vjFNZC2BPeAsJqjk4KUlB0w3V1uFhiuYbIhjOJbtSjaCq/SALA+EhYMT3+ga D2zw== 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:references:mime-version:content-disposition :in-reply-to:user-agent; bh=0l4Fd2VPkGRcQpITZhcxqNJcoYTw9lq1oiaUBmHGLpY=; b=TnBBXqx8H/8uSVcvDxobcc5G8AMoOhDpTIjWWzt2avxo8w62cHHmHddhRTyINgb5tb 2zDdwPFHt1rJw8DovdP9eJtPPXyZMu6RjiqQIru5MMhWCpMNqeN6Tb9X0txgucxnEa3C qWptKkDBfpkFwxbkz0CXVs+u0g8AACpRblJ2ZJ/J+jajYuLi5bT0qjrFjYxNpP6ap+ZH RSrxCdx/EGDc9XHXOYeZoZXvwmtFniO3FgkoeMi756EXzN8uvqWQtHvr6YEC/zHqhN/9 sB3sGGUGUTAOGgOy47u0VGSA1tmLTEVO2lzyNEmHGnTsSXQlsC6TGafn4oWCGtqGNfE4 qf0A== X-Gm-Message-State: AGRZ1gKV2Z4xDlAVIXZbDkqUjfFyliJK2784UCIoY9Wuzf6rWpMtInCe ic0Y/7avspkPq2KCodZXs8o= X-Received: by 2002:a62:14d4:: with SMTP id 203-v6mr25611603pfu.221.1541504165759; Tue, 06 Nov 2018 03:36:05 -0800 (PST) Received: from yubo-2 ([191.101.9.198]) by smtp.gmail.com with ESMTPSA id p64-v6sm47422418pfi.22.2018.11.06.03.36.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 06 Nov 2018 03:36:05 -0800 (PST) Date: Tue, 6 Nov 2018 06:36:04 -0500 From: YU Bo To: "Rafael J. Wysocki" Cc: Joe Perches , Greg Kroah-Hartman , Linux Kernel Mailing List Subject: Re: [PATCH v2] kobject: to use pr_warn replace KERN_WARNING Message-ID: <20181106113603.ydi6xyrwe23zykfm@yubo-2> Mail-Followup-To: "Rafael J. Wysocki" , Joe Perches , Greg Kroah-Hartman , Linux Kernel Mailing List References: <1541472103-6212-1-git-send-email-tsu.yubo@gmail.com> <932e46a701ebe9b3b33a110d187880eda14c23fb.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: 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 On Tue, Nov 06, 2018 at 09:09:15AM +0100, Rafael J. Wysocki wrote: >On Tue, Nov 6, 2018 at 8:58 AM Joe Perches wrote: >> >> On Tue, 2018-11-06 at 08:49 +0100, Rafael J. Wysocki wrote: >> > On Tue, Nov 6, 2018 at 3:42 AM Bo YU wrote: >> > > Fix warning form checkpatch, use pr_warn replace KERN_WARNING >> > > >> > > Signed-off-by: Bo YU >> > >> > First off, IMO, you should not change the existing code just in order >> > to make checkpatch happy about it. That alone is not a good enough >> > reason for modifying it. >> > >> > If the checkpatch warning indicates an issue like broken white space >> > (and I mean really broken and not lines longer than 80 chars etc), >> > then that may be a reason to modify the existing code, depending. >> >> Existing code is slightly broken. >> There is currently a missing terminating newline in the >> non-switch case match, when msg == NULL; > >OK, so this should be explained in the patch changelog. > >Saying "I do this to make checkpatch happy" in the changelog is just >not enough IMO (if not outright misleading). Using pr_* code become more and more in kernel when i read code and then i ask for help from checkpatch. In commit log i just copy the what to to but not my explations that why to do such. I will send V3, thanks.