Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Jul 2018 16:55:29 +0000 (UTC)
From:      Ian Lepore <ian@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r336869 - head/sys/dev/flash
Message-ID:  <201807291655.w6TGtTGh064110@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ian
Date: Sun Jul 29 16:55:28 2018
New Revision: 336869
URL: https://svnweb.freebsd.org/changeset/base/336869

Log:
  The device ID tables are used only within the driver, make them static so
  that both of these drivers can exist in the same kernel.

Modified:
  head/sys/dev/flash/mx25l.c
  head/sys/dev/flash/n25q.c

Modified: head/sys/dev/flash/mx25l.c
==============================================================================
--- head/sys/dev/flash/mx25l.c	Sun Jul 29 12:41:56 2018	(r336868)
+++ head/sys/dev/flash/mx25l.c	Sun Jul 29 16:55:28 2018	(r336869)
@@ -116,7 +116,7 @@ static void mx25l_strategy(struct bio *bp);
 static int mx25l_getattr(struct bio *bp);
 static void mx25l_task(void *arg);
 
-struct mx25l_flash_ident flash_devices[] = {
+static struct mx25l_flash_ident flash_devices[] = {
 	{ "en25f32",	0x1c, 0x3116, 64 * 1024, 64, FL_NONE },
 	{ "en25p32",	0x1c, 0x2016, 64 * 1024, 64, FL_NONE },
 	{ "en25p64",	0x1c, 0x2017, 64 * 1024, 128, FL_NONE },

Modified: head/sys/dev/flash/n25q.c
==============================================================================
--- head/sys/dev/flash/n25q.c	Sun Jul 29 12:41:56 2018	(r336868)
+++ head/sys/dev/flash/n25q.c	Sun Jul 29 16:55:28 2018	(r336869)
@@ -139,7 +139,7 @@ static void n25q_strategy(struct bio *bp);
 static int n25q_getattr(struct bio *bp);
 static void n25q_task(void *arg);
 
-struct n25q_flash_ident flash_devices[] = {
+static struct n25q_flash_ident flash_devices[] = {
 	{ "n25q00", 0x20, 0xbb21, (64 * 1024), 2048, FL_ENABLE_4B_ADDR},
 };
 



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