]> www.infradead.org Git - users/willy/xarray.git/commit
x86/EISA: Dereference memory directly instead of using readl()
authorMaciej W. Rozycki <macro@orcam.me.uk>
Mon, 26 Aug 2024 09:21:47 +0000 (10:21 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 29 Aug 2024 13:57:09 +0000 (15:57 +0200)
commita678164aadbf68d80f7ab79b8bd5cfe3711e42fa
treebde41773f514a5fb66043177ebcac9d0ed348c6c
parentcc5e03f3be3154f860c9d08b2ac8c139863e1515
x86/EISA: Dereference memory directly instead of using readl()

Sparse expect an __iomem pointer, but after converting the EISA probe to
memremap() the pointer is a regular memory pointer. Access it directly
instead.

[ tglx: Converted it to fix the already applied version  ]

Fixes: 80a4da05642c ("x86/EISA: Use memremap() to probe for the EISA BIOS signature")
Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/alpine.DEB.2.21.2408261015270.30766@angie.orcam.me.uk
arch/x86/kernel/eisa.c