kernel: don't declare array size of disk buffers in headers
authorAlan Cox <alan@linux.intel.com>
Fri, 13 Jul 2018 14:23:11 +0000 (15:23 +0100)
committerAlan 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

index f573d69..0a3bc88 100644 (file)
@@ -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