Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp4618015imd; Tue, 30 Oct 2018 05:04:23 -0700 (PDT) X-Google-Smtp-Source: AJdET5cl4eg6cTbb2sr3auFZpUVDjKY/gRsiUYMFUtCn7iUc1wdIMehJGZvo+shzYPyDhvx8y532 X-Received: by 2002:a17:902:6b46:: with SMTP id g6-v6mr18276802plt.33.1540901063425; Tue, 30 Oct 2018 05:04:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1540901063; cv=none; d=google.com; s=arc-20160816; b=YupneeSVk8beX3SrV3c7bX7/3exdWhdvJ6PHLY62W6L7BhvssRXK3XDyX8wdW/viaq W2wX2vVaK5FxgcZIsE6eALXgFNAZSt0+Ql1IrEyzYcT9kbDSlHE+JdZ/SHwzjCtY21Wq D5vrgIW/wMg1LhBfSGlkJbJvSbE2lXUKgNMAsXXjhsx22KEzIK4922IfiQdN41CSlr33 8lrijq97pTQrCQVeqD27TW8myi0TWSO36oxyQNJLaDZDeSRrabknkYxkMJAU1WAzfUjF GjqFtHDdxN/rxMdlvpKh2A7wqe/H+PNVuBiX1IrjJP8rj7nh8MPE1iyevb89OWAtvX+c Hs7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature; bh=/fZwBH2iVawH1pntIF6WCbMKPZ5JViHWRsqv2E4qUT8=; b=t6omoSixAfKqAdy9dJp8OOzeDWIxh3LmeLzIE1YjujD9Yy8W7fn7uAP9DVbszX7/UH 3BqOoAeEXnoI2mfDZ6CdIt7VN6xDT2Vd8VmDnbhdWmguNjE9hfQjKOd5FUp/F+OlEnPx e8WJJJ2GUiMjQ1d8AE9CSOq+vue+6zzZawxUy8c1wT9YixMm6tggTsXGtvtvSAHsmAg4 gNeOHtarIzxUYoJQ8UT9MLvA+nBJClEVHaY9wQO4Fz+sJPRzLmO/GE8coL5fFxuuCGaL pQraC4WvyJ1Ifz01j7tyHa+y2/RJdLp4MqKQpiwyK25dozYgHw1WDqmkG2KF2ldGzdm9 GpMQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=p0mXDtkA; 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-v6si19266600plp.114.2018.10.30.05.04.06; Tue, 30 Oct 2018 05:04:23 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=p0mXDtkA; 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 S1727955AbeJ3UzN (ORCPT + 99 others); Tue, 30 Oct 2018 16:55:13 -0400 Received: from mail-pl1-f194.google.com ([209.85.214.194]:44793 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727669AbeJ3UzM (ORCPT ); Tue, 30 Oct 2018 16:55:12 -0400 Received: by mail-pl1-f194.google.com with SMTP id s5-v6so3797226plq.11 for ; Tue, 30 Oct 2018 05:02:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=/fZwBH2iVawH1pntIF6WCbMKPZ5JViHWRsqv2E4qUT8=; b=p0mXDtkA4SPwdPj+Oz41y47GdUj4XKHYufcQfmOyXtql1nSauDhak+HSXMbvSHlZD6 vl/eKEy1/zAZeB/h1olmsfNoh/w48cYs+LElVIVQTLYWpQQdEYwUIz8hC5Dhd4jSwpea VebPz1NeUMXsB+pdM+oZUudwlrsl0zxFTeIUqwyZ6LaaCE8gTwvUuE20wgr6GCxpfqrg TACfI+x+eZobCczPsnidUGks2h4zDVESLaNlkWp/UF0uc5kiH/wYtNUMMKwO5gP6JNNV 2l8JvRlIBbRG6aeSSP+3a8/YenCMWk1Bc0qwnCCWxD5Ps64I0nUhG5o1U56xux4Scqgh UeGg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=/fZwBH2iVawH1pntIF6WCbMKPZ5JViHWRsqv2E4qUT8=; b=Wyxr6doBE2G67TD2hY0NUkY5QYczutlD1JBW5F4UommCLDZrKuExvqeM4TuzSd7lqu SJPsrTsvFA1O9GFHvvB3K4YFf1VkoJczCoqFQ2Xzvkqh1ogY/AO5KpxEZY3rqOwNe8+E 3i6EDJI5g4VjDl+6XJWH/CGdjSxeGw29sbjV7mbDScczkXxvHAcZWaCiVXz0lPWAO7dn GeYxrRMRHdVlr5cP8oOiSyPUR1bmOExXKpZJrl324JbbNLmIeqZeXp0x0cf434QOr94/ vY8pfQ9eiTiI3JclTshjK6cpbwoNsKzH0BNF4aUmRKPRo7SekrrZ1Cq2DxT2VSycQ6ma TErA== X-Gm-Message-State: AGRZ1gJ+A1BfnVBfcteXYDcWpW9t2VDonNMR6opmRINBFG4rYG8Ls3tK 9BqYNOl39JHQStryrijTbnI= X-Received: by 2002:a17:902:6b04:: with SMTP id o4-v6mr18726759plk.333.1540900921128; Tue, 30 Oct 2018 05:02:01 -0700 (PDT) Received: from localhost.localdomain ([191.101.9.198]) by smtp.gmail.com with ESMTPSA id s80-v6sm27378369pfa.114.2018.10.30.05.02.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 30 Oct 2018 05:02:00 -0700 (PDT) From: Bo YU To: gregkh@linuxfoundation.org, rafael@kernel.org Cc: linux-kernel@vger.kernel.org, Bo YU Subject: [PATCH 2/3] kobject: Fix warnings in lib/kobject_uevent.c Date: Tue, 30 Oct 2018 08:01:15 -0400 Message-Id: <2783c5cb2226510ba8f7777aaefbd5df9c553bf3.1540886346.git.tsu.yubo@gmail.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add a blank after declaration. Signed-off-by: Bo YU --- lib/kobject_uevent.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c index 402765c3a9cb..27c6118afd1c 100644 --- a/lib/kobject_uevent.c +++ b/lib/kobject_uevent.c @@ -240,6 +240,7 @@ static int kobj_usermode_filter(struct kobject *kobj) ops = kobj_ns_ops(kobj); if (ops) { const void *init_ns, *ns; + ns = kobj->ktype->namespace(kobj); init_ns = ops->initial_ns(); return ns != init_ns; @@ -390,6 +391,7 @@ static int kobject_uevent_net_broadcast(struct kobject *kobj, ops = kobj_ns_ops(kobj); if (!ops && kobj->kset) { struct kobject *ksobj = &kobj->kset->kobj; + if (ksobj->parent != NULL) ops = kobj_ns_ops(ksobj->parent); } -- 2.11.0