]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
powerpc/hvsi: Fix endianness issues in the HVSI driver
authorLaurent Dufour <ldufour@linux.vnet.ibm.com>
Fri, 31 Jul 2015 09:29:50 +0000 (11:29 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 20 Aug 2015 08:19:08 +0000 (18:19 +1000)
commit480798044eb268a31f6b84bc3b7f99b9989e463d
tree76eae8f4a721e705dcbf48c52d7c7327454ec3b5
parent84ad6e5cd3e8b365c893f31787864cae5500610b
powerpc/hvsi: Fix endianness issues in the HVSI driver

This patch fixes several endianness issues detected when running the HVSI
driver in little endian mode.

These issues are raised in little endian mode because the data exchanged in
memory between the kernel and the hypervisor has to be in big endian
format. This exhibits as errors such as:

  irq: (null) didn't like hwirq-0x1000a00 to VIRQ16 mapping (rc=-22)
  hvsi_console_init: couldn't create irq mapping for 0x1000a00

The data structures already have endian annotations, and sparse is
generating numerous warnings based on those. This commit fixes all of
them.

Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
CC: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
CC: Jiri Slaby <jslaby@suse.cz>
CC: linuxppc-dev@lists.ozlabs.org
CC: linux-kernel@vger.kernel.org
[mpe: Flesh out change log]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/tty/hvc/hvsi.c