* [linuxtv-media:master 167/254] drivers/video/fbdev//omap2/omapfb/dss/overlay.c:41:5: error: redefinition of 'omap_dss_get_num_overlays'
@ 2018-05-05 14:32 kbuild test robot
0 siblings, 0 replies; only message in thread
From: kbuild test robot @ 2018-05-05 14:32 UTC (permalink / raw)
To: Mauro Carvalho Chehab; +Cc: kbuild-all, linux-media
[-- Attachment #1: Type: text/plain, Size: 17568 bytes --]
tree: git://linuxtv.org/media_tree.git master
head: 8d718e5376c602dfd41b599dcc2a7b1be07c7b6b
commit: 771f7be87ff921e9a3d744febd606af39a150e14 [167/254] media: omapfb: omapfb_dss.h: add stubs to build with COMPILE_TEST && DRM_OMAP
config: sh-allmodconfig (attached as .config)
compiler: sh4-linux-gnu-gcc (Debian 7.2.0-11) 7.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout 771f7be87ff921e9a3d744febd606af39a150e14
# save the attached .config to linux build tree
make.cross ARCH=sh
All errors (new ones prefixed by >>):
>> drivers/video/fbdev//omap2/omapfb/dss/overlay.c:41:5: error: redefinition of 'omap_dss_get_num_overlays'
int omap_dss_get_num_overlays(void)
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/video/fbdev//omap2/omapfb/dss/overlay.c:33:0:
include/video/omapfb_dss.h:900:19: note: previous definition of 'omap_dss_get_num_overlays' was here
static inline int omap_dss_get_num_overlays(void)
^~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/video/fbdev//omap2/omapfb/dss/overlay.c:47:22: error: redefinition of 'omap_dss_get_overlay'
struct omap_overlay *omap_dss_get_overlay(int num)
^~~~~~~~~~~~~~~~~~~~
In file included from drivers/video/fbdev//omap2/omapfb/dss/overlay.c:33:0:
include/video/omapfb_dss.h:903:36: note: previous definition of 'omap_dss_get_overlay' was here
static inline struct omap_overlay *omap_dss_get_overlay(int num)
^~~~~~~~~~~~~~~~~~~~
drivers/video/fbdev//omap2/omapfb/dss/overlay.c: In function 'dss_init_overlays':
>> drivers/video/fbdev//omap2/omapfb/dss/overlay.c:60:17: error: implicit declaration of function 'dss_feat_get_num_ovls'; did you mean 'dss_feat_get_reg_field'? [-Werror=implicit-function-declaration]
num_overlays = dss_feat_get_num_ovls();
^~~~~~~~~~~~~~~~~~~~~
dss_feat_get_reg_field
drivers/video/fbdev//omap2/omapfb/dss/overlay.c:91:4: error: implicit declaration of function 'dss_feat_get_supported_color_modes'; did you mean 'dss_feat_get_supported_outputs'? [-Werror=implicit-function-declaration]
dss_feat_get_supported_color_modes(ovl->id);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
dss_feat_get_supported_outputs
cc1: some warnings being treated as errors
--
drivers/video/fbdev//omap2/omapfb/dss/apply.c: In function 'apply_init_priv':
>> drivers/video/fbdev//omap2/omapfb/dss/apply.c:141:23: error: implicit declaration of function 'dss_feat_get_num_ovls'; did you mean 'dss_feat_get_reg_field'? [-Werror=implicit-function-declaration]
const int num_ovls = dss_feat_get_num_ovls();
^~~~~~~~~~~~~~~~~~~~~
dss_feat_get_reg_field
drivers/video/fbdev//omap2/omapfb/dss/apply.c: In function 'need_isr':
>> drivers/video/fbdev//omap2/omapfb/dss/apply.c:264:23: error: implicit declaration of function 'dss_feat_get_num_mgrs'; did you mean 'dss_feat_get_param_max'? [-Werror=implicit-function-declaration]
const int num_mgrs = dss_feat_get_num_mgrs();
^~~~~~~~~~~~~~~~~~~~~
dss_feat_get_param_max
drivers/video/fbdev//omap2/omapfb/dss/apply.c: At top level:
drivers/video/fbdev//omap2/omapfb/dss/apply.c:1598:5: error: redefinition of 'omapdss_compat_init'
int omapdss_compat_init(void)
^~~~~~~~~~~~~~~~~~~
In file included from drivers/video/fbdev//omap2/omapfb/dss/apply.c:26:0:
include/video/omapfb_dss.h:889:19: note: previous definition of 'omapdss_compat_init' was here
static inline int omapdss_compat_init(void)
^~~~~~~~~~~~~~~~~~~
drivers/video/fbdev//omap2/omapfb/dss/apply.c:1682:6: error: redefinition of 'omapdss_compat_uninit'
void omapdss_compat_uninit(void)
^~~~~~~~~~~~~~~~~~~~~
In file included from drivers/video/fbdev//omap2/omapfb/dss/apply.c:26:0:
include/video/omapfb_dss.h:892:20: note: previous definition of 'omapdss_compat_uninit' was here
static inline void omapdss_compat_uninit(void) {};
^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
--
drivers/video/fbdev//omap2/omapfb/dss/dpi.c: In function 'dpi_connect':
drivers/video/fbdev//omap2/omapfb/dss/dpi.c:680:6: error: implicit declaration of function 'omapdss_output_set_device'; did you mean 'omap_dss_put_device'? [-Werror=implicit-function-declaration]
r = omapdss_output_set_device(dssdev, dst);
^~~~~~~~~~~~~~~~~~~~~~~~~
omap_dss_put_device
drivers/video/fbdev//omap2/omapfb/dss/dpi.c: In function 'dpi_disconnect':
drivers/video/fbdev//omap2/omapfb/dss/dpi.c:699:2: error: implicit declaration of function 'omapdss_output_unset_device'; did you mean 'omap_dss_get_next_device'? [-Werror=implicit-function-declaration]
omapdss_output_unset_device(dssdev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
omap_dss_get_next_device
drivers/video/fbdev//omap2/omapfb/dss/dpi.c: In function 'dpi_init_output':
drivers/video/fbdev//omap2/omapfb/dss/dpi.c:732:2: error: implicit declaration of function 'omapdss_register_output'; did you mean 'omap_dispc_register_isr'? [-Werror=implicit-function-declaration]
omapdss_register_output(out);
^~~~~~~~~~~~~~~~~~~~~~~
omap_dispc_register_isr
drivers/video/fbdev//omap2/omapfb/dss/dpi.c: In function 'dpi_uninit_output':
>> drivers/video/fbdev//omap2/omapfb/dss/dpi.c:740:2: error: implicit declaration of function 'omapdss_unregister_output'; did you mean 'omap_dispc_unregister_isr'? [-Werror=implicit-function-declaration]
omapdss_unregister_output(out);
^~~~~~~~~~~~~~~~~~~~~~~~~
omap_dispc_unregister_isr
drivers/video/fbdev//omap2/omapfb/dss/dpi.c: In function 'dpi_init_port':
drivers/video/fbdev//omap2/omapfb/dss/dpi.c:860:7: error: implicit declaration of function 'omapdss_of_get_next_endpoint'; did you mean 'omap_dss_get_next_device'? [-Werror=implicit-function-declaration]
ep = omapdss_of_get_next_endpoint(port, NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
omap_dss_get_next_device
drivers/video/fbdev//omap2/omapfb/dss/dpi.c:860:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
ep = omapdss_of_get_next_endpoint(port, NULL);
^
cc1: some warnings being treated as errors
--
drivers/video/fbdev//omap2/omapfb/dss/venc.c: In function 'venc_connect':
>> drivers/video/fbdev//omap2/omapfb/dss/venc.c:748:6: error: implicit declaration of function 'omapdss_output_set_device'; did you mean 'omap_dss_put_device'? [-Werror=implicit-function-declaration]
r = omapdss_output_set_device(dssdev, dst);
^~~~~~~~~~~~~~~~~~~~~~~~~
omap_dss_put_device
drivers/video/fbdev//omap2/omapfb/dss/venc.c: In function 'venc_disconnect':
drivers/video/fbdev//omap2/omapfb/dss/venc.c:767:2: error: implicit declaration of function 'omapdss_output_unset_device'; did you mean 'omap_dss_get_next_device'? [-Werror=implicit-function-declaration]
omapdss_output_unset_device(dssdev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
omap_dss_get_next_device
drivers/video/fbdev//omap2/omapfb/dss/venc.c: In function 'venc_init_output':
drivers/video/fbdev//omap2/omapfb/dss/venc.c:803:2: error: implicit declaration of function 'omapdss_register_output'; did you mean 'omap_dispc_register_isr'? [-Werror=implicit-function-declaration]
omapdss_register_output(out);
^~~~~~~~~~~~~~~~~~~~~~~
omap_dispc_register_isr
drivers/video/fbdev//omap2/omapfb/dss/venc.c: In function 'venc_uninit_output':
>> drivers/video/fbdev//omap2/omapfb/dss/venc.c:810:2: error: implicit declaration of function 'omapdss_unregister_output'; did you mean 'omap_dispc_unregister_isr'? [-Werror=implicit-function-declaration]
omapdss_unregister_output(out);
^~~~~~~~~~~~~~~~~~~~~~~~~
omap_dispc_unregister_isr
drivers/video/fbdev//omap2/omapfb/dss/venc.c: In function 'venc_probe_of':
drivers/video/fbdev//omap2/omapfb/dss/venc.c:820:7: error: implicit declaration of function 'omapdss_of_get_first_endpoint'; did you mean 'omapdss_get_version'? [-Werror=implicit-function-declaration]
ep = omapdss_of_get_first_endpoint(node);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
omapdss_get_version
drivers/video/fbdev//omap2/omapfb/dss/venc.c:820:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
ep = omapdss_of_get_first_endpoint(node);
^
cc1: some warnings being treated as errors
--
drivers/video/fbdev//omap2/omapfb/dss/sdi.c: In function 'sdi_connect':
drivers/video/fbdev//omap2/omapfb/dss/sdi.c:298:6: error: implicit declaration of function 'omapdss_output_set_device'; did you mean 'omap_dss_put_device'? [-Werror=implicit-function-declaration]
r = omapdss_output_set_device(dssdev, dst);
^~~~~~~~~~~~~~~~~~~~~~~~~
omap_dss_put_device
drivers/video/fbdev//omap2/omapfb/dss/sdi.c: In function 'sdi_disconnect':
drivers/video/fbdev//omap2/omapfb/dss/sdi.c:317:2: error: implicit declaration of function 'omapdss_output_unset_device'; did you mean 'omap_dss_get_next_device'? [-Werror=implicit-function-declaration]
omapdss_output_unset_device(dssdev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
omap_dss_get_next_device
drivers/video/fbdev//omap2/omapfb/dss/sdi.c: In function 'sdi_init_output':
drivers/video/fbdev//omap2/omapfb/dss/sdi.c:351:2: error: implicit declaration of function 'omapdss_register_output'; did you mean 'omap_dispc_register_isr'? [-Werror=implicit-function-declaration]
omapdss_register_output(out);
^~~~~~~~~~~~~~~~~~~~~~~
omap_dispc_register_isr
drivers/video/fbdev//omap2/omapfb/dss/sdi.c: In function 'sdi_uninit_output':
>> drivers/video/fbdev//omap2/omapfb/dss/sdi.c:358:2: error: implicit declaration of function 'omapdss_unregister_output'; did you mean 'omap_dispc_unregister_isr'? [-Werror=implicit-function-declaration]
omapdss_unregister_output(out);
^~~~~~~~~~~~~~~~~~~~~~~~~
omap_dispc_unregister_isr
drivers/video/fbdev//omap2/omapfb/dss/sdi.c: In function 'sdi_init_port':
>> drivers/video/fbdev//omap2/omapfb/dss/sdi.c:420:7: error: implicit declaration of function 'omapdss_of_get_next_endpoint'; did you mean 'omap_dss_get_next_device'? [-Werror=implicit-function-declaration]
ep = omapdss_of_get_next_endpoint(port, NULL);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
omap_dss_get_next_device
drivers/video/fbdev//omap2/omapfb/dss/sdi.c:420:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
ep = omapdss_of_get_next_endpoint(port, NULL);
^
cc1: some warnings being treated as errors
--
drivers/video/fbdev//omap2/omapfb/dss/dsi.c: In function 'dsi_get_dsidev_from_id':
>> drivers/video/fbdev//omap2/omapfb/dss/dsi.c:437:8: error: implicit declaration of function 'omap_dss_get_output'; did you mean 'omap_dss_get_overlay'? [-Werror=implicit-function-declaration]
out = omap_dss_get_output(id);
^~~~~~~~~~~~~~~~~~~
omap_dss_get_overlay
drivers/video/fbdev//omap2/omapfb/dss/dsi.c:437:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
out = omap_dss_get_output(id);
^
drivers/video/fbdev//omap2/omapfb/dss/dsi.c: In function 'dsi_connect':
drivers/video/fbdev//omap2/omapfb/dss/dsi.c:4991:6: error: implicit declaration of function 'omapdss_output_set_device'; did you mean 'omap_dss_put_device'? [-Werror=implicit-function-declaration]
r = omapdss_output_set_device(dssdev, dst);
^~~~~~~~~~~~~~~~~~~~~~~~~
omap_dss_put_device
drivers/video/fbdev//omap2/omapfb/dss/dsi.c: In function 'dsi_disconnect':
drivers/video/fbdev//omap2/omapfb/dss/dsi.c:5010:2: error: implicit declaration of function 'omapdss_output_unset_device'; did you mean 'omap_dss_get_next_device'? [-Werror=implicit-function-declaration]
omapdss_output_unset_device(dssdev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
omap_dss_get_next_device
drivers/video/fbdev//omap2/omapfb/dss/dsi.c: In function 'dsi_init_output':
>> drivers/video/fbdev//omap2/omapfb/dss/dsi.c:5070:2: error: implicit declaration of function 'omapdss_register_output'; did you mean 'omap_dispc_register_isr'? [-Werror=implicit-function-declaration]
omapdss_register_output(out);
^~~~~~~~~~~~~~~~~~~~~~~
omap_dispc_register_isr
drivers/video/fbdev//omap2/omapfb/dss/dsi.c: In function 'dsi_uninit_output':
>> drivers/video/fbdev//omap2/omapfb/dss/dsi.c:5078:2: error: implicit declaration of function 'omapdss_unregister_output'; did you mean 'omap_dispc_unregister_isr'? [-Werror=implicit-function-declaration]
omapdss_unregister_output(out);
^~~~~~~~~~~~~~~~~~~~~~~~~
omap_dispc_unregister_isr
drivers/video/fbdev//omap2/omapfb/dss/dsi.c: In function 'dsi_probe_of':
>> drivers/video/fbdev//omap2/omapfb/dss/dsi.c:5092:7: error: implicit declaration of function 'omapdss_of_get_first_endpoint'; did you mean 'omapdss_get_version'? [-Werror=implicit-function-declaration]
ep = omapdss_of_get_first_endpoint(node);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
omapdss_get_version
drivers/video/fbdev//omap2/omapfb/dss/dsi.c:5092:5: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
ep = omapdss_of_get_first_endpoint(node);
^
cc1: some warnings being treated as errors
vim +/omap_dss_get_num_overlays +41 drivers/video/fbdev//omap2/omapfb/dss/overlay.c
f76ee892 Tomi Valkeinen 2015-12-09 40
f76ee892 Tomi Valkeinen 2015-12-09 @41 int omap_dss_get_num_overlays(void)
f76ee892 Tomi Valkeinen 2015-12-09 42 {
f76ee892 Tomi Valkeinen 2015-12-09 43 return num_overlays;
f76ee892 Tomi Valkeinen 2015-12-09 44 }
f76ee892 Tomi Valkeinen 2015-12-09 45 EXPORT_SYMBOL(omap_dss_get_num_overlays);
f76ee892 Tomi Valkeinen 2015-12-09 46
f76ee892 Tomi Valkeinen 2015-12-09 @47 struct omap_overlay *omap_dss_get_overlay(int num)
f76ee892 Tomi Valkeinen 2015-12-09 48 {
f76ee892 Tomi Valkeinen 2015-12-09 49 if (num >= num_overlays)
f76ee892 Tomi Valkeinen 2015-12-09 50 return NULL;
f76ee892 Tomi Valkeinen 2015-12-09 51
f76ee892 Tomi Valkeinen 2015-12-09 52 return &overlays[num];
f76ee892 Tomi Valkeinen 2015-12-09 53 }
f76ee892 Tomi Valkeinen 2015-12-09 54 EXPORT_SYMBOL(omap_dss_get_overlay);
f76ee892 Tomi Valkeinen 2015-12-09 55
f76ee892 Tomi Valkeinen 2015-12-09 56 void dss_init_overlays(struct platform_device *pdev)
f76ee892 Tomi Valkeinen 2015-12-09 57 {
f76ee892 Tomi Valkeinen 2015-12-09 58 int i, r;
f76ee892 Tomi Valkeinen 2015-12-09 59
f76ee892 Tomi Valkeinen 2015-12-09 @60 num_overlays = dss_feat_get_num_ovls();
f76ee892 Tomi Valkeinen 2015-12-09 61
f76ee892 Tomi Valkeinen 2015-12-09 62 overlays = kzalloc(sizeof(struct omap_overlay) * num_overlays,
f76ee892 Tomi Valkeinen 2015-12-09 63 GFP_KERNEL);
f76ee892 Tomi Valkeinen 2015-12-09 64
f76ee892 Tomi Valkeinen 2015-12-09 65 BUG_ON(overlays == NULL);
f76ee892 Tomi Valkeinen 2015-12-09 66
f76ee892 Tomi Valkeinen 2015-12-09 67 for (i = 0; i < num_overlays; ++i) {
f76ee892 Tomi Valkeinen 2015-12-09 68 struct omap_overlay *ovl = &overlays[i];
f76ee892 Tomi Valkeinen 2015-12-09 69
f76ee892 Tomi Valkeinen 2015-12-09 70 switch (i) {
f76ee892 Tomi Valkeinen 2015-12-09 71 case 0:
f76ee892 Tomi Valkeinen 2015-12-09 72 ovl->name = "gfx";
f76ee892 Tomi Valkeinen 2015-12-09 73 ovl->id = OMAP_DSS_GFX;
f76ee892 Tomi Valkeinen 2015-12-09 74 break;
f76ee892 Tomi Valkeinen 2015-12-09 75 case 1:
f76ee892 Tomi Valkeinen 2015-12-09 76 ovl->name = "vid1";
f76ee892 Tomi Valkeinen 2015-12-09 77 ovl->id = OMAP_DSS_VIDEO1;
f76ee892 Tomi Valkeinen 2015-12-09 78 break;
f76ee892 Tomi Valkeinen 2015-12-09 79 case 2:
f76ee892 Tomi Valkeinen 2015-12-09 80 ovl->name = "vid2";
f76ee892 Tomi Valkeinen 2015-12-09 81 ovl->id = OMAP_DSS_VIDEO2;
f76ee892 Tomi Valkeinen 2015-12-09 82 break;
f76ee892 Tomi Valkeinen 2015-12-09 83 case 3:
f76ee892 Tomi Valkeinen 2015-12-09 84 ovl->name = "vid3";
f76ee892 Tomi Valkeinen 2015-12-09 85 ovl->id = OMAP_DSS_VIDEO3;
f76ee892 Tomi Valkeinen 2015-12-09 86 break;
f76ee892 Tomi Valkeinen 2015-12-09 87 }
f76ee892 Tomi Valkeinen 2015-12-09 88
f76ee892 Tomi Valkeinen 2015-12-09 89 ovl->caps = dss_feat_get_overlay_caps(ovl->id);
f76ee892 Tomi Valkeinen 2015-12-09 90 ovl->supported_modes =
f76ee892 Tomi Valkeinen 2015-12-09 91 dss_feat_get_supported_color_modes(ovl->id);
f76ee892 Tomi Valkeinen 2015-12-09 92
f76ee892 Tomi Valkeinen 2015-12-09 93 r = dss_overlay_kobj_init(ovl, pdev);
f76ee892 Tomi Valkeinen 2015-12-09 94 if (r)
f76ee892 Tomi Valkeinen 2015-12-09 95 DSSERR("failed to create sysfs file\n");
f76ee892 Tomi Valkeinen 2015-12-09 96 }
f76ee892 Tomi Valkeinen 2015-12-09 97 }
f76ee892 Tomi Valkeinen 2015-12-09 98
:::::: The code at line 41 was first introduced by commit
:::::: f76ee892a99e68b55402b8d4b8aeffcae2aff34d omapfb: copy omapdss & displays for omapfb
:::::: TO: Tomi Valkeinen <tomi.valkeinen@ti.com>
:::::: CC: Tomi Valkeinen <tomi.valkeinen@ti.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 48178 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-05-05 14:33 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-05 14:32 [linuxtv-media:master 167/254] drivers/video/fbdev//omap2/omapfb/dss/overlay.c:41:5: error: redefinition of 'omap_dss_get_num_overlays' kbuild test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.