Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Nov 2016 13:57:21 +0000 (UTC)
From:      Andrew Turner <andrew@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r308830 - head/sys/dev/fdt
Message-ID:  <201611191357.uAJDvLBP084988@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: andrew
Date: Sat Nov 19 13:57:21 2016
New Revision: 308830
URL: https://svnweb.freebsd.org/changeset/base/308830

Log:
  Make fdt_is_compatible a static function. It's only used in fdt_common.c.
  
  Sponsored by:	ABT Systems Ltd

Modified:
  head/sys/dev/fdt/fdt_common.c
  head/sys/dev/fdt/fdt_common.h

Modified: head/sys/dev/fdt/fdt_common.c
==============================================================================
--- head/sys/dev/fdt/fdt_common.c	Sat Nov 19 13:32:01 2016	(r308829)
+++ head/sys/dev/fdt/fdt_common.c	Sat Nov 19 13:57:21 2016	(r308830)
@@ -69,6 +69,8 @@ vm_offset_t fdt_immr_size;
 
 struct fdt_ic_list fdt_ic_list_head = SLIST_HEAD_INITIALIZER(fdt_ic_list_head);
 
+static int fdt_is_compatible(phandle_t, const char *);
+
 static int
 fdt_get_range_by_busaddr(phandle_t node, u_long addr, u_long *base,
     u_long *size)
@@ -242,7 +244,7 @@ moveon:
  * Note the buffer has to be on the stack since malloc() is usually not
  * available in such cases either.
  */
-int
+static int
 fdt_is_compatible(phandle_t node, const char *compatstr)
 {
 	char buf[FDT_COMPAT_LEN];

Modified: head/sys/dev/fdt/fdt_common.h
==============================================================================
--- head/sys/dev/fdt/fdt_common.h	Sat Nov 19 13:32:01 2016	(r308829)
+++ head/sys/dev/fdt/fdt_common.h	Sat Nov 19 13:57:21 2016	(r308830)
@@ -94,7 +94,6 @@ int fdt_get_phyaddr(phandle_t, device_t,
 int fdt_get_range(phandle_t, int, u_long *, u_long *);
 int fdt_immr_addr(vm_offset_t);
 int fdt_regsize(phandle_t, u_long *, u_long *);
-int fdt_is_compatible(phandle_t, const char *);
 int fdt_is_compatible_strict(phandle_t, const char *);
 int fdt_is_enabled(phandle_t);
 int fdt_pm_is_enabled(phandle_t);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201611191357.uAJDvLBP084988>