Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1561725imu; Tue, 6 Nov 2018 00:10:06 -0800 (PST) X-Google-Smtp-Source: AJdET5cTs1a7iRocf/h60/fyRJnk1fO5pNiR8BuZx71aF2Qav6hQzCzSjs7+nVqWSKz581/wOP1f X-Received: by 2002:a62:6fc7:: with SMTP id k190-v6mr6750013pfc.97.1541491806019; Tue, 06 Nov 2018 00:10:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541491805; cv=none; d=google.com; s=arc-20160816; b=Go7nu8lGwf6KKwJFt/9EebcQB9tq5bp+vSIZXD7ZiZRaewujCZRqQfl8uPsHfuaxPG o6Nx2gGdI1BTO7Q2cRYuHGXugpwy+B60M5SFRWQPnHkkCuVJciFab+EDGBwN0Yuv/Ko8 C2ywwU68GzdjbL4oLTja1bfb/SQ0VtXevvi1jiiq5yanm5b0IeLaUx5LUJtJObjgTcET In67BjW8zJsgWbNhQK4Cdthzc9h4kpQfRWeJRuC0uD+MtwYxz2AT6dE9QTq9qmQNdFWt Ltwt/NO9vFZqSzuNFDIQx9HlgUkAeDR1EKlXQ4zMqdS9oKMeSs2492j+aHh6cT5tVzA/ uFaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version; bh=l7N9Ev3h0AJec1XM+HYht3KAlXtD7sfrjwhPCmBs2qU=; b=KsA6N7hQ4wo7JSQJ3nNNRekSmLmgXL+am6Sjva1C2k6YubsPX7J4AdpzIFF7nq4o4w G5RSoj4ZwkKDLQqlfQHxQ26av8KS7llx6zSCjaizFTdqbFhN+xXlhQf93+Bzu6EZUOtl R0+8LGzHWGfRvN0ltGulzezpDlWvG3EIdtH2ICi7bRUvj21qEb1Pus2lik4Cc1Np8Kh6 zzZzYqEFmC7f1cHrrK4pnYPWxeEiEvufUpTe25JUrzrxAKSYVmQBD2m0BiHi9ojlaj/w DG7jKbAfHC9ziAG/Cx6MTS4NTOGjg8Wx/fP+tJLVbYu/AiI6HthAd2pnNKCgShdxI+qg iAXg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l6-v6si37309089pfi.179.2018.11.06.00.09.48; Tue, 06 Nov 2018 00:10:05 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729724AbeKFRd1 (ORCPT + 99 others); Tue, 6 Nov 2018 12:33:27 -0500 Received: from mail-oi1-f195.google.com ([209.85.167.195]:41704 "EHLO mail-oi1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729021AbeKFRd1 (ORCPT ); Tue, 6 Nov 2018 12:33:27 -0500 Received: by mail-oi1-f195.google.com with SMTP id g188-v6so3998380oif.8 for ; Tue, 06 Nov 2018 00:09:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=l7N9Ev3h0AJec1XM+HYht3KAlXtD7sfrjwhPCmBs2qU=; b=BGtnKKa+1gUc8ilh5X+MN5+k6X7adUF8V4vBjY3f2qE15UQEa1tFc9a/9GUN3VxB2V EACUvH+hHOqN/IAQdO8QybCxITybPSv9G+5LFhWW5rTiIOUoNw0IS6ek7mVD71aLUHQs d9PBGn+Q6kwTLAR0+8fQNDjF7YqdCD9UvVRjKhaTHXieSjJrDXCav2As87/UmS9cjj6Z tQWx8sLJ4SPlNupaTQVAOmSbRwnr/k7S0QQ0F7hg/1m8NXjFD6Fl3bNOHVPAbSL3Cyn7 k5qiLSTXac47InQagrP2oFMXPkVwk/D3cL7ANyZM0J/oHwt9DCzj3uHigvLDM9wsaOT3 yd5g== X-Gm-Message-State: AGRZ1gJVJd6oePCI/0rH9cnVOrkd6HPeqfyIsRnHaQI5BsLyg1hRWpB3 ijRg3Ddn/0eaNHhkokRauXCrvRv2ijBWQ+ewIRo= X-Received: by 2002:aca:f3d4:: with SMTP id r203-v6mr13481736oih.95.1541491766520; Tue, 06 Nov 2018 00:09:26 -0800 (PST) MIME-Version: 1.0 References: <1541472103-6212-1-git-send-email-tsu.yubo@gmail.com> <932e46a701ebe9b3b33a110d187880eda14c23fb.camel@perches.com> In-Reply-To: <932e46a701ebe9b3b33a110d187880eda14c23fb.camel@perches.com> From: "Rafael J. Wysocki" Date: Tue, 6 Nov 2018 09:09:15 +0100 Message-ID: Subject: Re: [PATCH v2] kobject: to use pr_warn replace KERN_WARNING To: Joe Perches Cc: "Rafael J. Wysocki" , tsu.yubo@gmail.com, Greg Kroah-Hartman , Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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).