public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcee768
)
kernel: don't declare array size of disk buffers in headers
author
Alan Cox
<alan@linux.intel.com>
Fri, 13 Jul 2018 14:23:11 +0000
(15:23 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Fri, 13 Jul 2018 14:23:11 +0000
(15:23 +0100)
Some platforms resize it later so it's misleading and we don't want someone
using sizeof() where they shouldn't
Kernel/include/kdata.h
patch
|
blob
|
history
diff --git
a/Kernel/include/kdata.h
b/Kernel/include/kdata.h
index
f573d69
..
0a3bc88
100644
(file)
--- a/
Kernel/include/kdata.h
+++ b/
Kernel/include/kdata.h
@@
-23,7
+23,7
@@
extern inoptr root; /* Address of root dir in inode table */
extern uint16_t root_dev; /* Device number of root filesystem. */
extern uint16_t swap_dev; /* Device number used for swap */
-extern struct blkbuf bufpool[
NBUFS
];
+extern struct blkbuf bufpool[];
#ifndef CONFIG_DYNAMIC_BUFPOOL
#define bufpool_end (bufpool + NBUFS) /* Define so its a compile time const */
#else