Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp641901imu; Fri, 7 Dec 2018 06:45:19 -0800 (PST) X-Google-Smtp-Source: AFSGD/VoAvb+vmG/if0w6tXlToF/7ZgyTyva8YJW0QnU3DepMnhZK9Gawv1r34HxDUquV+GjjkF6 X-Received: by 2002:a62:ea09:: with SMTP id t9mr2659028pfh.228.1544193919250; Fri, 07 Dec 2018 06:45:19 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544193919; cv=none; d=google.com; s=arc-20160816; b=M6wKGCtb/3WgxfDZCvRC+CUw6pyRSmXmmwwB/HznR7r/cqZGLukWP6o6FiE2o7aiUC QdFgewOSBGn2EqcD1kPMTNYci3mKaDxXxDDNbYrT/ttg8XBFHVJSW5I2DISzbGZ8lQLs 84WjJEzylKmIjC/6bPM7IromH7M2uN3EXf6vNYlc10RnNZYTYu58ufTeW+N/0YIneDf8 9HMqYdBia+/tPiHK8608Cc/Uzf9hvxz2F4IVFen6ewRjXUTNUCpayl5yZpbqHRsTfZCg l0qjvMIyEhcjOMGd+XnLaXI+mKnKwDWtX0IvVsEo6u3pTnXc1SrLpaRUF7zdY4ZmHlBV fSEw== 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=+m3IAR1X/OTOtjB9jc+ln1t5KBP5gteAtU+41d6GFpA=; b=YRXamRRwheZyOoB+Ha79fUNINXtzHoSpm3XA6TbsV6GDOMYRJBNYfnehx9I3FuWU8x FJ9YZwA15dU55fqf+PRhvC8/Y3JhjPoUTTXdLa/kkFHMqbVyJbWr3b8ipdmYHPCQanvO L0ujoL9JO+PkrP3AfN6SieVjdhjGNM4tx3gVhcRJL+FKptdKGzKkiaPHeZWkz7ZVEcZ8 EbO1Ola5nzsn0aAQm36AuYWlqwEqNIPahkLa/eVFHK5zQX84VBaZYL4ELWKPoXShPlaS z3GpV2Y5oXm+djhfq0gTIqc72dm0YJn/Mg5wxGtK3tOrOcsNlXtHB5AsjAgLmMJ9W2Fy os1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=PiHA1C5C; 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 k5si3105666pgr.69.2018.12.07.06.45.02; Fri, 07 Dec 2018 06:45:19 -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=PiHA1C5C; 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 S1726203AbeLGOnP (ORCPT + 99 others); Fri, 7 Dec 2018 09:43:15 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:46645 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726027AbeLGOnO (ORCPT ); Fri, 7 Dec 2018 09:43:14 -0500 Received: by mail-pg1-f194.google.com with SMTP id w7so1804371pgp.13 for ; Fri, 07 Dec 2018 06:43:14 -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=+m3IAR1X/OTOtjB9jc+ln1t5KBP5gteAtU+41d6GFpA=; b=PiHA1C5CsTT0u2FT3JDIbtpx3zYcgU9YC96EFEwXz0mYA25oy4Q+frTuVx5cIsaaXl N2YpdbUA5E54fQDMMyoIjwnJjNX+b+byhWCWVIZVhi1LdD9nc0R4lHohaGMrfB6Pz+q1 Kjv6YkxLkZ5rKk41sSke1Su2AADr2Wi/e7FiN4qWTqzkiRjiXqE5wU5pKL6WYjsHM79a 1mb4Jj9ZQcIzorfiFNFh7WlOiQyTZAfu/e6Ey31cVwV91tk8QrDPfkVb3HrEVGzrqnF3 dQl68Jh//C91sTPniFznAoCXA1RANg1AWmvC7kl6GvgCUs6hNU4xZNdLcGGGb9thALmv YvOw== 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=+m3IAR1X/OTOtjB9jc+ln1t5KBP5gteAtU+41d6GFpA=; b=fVPhMbh5bQHeAeiu0gz95KqZX++njhPCtXckXEOZa3qjQ/0prSmgwota/0Z+kSIcLd d4D266smSH/pn0ClaYV6EfpKr1QIdNxF8Y8bC8UbZf7F4VgauAT58vyMxoJPYuVoly7o NusuiAc2+zCj3Bi6LiGvB92M+7Sd9CfNYJjpvcZRDUm8aID8hz6BIRiKqqaHzmOpy8TP QS7OpCnKHxEXzvM5LBkbWSUaRkQtU8HxYcVtNp6mEZWH5YmiJfQ3Z16Yq7QPNkKiUSIO jjHyeRmA8+yRlFpY00sjiW2XGeBdRWNZLgJH9h7V5RCTfYJIvnQ/FYaUc3qTKOOawzHx f6rw== X-Gm-Message-State: AA+aEWaCOCLuqAxrBvYNVdzKPz+NoE/2SHavfWyfGsG+iPHxWs0W/5yQ TDFVz1KDrH+/CwKxPi9aYxI= X-Received: by 2002:a63:7154:: with SMTP id b20mr2179159pgn.342.1544193793784; Fri, 07 Dec 2018 06:43:13 -0800 (PST) Received: from yubo-2 ([191.101.9.198]) by smtp.gmail.com with ESMTPSA id n68sm5310699pfb.62.2018.12.07.06.43.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 07 Dec 2018 06:43:13 -0800 (PST) Date: Fri, 7 Dec 2018 09:43:12 -0500 From: YU Bo To: Greg KH Cc: rafael@kernel.org, linux-kernel@vger.kernel.org, joe@perches.com, yuzibode@126.com Subject: Re: [PATCH v3 2/2] kobject: drop newline from msg string Message-ID: <20181207144311.oijj3lj53ojtlnyl@yubo-2> Mail-Followup-To: Greg KH , rafael@kernel.org, linux-kernel@vger.kernel.org, joe@perches.com, yuzibode@126.com References: <20181207120405.GC15336@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Disposition: inline In-Reply-To: <20181207120405.GC15336@kroah.com> 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 Fri, Dec 07, 2018 at 01:04:05PM +0100, Greg KH wrote: >On Fri, Dec 07, 2018 at 05:21:49AM -0500, Bo YU wrote: >> There is currently a missing terminating newline in non-switch case >> match, when msg == NULL. >> >> Signed-off-by: Bo YU >> --- >> Changes in v3: >> Improve the commit log,requested by rafael. >> >> Changes in v2: >> According to Joe's suggestion,drop newline from msg >> >> lib/kobject_uevent.c | 11 ++++++----- >> 1 file changed, 6 insertions(+), 5 deletions(-) >> >> diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c >> index b7c088c902a2..1837765ebf01 100644 >> --- a/lib/kobject_uevent.c >> +++ b/lib/kobject_uevent.c >> @@ -195,12 +195,12 @@ int kobject_synth_uevent(struct kobject *kobj, const char *buf, size_t count) >> enum kobject_action action; >> const char *action_args; >> struct kobj_uevent_env *env; >> - const char *msg = NULL, *devpath; >> + const char *msg = NULL; > >Why did you move the devpath variable from here to lower down? That >really doesn't do anything :( Hm...If i resend the one patch will be ok? Or whole series? > >thanks, > >greg k-h