mirror of
https://github.com/opnsense/src.git
synced 2026-06-04 22:32:43 -04:00
loader/efi: Make gcc friendlier by move md_dev
Move the extern struct devsw md_dev out of the function. gcc is happier with this arrangemnt often. However, we really should move it to a header file, but that requires a bit of a rework of md support and config. Sponsored by: Netflix Reviewed by: manu, tsoome Differential Revision: https://reviews.freebsd.org/D44008
This commit is contained in:
parent
32568e5f24
commit
b2822c40f6
1 changed files with 2 additions and 1 deletions
|
|
@ -278,10 +278,11 @@ probe_zfs_currdev(uint64_t guid)
|
|||
#endif
|
||||
|
||||
#ifdef MD_IMAGE_SIZE
|
||||
extern struct devsw md_dev;
|
||||
|
||||
static bool
|
||||
probe_md_currdev(void)
|
||||
{
|
||||
extern struct devsw md_dev;
|
||||
bool rv;
|
||||
|
||||
set_currdev_devsw(&md_dev, 0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue