* [lkundrak-linux-mmp:lr/ariel 34/44] drivers/gpu/drm/armada/armada_drv.c:133:11: error: implicit declaration of function 'of_drm_find_bridge'
@ 2020-06-30 16:05 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2020-06-30 16:05 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 22340 bytes --]
tree: git://git.kernel.org/pub/scm/linux/kernel/git/lkundrak/linux-mmp.git lr/ariel
head: ade82775e105e0f50096d34445ca772d46d53426
commit: f733f6ac37477724f65e9557f4b6f58b8994ec9a [34/44] drm/armada: Use non-componentized bridges
config: arm-randconfig-r016-20200630 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project cf1d04484344be52ada8178e41d18fd15a9b880c)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
git checkout f733f6ac37477724f65e9557f4b6f58b8994ec9a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
drivers/gpu/drm/pl111/pl111_display.c:357:6: warning: no previous prototype for function 'pl111_display_disable' [-Wmissing-prototypes]
void pl111_display_disable(struct drm_simple_display_pipe *pipe)
^
drivers/gpu/drm/pl111/pl111_display.c:357:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void pl111_display_disable(struct drm_simple_display_pipe *pipe)
^
static
drivers/gpu/drm/armada/armada_overlay.c:329:1: warning: no previous prototype for function 'armada_overlay_duplicate_state' [-Wmissing-prototypes]
armada_overlay_duplicate_state(struct drm_plane *plane)
^
drivers/gpu/drm/armada/armada_overlay.c:328:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct drm_plane_state *
^
static
>> drivers/gpu/drm/armada/armada_drv.c:133:11: error: implicit declaration of function 'of_drm_find_bridge' [-Werror,-Wimplicit-function-declaration]
bridge = of_drm_find_bridge(np);
^
>> drivers/gpu/drm/armada/armada_drv.c:133:9: warning: incompatible integer to pointer conversion assigning to 'struct drm_bridge *' from 'int' [-Wint-conversion]
bridge = of_drm_find_bridge(np);
^ ~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/armada/armada_drv.c:134:36: warning: format specifies type 'unsigned int' but the argument has type 'struct drm_bridge *' [-Wformat]
printk ("XXX XX %08x %pOFfcF\n", bridge, np);
~~~~ ^~~~~~
>> drivers/gpu/drm/armada/armada_drv.c:144:8: error: implicit declaration of function 'drm_bridge_attach' [-Werror,-Wimplicit-function-declaration]
ret = drm_bridge_attach(encoder, bridge, NULL, 0);
^
drivers/gpu/drm/armada/armada_drv.c:357:8: error: implicit declaration of function 'of_drm_find_bridge' [-Werror,-Wimplicit-function-declaration]
!of_drm_find_bridge(remote)) {
^
2 warnings and 3 errors generated.
make[5]: *** [scripts/Makefile.build:281: drivers/gpu/drm/armada/armada_drv.o] Error 1
1 warning generated.
1 warning generated.
drivers/gpu/drm/drm_dp_helper.c:1599: warning: Function parameter or member 'dp_rev' not described in 'drm_dp_set_phy_test_pattern'
make[4]: *** [scripts/Makefile.build:497: drivers/gpu/drm/armada] Error 2
make[5]: Target '__build' not remade because of errors.
drivers/gpu/drm/pl111/pl111_debugfs.c:34:5: warning: no previous prototype for function 'pl111_debugfs_regs' [-Wmissing-prototypes]
int pl111_debugfs_regs(struct seq_file *m, void *unused)
^
drivers/gpu/drm/pl111/pl111_debugfs.c:34:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int pl111_debugfs_regs(struct seq_file *m, void *unused)
^
static
drivers/gpu/drm/drm_mm.c:155:1: warning: unused function 'drm_mm_interval_tree_insert' [-Wunused-function]
INTERVAL_TREE_DEFINE(struct drm_mm_node, rb,
^
include/linux/interval_tree_generic.h:38:15: note: expanded from macro 'INTERVAL_TREE_DEFINE'
ITSTATIC void ITPREFIX ## _insert(ITSTRUCT *node, \
^
<scratch space>:26:1: note: expanded from here
drm_mm_interval_tree_insert
^
drivers/gpu/drm/drm_mm.c:155:1: warning: unused function 'drm_mm_interval_tree_iter_next' [-Wunused-function]
include/linux/interval_tree_generic.h:151:33: note: expanded from macro 'INTERVAL_TREE_DEFINE'
ITSTATIC ITSTRUCT * \
^
<scratch space>:48:1: note: expanded from here
drm_mm_interval_tree_iter_next
^
drivers/gpu/drm/drm_mm.c:308:19: warning: unused function 'rb_hole_size' [-Wunused-function]
static inline u64 rb_hole_size(struct rb_node *rb)
^
drivers/gpu/drm/drm_mm.c:659:20: warning: function 'drm_mm_node_scanned_block' is not needed and will not be emitted [-Wunneeded-internal-declaration]
static inline bool drm_mm_node_scanned_block(const struct drm_mm_node *node)
^
1 warning generated.
4 warnings generated.
drivers/gpu/drm/drm_managed.c:61:6: warning: no previous prototype for function 'drm_managed_release' [-Wmissing-prototypes]
void drm_managed_release(struct drm_device *dev)
^
drivers/gpu/drm/drm_managed.c:61:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void drm_managed_release(struct drm_device *dev)
^
static
1 warning generated.
make[4]: Target '__build' not remade because of errors.
make[3]: *** [scripts/Makefile.build:497: drivers/gpu/drm] Error 2
make[3]: Target '__build' not remade because of errors.
make[1]: *** [Makefile:1756: drivers] Error 2
make[1]: Target 'drivers/gpu/' not remade because of errors.
make[2]: *** [scripts/Makefile.build:497: drivers/gpu] Error 2
make[2]: Target '__build' not remade because of errors.
--
drivers/gpu/drm/pl111/pl111_display.c:357:6: warning: no previous prototype for function 'pl111_display_disable' [-Wmissing-prototypes]
void pl111_display_disable(struct drm_simple_display_pipe *pipe)
^
drivers/gpu/drm/pl111/pl111_display.c:357:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void pl111_display_disable(struct drm_simple_display_pipe *pipe)
^
static
drivers/gpu/drm/armada/armada_overlay.c:329:1: warning: no previous prototype for function 'armada_overlay_duplicate_state' [-Wmissing-prototypes]
armada_overlay_duplicate_state(struct drm_plane *plane)
^
drivers/gpu/drm/armada/armada_overlay.c:328:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct drm_plane_state *
^
static
>> drivers/gpu/drm/armada/armada_drv.c:133:11: error: implicit declaration of function 'of_drm_find_bridge' [-Werror,-Wimplicit-function-declaration]
bridge = of_drm_find_bridge(np);
^
>> drivers/gpu/drm/armada/armada_drv.c:133:9: warning: incompatible integer to pointer conversion assigning to 'struct drm_bridge *' from 'int' [-Wint-conversion]
bridge = of_drm_find_bridge(np);
^ ~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/armada/armada_drv.c:134:36: warning: format specifies type 'unsigned int' but the argument has type 'struct drm_bridge *' [-Wformat]
printk ("XXX XX %08x %pOFfcF\n", bridge, np);
~~~~ ^~~~~~
>> drivers/gpu/drm/armada/armada_drv.c:144:8: error: implicit declaration of function 'drm_bridge_attach' [-Werror,-Wimplicit-function-declaration]
ret = drm_bridge_attach(encoder, bridge, NULL, 0);
^
drivers/gpu/drm/armada/armada_drv.c:357:8: error: implicit declaration of function 'of_drm_find_bridge' [-Werror,-Wimplicit-function-declaration]
!of_drm_find_bridge(remote)) {
^
2 warnings and 3 errors generated.
make[5]: *** [scripts/Makefile.build:281: drivers/gpu/drm/armada/armada_drv.o] Error 1
1 warning generated.
1 warning generated.
drivers/gpu/drm/drm_dp_helper.c:1599: warning: Function parameter or member 'dp_rev' not described in 'drm_dp_set_phy_test_pattern'
make[4]: *** [scripts/Makefile.build:497: drivers/gpu/drm/armada] Error 2
make[5]: Target '__build' not remade because of errors.
drivers/gpu/drm/pl111/pl111_debugfs.c:34:5: warning: no previous prototype for function 'pl111_debugfs_regs' [-Wmissing-prototypes]
int pl111_debugfs_regs(struct seq_file *m, void *unused)
^
drivers/gpu/drm/pl111/pl111_debugfs.c:34:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int pl111_debugfs_regs(struct seq_file *m, void *unused)
^
static
drivers/gpu/drm/drm_mm.c:155:1: warning: unused function 'drm_mm_interval_tree_insert' [-Wunused-function]
INTERVAL_TREE_DEFINE(struct drm_mm_node, rb,
^
include/linux/interval_tree_generic.h:38:15: note: expanded from macro 'INTERVAL_TREE_DEFINE'
ITSTATIC void ITPREFIX ## _insert(ITSTRUCT *node, \
^
<scratch space>:26:1: note: expanded from here
drm_mm_interval_tree_insert
^
drivers/gpu/drm/drm_mm.c:155:1: warning: unused function 'drm_mm_interval_tree_iter_next' [-Wunused-function]
include/linux/interval_tree_generic.h:151:33: note: expanded from macro 'INTERVAL_TREE_DEFINE'
ITSTATIC ITSTRUCT * \
^
<scratch space>:48:1: note: expanded from here
drm_mm_interval_tree_iter_next
^
drivers/gpu/drm/drm_mm.c:308:19: warning: unused function 'rb_hole_size' [-Wunused-function]
static inline u64 rb_hole_size(struct rb_node *rb)
^
drivers/gpu/drm/drm_mm.c:659:20: warning: function 'drm_mm_node_scanned_block' is not needed and will not be emitted [-Wunneeded-internal-declaration]
static inline bool drm_mm_node_scanned_block(const struct drm_mm_node *node)
^
1 warning generated.
4 warnings generated.
drivers/gpu/drm/drm_managed.c:61:6: warning: no previous prototype for function 'drm_managed_release' [-Wmissing-prototypes]
void drm_managed_release(struct drm_device *dev)
^
drivers/gpu/drm/drm_managed.c:61:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void drm_managed_release(struct drm_device *dev)
^
static
1 warning generated.
make[4]: Target '__build' not remade because of errors.
make[3]: *** [scripts/Makefile.build:497: drivers/gpu/drm] Error 2
make[3]: Target '__build' not remade because of errors.
make[2]: *** [scripts/Makefile.build:497: drivers/gpu] Error 2
make[2]: Target '__build' not remade because of errors.
--
drivers/gpu/drm/pl111/pl111_display.c:357:6: warning: no previous prototype for function 'pl111_display_disable' [-Wmissing-prototypes]
void pl111_display_disable(struct drm_simple_display_pipe *pipe)
^
drivers/gpu/drm/pl111/pl111_display.c:357:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void pl111_display_disable(struct drm_simple_display_pipe *pipe)
^
static
drivers/gpu/drm/armada/armada_overlay.c:329:1: warning: no previous prototype for function 'armada_overlay_duplicate_state' [-Wmissing-prototypes]
armada_overlay_duplicate_state(struct drm_plane *plane)
^
drivers/gpu/drm/armada/armada_overlay.c:328:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct drm_plane_state *
^
static
>> drivers/gpu/drm/armada/armada_drv.c:133:11: error: implicit declaration of function 'of_drm_find_bridge' [-Werror,-Wimplicit-function-declaration]
bridge = of_drm_find_bridge(np);
^
>> drivers/gpu/drm/armada/armada_drv.c:133:9: warning: incompatible integer to pointer conversion assigning to 'struct drm_bridge *' from 'int' [-Wint-conversion]
bridge = of_drm_find_bridge(np);
^ ~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/armada/armada_drv.c:134:36: warning: format specifies type 'unsigned int' but the argument has type 'struct drm_bridge *' [-Wformat]
printk ("XXX XX %08x %pOFfcF\n", bridge, np);
~~~~ ^~~~~~
>> drivers/gpu/drm/armada/armada_drv.c:144:8: error: implicit declaration of function 'drm_bridge_attach' [-Werror,-Wimplicit-function-declaration]
ret = drm_bridge_attach(encoder, bridge, NULL, 0);
^
drivers/gpu/drm/armada/armada_drv.c:357:8: error: implicit declaration of function 'of_drm_find_bridge' [-Werror,-Wimplicit-function-declaration]
!of_drm_find_bridge(remote)) {
^
2 warnings and 3 errors generated.
make[5]: *** [scripts/Makefile.build:281: drivers/gpu/drm/armada/armada_drv.o] Error 1
1 warning generated.
1 warning generated.
drivers/gpu/drm/drm_dp_helper.c:1599: warning: Function parameter or member 'dp_rev' not described in 'drm_dp_set_phy_test_pattern'
make[4]: *** [scripts/Makefile.build:497: drivers/gpu/drm/armada] Error 2
make[5]: Target '__build' not remade because of errors.
drivers/gpu/drm/pl111/pl111_debugfs.c:34:5: warning: no previous prototype for function 'pl111_debugfs_regs' [-Wmissing-prototypes]
int pl111_debugfs_regs(struct seq_file *m, void *unused)
^
drivers/gpu/drm/pl111/pl111_debugfs.c:34:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int pl111_debugfs_regs(struct seq_file *m, void *unused)
^
static
drivers/gpu/drm/drm_mm.c:155:1: warning: unused function 'drm_mm_interval_tree_insert' [-Wunused-function]
INTERVAL_TREE_DEFINE(struct drm_mm_node, rb,
^
include/linux/interval_tree_generic.h:38:15: note: expanded from macro 'INTERVAL_TREE_DEFINE'
ITSTATIC void ITPREFIX ## _insert(ITSTRUCT *node, \
^
<scratch space>:26:1: note: expanded from here
drm_mm_interval_tree_insert
^
drivers/gpu/drm/drm_mm.c:155:1: warning: unused function 'drm_mm_interval_tree_iter_next' [-Wunused-function]
include/linux/interval_tree_generic.h:151:33: note: expanded from macro 'INTERVAL_TREE_DEFINE'
ITSTATIC ITSTRUCT * \
^
<scratch space>:48:1: note: expanded from here
drm_mm_interval_tree_iter_next
^
drivers/gpu/drm/drm_mm.c:308:19: warning: unused function 'rb_hole_size' [-Wunused-function]
static inline u64 rb_hole_size(struct rb_node *rb)
^
drivers/gpu/drm/drm_mm.c:659:20: warning: function 'drm_mm_node_scanned_block' is not needed and will not be emitted [-Wunneeded-internal-declaration]
static inline bool drm_mm_node_scanned_block(const struct drm_mm_node *node)
^
1 warning generated.
4 warnings generated.
drivers/gpu/drm/drm_managed.c:61:6: warning: no previous prototype for function 'drm_managed_release' [-Wmissing-prototypes]
void drm_managed_release(struct drm_device *dev)
^
drivers/gpu/drm/drm_managed.c:61:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void drm_managed_release(struct drm_device *dev)
^
static
1 warning generated.
make[4]: Target '__build' not remade because of errors.
make[3]: *** [scripts/Makefile.build:497: drivers/gpu/drm] Error 2
make[3]: Target '__build' not remade because of errors.
--
drivers/gpu/drm/pl111/pl111_display.c:357:6: warning: no previous prototype for function 'pl111_display_disable' [-Wmissing-prototypes]
void pl111_display_disable(struct drm_simple_display_pipe *pipe)
^
drivers/gpu/drm/pl111/pl111_display.c:357:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void pl111_display_disable(struct drm_simple_display_pipe *pipe)
^
static
drivers/gpu/drm/armada/armada_overlay.c:329:1: warning: no previous prototype for function 'armada_overlay_duplicate_state' [-Wmissing-prototypes]
armada_overlay_duplicate_state(struct drm_plane *plane)
^
drivers/gpu/drm/armada/armada_overlay.c:328:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
struct drm_plane_state *
^
static
>> drivers/gpu/drm/armada/armada_drv.c:133:11: error: implicit declaration of function 'of_drm_find_bridge' [-Werror,-Wimplicit-function-declaration]
bridge = of_drm_find_bridge(np);
^
>> drivers/gpu/drm/armada/armada_drv.c:133:9: warning: incompatible integer to pointer conversion assigning to 'struct drm_bridge *' from 'int' [-Wint-conversion]
bridge = of_drm_find_bridge(np);
^ ~~~~~~~~~~~~~~~~~~~~~~
drivers/gpu/drm/armada/armada_drv.c:134:36: warning: format specifies type 'unsigned int' but the argument has type 'struct drm_bridge *' [-Wformat]
printk ("XXX XX %08x %pOFfcF\n", bridge, np);
~~~~ ^~~~~~
>> drivers/gpu/drm/armada/armada_drv.c:144:8: error: implicit declaration of function 'drm_bridge_attach' [-Werror,-Wimplicit-function-declaration]
ret = drm_bridge_attach(encoder, bridge, NULL, 0);
^
drivers/gpu/drm/armada/armada_drv.c:357:8: error: implicit declaration of function 'of_drm_find_bridge' [-Werror,-Wimplicit-function-declaration]
!of_drm_find_bridge(remote)) {
^
2 warnings and 3 errors generated.
make[5]: *** [scripts/Makefile.build:281: drivers/gpu/drm/armada/armada_drv.o] Error 1
1 warning generated.
1 warning generated.
drivers/gpu/drm/drm_dp_helper.c:1599: warning: Function parameter or member 'dp_rev' not described in 'drm_dp_set_phy_test_pattern'
make[4]: *** [scripts/Makefile.build:497: drivers/gpu/drm/armada] Error 2
make[5]: Target '__build' not remade because of errors.
drivers/gpu/drm/pl111/pl111_debugfs.c:34:5: warning: no previous prototype for function 'pl111_debugfs_regs' [-Wmissing-prototypes]
int pl111_debugfs_regs(struct seq_file *m, void *unused)
^
drivers/gpu/drm/pl111/pl111_debugfs.c:34:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int pl111_debugfs_regs(struct seq_file *m, void *unused)
^
static
drivers/gpu/drm/drm_mm.c:155:1: warning: unused function 'drm_mm_interval_tree_insert' [-Wunused-function]
INTERVAL_TREE_DEFINE(struct drm_mm_node, rb,
^
include/linux/interval_tree_generic.h:38:15: note: expanded from macro 'INTERVAL_TREE_DEFINE'
ITSTATIC void ITPREFIX ## _insert(ITSTRUCT *node, \
^
<scratch space>:26:1: note: expanded from here
drm_mm_interval_tree_insert
^
drivers/gpu/drm/drm_mm.c:155:1: warning: unused function 'drm_mm_interval_tree_iter_next' [-Wunused-function]
include/linux/interval_tree_generic.h:151:33: note: expanded from macro 'INTERVAL_TREE_DEFINE'
ITSTATIC ITSTRUCT * \
^
<scratch space>:48:1: note: expanded from here
drm_mm_interval_tree_iter_next
^
drivers/gpu/drm/drm_mm.c:308:19: warning: unused function 'rb_hole_size' [-Wunused-function]
static inline u64 rb_hole_size(struct rb_node *rb)
^
drivers/gpu/drm/drm_mm.c:659:20: warning: function 'drm_mm_node_scanned_block' is not needed and will not be emitted [-Wunneeded-internal-declaration]
static inline bool drm_mm_node_scanned_block(const struct drm_mm_node *node)
^
1 warning generated.
4 warnings generated.
drivers/gpu/drm/drm_managed.c:61:6: warning: no previous prototype for function 'drm_managed_release' [-Wmissing-prototypes]
void drm_managed_release(struct drm_device *dev)
^
drivers/gpu/drm/drm_managed.c:61:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void drm_managed_release(struct drm_device *dev)
^
static
1 warning generated.
make[4]: Target '__build' not remade because of errors.
..
vim +/of_drm_find_bridge +133 drivers/gpu/drm/armada/armada_drv.c
122
123 static int armada_drm_attach_bridge(struct drm_device *drm, struct device_node *np)
124 {
125 struct drm_encoder *encoder;
126 struct drm_bridge *bridge;
127 int ret;
128
129 encoder = devm_kzalloc(drm->dev, sizeof(*encoder), GFP_KERNEL);
130 if (encoder == NULL)
131 return -ENOMEM;
132
> 133 bridge = of_drm_find_bridge(np);
134 printk ("XXX XX %08x %pOFfcF\n", bridge, np);
135 if (!bridge)
136 return -EINVAL;
137
138 encoder->possible_crtcs = drm_of_find_possible_crtcs(drm, np);
139 ret = drm_encoder_init(drm, encoder, &armada_drm_encoder_funcs,
140 DRM_MODE_ENCODER_TMDS, NULL);
141 if (ret)
142 return ret;
143
> 144 ret = drm_bridge_attach(encoder, bridge, NULL, 0);
145 if (ret)
146 drm_encoder_cleanup(encoder);
147
148 return ret;
149 }
150
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 27369 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-06-30 16:05 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-30 16:05 [lkundrak-linux-mmp:lr/ariel 34/44] drivers/gpu/drm/armada/armada_drv.c:133:11: error: implicit declaration of function 'of_drm_find_bridge' kernel 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.