Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/arm efi_rtcopy is only used on little endian ke...



details:   https://anonhg.NetBSD.org/src/rev/b497b92400be
branches:  trunk
changeset: 364659:b497b92400be
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Apr 03 09:49:36 2022 +0000

description:
efi_rtcopy is only used on little endian kernels.

diffstat:

 sys/arch/arm/arm/efi_runtime.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (28 lines):

diff -r 026e6915eb67 -r b497b92400be sys/arch/arm/arm/efi_runtime.c
--- a/sys/arch/arm/arm/efi_runtime.c    Sun Apr 03 09:34:45 2022 +0000
+++ b/sys/arch/arm/arm/efi_runtime.c    Sun Apr 03 09:49:36 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: efi_runtime.c,v 1.7 2022/04/02 11:16:06 skrll Exp $ */
+/* $NetBSD: efi_runtime.c,v 1.8 2022/04/03 09:49:36 martin Exp $ */
 
 /*-
  * Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
 #include "efi.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: efi_runtime.c,v 1.7 2022/04/02 11:16:06 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: efi_runtime.c,v 1.8 2022/04/03 09:49:36 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/mutex.h>
@@ -55,7 +55,9 @@
 
 static kmutex_t efi_lock;
 static struct efi_rt *RT;
+#if BYTE_ORDER == LITTLE_ENDIAN
 static struct efi_rt efi_rtcopy;
+#endif
 
 #if NEFI > 0 && BYTE_ORDER == LITTLE_ENDIAN
 static struct efi_ops arm_efi_ops = {



Home | Main Index | Thread Index | Old Index