video: fbdev: controlfb: Fix build for COMPILE_TEST=y && PPC_PMAC=n
authorMichael Ellerman <mpe@ellerman.id.au>
Fri, 21 Aug 2020 10:49:10 +0000 (20:49 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Sep 2020 09:29:29 +0000 (11:29 +0200)
commita5d6a17faf199bd5dafe6f3572576ac153c02a27
tree9f4d86f7dbeac30d053677dde8e52c72a3fc39d4
parent7fee32de555b68dd6173e7fc0ecc6b5b8d7089d8
video: fbdev: controlfb: Fix build for COMPILE_TEST=y && PPC_PMAC=n

[ Upstream commit 4d618b9f3fcab84e9ec28c180de46fb2c929d096 ]

The build is currently broken, if COMPILE_TEST=y and PPC_PMAC=n:

  linux/drivers/video/fbdev/controlfb.c: In function ‘control_set_hardware’:
  linux/drivers/video/fbdev/controlfb.c:276:2: error: implicit declaration of function ‘btext_update_display’
    276 |  btext_update_display(p->frame_buffer_phys + CTRLFB_OFF,
        |  ^~~~~~~~~~~~~~~~~~~~

Fix it by including btext.h whenever CONFIG_BOOTX_TEXT is enabled.

Fixes: a07a63b0e24d ("video: fbdev: controlfb: add COMPILE_TEST support")
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Acked-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://lore.kernel.org/r/20200821104910.3363818-1-mpe@ellerman.id.au
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/video/fbdev/controlfb.c