From patchwork Tue Jun 20 22:02:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Frank Rowand X-Patchwork-Id: 778519 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wshmx6xTQz9s0m for ; Wed, 21 Jun 2017 08:08:17 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="kv+OYafX"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3wshmx5rJczDqhy for ; Wed, 21 Jun 2017 08:08:17 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="kv+OYafX"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-pf0-x242.google.com (mail-pf0-x242.google.com [IPv6:2607:f8b0:400e:c00::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3wshgV2JLtzDqhp for ; Wed, 21 Jun 2017 08:03:34 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="kv+OYafX"; dkim-atps=neutral Received: by mail-pf0-x242.google.com with SMTP id y7so26163432pfd.3 for ; Tue, 20 Jun 2017 15:03:34 -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; bh=iRR07KUeS1PTSdlhl0WQezj+eICVXCqRQFVOA/zSkso=; b=kv+OYafXrir7psSDXx0NwCceXGzL3gxkdwitrrecn7MrPtHEIRM8m2VIezapr/wzaN 92Um8VMpovrksyshg9m8cg0SeyaRmdl00++ltf9yZkcLUmL2sBZA+5wR880oqD7sSR/z RK5SKuO1e/+/GOgiKUw/edHjJ3IRRXuC2qtGq3Qke6dzvyGVC6TeIZE6CrUqH4z53b3e WR/kA6UsqXIv09UHNBq5kw/cBoj1cLaYlyE2LNsfjDIXGllOCbrYZbMfSgVLkzSJo9V1 PZSjRntBWM4dqA618AhDeZpslFWQ4jY3CS2QAbsNPgC/UwEohB25X4DamaEX+Qr2mcyk 351w== 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; bh=iRR07KUeS1PTSdlhl0WQezj+eICVXCqRQFVOA/zSkso=; b=FAUdBW7kAZiJ6FQcd1rNufIXjuPwHtL5mvvf2FVGSCkpucFivDx3Z2zobfcIXsveBz iWsgsOMeqXHZgRBk2rAnH/0WFyR/A2lwvwRQzmW51gjhGVslhM29Cb13M3/rZ/8A1nPz zf1AOyROPAFw6xw8eLxmDaFWALZafXFO0NSmgQ9zMw7pGnYohiYAra+beaWRcVqP7XmU MN+fEire6pjZ2kdMJfiVXk/CXN2uOpLUtjgDEsCXiCVimODbjw5WcrN5bQGk5SMJSgQB PzIJmMJ0Vt1m2yKpc9kieBkrh9zRhuvrscVpVgamzjy/6IEnbEuILDsVRfoLm9hDcGLh 4irQ== X-Gm-Message-State: AKS2vOwj72XWnuSXeDvVeNhNk9jZ578cOOBP3SaH89PQrmbb+YQbs0L2 po1ZMFpkLuO9MQ== X-Received: by 10.98.204.71 with SMTP id a68mr32651641pfg.59.1497996212628; Tue, 20 Jun 2017 15:03:32 -0700 (PDT) Received: from localhost.localdomain (c-73-93-215-6.hsd1.ca.comcast.net. [73.93.215.6]) by smtp.gmail.com with ESMTPSA id c66sm25979462pfl.81.2017.06.20.15.03.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 20 Jun 2017 15:03:31 -0700 (PDT) From: frowand.list@gmail.com To: Rob Herring Subject: [PATCH v6 2/4] of: make __of_attach_node() static Date: Tue, 20 Jun 2017 15:02:50 -0700 Message-Id: <1497996172-821-3-git-send-email-frowand.list@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1497996172-821-1-git-send-email-frowand.list@gmail.com> References: <1497996172-821-1-git-send-email-frowand.list@gmail.com> X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" From: Frank Rowand __of_attach_node() is not used outside of drivers/of/dynamic.c. Make it static and remove it from drivers/of/of_private.h. Signed-off-by: Frank Rowand Reviewed-by: Stephen Boyd --- drivers/of/dynamic.c | 2 +- drivers/of/of_private.h | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/of/dynamic.c b/drivers/of/dynamic.c index be320082178f..3367ed2da9ad 100644 --- a/drivers/of/dynamic.c +++ b/drivers/of/dynamic.c @@ -216,7 +216,7 @@ int of_property_notify(int action, struct device_node *np, return of_reconfig_notify(action, &pr); } -void __of_attach_node(struct device_node *np) +static void __of_attach_node(struct device_node *np) { np->child = NULL; np->sibling = np->parent->child; diff --git a/drivers/of/of_private.h b/drivers/of/of_private.h index 1a041411b219..73da291a51cd 100644 --- a/drivers/of/of_private.h +++ b/drivers/of/of_private.h @@ -91,7 +91,6 @@ extern int __of_update_property(struct device_node *np, extern void __of_update_property_sysfs(struct device_node *np, struct property *newprop, struct property *oldprop); -extern void __of_attach_node(struct device_node *np); extern int __of_attach_node_sysfs(struct device_node *np); extern void __of_detach_node(struct device_node *np); extern void __of_detach_node_sysfs(struct device_node *np);