CVS commit: src/sys/external/bsd/gnu-efi/dist/lib
Module Name:src Committed By: mrg Date: Mon Apr 12 09:24:25 UTC 2021 Modified Files: src/sys/external/bsd/gnu-efi/dist/lib: misc.c Log Message: avoid uninitialised variable access. make this case like the other 2 around it. To generate a diff of this commit: cvs rdiff -u -r1.1.1.2 -r1.2 src/sys/external/bsd/gnu-efi/dist/lib/misc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/external/bsd/gnu-efi/dist/lib/misc.c diff -u src/sys/external/bsd/gnu-efi/dist/lib/misc.c:1.1.1.2 src/sys/external/bsd/gnu-efi/dist/lib/misc.c:1.2 --- src/sys/external/bsd/gnu-efi/dist/lib/misc.c:1.1.1.2 Thu Aug 16 18:17:47 2018 +++ src/sys/external/bsd/gnu-efi/dist/lib/misc.c Mon Apr 12 09:24:24 2021 @@ -1,4 +1,4 @@ -/* $NetBSD: misc.c,v 1.1.1.2 2018/08/16 18:17:47 jmcneill Exp $ */ +/* $NetBSD: misc.c,v 1.2 2021/04/12 09:24:24 mrg Exp $ */ /*++ @@ -256,6 +256,7 @@ LibGetVariableAndSize ( // Initialize for GrowBuffer loop // +Status = EFI_SUCCESS; Buffer = NULL; BufferSize = 100;
CVS commit: src/sys/external/bsd/gnu-efi/dist/lib
Module Name:src Committed By: oster Date: Sun Jan 27 04:17:39 UTC 2019 Modified Files: src/sys/external/bsd/gnu-efi/dist/lib: print.c Log Message: Fix merge issue. (leftover line) To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/external/bsd/gnu-efi/dist/lib/print.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/external/bsd/gnu-efi/dist/lib/print.c diff -u src/sys/external/bsd/gnu-efi/dist/lib/print.c:1.3 src/sys/external/bsd/gnu-efi/dist/lib/print.c:1.4 --- src/sys/external/bsd/gnu-efi/dist/lib/print.c:1.3 Sun Jan 27 02:08:43 2019 +++ src/sys/external/bsd/gnu-efi/dist/lib/print.c Sun Jan 27 04:17:39 2019 @@ -1,4 +1,4 @@ -/* $NetBSD: print.c,v 1.3 2019/01/27 02:08:43 pgoyette Exp $ */ +/* $NetBSD: print.c,v 1.4 2019/01/27 04:17:39 oster Exp $ */ /*++ @@ -532,7 +532,6 @@ Returns: _PoolCatPrint (fmt, args, , _PoolPrint); return spc.str; } ->>> 1.1.1.1.34.1 CHAR16 * PoolPrint (
CVS commit: src/sys/external/bsd/gnu-efi/dist/lib
Module Name:src Committed By: jmcneill Date: Thu Aug 16 18:25:45 UTC 2018 Modified Files: src/sys/external/bsd/gnu-efi/dist/lib: init.c Log Message: No need for private versions of memset/memcpy on NetBSD To generate a diff of this commit: cvs rdiff -u -r1.1.1.2 -r1.2 src/sys/external/bsd/gnu-efi/dist/lib/init.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/external/bsd/gnu-efi/dist/lib/init.c diff -u src/sys/external/bsd/gnu-efi/dist/lib/init.c:1.1.1.2 src/sys/external/bsd/gnu-efi/dist/lib/init.c:1.2 --- src/sys/external/bsd/gnu-efi/dist/lib/init.c:1.1.1.2 Thu Aug 16 18:17:47 2018 +++ src/sys/external/bsd/gnu-efi/dist/lib/init.c Thu Aug 16 18:25:45 2018 @@ -1,4 +1,4 @@ -/* $NetBSD: init.c,v 1.1.1.2 2018/08/16 18:17:47 jmcneill Exp $ */ +/* $NetBSD: init.c,v 1.2 2018/08/16 18:25:45 jmcneill Exp $ */ /*++ @@ -185,6 +185,7 @@ EFIDebugVariable ( } } +#if !defined(__NetBSD__) /* * Calls to memset/memcpy may be emitted implicitly by GCC or MSVC * even when -ffreestanding or /NODEFAULTLIB are in effect. @@ -214,3 +215,4 @@ void *memcpy(void *dest, const void *src return dest; } +#endif
CVS commit: src/sys/external/bsd/gnu-efi/dist/lib
Module Name:src Committed By: mlelstv Date: Sat Feb 4 18:08:29 UTC 2017 Modified Files: src/sys/external/bsd/gnu-efi/dist/lib: dpath.c event.c hand.c hw.c Log Message: tag variables as __unused to appease compiler. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/sys/external/bsd/gnu-efi/dist/lib/dpath.c \ src/sys/external/bsd/gnu-efi/dist/lib/event.c \ src/sys/external/bsd/gnu-efi/dist/lib/hw.c cvs rdiff -u -r1.2 -r1.3 src/sys/external/bsd/gnu-efi/dist/lib/hand.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/external/bsd/gnu-efi/dist/lib/dpath.c diff -u src/sys/external/bsd/gnu-efi/dist/lib/dpath.c:1.1.1.1 src/sys/external/bsd/gnu-efi/dist/lib/dpath.c:1.2 --- src/sys/external/bsd/gnu-efi/dist/lib/dpath.c:1.1.1.1 Tue Apr 1 16:16:06 2014 +++ src/sys/external/bsd/gnu-efi/dist/lib/dpath.c Sat Feb 4 18:08:29 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: dpath.c,v 1.1.1.1 2014/04/01 16:16:06 jakllsch Exp $ */ +/* $NetBSD: dpath.c,v 1.2 2017/02/04 18:08:29 mlelstv Exp $ */ /*++ @@ -677,7 +677,7 @@ _DevPathIPv4 ( IN VOID *DevPath ) { -IPv4_DEVICE_PATH *IP; +IPv4_DEVICE_PATH *IP __unused; IP = DevPath; CatPrint(Str, L"IPv4(not-done)"); @@ -689,7 +689,7 @@ _DevPathIPv6 ( IN VOID *DevPath ) { -IPv6_DEVICE_PATH *IP; +IPv6_DEVICE_PATH *IP __unused; IP = DevPath; CatPrint(Str, L"IP-v6(not-done)"); @@ -701,7 +701,7 @@ _DevPathInfiniBand ( IN VOID *DevPath ) { -INFINIBAND_DEVICE_PATH *InfiniBand; +INFINIBAND_DEVICE_PATH *InfiniBand __unused; InfiniBand = DevPath; CatPrint(Str, L"InfiniBand(not-done)"); Index: src/sys/external/bsd/gnu-efi/dist/lib/event.c diff -u src/sys/external/bsd/gnu-efi/dist/lib/event.c:1.1.1.1 src/sys/external/bsd/gnu-efi/dist/lib/event.c:1.2 --- src/sys/external/bsd/gnu-efi/dist/lib/event.c:1.1.1.1 Tue Apr 1 16:16:06 2014 +++ src/sys/external/bsd/gnu-efi/dist/lib/event.c Sat Feb 4 18:08:29 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: event.c,v 1.1.1.1 2014/04/01 16:16:06 jakllsch Exp $ */ +/* $NetBSD: event.c,v 1.2 2017/02/04 18:08:29 mlelstv Exp $ */ /*++ @@ -29,7 +29,11 @@ LibCreateProtocolNotifyEvent ( OUT VOID*Registration ) { +#ifdef EFI_DEBUG EFI_STATUS Status; +#else +EFI_STATUS Status __unused; +#endif EFI_EVENT Event; // Index: src/sys/external/bsd/gnu-efi/dist/lib/hw.c diff -u src/sys/external/bsd/gnu-efi/dist/lib/hw.c:1.1.1.1 src/sys/external/bsd/gnu-efi/dist/lib/hw.c:1.2 --- src/sys/external/bsd/gnu-efi/dist/lib/hw.c:1.1.1.1 Tue Apr 1 16:16:06 2014 +++ src/sys/external/bsd/gnu-efi/dist/lib/hw.c Sat Feb 4 18:08:29 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: hw.c,v 1.1.1.1 2014/04/01 16:16:06 jakllsch Exp $ */ +/* $NetBSD: hw.c,v 1.2 2017/02/04 18:08:29 mlelstv Exp $ */ /*++ @@ -78,7 +78,7 @@ ReadPort ( ) { UINT32 Data; -EFI_STATUS Status; +EFI_STATUS Status __unused; Status = uefi_call_wrapper(GlobalIoFncs->Io.Read, 5, GlobalIoFncs, Width, (UINT64)Port, 1, ); ASSERT(!EFI_ERROR(Status)); @@ -93,7 +93,7 @@ WritePort ( IN UINTN Data ) { -EFI_STATUS Status; +EFI_STATUS Status __unused; Status = uefi_call_wrapper(GlobalIoFncs->Io.Write, 5, GlobalIoFncs, Width, (UINT64)Port, 1, ); ASSERT(!EFI_ERROR(Status)); @@ -108,7 +108,7 @@ ReadPciConfig ( ) { UINT32 Data; -EFI_STATUS Status; +EFI_STATUS Status __unused; Status = uefi_call_wrapper(GlobalIoFncs->Pci.Read, 5, GlobalIoFncs, Width, (UINT64)Address, 1, ); ASSERT(!EFI_ERROR(Status)); @@ -123,7 +123,7 @@ WritePciConfig ( IN UINTN Data ) { -EFI_STATUS Status; +EFI_STATUS Status __unused; Status = uefi_call_wrapper(GlobalIoFncs->Pci.Write, 5, GlobalIoFncs, Width, (UINT64)Address, 1, ); ASSERT(!EFI_ERROR(Status)); Index: src/sys/external/bsd/gnu-efi/dist/lib/hand.c diff -u src/sys/external/bsd/gnu-efi/dist/lib/hand.c:1.2 src/sys/external/bsd/gnu-efi/dist/lib/hand.c:1.3 --- src/sys/external/bsd/gnu-efi/dist/lib/hand.c:1.2 Tue Dec 15 12:36:10 2015 +++ src/sys/external/bsd/gnu-efi/dist/lib/hand.c Sat Feb 4 18:08:29 2017 @@ -1,4 +1,4 @@ -/* $NetBSD: hand.c,v 1.2 2015/12/15 12:36:10 christos Exp $ */ +/* $NetBSD: hand.c,v 1.3 2017/02/04 18:08:29 mlelstv Exp $ */ /*++ @@ -119,7 +119,7 @@ LibLocateHandleByDiskSignature ( EFI_HANDLE*BlockIoBuffer; EFI_DEVICE_PATH *DevicePath; UINTN Index; -EFI_DEVICE_PATH *Start, *Next, *DevPath; +EFI_DEVICE_PATH *Start __unused, *Next, *DevPath; HARDDRIVE_DEVICE_PATH *HardDriveDevicePath; BOOLEAN Match; BOOLEAN
CVS commit: src/sys/external/bsd/gnu-efi/dist/lib
Module Name:src Committed By: christos Date: Tue Dec 15 12:36:10 UTC 2015 Modified Files: src/sys/external/bsd/gnu-efi/dist/lib: hand.c Log Message: PR/50561: David Binderman: Add missing va_end calls. To generate a diff of this commit: cvs rdiff -u -r1.1.1.1 -r1.2 src/sys/external/bsd/gnu-efi/dist/lib/hand.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/sys/external/bsd/gnu-efi/dist/lib/hand.c diff -u src/sys/external/bsd/gnu-efi/dist/lib/hand.c:1.1.1.1 src/sys/external/bsd/gnu-efi/dist/lib/hand.c:1.2 --- src/sys/external/bsd/gnu-efi/dist/lib/hand.c:1.1.1.1 Tue Apr 1 12:16:07 2014 +++ src/sys/external/bsd/gnu-efi/dist/lib/hand.c Tue Dec 15 07:36:10 2015 @@ -1,4 +1,4 @@ -/* $NetBSD: hand.c,v 1.1.1.1 2014/04/01 16:16:07 jakllsch Exp $ */ +/* $NetBSD: hand.c,v 1.2 2015/12/15 12:36:10 christos Exp $ */ /*++ @@ -488,6 +488,8 @@ LibInstallProtocolInterfaces ( Index += 1; } +va_end (args); + // // If there was an error, remove all the interfaces that were // installed without any errors @@ -503,6 +505,7 @@ LibInstallProtocolInterfaces ( Index -= 1; } + va_end (args); *Handle = OldHandle; } @@ -551,6 +554,7 @@ LibUninstallProtocolInterfaces ( DEBUG((D_ERROR, "LibUninstallProtocolInterfaces: failed %g, %r\n", Protocol, Handle)); } } +va_end (args); } @@ -607,6 +611,8 @@ LibReinstallProtocolInterfaces ( Index += 1; } +va_end (args); + // // If there was an error, undo all the interfaces that were // reinstalled without any errors @@ -624,6 +630,7 @@ LibReinstallProtocolInterfaces ( Index -= 1; } + va_end (args); } //