git: 40865d8d56f3 - stable/12 - Quiet int-to-pointer-cast warnings on i386 with GCC 9.

From: Kyle Evans <kevans_at_FreeBSD.org>
Date: Fri, 08 Oct 2021 16:09:06 UTC
The branch stable/12 has been updated by kevans:

URL: https://cgit.FreeBSD.org/src/commit/?id=40865d8d56f309d918d94ea28cf9ce9a5f35e6a5

commit 40865d8d56f309d918d94ea28cf9ce9a5f35e6a5
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2020-09-04 00:11:01 +0000
Commit:     Kyle Evans <kevans@FreeBSD.org>
CommitDate: 2021-10-08 08:12:09 +0000

    Quiet int-to-pointer-cast warnings on i386 with GCC 9.
    
    Reviewed by:    emaste
    Differential Revision:  https://reviews.freebsd.org/D26200
    
    (cherry picked from commit 67dc6bed1fc62b740351713e7aa42fe1eae896b6)
---
 stand/efi/loader/copy.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/stand/efi/loader/copy.c b/stand/efi/loader/copy.c
index 6ad673d62897..5a174dbf51e2 100644
--- a/stand/efi/loader/copy.c
+++ b/stand/efi/loader/copy.c
@@ -288,8 +288,8 @@ before_staging:
 		 * translation still works.
 		 */
 		staging_base = addr;
-		memmove((void *)staging_base, (void *)staging,
-		    staging_end - staging);
+		memmove((void *)(uintptr_t)staging_base,
+		    (void *)(uintptr_t)staging, staging_end - staging);
 		stage_offset -= (staging - staging_base);
 		staging = staging_base;
 		return (true);