tree:
https://chromium.googlesource.com/chromiumos/third_party/kernel chromeos-4.4
head: d78843bdba14be5be451753e78a3753413fda6a2
commit: 10f444186a4c895d03e4884ec529067daee430b3 [202/215] BACKPORT: media: rockchip:
rkisp1: destage Rockchip ISP1 driver
config: mips-allyesconfig (attached as .config)
compiler: mips-linux-gcc (GCC) 7.5.0
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
git remote add chrome-os
https://chromium.googlesource.com/chromiumos/third_party/kernel
git fetch --no-tags chrome-os chromeos-4.4
git checkout 10f444186a4c895d03e4884ec529067daee430b3
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross ARCH=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from drivers/media/platform/rockchip/rkisp1/rkisp1-common.h:14:0,
from drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c:21:
include/linux/clk.h:199:70: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
static inline int __must_check clk_bulk_prepare(int num_clks, struct clk_bulk_data
*clks)
^~~~~~~~~~~~~
include/linux/clk.h:223:60: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
static inline void clk_bulk_unprepare(int num_clks, struct clk_bulk_data *clks)
^~~~~~~~~~~~~
include/linux/clk.h:528:17: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
struct clk_bulk_data *clks)
^~~~~~~~~~~~~
include/linux/clk.h:539:15: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
struct clk_bulk_data *clks)
^~~~~~~~~~~~~
include/linux/clk.h:546:54: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
static inline void clk_bulk_put(int num_clks, struct clk_bulk_data *clks) {}
^~~~~~~~~~~~~
include/linux/clk.h:555:69: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
static inline int __must_check clk_bulk_enable(int num_clks, struct clk_bulk_data
*clks)
^~~~~~~~~~~~~
include/linux/clk.h:564:16: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
struct clk_bulk_data *clks) {}
^~~~~~~~~~~~~
include/linux/clk.h:624:13: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
struct clk_bulk_data *clks)
^~~~~~~~~~~~~
include/linux/clk.h: In function 'clk_bulk_prepare_enable':
include/linux/clk.h:628:35: warning: passing argument 2 of 'clk_bulk_prepare'
from incompatible pointer type [-Wincompatible-pointer-types]
ret = clk_bulk_prepare(num_clks, clks);
^~~~
include/linux/clk.h:199:32: note: expected 'struct clk_bulk_data *' but
argument is of type 'struct clk_bulk_data *'
static inline int __must_check clk_bulk_prepare(int num_clks, struct clk_bulk_data
*clks)
^~~~~~~~~~~~~~~~
include/linux/clk.h:631:34: warning: passing argument 2 of 'clk_bulk_enable'
from incompatible pointer type [-Wincompatible-pointer-types]
ret = clk_bulk_enable(num_clks, clks);
^~~~
include/linux/clk.h:555:32: note: expected 'struct clk_bulk_data *' but
argument is of type 'struct clk_bulk_data *'
static inline int __must_check clk_bulk_enable(int num_clks, struct clk_bulk_data
*clks)
^~~~~~~~~~~~~~~
include/linux/clk.h:633:32: warning: passing argument 2 of 'clk_bulk_unprepare'
from incompatible pointer type [-Wincompatible-pointer-types]
clk_bulk_unprepare(num_clks, clks);
^~~~
include/linux/clk.h:223:20: note: expected 'struct clk_bulk_data *' but
argument is of type 'struct clk_bulk_data *'
static inline void clk_bulk_unprepare(int num_clks, struct clk_bulk_data *clks)
^~~~~~~~~~~~~~~~~~
include/linux/clk.h: At top level:
include/linux/clk.h:639:19: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
struct clk_bulk_data *clks)
^~~~~~~~~~~~~
include/linux/clk.h: In function 'clk_bulk_disable_unprepare':
include/linux/clk.h:641:29: warning: passing argument 2 of 'clk_bulk_disable'
from incompatible pointer type [-Wincompatible-pointer-types]
clk_bulk_disable(num_clks, clks);
^~~~
include/linux/clk.h:563:20: note: expected 'struct clk_bulk_data *' but
argument is of type 'struct clk_bulk_data *'
static inline void clk_bulk_disable(int num_clks,
^~~~~~~~~~~~~~~~
include/linux/clk.h:642:31: warning: passing argument 2 of 'clk_bulk_unprepare'
from incompatible pointer type [-Wincompatible-pointer-types]
clk_bulk_unprepare(num_clks, clks);
^~~~
include/linux/clk.h:223:20: note: expected 'struct clk_bulk_data *' but
argument is of type 'struct clk_bulk_data *'
static inline void clk_bulk_unprepare(int num_clks, struct clk_bulk_data *clks)
^~~~~~~~~~~~~~~~~~
In file included from drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c:21:0:
drivers/media/platform/rockchip/rkisp1/rkisp1-common.h: At top level:
> drivers/media/platform/rockchip/rkisp1/rkisp1-common.h:360:23:
error: array type has incomplete element type 'struct clk_bulk_data'
struct clk_bulk_data clks[RKISP1_MAX_BUS_CLK];
^~~~
drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c: In function
'rkisp1_cap_enum_mbus_codes':
> drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c:361:11:
warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (n++ == code->index) {
^~
drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c: In function
'rkisp1_find_fmt_cfg':
drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c:1263:16: warning: comparison
between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < cap->config->fmt_size; i++) {
^
drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c: In function
'rkisp1_enum_fmt_vid_cap_mplane':
drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c:1337:16: warning: comparison
between signed and unsigned integer expressions [-Wsign-compare]
if (f->index >= cap->config->fmt_size)
^~
drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c:1345:16: warning: comparison
between signed and unsigned integer expressions [-Wsign-compare]
for (i = 0; i < cap->config->fmt_size; i++) {
^
In file included from arch/mips/include/asm/atomic.h:22:0,
from include/linux/atomic.h:4,
from include/linux/debug_locks.h:5,
from include/linux/lockdep.h:23,
from include/linux/spinlock_types.h:18,
from include/linux/mutex.h:15,
from include/linux/kernfs.h:13,
from include/linux/sysfs.h:15,
from include/linux/kobject.h:21,
from include/linux/device.h:17,
from include/linux/pm_runtime.h:12,
from drivers/media/platform/rockchip/rkisp1/rkisp1-capture.c:12:
arch/mips/include/asm/atomic.h: In function '__atomic_add_unless':
arch/mips/include/asm/cmpxchg.h:212:6: warning: this statement may fall through
[-Wimplicit-fallthrough=]
if (sizeof(long) == 8) { \
^
arch/mips/include/asm/cmpxchg.h:227:33: note: in expansion of macro
'__cmpxchg'
#define cmpxchg(ptr, old, new) __cmpxchg(ptr, old, new, smp_mb__before_llsc(),
smp_llsc_mb())
^~~~~~~~~
arch/mips/include/asm/atomic.h:215:34: note: in expansion of macro 'cmpxchg'
#define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
^~~~~~~
arch/mips/include/asm/atomic.h:234:9: note: in expansion of macro
'atomic_cmpxchg'
old = atomic_cmpxchg((v), c, c + (a));
^~~~~~~~~~~~~~
arch/mips/include/asm/cmpxchg.h:217:2: note: here
default: \
^
arch/mips/include/asm/cmpxchg.h:227:33: note: in expansion of macro
'__cmpxchg'
#define cmpxchg(ptr, old, new) __cmpxchg(ptr, old, new, smp_mb__before_llsc(),
smp_llsc_mb())
^~~~~~~~~
arch/mips/include/asm/atomic.h:215:34: note: in expansion of macro 'cmpxchg'
#define atomic_cmpxchg(v, o, n) (cmpxchg(&((v)->counter), (o), (n)))
^~~~~~~
arch/mips/include/asm/atomic.h:234:9: note: in expansion of macro
'atomic_cmpxchg'
old = atomic_cmpxchg((v), c, c + (a));
^~~~~~~~~~~~~~
--
In file included from drivers/media/platform/rockchip/rkisp1/rkisp1-common.c:8:0:
include/media/v4l2-rect.h: In function 'v4l2_rect_overlap':
include/media/v4l2-rect.h:185:15: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
if (r1->left >= r2->left + r2->width ||
^~
include/media/v4l2-rect.h:186:15: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
r2->left >= r1->left + r1->width)
^~
include/media/v4l2-rect.h:193:14: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
if (r1->top >= r2->top + r2->height ||
^~
include/media/v4l2-rect.h:194:14: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
r2->top >= r1->top + r1->height)
^~
In file included from drivers/media/platform/rockchip/rkisp1/rkisp1-common.h:14:0,
from drivers/media/platform/rockchip/rkisp1/rkisp1-common.c:10:
include/linux/clk.h: At top level:
include/linux/clk.h:199:70: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
static inline int __must_check clk_bulk_prepare(int num_clks, struct clk_bulk_data
*clks)
^~~~~~~~~~~~~
include/linux/clk.h:223:60: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
static inline void clk_bulk_unprepare(int num_clks, struct clk_bulk_data *clks)
^~~~~~~~~~~~~
include/linux/clk.h:528:17: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
struct clk_bulk_data *clks)
^~~~~~~~~~~~~
include/linux/clk.h:539:15: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
struct clk_bulk_data *clks)
^~~~~~~~~~~~~
include/linux/clk.h:546:54: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
static inline void clk_bulk_put(int num_clks, struct clk_bulk_data *clks) {}
^~~~~~~~~~~~~
include/linux/clk.h:555:69: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
static inline int __must_check clk_bulk_enable(int num_clks, struct clk_bulk_data
*clks)
^~~~~~~~~~~~~
include/linux/clk.h:564:16: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
struct clk_bulk_data *clks) {}
^~~~~~~~~~~~~
include/linux/clk.h:624:13: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
struct clk_bulk_data *clks)
^~~~~~~~~~~~~
include/linux/clk.h: In function 'clk_bulk_prepare_enable':
include/linux/clk.h:628:35: warning: passing argument 2 of 'clk_bulk_prepare'
from incompatible pointer type [-Wincompatible-pointer-types]
ret = clk_bulk_prepare(num_clks, clks);
^~~~
include/linux/clk.h:199:32: note: expected 'struct clk_bulk_data *' but
argument is of type 'struct clk_bulk_data *'
static inline int __must_check clk_bulk_prepare(int num_clks, struct clk_bulk_data
*clks)
^~~~~~~~~~~~~~~~
include/linux/clk.h:631:34: warning: passing argument 2 of 'clk_bulk_enable'
from incompatible pointer type [-Wincompatible-pointer-types]
ret = clk_bulk_enable(num_clks, clks);
^~~~
include/linux/clk.h:555:32: note: expected 'struct clk_bulk_data *' but
argument is of type 'struct clk_bulk_data *'
static inline int __must_check clk_bulk_enable(int num_clks, struct clk_bulk_data
*clks)
^~~~~~~~~~~~~~~
include/linux/clk.h:633:32: warning: passing argument 2 of 'clk_bulk_unprepare'
from incompatible pointer type [-Wincompatible-pointer-types]
clk_bulk_unprepare(num_clks, clks);
^~~~
include/linux/clk.h:223:20: note: expected 'struct clk_bulk_data *' but
argument is of type 'struct clk_bulk_data *'
static inline void clk_bulk_unprepare(int num_clks, struct clk_bulk_data *clks)
^~~~~~~~~~~~~~~~~~
include/linux/clk.h: At top level:
include/linux/clk.h:639:19: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
struct clk_bulk_data *clks)
^~~~~~~~~~~~~
include/linux/clk.h: In function 'clk_bulk_disable_unprepare':
include/linux/clk.h:641:29: warning: passing argument 2 of 'clk_bulk_disable'
from incompatible pointer type [-Wincompatible-pointer-types]
clk_bulk_disable(num_clks, clks);
^~~~
include/linux/clk.h:563:20: note: expected 'struct clk_bulk_data *' but
argument is of type 'struct clk_bulk_data *'
static inline void clk_bulk_disable(int num_clks,
^~~~~~~~~~~~~~~~
include/linux/clk.h:642:31: warning: passing argument 2 of 'clk_bulk_unprepare'
from incompatible pointer type [-Wincompatible-pointer-types]
clk_bulk_unprepare(num_clks, clks);
^~~~
include/linux/clk.h:223:20: note: expected 'struct clk_bulk_data *' but
argument is of type 'struct clk_bulk_data *'
static inline void clk_bulk_unprepare(int num_clks, struct clk_bulk_data *clks)
^~~~~~~~~~~~~~~~~~
In file included from drivers/media/platform/rockchip/rkisp1/rkisp1-common.c:10:0:
drivers/media/platform/rockchip/rkisp1/rkisp1-common.h: At top level:
> drivers/media/platform/rockchip/rkisp1/rkisp1-common.h:360:23:
error: array type has incomplete element type 'struct clk_bulk_data'
struct clk_bulk_data clks[RKISP1_MAX_BUS_CLK];
^~~~
--
In file included from drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c:11:0:
include/linux/clk.h:199:70: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
static inline int __must_check clk_bulk_prepare(int num_clks, struct clk_bulk_data
*clks)
^~~~~~~~~~~~~
include/linux/clk.h:223:60: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
static inline void clk_bulk_unprepare(int num_clks, struct clk_bulk_data *clks)
^~~~~~~~~~~~~
include/linux/clk.h:528:17: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
struct clk_bulk_data *clks)
^~~~~~~~~~~~~
include/linux/clk.h:539:15: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
struct clk_bulk_data *clks)
^~~~~~~~~~~~~
include/linux/clk.h:546:54: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
static inline void clk_bulk_put(int num_clks, struct clk_bulk_data *clks) {}
^~~~~~~~~~~~~
include/linux/clk.h:555:69: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
static inline int __must_check clk_bulk_enable(int num_clks, struct clk_bulk_data
*clks)
^~~~~~~~~~~~~
include/linux/clk.h:564:16: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
struct clk_bulk_data *clks) {}
^~~~~~~~~~~~~
include/linux/clk.h:624:13: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
struct clk_bulk_data *clks)
^~~~~~~~~~~~~
include/linux/clk.h: In function 'clk_bulk_prepare_enable':
include/linux/clk.h:628:35: warning: passing argument 2 of 'clk_bulk_prepare'
from incompatible pointer type [-Wincompatible-pointer-types]
ret = clk_bulk_prepare(num_clks, clks);
^~~~
include/linux/clk.h:199:32: note: expected 'struct clk_bulk_data *' but
argument is of type 'struct clk_bulk_data *'
static inline int __must_check clk_bulk_prepare(int num_clks, struct clk_bulk_data
*clks)
^~~~~~~~~~~~~~~~
include/linux/clk.h:631:34: warning: passing argument 2 of 'clk_bulk_enable'
from incompatible pointer type [-Wincompatible-pointer-types]
ret = clk_bulk_enable(num_clks, clks);
^~~~
include/linux/clk.h:555:32: note: expected 'struct clk_bulk_data *' but
argument is of type 'struct clk_bulk_data *'
static inline int __must_check clk_bulk_enable(int num_clks, struct clk_bulk_data
*clks)
^~~~~~~~~~~~~~~
include/linux/clk.h:633:32: warning: passing argument 2 of 'clk_bulk_unprepare'
from incompatible pointer type [-Wincompatible-pointer-types]
clk_bulk_unprepare(num_clks, clks);
^~~~
include/linux/clk.h:223:20: note: expected 'struct clk_bulk_data *' but
argument is of type 'struct clk_bulk_data *'
static inline void clk_bulk_unprepare(int num_clks, struct clk_bulk_data *clks)
^~~~~~~~~~~~~~~~~~
include/linux/clk.h: At top level:
include/linux/clk.h:639:19: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
struct clk_bulk_data *clks)
^~~~~~~~~~~~~
include/linux/clk.h: In function 'clk_bulk_disable_unprepare':
include/linux/clk.h:641:29: warning: passing argument 2 of 'clk_bulk_disable'
from incompatible pointer type [-Wincompatible-pointer-types]
clk_bulk_disable(num_clks, clks);
^~~~
include/linux/clk.h:563:20: note: expected 'struct clk_bulk_data *' but
argument is of type 'struct clk_bulk_data *'
static inline void clk_bulk_disable(int num_clks,
^~~~~~~~~~~~~~~~
include/linux/clk.h:642:31: warning: passing argument 2 of 'clk_bulk_unprepare'
from incompatible pointer type [-Wincompatible-pointer-types]
clk_bulk_unprepare(num_clks, clks);
^~~~
include/linux/clk.h:223:20: note: expected 'struct clk_bulk_data *' but
argument is of type 'struct clk_bulk_data *'
static inline void clk_bulk_unprepare(int num_clks, struct clk_bulk_data *clks)
^~~~~~~~~~~~~~~~~~
In file included from drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c:25:0:
drivers/media/platform/rockchip/rkisp1/rkisp1-common.h: At top level:
> drivers/media/platform/rockchip/rkisp1/rkisp1-common.h:360:23:
error: array type has incomplete element type 'struct clk_bulk_data'
struct clk_bulk_data clks[RKISP1_MAX_BUS_CLK];
^~~~
drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c: In function
'rkisp1_probe':
> drivers/media/platform/rockchip/rkisp1/rkisp1-dev.c:563:44:
warning: format '%d' expects argument of type 'int', but argument 3 has
type 'long int' [-Wformat=]
dev_err(dev, "Failed to init alloc
ctx: %d\n",
~^
%ld
PTR_ERR(rkisp1->alloc_ctx));
~~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from drivers/media/platform/rockchip/rkisp1/rkisp1-common.h:14:0,
from drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c:19:
include/linux/clk.h:199:70: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
static inline int __must_check clk_bulk_prepare(int num_clks, struct clk_bulk_data
*clks)
^~~~~~~~~~~~~
include/linux/clk.h:223:60: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
static inline void clk_bulk_unprepare(int num_clks, struct clk_bulk_data *clks)
^~~~~~~~~~~~~
include/linux/clk.h:528:17: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
struct clk_bulk_data *clks)
^~~~~~~~~~~~~
include/linux/clk.h:539:15: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
struct clk_bulk_data *clks)
^~~~~~~~~~~~~
include/linux/clk.h:546:54: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
static inline void clk_bulk_put(int num_clks, struct clk_bulk_data *clks) {}
^~~~~~~~~~~~~
include/linux/clk.h:555:69: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
static inline int __must_check clk_bulk_enable(int num_clks, struct clk_bulk_data
*clks)
^~~~~~~~~~~~~
include/linux/clk.h:564:16: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
struct clk_bulk_data *clks) {}
^~~~~~~~~~~~~
include/linux/clk.h:624:13: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
struct clk_bulk_data *clks)
^~~~~~~~~~~~~
include/linux/clk.h: In function 'clk_bulk_prepare_enable':
include/linux/clk.h:628:35: warning: passing argument 2 of 'clk_bulk_prepare'
from incompatible pointer type [-Wincompatible-pointer-types]
ret = clk_bulk_prepare(num_clks, clks);
^~~~
include/linux/clk.h:199:32: note: expected 'struct clk_bulk_data *' but
argument is of type 'struct clk_bulk_data *'
static inline int __must_check clk_bulk_prepare(int num_clks, struct clk_bulk_data
*clks)
^~~~~~~~~~~~~~~~
include/linux/clk.h:631:34: warning: passing argument 2 of 'clk_bulk_enable'
from incompatible pointer type [-Wincompatible-pointer-types]
ret = clk_bulk_enable(num_clks, clks);
^~~~
include/linux/clk.h:555:32: note: expected 'struct clk_bulk_data *' but
argument is of type 'struct clk_bulk_data *'
static inline int __must_check clk_bulk_enable(int num_clks, struct clk_bulk_data
*clks)
^~~~~~~~~~~~~~~
include/linux/clk.h:633:32: warning: passing argument 2 of 'clk_bulk_unprepare'
from incompatible pointer type [-Wincompatible-pointer-types]
clk_bulk_unprepare(num_clks, clks);
^~~~
include/linux/clk.h:223:20: note: expected 'struct clk_bulk_data *' but
argument is of type 'struct clk_bulk_data *'
static inline void clk_bulk_unprepare(int num_clks, struct clk_bulk_data *clks)
^~~~~~~~~~~~~~~~~~
include/linux/clk.h: At top level:
include/linux/clk.h:639:19: warning: 'struct clk_bulk_data' declared inside
parameter list will not be visible outside of this definition or declaration
struct clk_bulk_data *clks)
^~~~~~~~~~~~~
include/linux/clk.h: In function 'clk_bulk_disable_unprepare':
include/linux/clk.h:641:29: warning: passing argument 2 of 'clk_bulk_disable'
from incompatible pointer type [-Wincompatible-pointer-types]
clk_bulk_disable(num_clks, clks);
^~~~
include/linux/clk.h:563:20: note: expected 'struct clk_bulk_data *' but
argument is of type 'struct clk_bulk_data *'
static inline void clk_bulk_disable(int num_clks,
^~~~~~~~~~~~~~~~
include/linux/clk.h:642:31: warning: passing argument 2 of 'clk_bulk_unprepare'
from incompatible pointer type [-Wincompatible-pointer-types]
clk_bulk_unprepare(num_clks, clks);
^~~~
include/linux/clk.h:223:20: note: expected 'struct clk_bulk_data *' but
argument is of type 'struct clk_bulk_data *'
static inline void clk_bulk_unprepare(int num_clks, struct clk_bulk_data *clks)
^~~~~~~~~~~~~~~~~~
In file included from drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c:19:0:
drivers/media/platform/rockchip/rkisp1/rkisp1-common.h: At top level:
> drivers/media/platform/rockchip/rkisp1/rkisp1-common.h:360:23:
error: array type has incomplete element type 'struct clk_bulk_data'
struct clk_bulk_data clks[RKISP1_MAX_BUS_CLK];
^~~~
drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c: In function
'rkisp1_isp_enum_mbus_code':
> drivers/media/platform/rockchip/rkisp1/rkisp1-isp.c:590:19:
warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (code->index == pos - 1) {
^~
..
vim +360 drivers/media/platform/rockchip/rkisp1/rkisp1-common.h
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
333
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
334 /*
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
335 * struct rkisp1_device - ISP platform device
91fb3cf59130c6 drivers/staging/media/rkisp1/rkisp1-common.h Dafna Hirschfeld 2020-08-06
336 *
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
337 * @base_addr: base register address
91fb3cf59130c6 drivers/staging/media/rkisp1/rkisp1-common.h Dafna Hirschfeld 2020-08-06
338 * @irq: the irq number
91fb3cf59130c6 drivers/staging/media/rkisp1/rkisp1-common.h Dafna Hirschfeld 2020-08-06
339 * @dev: a pointer to the struct device
91fb3cf59130c6 drivers/staging/media/rkisp1/rkisp1-common.h Dafna Hirschfeld 2020-08-06
340 * @clk_size: number of clocks
91fb3cf59130c6 drivers/staging/media/rkisp1/rkisp1-common.h Dafna Hirschfeld 2020-08-06
341 * @clks: array of clocks
91fb3cf59130c6 drivers/staging/media/rkisp1/rkisp1-common.h Dafna Hirschfeld 2020-08-06
342 * @v4l2_dev: v4l2_device variable
91fb3cf59130c6 drivers/staging/media/rkisp1/rkisp1-common.h Dafna Hirschfeld 2020-08-06
343 * @media_dev: media_device variable
91fb3cf59130c6 drivers/staging/media/rkisp1/rkisp1-common.h Dafna Hirschfeld 2020-08-06
344 * @notifier: a notifier to register on the v4l2-async API to be notified on the
sensor
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
345 * @active_sensor: sensor in-use, set when streaming on
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
346 * @isp: ISP sub-device
91fb3cf59130c6 drivers/staging/media/rkisp1/rkisp1-common.h Dafna Hirschfeld 2020-08-06
347 * @resizer_devs: resizer sub-devices
91fb3cf59130c6 drivers/staging/media/rkisp1/rkisp1-common.h Dafna Hirschfeld 2020-08-06
348 * @capture_devs: capture devices
91fb3cf59130c6 drivers/staging/media/rkisp1/rkisp1-common.h Dafna Hirschfeld 2020-08-06
349 * @stats: ISP statistics metadata capture device
91fb3cf59130c6 drivers/staging/media/rkisp1/rkisp1-common.h Dafna Hirschfeld 2020-08-06
350 * @params: ISP parameters metadata output device
91fb3cf59130c6 drivers/staging/media/rkisp1/rkisp1-common.h Dafna Hirschfeld 2020-08-06
351 * @pipe: media pipeline
91fb3cf59130c6 drivers/staging/media/rkisp1/rkisp1-common.h Dafna Hirschfeld 2020-08-06
352 * @stream_lock: serializes {start/stop}_streaming callbacks between the capture
devices.
91fb3cf59130c6 drivers/staging/media/rkisp1/rkisp1-common.h Dafna Hirschfeld 2020-08-06
353 * @debug: debug params to be exposed on debugfs
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
354 */
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
355 struct rkisp1_device {
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
356 void __iomem *base_addr;
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
357 int irq;
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
358 struct device *dev;
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
359 unsigned int clk_size;
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
@360 struct clk_bulk_data clks[RKISP1_MAX_BUS_CLK];
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
361 struct v4l2_device v4l2_dev;
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
362 struct media_device media_dev;
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
363 struct v4l2_async_notifier notifier;
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
364 struct rkisp1_sensor_async *active_sensor;
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
365 struct rkisp1_isp isp;
a4204813632adf drivers/staging/media/rkisp1/rkisp1-common.h Helen Koike 2020-01-08
366 struct rkisp1_resizer resizer_devs[2];
a4204813632adf drivers/staging/media/rkisp1/rkisp1-common.h Helen Koike 2020-01-08
367 struct rkisp1_capture capture_devs[2];
4aca6a37205e1a drivers/staging/media/rkisp1/rkisp1-common.h Jacob Chen 2020-01-08
368 struct rkisp1_stats stats;
2f4c504ed6acc5 drivers/staging/media/rkisp1/rkisp1-common.h Jacob Chen 2020-01-08
369 struct rkisp1_params params;
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
370 struct media_pipeline pipe;
91fb3cf59130c6 drivers/staging/media/rkisp1/rkisp1-common.h Dafna Hirschfeld 2020-08-06
371 struct mutex stream_lock; /* serialize {start/stop}_streaming cb between capture
devices */
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
372 struct rkisp1_debug debug;
b5f1444fb68150 drivers/staging/media/rkisp1/rkisp1-common.h Ricardo Ribalda 2020-11-03
373 struct vb2_alloc_ctx *alloc_ctx;
32a2e86ad69b33 drivers/staging/media/rkisp1/rkisp1-common.h Ricardo Ribalda 2020-12-09
374 struct devfreq *devfreq;
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
375 };
5a4eba75642861 drivers/staging/media/rkisp1/rkisp1-common.h Tomasz Figa 2020-09-18
376
:::::: The code at line 360 was first introduced by commit
:::::: 5a4eba75642861e857fec1aeb6cfcb055cfe2650 UPSTREAM: media: staging: rkisp1: add
Rockchip ISP1 base driver
:::::: TO: Tomasz Figa <tfiga(a)chromium.org>
:::::: CC: Commit Bot <commit-bot(a)chromium.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org