fbdev: mx3fb: avoid warning about psABI change
authorArnd Bergmann <arnd@arndb.de>
Wed, 8 Apr 2020 16:25:38 +0000 (18:25 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Wed, 8 Apr 2020 17:17:11 +0000 (19:17 +0200)
commit3f6c93ec9254b387ad7f8706c32c9d529ac9796e
tree043eac774c561746a3b642503d2b7505ede7a1a5
parent1aed9509b29a6a3989f981247efaed422d89a010
fbdev: mx3fb: avoid warning about psABI change

The arm64 gcc-9 release warns about a change in the calling
conventions:

drivers/video/fbdev/mx3fb.c: In function 'sdc_init_panel':
drivers/video/fbdev/mx3fb.c:506:12: note: parameter passing for argument of type 'struct ipu_di_signal_cfg' changed in GCC 9.1
  506 | static int sdc_init_panel(struct mx3fb_data *mx3fb, enum ipu_panel panel,
      |            ^~~~~~~~~~~~~~
drivers/video/fbdev/mx3fb.c: In function '__set_par':
drivers/video/fbdev/mx3fb.c:848:7: note: parameter passing for argument of type 'struct ipu_di_signal_cfg' changed in GCC 9.1

Change the file to just pass the struct by reference, which is
unambiguous and avoids the warning.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20200408162551.3928330-1-arnd@arndb.de
drivers/video/fbdev/mx3fb.c