]> git.karo-electronics.de Git - karo-tx-linux.git/commit
MIPS: sibyte: Declare the cfe_write() buffer as constant
authorMarkos Chandras <markos.chandras@imgtec.com>
Mon, 17 Jun 2013 13:00:36 +0000 (13:00 +0000)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 18 Jun 2013 19:26:57 +0000 (21:26 +0200)
commitf06db49bb53b035277eda27a6a1237666927efc9
tree8854bd9329bbcd69019774b232427be9fda31844
parent32926d1cc2bddd961b913ff31d49a6bf35ac4839
MIPS: sibyte: Declare the cfe_write() buffer as constant

The write() prototype expects a const char * as argument so declare
it as such.

Fixes the following build problem:

arch/mips/sibyte/common/cfe_console.c:23:5: error: passing argument 2 of
'cfe_write' discards 'const' qualifier from pointer target type [-Werror]
arch/mips/sibyte/common/cfe_console.c:34:4: error: passing argument 2 of
'cfe_write' makes pointer from integer without a cast [-Werror]

Signed-off-by: Markos Chandras <markos.chandras@imgtec.com>
Acked-by: Steven J. Hill <Steven.Hill@imgtec.com>
Cc: sibyte-users@bitmover.com
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/5485/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/fw/cfe/cfe_api.c
arch/mips/include/asm/fw/cfe/cfe_api.h