Define __dmadat after #include'ing ufsread.c.
The __dmadat variable is a statically allocated I/O buffer. The type is declared in the ufsread.c source file and clang warns if a variable is defined before it's type is declared. Sponsored by: DARPA / AFRL
This commit is contained in:
parent
8b0a00b745
commit
9433594417
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=327703
@ -118,8 +118,6 @@ static const unsigned char flags[NOPT] = {
|
||||
static const char *const dev_nm[] = {"dram", "cfi", "sdcard"};
|
||||
static const u_int dev_nm_count = nitems(dev_nm);
|
||||
|
||||
static struct dmadat __dmadat;
|
||||
|
||||
static struct dsk {
|
||||
unsigned type; /* BOOTINFO_DEV_TYPE_x object type. */
|
||||
uintptr_t unitptr; /* Unit number or pointer to object. */
|
||||
@ -149,10 +147,11 @@ static int dskread(void *, unsigned, unsigned);
|
||||
static int xputc(int);
|
||||
static int xgetc(int);
|
||||
|
||||
|
||||
#define UFS_SMALL_CGBASE
|
||||
#include "ufsread.c"
|
||||
|
||||
static struct dmadat __dmadat;
|
||||
|
||||
static inline int
|
||||
xfsread(ufs_ino_t inode, void *buf, size_t nbyte)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user