lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <a392a0e5-e9f5-7795-d5a6-14a114056f2e@211mainstreet.net>
Date:   Wed, 8 Jan 2020 01:37:58 -0500
From:   Edwin Zimmerman <edwin@...mainstreet.net>
To:     "edwin@...mainstreet.net" <edwin@...mainstreet.net>,
        x86@...nel.org, Matthew Garrett <mjg59@...gle.com>,
        linux-kernel@...r.kernel.org
Cc:     Thomas Gleixner <tglx@...utronix.de>,
        Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
        "H. Peter Anvin" <hpa@...or.com>,
        Junichi Nomura <j-nomura@...jp.nec.com>,
        Erik Schmauss <erik.schmauss@...el.com>,
        Josh Boyer <jwboyer@...hat.com>
Subject: [PATCH] x86/boot: fix cast to pointer compiler warning

Fix cast-to-pointer compiler warning

arch/x86/boot/compressed/acpi.c: In function 'get_acpi_srat_table':
arch/x86/boot/compressed/acpi.c:316:9: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
rsdp = (struct acpi_table_rsdp *)get_cmdline_acpi_rsdp();
                 ^

Fixes: 41fa1ee9c6d6 ("acpi: Ignore acpi_rsdp kernel param when the kernel has been locked down")
Signed-off-by: Edwin Zimmerman <edwin@...mainstreet.net>
---
 arch/x86/boot/compressed/acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/x86/boot/compressed/acpi.c b/arch/x86/boot/compressed/acpi.c
index 25019d42ae93..5d2568066d58 100644
--- a/arch/x86/boot/compressed/acpi.c
+++ b/arch/x86/boot/compressed/acpi.c
@@ -313,7 +313,7 @@ static unsigned long get_acpi_srat_table(void)
      * stash this in boot params because the kernel itself may have
      * different ideas about whether to trust a command-line parameter.
      */
-    rsdp = (struct acpi_table_rsdp *)get_cmdline_acpi_rsdp();
+    rsdp = (struct acpi_table_rsdp *)(long)get_cmdline_acpi_rsdp();
 
     if (!rsdp)
         rsdp = (struct acpi_table_rsdp *)(long)

-- 
2.17.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ