svn commit: r323428 - head/sys/boot/efi/loader

Toomas Soome tsoome at FreeBSD.org
Mon Sep 11 07:38:54 UTC 2017


Author: tsoome
Date: Mon Sep 11 07:38:53 2017
New Revision: 323428
URL: https://svnweb.freebsd.org/changeset/base/323428

Log:
  r323389 breaks the kernel build when WITHOUT_ZFS is defined in src.conf
  
  Need to add #ifdef EFI_ZFS_BOOT guard into efi/loader/main.c
  
  PR:		222215
  Reported by:	Sylvain Garrigues

Modified:
  head/sys/boot/efi/loader/main.c

Modified: head/sys/boot/efi/loader/main.c
==============================================================================
--- head/sys/boot/efi/loader/main.c	Mon Sep 11 07:24:56 2017	(r323427)
+++ head/sys/boot/efi/loader/main.c	Mon Sep 11 07:38:53 2017	(r323428)
@@ -872,16 +872,20 @@ command_chain(int argc, char *argv[])
 	}
 
 	if (efi_getdev((void **)&dev, name, (const char **)&path) == 0) {
+#ifdef EFI_ZFS_BOOT
 		struct zfs_devdesc *z_dev;
+#endif
 		struct disk_devdesc *d_dev;
 		pdinfo_t *hd, *pd;
 
 		switch (dev->d_type) {
+#ifdef EFI_ZFS_BOOT
 		case DEVT_ZFS:
 			z_dev = (struct zfs_devdesc *)dev;
 			loaded_image->DeviceHandle =
 			    efizfs_get_handle_by_guid(z_dev->pool_guid);
 			break;
+#endif
 		case DEVT_NET:
 			loaded_image->DeviceHandle =
 			    efi_find_handle(dev->d_dev, dev->d_unit);


More information about the svn-src-head mailing list