[freescale-fslc:5.4-2.3.x-imx 11826/17783] include/asm-generic/div64.h:243:22: error: passing argument 1 of '__div64_32' from incompatible pointer type
by kernel test robot
tree: https://github.com/Freescale/linux-fslc 5.4-2.3.x-imx
head: 6040081cd64b643878babf67a2ae9113f51cf189
commit: cdfd304a32248295f7d77f61d32137f1bb5bf64e [11826/17783] MLK-24423: sound: soc: fsl: imx pdm: fixed mclk improve voice
config: nios2-allyesconfig (attached as .config)
compiler: nios2-linux-gcc (GCC) 9.3.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
# https://github.com/Freescale/linux-fslc/commit/cdfd304a32248295f7d77f61d3...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc 5.4-2.3.x-imx
git checkout cdfd304a32248295f7d77f61d32137f1bb5bf64e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=nios2
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from ./arch/nios2/include/generated/asm/div64.h:1,
from include/linux/kernel.h:18,
from include/linux/list.h:9,
from include/linux/module.h:9,
from sound/soc/fsl/imx-pdm.c:12:
sound/soc/fsl/imx-pdm.c: In function 'imx_pdm_mic_hw_params':
include/asm-generic/div64.h:226:28: warning: comparison of distinct pointer types lacks a cast
226 | (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
| ^~
sound/soc/fsl/imx-pdm.c:241:16: note: in expansion of macro 'do_div'
241 | mclk_freq = (do_div(sample_rate, 8000) ?
| ^~~~~~
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/module.h:9,
from sound/soc/fsl/imx-pdm.c:12:
include/asm-generic/div64.h:239:25: warning: right shift count >= width of type [-Wshift-count-overflow]
239 | } else if (likely(((n) >> 32) == 0)) { \
| ^~
include/linux/compiler.h:77:40: note: in definition of macro 'likely'
77 | # define likely(x) __builtin_expect(!!(x), 1)
| ^
sound/soc/fsl/imx-pdm.c:241:16: note: in expansion of macro 'do_div'
241 | mclk_freq = (do_div(sample_rate, 8000) ?
| ^~~~~~
In file included from ./arch/nios2/include/generated/asm/div64.h:1,
from include/linux/kernel.h:18,
from include/linux/list.h:9,
from include/linux/module.h:9,
from sound/soc/fsl/imx-pdm.c:12:
>> include/asm-generic/div64.h:243:22: error: passing argument 1 of '__div64_32' from incompatible pointer type [-Werror=incompatible-pointer-types]
243 | __rem = __div64_32(&(n), __base); \
| ^~~~
| |
| unsigned int *
sound/soc/fsl/imx-pdm.c:241:16: note: in expansion of macro 'do_div'
241 | mclk_freq = (do_div(sample_rate, 8000) ?
| ^~~~~~
include/asm-generic/div64.h:217:38: note: expected 'uint64_t *' {aka 'long long unsigned int *'} but argument is of type 'unsigned int *'
217 | extern uint32_t __div64_32(uint64_t *dividend, uint32_t divisor);
| ~~~~~~~~~~^~~~~~~~
cc1: some warnings being treated as errors
vim +/__div64_32 +243 include/asm-generic/div64.h
^1da177e4c3f41 Linus Torvalds 2005-04-16 219
^1da177e4c3f41 Linus Torvalds 2005-04-16 220 /* The unnecessary pointer compare is there
^1da177e4c3f41 Linus Torvalds 2005-04-16 221 * to check for type safety (n must be 64bit)
^1da177e4c3f41 Linus Torvalds 2005-04-16 222 */
^1da177e4c3f41 Linus Torvalds 2005-04-16 223 # define do_div(n,base) ({ \
^1da177e4c3f41 Linus Torvalds 2005-04-16 224 uint32_t __base = (base); \
^1da177e4c3f41 Linus Torvalds 2005-04-16 225 uint32_t __rem; \
^1da177e4c3f41 Linus Torvalds 2005-04-16 226 (void)(((typeof((n)) *)0) == ((uint64_t *)0)); \
911918aa7ef6f8 Nicolas Pitre 2015-11-02 227 if (__builtin_constant_p(__base) && \
911918aa7ef6f8 Nicolas Pitre 2015-11-02 228 is_power_of_2(__base)) { \
911918aa7ef6f8 Nicolas Pitre 2015-11-02 229 __rem = (n) & (__base - 1); \
911918aa7ef6f8 Nicolas Pitre 2015-11-02 230 (n) >>= ilog2(__base); \
461a5e51060c93 Nicolas Pitre 2015-10-30 231 } else if (__div64_const32_is_OK && \
461a5e51060c93 Nicolas Pitre 2015-10-30 232 __builtin_constant_p(__base) && \
461a5e51060c93 Nicolas Pitre 2015-10-30 233 __base != 0) { \
461a5e51060c93 Nicolas Pitre 2015-10-30 234 uint32_t __res_lo, __n_lo = (n); \
461a5e51060c93 Nicolas Pitre 2015-10-30 235 (n) = __div64_const32(n, __base); \
461a5e51060c93 Nicolas Pitre 2015-10-30 236 /* the remainder can be computed with 32-bit regs */ \
461a5e51060c93 Nicolas Pitre 2015-10-30 237 __res_lo = (n); \
461a5e51060c93 Nicolas Pitre 2015-10-30 238 __rem = __n_lo - __res_lo * __base; \
911918aa7ef6f8 Nicolas Pitre 2015-11-02 239 } else if (likely(((n) >> 32) == 0)) { \
^1da177e4c3f41 Linus Torvalds 2005-04-16 240 __rem = (uint32_t)(n) % __base; \
^1da177e4c3f41 Linus Torvalds 2005-04-16 241 (n) = (uint32_t)(n) / __base; \
^1da177e4c3f41 Linus Torvalds 2005-04-16 242 } else \
^1da177e4c3f41 Linus Torvalds 2005-04-16 @243 __rem = __div64_32(&(n), __base); \
^1da177e4c3f41 Linus Torvalds 2005-04-16 244 __rem; \
^1da177e4c3f41 Linus Torvalds 2005-04-16 245 })
^1da177e4c3f41 Linus Torvalds 2005-04-16 246
:::::: The code at line 243 was first introduced by commit
:::::: 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 Linux-2.6.12-rc2
:::::: TO: Linus Torvalds <torvalds(a)ppc970.osdl.org>
:::::: CC: Linus Torvalds <torvalds(a)ppc970.osdl.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
fs/io_uring.c:6920:12: warning: stack frame size of 1040 bytes in function 'io_submit_sqes'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 84196390620ac0e5070ae36af84c137c6216a7dc
commit: e5d1bc0a91f16959aa279aa3ee9fdc246d4bb382 io_uring: defer flushing cached reqs
date: 6 weeks ago
config: powerpc64-randconfig-r023-20210323 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 14696baaf4c43fe53f738bc292bbe169eed93d5d)
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 powerpc64 cross compiling tool for clang build
# apt-get install binutils-powerpc64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout e5d1bc0a91f16959aa279aa3ee9fdc246d4bb382
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> fs/io_uring.c:6920:12: warning: stack frame size of 1040 bytes in function 'io_submit_sqes' [-Wframe-larger-than=]
static int io_submit_sqes(struct io_ring_ctx *ctx, unsigned int nr)
^
1 warning generated.
vim +/io_submit_sqes +6920 fs/io_uring.c
0553b8bda8709c Pavel Begunkov 2020-04-08 6919
0f2122045b9462 Jens Axboe 2020-09-13 @6920 static int io_submit_sqes(struct io_ring_ctx *ctx, unsigned int nr)
6c271ce2f1d572 Jens Axboe 2019-01-10 6921 {
863e05604a6fb4 Pavel Begunkov 2020-10-27 6922 struct io_submit_link link;
9e645e1105ca60 Jens Axboe 2019-05-10 6923 int i, submitted = 0;
6c271ce2f1d572 Jens Axboe 2019-01-10 6924
c4a2ed72c9a615 Jens Axboe 2019-11-21 6925 /* if we have a backlog and couldn't flush it all, return BUSY */
ad3eb2c89fb24d Jens Axboe 2019-12-18 6926 if (test_bit(0, &ctx->sq_check_overflow)) {
6c503150ae33ee Pavel Begunkov 2021-01-04 6927 if (!__io_cqring_overflow_flush(ctx, false, NULL, NULL))
1d7bb1d50fb4dc Jens Axboe 2019-11-06 6928 return -EBUSY;
ad3eb2c89fb24d Jens Axboe 2019-12-18 6929 }
6c271ce2f1d572 Jens Axboe 2019-01-10 6930
ee7d46d9db19de Pavel Begunkov 2019-12-30 6931 /* make sure SQ entry isn't read before tail */
ee7d46d9db19de Pavel Begunkov 2019-12-30 6932 nr = min3(nr, ctx->sq_entries, io_sqring_entries(ctx));
9ef4f124894b7b Pavel Begunkov 2019-12-30 6933
2b85edfc0c90ef Pavel Begunkov 2019-12-28 6934 if (!percpu_ref_tryget_many(&ctx->refs, nr))
2b85edfc0c90ef Pavel Begunkov 2019-12-28 6935 return -EAGAIN;
6c271ce2f1d572 Jens Axboe 2019-01-10 6936
d8a6df10aac9f2 Jens Axboe 2020-10-15 6937 percpu_counter_add(¤t->io_uring->inflight, nr);
faf7b51c06973f Jens Axboe 2020-10-07 6938 refcount_add(nr, ¤t->usage);
6c271ce2f1d572 Jens Axboe 2019-01-10 6939
ba88ff112bdfde Pavel Begunkov 2021-02-10 6940 io_submit_state_start(&ctx->submit_state, nr);
863e05604a6fb4 Pavel Begunkov 2020-10-27 6941 link.head = NULL;
b14cca0c84c760 Pavel Begunkov 2020-01-17 6942
6c271ce2f1d572 Jens Axboe 2019-01-10 6943 for (i = 0; i < nr; i++) {
3529d8c2b353e6 Jens Axboe 2019-12-19 6944 const struct io_uring_sqe *sqe;
196be95cd55720 Pavel Begunkov 2019-11-07 6945 struct io_kiocb *req;
1cb1edb2f5ba8a Pavel Begunkov 2020-02-06 6946 int err;
fb5ccc98782f65 Pavel Begunkov 2019-10-25 6947
b1e50e549b1372 Pavel Begunkov 2020-04-08 6948 sqe = io_get_sqe(ctx);
b1e50e549b1372 Pavel Begunkov 2020-04-08 6949 if (unlikely(!sqe)) {
b1e50e549b1372 Pavel Begunkov 2020-04-08 6950 io_consume_sqe(ctx);
b1e50e549b1372 Pavel Begunkov 2020-04-08 6951 break;
b1e50e549b1372 Pavel Begunkov 2020-04-08 6952 }
258b29a93bfe74 Pavel Begunkov 2021-02-10 6953 req = io_alloc_req(ctx);
196be95cd55720 Pavel Begunkov 2019-11-07 6954 if (unlikely(!req)) {
196be95cd55720 Pavel Begunkov 2019-11-07 6955 if (!submitted)
196be95cd55720 Pavel Begunkov 2019-11-07 6956 submitted = -EAGAIN;
fb5ccc98782f65 Pavel Begunkov 2019-10-25 6957 break;
196be95cd55720 Pavel Begunkov 2019-11-07 6958 }
709b302faddfac Pavel Begunkov 2020-04-08 6959 io_consume_sqe(ctx);
d3656344fea033 Jens Axboe 2019-12-18 6960 /* will complete beyond this point, count as submitted */
d3656344fea033 Jens Axboe 2019-12-18 6961 submitted++;
d3656344fea033 Jens Axboe 2019-12-18 6962
258b29a93bfe74 Pavel Begunkov 2021-02-10 6963 err = io_init_req(ctx, req, sqe);
ef4ff581102a91 Pavel Begunkov 2020-04-12 6964 if (unlikely(err)) {
1cb1edb2f5ba8a Pavel Begunkov 2020-02-06 6965 fail_req:
e1e16097e265da Jens Axboe 2020-06-22 6966 io_put_req(req);
e1e16097e265da Jens Axboe 2020-06-22 6967 io_req_complete(req, err);
fb5ccc98782f65 Pavel Begunkov 2019-10-25 6968 break;
196be95cd55720 Pavel Begunkov 2019-11-07 6969 }
fb5ccc98782f65 Pavel Begunkov 2019-10-25 6970
354420f705ccd0 Jens Axboe 2020-01-08 6971 trace_io_uring_submit_sqe(ctx, req->opcode, req->user_data,
2d7e935809b7f7 Pavel Begunkov 2021-01-19 6972 true, ctx->flags & IORING_SETUP_SQPOLL);
c5eef2b9449ba2 Pavel Begunkov 2021-02-10 6973 err = io_submit_sqe(req, sqe, &link);
1d4240cc9e7bb1 Pavel Begunkov 2020-04-12 6974 if (err)
1d4240cc9e7bb1 Pavel Begunkov 2020-04-12 6975 goto fail_req;
6c271ce2f1d572 Jens Axboe 2019-01-10 6976 }
6c271ce2f1d572 Jens Axboe 2019-01-10 6977
9466f43741bc08 Pavel Begunkov 2020-01-25 6978 if (unlikely(submitted != nr)) {
9466f43741bc08 Pavel Begunkov 2020-01-25 6979 int ref_used = (submitted == -EAGAIN) ? 0 : submitted;
d8a6df10aac9f2 Jens Axboe 2020-10-15 6980 struct io_uring_task *tctx = current->io_uring;
d8a6df10aac9f2 Jens Axboe 2020-10-15 6981 int unused = nr - ref_used;
9466f43741bc08 Pavel Begunkov 2020-01-25 6982
d8a6df10aac9f2 Jens Axboe 2020-10-15 6983 percpu_ref_put_many(&ctx->refs, unused);
d8a6df10aac9f2 Jens Axboe 2020-10-15 6984 percpu_counter_sub(&tctx->inflight, unused);
d8a6df10aac9f2 Jens Axboe 2020-10-15 6985 put_task_struct_many(current, unused);
9466f43741bc08 Pavel Begunkov 2020-01-25 6986 }
863e05604a6fb4 Pavel Begunkov 2020-10-27 6987 if (link.head)
c5eef2b9449ba2 Pavel Begunkov 2021-02-10 6988 io_queue_link_head(link.head);
ba88ff112bdfde Pavel Begunkov 2021-02-10 6989 io_submit_state_end(&ctx->submit_state, ctx);
6c271ce2f1d572 Jens Axboe 2019-01-10 6990
ae9428ca61271b Pavel Begunkov 2019-11-06 6991 /* Commit SQ ring head once we've consumed and submitted all SQEs */
ae9428ca61271b Pavel Begunkov 2019-11-06 6992 io_commit_sqring(ctx);
ae9428ca61271b Pavel Begunkov 2019-11-06 6993
6c271ce2f1d572 Jens Axboe 2019-01-10 6994 return submitted;
6c271ce2f1d572 Jens Axboe 2019-01-10 6995 }
6c271ce2f1d572 Jens Axboe 2019-01-10 6996
:::::: The code at line 6920 was first introduced by commit
:::::: 0f2122045b946241a9e549c2a76cea54fa58a7ff io_uring: don't rely on weak ->files references
:::::: TO: Jens Axboe <axboe(a)kernel.dk>
:::::: CC: Jens Axboe <axboe(a)kernel.dk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
fs/io_uring.c:6897:12: warning: stack frame size of 1072 bytes in function 'io_submit_sqes'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 84196390620ac0e5070ae36af84c137c6216a7dc
commit: a1ab7b35db8f262cd74edff62b47b4d90f84f997 io_uring: move req link into submit_state
date: 5 weeks ago
config: mips-randconfig-r023-20210322 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 14696baaf4c43fe53f738bc292bbe169eed93d5d)
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 mips cross compiling tool for clang build
# apt-get install binutils-mips-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout a1ab7b35db8f262cd74edff62b47b4d90f84f997
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 warnings (new ones prefixed by >>):
>> fs/io_uring.c:6897:12: warning: stack frame size of 1072 bytes in function 'io_submit_sqes' [-Wframe-larger-than=]
static int io_submit_sqes(struct io_ring_ctx *ctx, unsigned int nr)
^
1 warning generated.
vim +/io_submit_sqes +6897 fs/io_uring.c
709b302faddfac Pavel Begunkov 2020-04-08 6896
0f2122045b9462 Jens Axboe 2020-09-13 @6897 static int io_submit_sqes(struct io_ring_ctx *ctx, unsigned int nr)
6c271ce2f1d572 Jens Axboe 2019-01-10 6898 {
46c4e16a8625f7 Pavel Begunkov 2021-02-18 6899 int submitted = 0;
6c271ce2f1d572 Jens Axboe 2019-01-10 6900
c4a2ed72c9a615 Jens Axboe 2019-11-21 6901 /* if we have a backlog and couldn't flush it all, return BUSY */
ad3eb2c89fb24d Jens Axboe 2019-12-18 6902 if (test_bit(0, &ctx->sq_check_overflow)) {
6c503150ae33ee Pavel Begunkov 2021-01-04 6903 if (!__io_cqring_overflow_flush(ctx, false, NULL, NULL))
1d7bb1d50fb4dc Jens Axboe 2019-11-06 6904 return -EBUSY;
ad3eb2c89fb24d Jens Axboe 2019-12-18 6905 }
6c271ce2f1d572 Jens Axboe 2019-01-10 6906
ee7d46d9db19de Pavel Begunkov 2019-12-30 6907 /* make sure SQ entry isn't read before tail */
ee7d46d9db19de Pavel Begunkov 2019-12-30 6908 nr = min3(nr, ctx->sq_entries, io_sqring_entries(ctx));
9ef4f124894b7b Pavel Begunkov 2019-12-30 6909
2b85edfc0c90ef Pavel Begunkov 2019-12-28 6910 if (!percpu_ref_tryget_many(&ctx->refs, nr))
2b85edfc0c90ef Pavel Begunkov 2019-12-28 6911 return -EAGAIN;
6c271ce2f1d572 Jens Axboe 2019-01-10 6912
d8a6df10aac9f2 Jens Axboe 2020-10-15 6913 percpu_counter_add(¤t->io_uring->inflight, nr);
faf7b51c06973f Jens Axboe 2020-10-07 6914 refcount_add(nr, ¤t->usage);
ba88ff112bdfde Pavel Begunkov 2021-02-10 6915 io_submit_state_start(&ctx->submit_state, nr);
b14cca0c84c760 Pavel Begunkov 2020-01-17 6916
46c4e16a8625f7 Pavel Begunkov 2021-02-18 6917 while (submitted < nr) {
3529d8c2b353e6 Jens Axboe 2019-12-19 6918 const struct io_uring_sqe *sqe;
196be95cd55720 Pavel Begunkov 2019-11-07 6919 struct io_kiocb *req;
fb5ccc98782f65 Pavel Begunkov 2019-10-25 6920
258b29a93bfe74 Pavel Begunkov 2021-02-10 6921 req = io_alloc_req(ctx);
196be95cd55720 Pavel Begunkov 2019-11-07 6922 if (unlikely(!req)) {
196be95cd55720 Pavel Begunkov 2019-11-07 6923 if (!submitted)
196be95cd55720 Pavel Begunkov 2019-11-07 6924 submitted = -EAGAIN;
fb5ccc98782f65 Pavel Begunkov 2019-10-25 6925 break;
196be95cd55720 Pavel Begunkov 2019-11-07 6926 }
4fccfcbb733794 Pavel Begunkov 2021-02-12 6927 sqe = io_get_sqe(ctx);
4fccfcbb733794 Pavel Begunkov 2021-02-12 6928 if (unlikely(!sqe)) {
4fccfcbb733794 Pavel Begunkov 2021-02-12 6929 kmem_cache_free(req_cachep, req);
4fccfcbb733794 Pavel Begunkov 2021-02-12 6930 break;
4fccfcbb733794 Pavel Begunkov 2021-02-12 6931 }
d3656344fea033 Jens Axboe 2019-12-18 6932 /* will complete beyond this point, count as submitted */
d3656344fea033 Jens Axboe 2019-12-18 6933 submitted++;
a1ab7b35db8f26 Pavel Begunkov 2021-02-18 6934 if (io_submit_sqe(ctx, req, sqe))
fb5ccc98782f65 Pavel Begunkov 2019-10-25 6935 break;
196be95cd55720 Pavel Begunkov 2019-11-07 6936 }
fb5ccc98782f65 Pavel Begunkov 2019-10-25 6937
9466f43741bc08 Pavel Begunkov 2020-01-25 6938 if (unlikely(submitted != nr)) {
9466f43741bc08 Pavel Begunkov 2020-01-25 6939 int ref_used = (submitted == -EAGAIN) ? 0 : submitted;
d8a6df10aac9f2 Jens Axboe 2020-10-15 6940 struct io_uring_task *tctx = current->io_uring;
d8a6df10aac9f2 Jens Axboe 2020-10-15 6941 int unused = nr - ref_used;
9466f43741bc08 Pavel Begunkov 2020-01-25 6942
d8a6df10aac9f2 Jens Axboe 2020-10-15 6943 percpu_ref_put_many(&ctx->refs, unused);
d8a6df10aac9f2 Jens Axboe 2020-10-15 6944 percpu_counter_sub(&tctx->inflight, unused);
d8a6df10aac9f2 Jens Axboe 2020-10-15 6945 put_task_struct_many(current, unused);
9466f43741bc08 Pavel Begunkov 2020-01-25 6946 }
6c271ce2f1d572 Jens Axboe 2019-01-10 6947
a1ab7b35db8f26 Pavel Begunkov 2021-02-18 6948 io_submit_state_end(&ctx->submit_state, ctx);
ae9428ca61271b Pavel Begunkov 2019-11-06 6949 /* Commit SQ ring head once we've consumed and submitted all SQEs */
ae9428ca61271b Pavel Begunkov 2019-11-06 6950 io_commit_sqring(ctx);
ae9428ca61271b Pavel Begunkov 2019-11-06 6951
6c271ce2f1d572 Jens Axboe 2019-01-10 6952 return submitted;
6c271ce2f1d572 Jens Axboe 2019-01-10 6953 }
6c271ce2f1d572 Jens Axboe 2019-01-10 6954
:::::: The code at line 6897 was first introduced by commit
:::::: 0f2122045b946241a9e549c2a76cea54fa58a7ff io_uring: don't rely on weak ->files references
:::::: TO: Jens Axboe <axboe(a)kernel.dk>
:::::: CC: Jens Axboe <axboe(a)kernel.dk>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[freescale-fslc:pr/296 11674/17782] drivers/irqchip/irq-imx-intmux.c:169:14: error: 'struct intmux_data' has no member named 'saved_reg'
by kernel test robot
Hi Joakim,
FYI, the error/warning still remains.
tree: https://github.com/Freescale/linux-fslc pr/296
head: bf2acf9f711d9c0ffcee228f6772f4c00be626b8
commit: 89f28f28d76a0bc4a4d825818e2f50fbd4368235 [11674/17782] MLK-24382-1 irqchip: imx-intmux: add system PM support
config: arm-randconfig-r036-20210322 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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
# https://github.com/Freescale/linux-fslc/commit/89f28f28d76a0bc4a4d825818e...
git remote add freescale-fslc https://github.com/Freescale/linux-fslc
git fetch --no-tags freescale-fslc pr/296
git checkout 89f28f28d76a0bc4a4d825818e2f50fbd4368235
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/irqchip/irq-imx-intmux.c: In function 'imx_intmux_probe':
>> drivers/irqchip/irq-imx-intmux.c:169:14: error: 'struct intmux_data' has no member named 'saved_reg'
169 | intmux_data->saved_reg = devm_kzalloc(&pdev->dev,
| ^~
drivers/irqchip/irq-imx-intmux.c:172:19: error: 'struct intmux_data' has no member named 'saved_reg'
172 | if (!intmux_data->saved_reg)
| ^~
vim +169 drivers/irqchip/irq-imx-intmux.c
128
129 static int imx_intmux_probe(struct platform_device *pdev)
130 {
131 struct device_node *np = pdev->dev.of_node;
132 struct intmux_data *intmux_data;
133 struct resource *res;
134 int i;
135 int channum;
136 int ret;
137
138 ret = of_property_read_u32(np, "nxp,intmux_chans", &channum);
139 if (ret)
140 channum = 1;
141
142 intmux_data = devm_kzalloc(&pdev->dev, sizeof(*intmux_data) +
143 channum *
144 sizeof(intmux_data->irqchip_data[0]),
145 GFP_KERNEL);
146 if (!intmux_data)
147 return -ENOMEM;
148
149 res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
150 intmux_data->regs = devm_ioremap_resource(&pdev->dev, res);
151 if (IS_ERR(intmux_data->regs)) {
152 dev_err(&pdev->dev, "failed to initialize reg\n");
153 return PTR_ERR(intmux_data->regs);
154 }
155
156 intmux_data->ipg_clk = devm_clk_get(&pdev->dev, "ipg");
157 if (IS_ERR(intmux_data->ipg_clk)) {
158 ret = PTR_ERR(intmux_data->ipg_clk);
159 dev_err(&pdev->dev, "failed to get ipg clk: %d\n", ret);
160 return ret;
161 }
162
163 intmux_data->channum = channum;
164 intmux_data->pdev = pdev;
165 spin_lock_init(&intmux_data->lock);
166
167 if (IS_ENABLED(CONFIG_PM)) {
168 /* save CHANIER register */
> 169 intmux_data->saved_reg = devm_kzalloc(&pdev->dev,
170 sizeof(u32) * channum,
171 GFP_KERNEL);
172 if (!intmux_data->saved_reg)
173 return -ENOMEM;
174 }
175
176 ret = clk_prepare_enable(intmux_data->ipg_clk);
177 if (ret) {
178 dev_err(&pdev->dev, "failed to enable ipg clk: %d\n", ret);
179 return ret;
180 }
181
182 for (i = 0; i < channum; i++) {
183 intmux_data->irqchip_data[i].chanidx = i;
184 intmux_data->irqchip_data[i].irq = platform_get_irq(pdev, i);
185 if (intmux_data->irqchip_data[i].irq <= 0) {
186 dev_err(&pdev->dev, "failed to get irq\n");
187 return -ENODEV;
188 }
189
190 intmux_data->irqchip_data[i].domain = irq_domain_add_linear(np,
191 32,
192 &imx_intmux_domain_ops,
193 &intmux_data->irqchip_data[i]);
194 if (!intmux_data->irqchip_data[i].domain) {
195 dev_err(&intmux_data->pdev->dev,
196 "failed to create IRQ domain\n");
197 return -ENOMEM;
198 }
199
200 irq_set_chained_handler_and_data(intmux_data->irqchip_data[i].irq,
201 imx_intmux_irq_handler,
202 &intmux_data->irqchip_data[i]);
203 }
204
205 platform_set_drvdata(pdev, intmux_data);
206
207 return 0;
208 }
209
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 6 months
[kbuild] [linux-next:master 3872/6512] net/bluetooth/smp.c:1633 smp_user_confirm_reply() warn: variable dereferenced before check 'conn' (see line 1631)
by Dan Carpenter
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: d949689e7383cd5271470f2b99dbe2fd3199bffd
commit: 2e1614f7d61e407f1a8e7935a2903a6fa3cb0b11 [3872/6512] Bluetooth: SMP: Convert BT_ERR/BT_DBG to bt_dev_err/bt_dev_dbg
config: powerpc-randconfig-m031-20210323 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 9.3.0
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Reported-by: Dan Carpenter <dan.carpenter(a)oracle.com>
smatch warnings:
net/bluetooth/smp.c:1633 smp_user_confirm_reply() warn: variable dereferenced before check 'conn' (see line 1631)
vim +/conn +1633 net/bluetooth/smp.c
2b64d153a0cc9d Brian Gix 2011-12-21 1623 int smp_user_confirm_reply(struct hci_conn *hcon, u16 mgmt_op, __le32 passkey)
2b64d153a0cc9d Brian Gix 2011-12-21 1624 {
b10e8017bd9d02 Johan Hedberg 2014-06-27 1625 struct l2cap_conn *conn = hcon->l2cap_data;
5d88cc73dded31 Johan Hedberg 2014-08-08 1626 struct l2cap_chan *chan;
2b64d153a0cc9d Brian Gix 2011-12-21 1627 struct smp_chan *smp;
2b64d153a0cc9d Brian Gix 2011-12-21 1628 u32 value;
fc75cc8684d21d Johan Hedberg 2014-09-05 1629 int err;
2b64d153a0cc9d Brian Gix 2011-12-21 1630
2e1614f7d61e40 Luiz Augusto von Dentz 2021-03-15 @1631 bt_dev_dbg(conn->hcon->hdev, "");
^^^^^^^^^^
Unchecked dereference
2b64d153a0cc9d Brian Gix 2011-12-21 1632
fc75cc8684d21d Johan Hedberg 2014-09-05 @1633 if (!conn)
^^^^^
Checked too late
2b64d153a0cc9d Brian Gix 2011-12-21 1634 return -ENOTCONN;
2b64d153a0cc9d Brian Gix 2011-12-21 1635
5d88cc73dded31 Johan Hedberg 2014-08-08 1636 chan = conn->smp;
5d88cc73dded31 Johan Hedberg 2014-08-08 1637 if (!chan)
5d88cc73dded31 Johan Hedberg 2014-08-08 1638 return -ENOTCONN;
5d88cc73dded31 Johan Hedberg 2014-08-08 1639
fc75cc8684d21d Johan Hedberg 2014-09-05 1640 l2cap_chan_lock(chan);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
_______________________________________________
kbuild mailing list -- kbuild(a)lists.01.org
To unsubscribe send an email to kbuild-leave(a)lists.01.org
1 year, 6 months