include/linux/blk-mq.h:300:29: error: 'MQ_RQ_IN_FLIGHT' undeclared
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5e857ce6eae7ca21b2055cca4885545e29228fe2
commit: 0fc09f920983f61be625658c62cc40ac25a7b3a5 blk-mq: export setting request completion state
config: powerpc64-randconfig-m031-20200618 (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>
All errors (new ones prefixed by >>):
In file included from include/scsi/scsi_cmnd.h:11,
from drivers/ata/libata-core.c:65:
include/scsi/scsi_device.h:433:4: error: unknown type name 'req_flags_t'; did you mean 'vm_flags_t'?
433 | req_flags_t rq_flags, int *resid);
| ^~~~~~~~~~~
| vm_flags_t
include/scsi/scsi_device.h: In function 'scsi_execute_req':
include/scsi/scsi_device.h:439:9: error: implicit declaration of function 'scsi_execute'; did you mean 'scsi_execute_req'? [-Werror=implicit-function-declaration]
439 | return scsi_execute(sdev, cmd, data_direction, buffer,
| ^~~~~~~~~~~~
| scsi_execute_req
In file included from include/scsi/scsi_request.h:5,
from include/scsi/scsi_cmnd.h:12,
from drivers/ata/libata-core.c:65:
include/linux/blk-mq.h: At top level:
include/linux/blk-mq.h:142:2: error: unknown type name 'softirq_done_fn'
142 | softirq_done_fn *complete;
| ^~~~~~~~~~~~~~~
In file included from arch/powerpc/include/asm/atomic.h:11,
from include/linux/atomic.h:5,
from include/linux/debug_locks.h:6,
from include/linux/lockdep.h:28,
from include/linux/spinlock_types.h:18,
from include/linux/spinlock.h:82,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/stat.h:19,
from include/linux/module.h:10,
from drivers/ata/libata-core.c:44:
include/linux/blk-mq.h: In function 'blk_mq_mark_complete':
include/linux/blk-mq.h:300:20: error: dereferencing pointer to incomplete type 'struct request'
300 | return cmpxchg(&rq->state, MQ_RQ_IN_FLIGHT, MQ_RQ_COMPLETE) ==
| ^~
arch/powerpc/include/asm/cmpxchg.h:483:19: note: in definition of macro 'cmpxchg'
483 | __typeof__(*(ptr)) _o_ = (o); \
| ^~~
>> include/linux/blk-mq.h:300:29: error: 'MQ_RQ_IN_FLIGHT' undeclared (first use in this function)
300 | return cmpxchg(&rq->state, MQ_RQ_IN_FLIGHT, MQ_RQ_COMPLETE) ==
| ^~~~~~~~~~~~~~~
arch/powerpc/include/asm/cmpxchg.h:483:32: note: in definition of macro 'cmpxchg'
483 | __typeof__(*(ptr)) _o_ = (o); \
| ^
include/linux/blk-mq.h:300:29: note: each undeclared identifier is reported only once for each function it appears in
300 | return cmpxchg(&rq->state, MQ_RQ_IN_FLIGHT, MQ_RQ_COMPLETE) ==
| ^~~~~~~~~~~~~~~
arch/powerpc/include/asm/cmpxchg.h:483:32: note: in definition of macro 'cmpxchg'
483 | __typeof__(*(ptr)) _o_ = (o); \
| ^
>> include/linux/blk-mq.h:300:46: error: 'MQ_RQ_COMPLETE' undeclared (first use in this function); did you mean 'COMMAND_COMPLETE'?
300 | return cmpxchg(&rq->state, MQ_RQ_IN_FLIGHT, MQ_RQ_COMPLETE) ==
| ^~~~~~~~~~~~~~
arch/powerpc/include/asm/cmpxchg.h:484:32: note: in definition of macro 'cmpxchg'
484 | __typeof__(*(ptr)) _n_ = (n); \
| ^
In file included from include/scsi/scsi_request.h:5,
from include/scsi/scsi_cmnd.h:12,
from drivers/ata/libata-core.c:65:
include/linux/blk-mq.h: In function 'blk_mq_rq_from_pdu':
include/linux/blk-mq.h:310:22: error: invalid application of 'sizeof' to incomplete type 'struct request'
310 | return pdu - sizeof(struct request);
| ^~~~~~
include/linux/blk-mq.h: In function 'blk_mq_rq_to_pdu':
include/linux/blk-mq.h:314:12: error: invalid use of undefined type 'struct request'
314 | return rq + 1;
| ^
In file included from drivers/ata/libata-core.c:65:
include/scsi/scsi_cmnd.h: In function 'scsi_bidi_cmnd':
include/scsi/scsi_cmnd.h:215:9: error: implicit declaration of function 'blk_bidi_rq' [-Werror=implicit-function-declaration]
215 | return blk_bidi_rq(cmd->request) &&
| ^~~~~~~~~~~
include/scsi/scsi_cmnd.h: In function 'scsi_get_lba':
include/scsi/scsi_cmnd.h:308:9: error: implicit declaration of function 'blk_rq_pos' [-Werror=implicit-function-declaration]
308 | return blk_rq_pos(scmd->request);
| ^~~~~~~~~~
cc1: some warnings being treated as errors
--
In file included from include/scsi/scsi_host.h:11,
from drivers/ata/libata-scsi.c:42:
include/linux/blk-mq.h:98:9: error: type defaults to 'int' in declaration of 'blk_status_t' [-Werror=implicit-int]
98 | typedef blk_status_t (queue_rq_fn)(struct blk_mq_hw_ctx *,
| ^~~~~~~~~~~~
include/linux/blk-mq.h:98:9: error: 'blk_status_t' declared as function returning a function
include/linux/blk-mq.h:99:16: warning: parameter names (without types) in function declaration
99 | const struct blk_mq_queue_data *);
| ^~~~~~~~~~~~~~~~~
include/linux/blk-mq.h:121:2: error: unknown type name 'queue_rq_fn'
121 | queue_rq_fn *queue_rq;
| ^~~~~~~~~~~
include/linux/blk-mq.h:142:2: error: unknown type name 'softirq_done_fn'
142 | softirq_done_fn *complete;
| ^~~~~~~~~~~~~~~
include/linux/blk-mq.h:217:31: error: 'blk_mq_req_flags_t' undeclared here (not in a function); did you mean 'blk_mq_free_tag_set'?
217 | BLK_MQ_REQ_NOWAIT = (__force blk_mq_req_flags_t)(1 << 0),
| ^~~~~~~~~~~~~~~~~~
| blk_mq_free_tag_set
include/linux/blk-mq.h:227:3: error: expected declaration specifiers or '...' before 'blk_mq_req_flags_t'
227 | blk_mq_req_flags_t flags);
| ^~~~~~~~~~~~~~~~~~
include/linux/blk-mq.h:229:20: error: expected declaration specifiers or '...' before 'blk_mq_req_flags_t'
229 | unsigned int op, blk_mq_req_flags_t flags,
| ^~~~~~~~~~~~~~~~~~
In file included from arch/powerpc/include/asm/atomic.h:11,
from include/linux/atomic.h:5,
from include/linux/debug_locks.h:6,
from include/linux/lockdep.h:28,
from include/linux/spinlock_types.h:18,
from include/linux/spinlock.h:82,
from include/linux/mmzone.h:8,
from include/linux/gfp.h:6,
from include/linux/slab.h:15,
from drivers/ata/libata-scsi.c:36:
include/linux/blk-mq.h: In function 'blk_mq_mark_complete':
include/linux/blk-mq.h:300:20: error: dereferencing pointer to incomplete type 'struct request'
300 | return cmpxchg(&rq->state, MQ_RQ_IN_FLIGHT, MQ_RQ_COMPLETE) ==
| ^~
arch/powerpc/include/asm/cmpxchg.h:483:19: note: in definition of macro 'cmpxchg'
483 | __typeof__(*(ptr)) _o_ = (o); \
| ^~~
>> include/linux/blk-mq.h:300:29: error: 'MQ_RQ_IN_FLIGHT' undeclared (first use in this function)
300 | return cmpxchg(&rq->state, MQ_RQ_IN_FLIGHT, MQ_RQ_COMPLETE) ==
| ^~~~~~~~~~~~~~~
arch/powerpc/include/asm/cmpxchg.h:483:32: note: in definition of macro 'cmpxchg'
483 | __typeof__(*(ptr)) _o_ = (o); \
| ^
include/linux/blk-mq.h:300:29: note: each undeclared identifier is reported only once for each function it appears in
300 | return cmpxchg(&rq->state, MQ_RQ_IN_FLIGHT, MQ_RQ_COMPLETE) ==
| ^~~~~~~~~~~~~~~
arch/powerpc/include/asm/cmpxchg.h:483:32: note: in definition of macro 'cmpxchg'
483 | __typeof__(*(ptr)) _o_ = (o); \
| ^
>> include/linux/blk-mq.h:300:46: error: 'MQ_RQ_COMPLETE' undeclared (first use in this function); did you mean 'COMMAND_COMPLETE'?
300 | return cmpxchg(&rq->state, MQ_RQ_IN_FLIGHT, MQ_RQ_COMPLETE) ==
| ^~~~~~~~~~~~~~
arch/powerpc/include/asm/cmpxchg.h:484:32: note: in definition of macro 'cmpxchg'
484 | __typeof__(*(ptr)) _n_ = (n); \
| ^
In file included from include/scsi/scsi_host.h:11,
from drivers/ata/libata-scsi.c:42:
include/linux/blk-mq.h: In function 'blk_mq_rq_from_pdu':
include/linux/blk-mq.h:310:22: error: invalid application of 'sizeof' to incomplete type 'struct request'
310 | return pdu - sizeof(struct request);
| ^~~~~~
include/linux/blk-mq.h: In function 'blk_mq_rq_to_pdu':
include/linux/blk-mq.h:314:12: error: invalid use of undefined type 'struct request'
314 | return rq + 1;
| ^
In file included from include/scsi/scsi_cmnd.h:11,
from drivers/ata/libata-scsi.c:43:
include/scsi/scsi_device.h: At top level:
include/scsi/scsi_device.h:433:4: error: unknown type name 'req_flags_t'; did you mean 'vm_flags_t'?
433 | req_flags_t rq_flags, int *resid);
| ^~~~~~~~~~~
| vm_flags_t
include/scsi/scsi_device.h: In function 'scsi_execute_req':
include/scsi/scsi_device.h:439:9: error: implicit declaration of function 'scsi_execute'; did you mean 'scsi_execute_req'? [-Werror=implicit-function-declaration]
439 | return scsi_execute(sdev, cmd, data_direction, buffer,
| ^~~~~~~~~~~~
| scsi_execute_req
In file included from drivers/ata/libata-scsi.c:43:
include/scsi/scsi_cmnd.h: In function 'scsi_bidi_cmnd':
include/scsi/scsi_cmnd.h:215:9: error: implicit declaration of function 'blk_bidi_rq' [-Werror=implicit-function-declaration]
215 | return blk_bidi_rq(cmd->request) &&
| ^~~~~~~~~~~
include/scsi/scsi_cmnd.h: In function 'scsi_get_lba':
include/scsi/scsi_cmnd.h:308:9: error: implicit declaration of function 'blk_rq_pos' [-Werror=implicit-function-declaration]
308 | return blk_rq_pos(scmd->request);
| ^~~~~~~~~~
In file included from include/linux/writeback.h:13,
from include/linux/memcontrol.h:31,
from include/linux/swap.h:9,
from include/linux/suspend.h:5,
from drivers/ata/libata-scsi.c:51:
include/linux/blk_types.h: At top level:
include/linux/blk_types.h:29:22: error: conflicting types for 'blk_status_t'
29 | typedef u8 __bitwise blk_status_t;
| ^~~~~~~~~~~~
In file included from include/scsi/scsi_host.h:11,
from drivers/ata/libata-scsi.c:42:
include/linux/blk-mq.h:98:9: note: previous declaration of 'blk_status_t' was here
98 | typedef blk_status_t (queue_rq_fn)(struct blk_mq_hw_ctx *,
| ^~~~~~~~~~~~
drivers/ata/libata-scsi.c: In function 'ata_scsi_qc_new':
drivers/ata/libata-scsi.c:876:32: error: 'RQF_QUIET' undeclared (first use in this function); did you mean 'BIO_QUIET'?
876 | if (cmd->request->rq_flags & RQF_QUIET)
| ^~~~~~~~~
| BIO_QUIET
In file included from include/asm-generic/bug.h:5,
from arch/powerpc/include/asm/bug.h:128,
from include/linux/bug.h:5,
from include/linux/mmdebug.h:5,
from include/linux/gfp.h:5,
from include/linux/slab.h:15,
from drivers/ata/libata-scsi.c:36:
drivers/ata/libata-scsi.c: In function 'atapi_drain_needed':
drivers/ata/libata-scsi.c:1260:14: error: implicit declaration of function 'blk_rq_is_passthrough' [-Werror=implicit-function-declaration]
1260 | if (likely(!blk_rq_is_passthrough(rq)))
| ^~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:33:34: note: in definition of macro '__branch_check__'
33 | ______r = __builtin_expect(!!(x), expect); \
| ^
drivers/ata/libata-scsi.c:1260:6: note: in expansion of macro 'likely'
1260 | if (likely(!blk_rq_is_passthrough(rq)))
| ^~~~~~
drivers/ata/libata-scsi.c:1263:7: error: implicit declaration of function 'blk_rq_bytes' [-Werror=implicit-function-declaration]
1263 | if (!blk_rq_bytes(rq) || op_is_write(req_op(rq)))
| ^~~~~~~~~~~~
drivers/ata/libata-scsi.c: In function 'ata_scsi_dev_config':
drivers/ata/libata-scsi.c:1278:2: error: implicit declaration of function 'blk_queue_max_hw_sectors' [-Werror=implicit-function-declaration]
1278 | blk_queue_max_hw_sectors(q, dev->max_sectors);
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/ata/libata-scsi.c:1286:3: error: implicit declaration of function 'blk_queue_update_dma_pad' [-Werror=implicit-function-declaration]
1286 | blk_queue_update_dma_pad(q, ATA_DMA_PAD_SZ - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~
drivers/ata/libata-scsi.c:1289:35: error: dereferencing pointer to incomplete type 'struct request_queue'
1289 | buf = kmalloc(ATAPI_MAX_DRAIN, q->bounce_gfp | GFP_KERNEL);
| ^~
drivers/ata/libata-scsi.c:1295:3: error: implicit declaration of function 'blk_queue_dma_drain' [-Werror=implicit-function-declaration]
1295 | blk_queue_dma_drain(q, atapi_drain_needed, buf, ATAPI_MAX_DRAIN);
| ^~~~~~~~~~~~~~~~~~~
drivers/ata/libata-scsi.c:1313:2: error: implicit declaration of function 'blk_queue_update_dma_alignment' [-Werror=implicit-function-declaration]
1313 | blk_queue_update_dma_alignment(q, sdev->sector_size - 1);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/ata/libata-scsi.c:1326:2: error: implicit declaration of function 'blk_queue_flush_queueable' [-Werror=implicit-function-declaration]
1326 | blk_queue_flush_queueable(q, false);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from include/linux/fs.h:39,
from include/linux/huge_mm.h:7,
from include/linux/mm.h:479,
from include/linux/scatterlist.h:8,
from include/scsi/scsi.h:10,
from drivers/ata/libata-scsi.c:41:
--
In file included from include/scsi/scsi_host.h:11,
from drivers/ata/libata-eh.c:40:
include/linux/blk-mq.h:98:9: error: type defaults to 'int' in declaration of 'blk_status_t' [-Werror=implicit-int]
98 | typedef blk_status_t (queue_rq_fn)(struct blk_mq_hw_ctx *,
| ^~~~~~~~~~~~
include/linux/blk-mq.h:98:9: error: 'blk_status_t' declared as function returning a function
include/linux/blk-mq.h:99:16: warning: parameter names (without types) in function declaration
99 | const struct blk_mq_queue_data *);
| ^~~~~~~~~~~~~~~~~
include/linux/blk-mq.h:121:2: error: unknown type name 'queue_rq_fn'
121 | queue_rq_fn *queue_rq;
| ^~~~~~~~~~~
include/linux/blk-mq.h:142:2: error: unknown type name 'softirq_done_fn'
142 | softirq_done_fn *complete;
| ^~~~~~~~~~~~~~~
include/linux/blk-mq.h:217:31: error: 'blk_mq_req_flags_t' undeclared here (not in a function); did you mean 'blk_mq_free_tag_set'?
217 | BLK_MQ_REQ_NOWAIT = (__force blk_mq_req_flags_t)(1 << 0),
| ^~~~~~~~~~~~~~~~~~
| blk_mq_free_tag_set
include/linux/blk-mq.h:227:3: error: expected declaration specifiers or '...' before 'blk_mq_req_flags_t'
227 | blk_mq_req_flags_t flags);
| ^~~~~~~~~~~~~~~~~~
include/linux/blk-mq.h:229:20: error: expected declaration specifiers or '...' before 'blk_mq_req_flags_t'
229 | unsigned int op, blk_mq_req_flags_t flags,
| ^~~~~~~~~~~~~~~~~~
In file included from arch/powerpc/include/asm/atomic.h:11,
from include/linux/atomic.h:5,
from include/linux/rcupdate.h:38,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from include/linux/blkdev.h:5,
from drivers/ata/libata-eh.c:36:
include/linux/blk-mq.h: In function 'blk_mq_mark_complete':
include/linux/blk-mq.h:300:20: error: dereferencing pointer to incomplete type 'struct request'
300 | return cmpxchg(&rq->state, MQ_RQ_IN_FLIGHT, MQ_RQ_COMPLETE) ==
| ^~
arch/powerpc/include/asm/cmpxchg.h:483:19: note: in definition of macro 'cmpxchg'
483 | __typeof__(*(ptr)) _o_ = (o); \
| ^~~
>> include/linux/blk-mq.h:300:29: error: 'MQ_RQ_IN_FLIGHT' undeclared (first use in this function)
300 | return cmpxchg(&rq->state, MQ_RQ_IN_FLIGHT, MQ_RQ_COMPLETE) ==
| ^~~~~~~~~~~~~~~
arch/powerpc/include/asm/cmpxchg.h:483:32: note: in definition of macro 'cmpxchg'
483 | __typeof__(*(ptr)) _o_ = (o); \
| ^
include/linux/blk-mq.h:300:29: note: each undeclared identifier is reported only once for each function it appears in
300 | return cmpxchg(&rq->state, MQ_RQ_IN_FLIGHT, MQ_RQ_COMPLETE) ==
| ^~~~~~~~~~~~~~~
arch/powerpc/include/asm/cmpxchg.h:483:32: note: in definition of macro 'cmpxchg'
483 | __typeof__(*(ptr)) _o_ = (o); \
| ^
>> include/linux/blk-mq.h:300:46: error: 'MQ_RQ_COMPLETE' undeclared (first use in this function); did you mean 'COMMAND_COMPLETE'?
300 | return cmpxchg(&rq->state, MQ_RQ_IN_FLIGHT, MQ_RQ_COMPLETE) ==
| ^~~~~~~~~~~~~~
arch/powerpc/include/asm/cmpxchg.h:484:32: note: in definition of macro 'cmpxchg'
484 | __typeof__(*(ptr)) _n_ = (n); \
| ^
In file included from include/scsi/scsi_host.h:11,
from drivers/ata/libata-eh.c:40:
include/linux/blk-mq.h: In function 'blk_mq_rq_from_pdu':
include/linux/blk-mq.h:310:22: error: invalid application of 'sizeof' to incomplete type 'struct request'
310 | return pdu - sizeof(struct request);
| ^~~~~~
include/linux/blk-mq.h: In function 'blk_mq_rq_to_pdu':
include/linux/blk-mq.h:314:12: error: invalid use of undefined type 'struct request'
314 | return rq + 1;
| ^
In file included from include/scsi/scsi_cmnd.h:11,
from include/scsi/scsi_eh.h:7,
from drivers/ata/libata-eh.c:41:
include/scsi/scsi_device.h: At top level:
include/scsi/scsi_device.h:433:4: error: unknown type name 'req_flags_t'; did you mean 'vm_flags_t'?
433 | req_flags_t rq_flags, int *resid);
| ^~~~~~~~~~~
| vm_flags_t
include/scsi/scsi_device.h: In function 'scsi_execute_req':
include/scsi/scsi_device.h:439:9: error: implicit declaration of function 'scsi_execute'; did you mean 'scsi_execute_req'? [-Werror=implicit-function-declaration]
439 | return scsi_execute(sdev, cmd, data_direction, buffer,
| ^~~~~~~~~~~~
| scsi_execute_req
In file included from include/scsi/scsi_eh.h:7,
from drivers/ata/libata-eh.c:41:
include/scsi/scsi_cmnd.h: In function 'scsi_bidi_cmnd':
include/scsi/scsi_cmnd.h:215:9: error: implicit declaration of function 'blk_bidi_rq' [-Werror=implicit-function-declaration]
215 | return blk_bidi_rq(cmd->request) &&
| ^~~~~~~~~~~
include/scsi/scsi_cmnd.h: In function 'scsi_get_lba':
include/scsi/scsi_cmnd.h:308:9: error: implicit declaration of function 'blk_rq_pos' [-Werror=implicit-function-declaration]
308 | return blk_rq_pos(scmd->request);
| ^~~~~~~~~~
In file included from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/ktime.h:24,
from include/linux/rcutiny.h:28,
from include/linux/rcupdate.h:210,
from include/linux/rculist.h:11,
from include/linux/pid.h:5,
from include/linux/sched.h:14,
from include/linux/blkdev.h:5,
from drivers/ata/libata-eh.c:36:
drivers/ata/libata-eh.c: In function 'ata_qc_schedule_eh':
drivers/ata/libata-eh.c:937:21: error: dereferencing pointer to incomplete type 'struct request_queue'
937 | spin_lock_irqsave(q->queue_lock, flags);
| ^~
include/linux/spinlock.h:222:34: note: in definition of macro 'raw_spin_lock_irqsave'
222 | flags = _raw_spin_lock_irqsave(lock); \
| ^~~~
drivers/ata/libata-eh.c:937:2: note: in expansion of macro 'spin_lock_irqsave'
937 | spin_lock_irqsave(q->queue_lock, flags);
| ^~~~~~~~~~~~~~~~~
drivers/ata/libata-eh.c:938:2: error: implicit declaration of function 'blk_abort_request'; did you mean 'blk_mq_end_request'? [-Werror=implicit-function-declaration]
938 | blk_abort_request(qc->scsicmd->request);
| ^~~~~~~~~~~~~~~~~
| blk_mq_end_request
drivers/ata/libata-eh.c: In function 'ata_eh_quiet':
drivers/ata/libata-eh.c:2119:39: error: 'RQF_QUIET' undeclared (first use in this function)
2119 | qc->scsicmd->request->rq_flags & RQF_QUIET)
| ^~~~~~~~~
cc1: some warnings being treated as errors
..
# 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 remote update linus
git checkout 0fc09f920983f61be625658c62cc40ac25a7b3a5
vim +/MQ_RQ_IN_FLIGHT +300 include/linux/blk-mq.h
4f084b41a0c04a Ming Lei 2017-06-06 289
0fc09f920983f6 Keith Busch 2018-07-23 290 /**
0fc09f920983f6 Keith Busch 2018-07-23 291 * blk_mq_mark_complete() - Set request state to complete
0fc09f920983f6 Keith Busch 2018-07-23 292 * @rq: request to set to complete state
0fc09f920983f6 Keith Busch 2018-07-23 293 *
0fc09f920983f6 Keith Busch 2018-07-23 294 * Returns true if request state was successfully set to complete. If
0fc09f920983f6 Keith Busch 2018-07-23 295 * successful, the caller is responsibile for seeing this request is ended, as
0fc09f920983f6 Keith Busch 2018-07-23 296 * blk_mq_complete_request will not work again.
0fc09f920983f6 Keith Busch 2018-07-23 297 */
0fc09f920983f6 Keith Busch 2018-07-23 298 static inline bool blk_mq_mark_complete(struct request *rq)
0fc09f920983f6 Keith Busch 2018-07-23 299 {
0fc09f920983f6 Keith Busch 2018-07-23 @300 return cmpxchg(&rq->state, MQ_RQ_IN_FLIGHT, MQ_RQ_COMPLETE) ==
0fc09f920983f6 Keith Busch 2018-07-23 301 MQ_RQ_IN_FLIGHT;
0fc09f920983f6 Keith Busch 2018-07-23 302 }
0fc09f920983f6 Keith Busch 2018-07-23 303
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[digitalocean-linux-coresched:coresched/pre-v6-v5.7.y 3/15] arch/x86/include/asm/jump_label.h:25:9: sparse: sparse: context imbalance in 'dl_task_offline_migration' - unexpected unlock
by kernel test robot
tree: https://github.com/digitalocean/linux-coresched coresched/pre-v6-v5.7.y
head: 84dae2bc63df899fbaba8db139b8f85616357f60
commit: d40b965ae085c398fdfcb83788e145f2c9098ae5 [3/15] sched: Core-wide rq->lock
config: i386-randconfig-s002-20200618 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-rc1-10-gc17b1b06-dirty
git checkout d40b965ae085c398fdfcb83788e145f2c9098ae5
# save the attached .config to linux build tree
make W=1 C=1 ARCH=i386 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
kernel/sched/deadline.c:2070:13: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/deadline.c:2070:13: sparse: struct task_struct *
kernel/sched/deadline.c:2070:13: sparse: struct task_struct [noderef] <asn:4> *
kernel/sched/deadline.c:2197:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/deadline.c:2197:25: sparse: struct task_struct *
kernel/sched/deadline.c:2197:25: sparse: struct task_struct [noderef] <asn:4> *
kernel/sched/deadline.c:1721:42: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct sched_dl_entity *b @@ got struct sched_dl_entity [noderef] <asn:4> * @@
kernel/sched/deadline.c:1721:42: sparse: expected struct sched_dl_entity *b
kernel/sched/deadline.c:1721:42: sparse: got struct sched_dl_entity [noderef] <asn:4> *
kernel/sched/deadline.c:1732:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *tsk @@ got struct task_struct [noderef] <asn:4> *curr @@
kernel/sched/deadline.c:1732:38: sparse: expected struct task_struct *tsk
kernel/sched/deadline.c:1732:38: sparse: got struct task_struct [noderef] <asn:4> *curr
kernel/sched/deadline.c:1054:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] <asn:4> *curr @@
kernel/sched/deadline.c:1054:23: sparse: expected struct task_struct *p
kernel/sched/deadline.c:1054:23: sparse: got struct task_struct [noderef] <asn:4> *curr
kernel/sched/deadline.c:1183:38: sparse: sparse: incorrect type in initializer (different address spaces) @@ expected struct task_struct *curr @@ got struct task_struct [noderef] <asn:4> *curr @@
kernel/sched/deadline.c:1183:38: sparse: expected struct task_struct *curr
kernel/sched/deadline.c:1183:38: sparse: got struct task_struct [noderef] <asn:4> *curr
kernel/sched/deadline.c:1929:9: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct sched_domain *[assigned] sd @@ got struct sched_domain [noderef] <asn:4> *parent @@
kernel/sched/deadline.c:1929:9: sparse: expected struct sched_domain *[assigned] sd
kernel/sched/deadline.c:1929:9: sparse: got struct sched_domain [noderef] <asn:4> *parent
kernel/sched/deadline.c:1615:14: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected struct task_struct *curr @@ got struct task_struct [noderef] <asn:4> *[addressable] __val @@
kernel/sched/deadline.c:1615:14: sparse: expected struct task_struct *curr
kernel/sched/deadline.c:1615:14: sparse: got struct task_struct [noderef] <asn:4> *[addressable] __val
kernel/sched/deadline.c:1682:43: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] <asn:4> *curr @@
kernel/sched/deadline.c:1682:43: sparse: expected struct task_struct *p
kernel/sched/deadline.c:1682:43: sparse: got struct task_struct [noderef] <asn:4> *curr
kernel/sched/deadline.c:2232:38: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *tsk @@ got struct task_struct [noderef] <asn:4> *curr @@
kernel/sched/deadline.c:2232:38: sparse: expected struct task_struct *tsk
kernel/sched/deadline.c:2232:38: sparse: got struct task_struct [noderef] <asn:4> *curr
kernel/sched/deadline.c:2234:23: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected struct task_struct *p @@ got struct task_struct [noderef] <asn:4> *curr @@
kernel/sched/deadline.c:2234:23: sparse: expected struct task_struct *p
kernel/sched/deadline.c:2234:23: sparse: got struct task_struct [noderef] <asn:4> *curr
kernel/sched/deadline.c:2236:44: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct sched_dl_entity *b @@ got struct sched_dl_entity [noderef] <asn:4> * @@
kernel/sched/deadline.c:2236:44: sparse: expected struct sched_dl_entity *b
kernel/sched/deadline.c:2236:44: sparse: got struct sched_dl_entity [noderef] <asn:4> *
kernel/sched/deadline.c:2396:22: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/deadline.c:2396:22: sparse: struct task_struct [noderef] <asn:4> *
kernel/sched/deadline.c:2396:22: sparse: struct task_struct *
kernel/sched/deadline.c:2415:46: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/deadline.c:2415:46: sparse: struct task_struct [noderef] <asn:4> *
kernel/sched/deadline.c:2415:46: sparse: struct task_struct *
>> arch/x86/include/asm/jump_label.h:25:9: sparse: sparse: context imbalance in 'dl_task_offline_migration' - unexpected unlock
kernel/sched/sched.h:1699:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:1699:25: sparse: struct task_struct [noderef] <asn:4> *
kernel/sched/sched.h:1699:25: sparse: struct task_struct *
kernel/sched/sched.h:1699:25: sparse: sparse: incompatible types in comparison expression (different address spaces):
kernel/sched/sched.h:1699:25: sparse: struct task_struct [noderef] <asn:4> *
kernel/sched/sched.h:1699:25: sparse: struct task_struct *
vim +/dl_task_offline_migration +25 arch/x86/include/asm/jump_label.h
2671c3e4fe2a34b Andy Lutomirski 2015-11-12 22
11276d5306b8e5b Peter Zijlstra 2015-07-24 23 static __always_inline bool arch_static_branch(struct static_key *key, bool branch)
d430d3d7e646eb1 Jason Baron 2011-03-16 24 {
e769742d35841a8 Ingo Molnar 2018-12-19 @25 asm_volatile_goto("1:"
e769742d35841a8 Ingo Molnar 2018-12-19 26 ".byte " __stringify(STATIC_KEY_INIT_NOP) "\n\t"
e769742d35841a8 Ingo Molnar 2018-12-19 27 ".pushsection __jump_table, \"aw\" \n\t"
e769742d35841a8 Ingo Molnar 2018-12-19 28 _ASM_ALIGN "\n\t"
e769742d35841a8 Ingo Molnar 2018-12-19 29 ".long 1b - ., %l[l_yes] - . \n\t"
e769742d35841a8 Ingo Molnar 2018-12-19 30 _ASM_PTR "%c0 + %c1 - .\n\t"
e769742d35841a8 Ingo Molnar 2018-12-19 31 ".popsection \n\t"
d420acd816c07c7 Peter Zijlstra 2015-08-12 32 : : "i" (key), "i" (branch) : : l_yes);
e769742d35841a8 Ingo Molnar 2018-12-19 33
11276d5306b8e5b Peter Zijlstra 2015-07-24 34 return false;
11276d5306b8e5b Peter Zijlstra 2015-07-24 35 l_yes:
11276d5306b8e5b Peter Zijlstra 2015-07-24 36 return true;
11276d5306b8e5b Peter Zijlstra 2015-07-24 37 }
11276d5306b8e5b Peter Zijlstra 2015-07-24 38
:::::: The code at line 25 was first introduced by commit
:::::: e769742d35841a8198dd6af94e2931083abdee08 Revert "x86/jump-labels: Macrofy inline assembly code to work around GCC inlining bugs"
:::::: TO: Ingo Molnar <mingo(a)kernel.org>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
security/integrity/ima/ima_crypto.c:575:12: warning: stack frame size of 1152 bytes in function 'ima_calc_field_array_hash_tfm'
by kernel test robot
Hi Roberto,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 69119673bd50b176ded34032fadd41530fb5af21
commit: 1ea973df6e2166d1a576cabe5d08925d3261ff9d ima: Calculate and extend PCR with digests in ima_template_entry
date: 8 weeks ago
config: mips-randconfig-r014-20200617 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 487ca07fcc75d52755c9fe2ee05bcb3b6eeeec44)
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
git checkout 1ea973df6e2166d1a576cabe5d08925d3261ff9d
# 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 >>, old ones prefixed by <<):
>> security/integrity/ima/ima_crypto.c:575:12: warning: stack frame size of 1152 bytes in function 'ima_calc_field_array_hash_tfm' [-Wframe-larger-than=]
static int ima_calc_field_array_hash_tfm(struct ima_field_data *field_data,
^
1 warning generated.
vim +/ima_calc_field_array_hash_tfm +575 security/integrity/ima/ima_crypto.c
3bcced39ea7d1b Dmitry Kasatkin 2014-02-26 571
3323eec921efd8 Mimi Zohar 2009-02-04 572 /*
a71dc65d30a472 Roberto Sassu 2013-06-07 573 * Calculate the hash of template data
3323eec921efd8 Mimi Zohar 2009-02-04 574 */
a71dc65d30a472 Roberto Sassu 2013-06-07 @575 static int ima_calc_field_array_hash_tfm(struct ima_field_data *field_data,
7ca79645a1f883 Roberto Sassu 2020-03-25 576 struct ima_template_entry *entry,
6d94809af6b083 Roberto Sassu 2020-03-25 577 int tfm_idx)
3323eec921efd8 Mimi Zohar 2009-02-04 578 {
6d94809af6b083 Roberto Sassu 2020-03-25 579 SHASH_DESC_ON_STACK(shash, ima_algo_array[tfm_idx].tfm);
7ca79645a1f883 Roberto Sassu 2020-03-25 580 struct ima_template_desc *td = entry->template_desc;
7ca79645a1f883 Roberto Sassu 2020-03-25 581 int num_fields = entry->template_desc->num_fields;
a71dc65d30a472 Roberto Sassu 2013-06-07 582 int rc, i;
3323eec921efd8 Mimi Zohar 2009-02-04 583
6d94809af6b083 Roberto Sassu 2020-03-25 584 shash->tfm = ima_algo_array[tfm_idx].tfm;
3323eec921efd8 Mimi Zohar 2009-02-04 585
357aabed626fe3 Behan Webster 2014-04-04 586 rc = crypto_shash_init(shash);
a71dc65d30a472 Roberto Sassu 2013-06-07 587 if (rc != 0)
a71dc65d30a472 Roberto Sassu 2013-06-07 588 return rc;
a71dc65d30a472 Roberto Sassu 2013-06-07 589
a71dc65d30a472 Roberto Sassu 2013-06-07 590 for (i = 0; i < num_fields; i++) {
e3b64c268b485f Roberto Sassu 2014-02-03 591 u8 buffer[IMA_EVENT_NAME_LEN_MAX + 1] = { 0 };
e3b64c268b485f Roberto Sassu 2014-02-03 592 u8 *data_to_hash = field_data[i].data;
e3b64c268b485f Roberto Sassu 2014-02-03 593 u32 datalen = field_data[i].len;
98e1d55d033eed Andreas Steffen 2016-12-19 594 u32 datalen_to_hash =
98e1d55d033eed Andreas Steffen 2016-12-19 595 !ima_canonical_fmt ? datalen : cpu_to_le32(datalen);
e3b64c268b485f Roberto Sassu 2014-02-03 596
b6f8f16f41d928 Roberto Sassu 2013-11-08 597 if (strcmp(td->name, IMA_TEMPLATE_IMA_NAME) != 0) {
357aabed626fe3 Behan Webster 2014-04-04 598 rc = crypto_shash_update(shash,
98e1d55d033eed Andreas Steffen 2016-12-19 599 (const u8 *) &datalen_to_hash,
98e1d55d033eed Andreas Steffen 2016-12-19 600 sizeof(datalen_to_hash));
b6f8f16f41d928 Roberto Sassu 2013-11-08 601 if (rc)
b6f8f16f41d928 Roberto Sassu 2013-11-08 602 break;
e3b64c268b485f Roberto Sassu 2014-02-03 603 } else if (strcmp(td->fields[i]->field_id, "n") == 0) {
e3b64c268b485f Roberto Sassu 2014-02-03 604 memcpy(buffer, data_to_hash, datalen);
e3b64c268b485f Roberto Sassu 2014-02-03 605 data_to_hash = buffer;
e3b64c268b485f Roberto Sassu 2014-02-03 606 datalen = IMA_EVENT_NAME_LEN_MAX + 1;
b6f8f16f41d928 Roberto Sassu 2013-11-08 607 }
357aabed626fe3 Behan Webster 2014-04-04 608 rc = crypto_shash_update(shash, data_to_hash, datalen);
a71dc65d30a472 Roberto Sassu 2013-06-07 609 if (rc)
a71dc65d30a472 Roberto Sassu 2013-06-07 610 break;
a71dc65d30a472 Roberto Sassu 2013-06-07 611 }
a71dc65d30a472 Roberto Sassu 2013-06-07 612
a71dc65d30a472 Roberto Sassu 2013-06-07 613 if (!rc)
6d94809af6b083 Roberto Sassu 2020-03-25 614 rc = crypto_shash_final(shash, entry->digests[tfm_idx].digest);
a71dc65d30a472 Roberto Sassu 2013-06-07 615
a71dc65d30a472 Roberto Sassu 2013-06-07 616 return rc;
3323eec921efd8 Mimi Zohar 2009-02-04 617 }
3323eec921efd8 Mimi Zohar 2009-02-04 618
:::::: The code at line 575 was first introduced by commit
:::::: a71dc65d30a472409f05d247f4eab91b14acf2f5 ima: switch to new template management mechanism
:::::: TO: Roberto Sassu <roberto.sassu(a)polito.it>
:::::: CC: Mimi Zohar <zohar(a)linux.vnet.ibm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH net-next v8 5/5] net: phy: DP83822: Add setting the fixed internal delay
by kernel test robot
Hi Dan,
I love your patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/Dan-Murphy/RGMII-Internal-delay-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git cb8e59cc87201af93dfbb6c3dccc8fcad72a09c2
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 487ca07fcc75d52755c9fe2ee05bcb3b6eeeec44)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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 >>, old ones prefixed by <<):
>> drivers/net/phy/dp83822.c:284:7: warning: variable 'rgmii_delay' is used uninitialized whenever 'if' condition is true [-Wsometimes-uninitialized]
if (rx_int_delay <= 0)
^~~~~~~~~~~~~~~~~
drivers/net/phy/dp83822.c:296:7: note: uninitialized use occurs here
if (rgmii_delay) {
^~~~~~~~~~~
drivers/net/phy/dp83822.c:284:3: note: remove the 'if' if its condition is always false
if (rx_int_delay <= 0)
^~~~~~~~~~~~~~~~~~~~~~
drivers/net/phy/dp83822.c:276:17: note: initialize the variable 'rgmii_delay' to silence this warning
int rgmii_delay;
^
= 0
1 warning generated.
vim +284 drivers/net/phy/dp83822.c
272
273 static int dp83822_config_init(struct phy_device *phydev)
274 {
275 struct device *dev = &phydev->mdio.dev;
276 int rgmii_delay;
277 s32 rx_int_delay;
278 s32 tx_int_delay;
279 int err = 0;
280
281 if (phy_interface_is_rgmii(phydev)) {
282 rx_int_delay = phy_get_internal_delay(phydev, dev, NULL, 0,
283 true);
> 284 if (rx_int_delay <= 0)
285 rx_int_delay = 0;
286 else
287 rgmii_delay = DP83822_RX_CLK_SHIFT;
288
289 tx_int_delay = phy_get_internal_delay(phydev, dev, NULL, 0,
290 false);
291 if (tx_int_delay <= 0)
292 tx_int_delay = 0;
293 else
294 rgmii_delay |= DP83822_TX_CLK_SHIFT;
295
296 if (rgmii_delay) {
297 err = phy_set_bits_mmd(phydev, DP83822_DEVADDR,
298 MII_DP83822_RCSR, rgmii_delay);
299 if (err)
300 return err;
301 }
302 }
303
304 return dp8382x_disable_wol(phydev);
305 }
306
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[jfern:rcu-segcb 3/7] kernel/rcu/tree_plugin.h:792:32: sparse: sparse: incorrect type in argument 2 (different base types)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jfern/linux.git rcu-segcb
head: fb866e723f8f64bc4f1e6d19add6a4ff285fcc02
commit: 6c20fe430956a44bc2034f58d55678fb8e8cff19 [3/7] rcu/trace: Add name of the source for gp_seq
config: x86_64-randconfig-s021-20200618 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-rc1-10-gc17b1b06-dirty
git checkout 6c20fe430956a44bc2034f58d55678fb8e8cff19
# save the attached .config to linux build tree
make W=1 C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> kernel/rcu/tree_plugin.h:792:32: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected char const *gp_seq_src @@ got unsigned long [assigned] pscr_ret__ @@
>> kernel/rcu/tree_plugin.h:792:32: sparse: expected char const *gp_seq_src
>> kernel/rcu/tree_plugin.h:792:32: sparse: got unsigned long [assigned] pscr_ret__
>> kernel/rcu/tree_plugin.h:792:66: sparse: sparse: incorrect type in argument 3 (different base types) @@ expected unsigned long gp_seq @@ got char const *static ___tp_str @@
>> kernel/rcu/tree_plugin.h:792:66: sparse: expected unsigned long gp_seq
>> kernel/rcu/tree_plugin.h:792:66: sparse: got char const *static ___tp_str
>> kernel/rcu/tree_plugin.h:791:31: sparse: sparse: not enough arguments for function trace_rcu_grace_period
kernel/rcu/tree.c:1279:13: sparse: sparse: context imbalance in 'rcu_start_this_gp' - different lock contexts for basic block
kernel/rcu/tree.c:1733:9: sparse: sparse: context imbalance in 'rcu_gp_init' - different lock contexts for basic block
kernel/rcu/tree.c:2495:9: sparse: sparse: context imbalance in 'force_qs_rnp' - different lock contexts for basic block
kernel/rcu/tree.c:2549:25: sparse: sparse: context imbalance in 'rcu_force_quiescent_state' - unexpected unlock
arch/x86/include/asm/paravirt.h:765:9: sparse: sparse: context imbalance in 'kfree_call_rcu' - different lock contexts for basic block
kernel/rcu/tree_exp.h:189:9: sparse: sparse: context imbalance in '__rcu_report_exp_rnp' - different lock contexts for basic block
vim +792 kernel/rcu/tree_plugin.h
f41d911f8c49a5 kernel/rcutree_plugin.h Paul E. McKenney 2009-08-22 779
45975c7d21a1c0 kernel/rcu/tree_plugin.h Paul E. McKenney 2018-07-02 780 /*
90326f0521a880 kernel/rcu/tree_plugin.h Sebastian Andrzej Siewior 2019-10-15 781 * Note a quiescent state for PREEMPTION=n. Because we do not need to know
45975c7d21a1c0 kernel/rcu/tree_plugin.h Paul E. McKenney 2018-07-02 782 * how many quiescent states passed, just if there was at least one since
45975c7d21a1c0 kernel/rcu/tree_plugin.h Paul E. McKenney 2018-07-02 783 * the start of the grace period, this just sets a flag. The caller must
45975c7d21a1c0 kernel/rcu/tree_plugin.h Paul E. McKenney 2018-07-02 784 * have disabled preemption.
45975c7d21a1c0 kernel/rcu/tree_plugin.h Paul E. McKenney 2018-07-02 785 */
45975c7d21a1c0 kernel/rcu/tree_plugin.h Paul E. McKenney 2018-07-02 786 static void rcu_qs(void)
d28139c4e96713 kernel/rcu/tree_plugin.h Paul E. McKenney 2018-06-28 787 {
45975c7d21a1c0 kernel/rcu/tree_plugin.h Paul E. McKenney 2018-07-02 788 RCU_LOCKDEP_WARN(preemptible(), "rcu_qs() invoked with preemption enabled!!!");
45975c7d21a1c0 kernel/rcu/tree_plugin.h Paul E. McKenney 2018-07-02 789 if (!__this_cpu_read(rcu_data.cpu_no_qs.s))
45975c7d21a1c0 kernel/rcu/tree_plugin.h Paul E. McKenney 2018-07-02 790 return;
45975c7d21a1c0 kernel/rcu/tree_plugin.h Paul E. McKenney 2018-07-02 @791 trace_rcu_grace_period(TPS("rcu_sched"),
45975c7d21a1c0 kernel/rcu/tree_plugin.h Paul E. McKenney 2018-07-02 @792 __this_cpu_read(rcu_data.gp_seq), TPS("cpuqs"));
45975c7d21a1c0 kernel/rcu/tree_plugin.h Paul E. McKenney 2018-07-02 793 __this_cpu_write(rcu_data.cpu_no_qs.b.norm, false);
45975c7d21a1c0 kernel/rcu/tree_plugin.h Paul E. McKenney 2018-07-02 794 if (!__this_cpu_read(rcu_data.cpu_no_qs.b.exp))
45975c7d21a1c0 kernel/rcu/tree_plugin.h Paul E. McKenney 2018-07-02 795 return;
45975c7d21a1c0 kernel/rcu/tree_plugin.h Paul E. McKenney 2018-07-02 796 __this_cpu_write(rcu_data.cpu_no_qs.b.exp, false);
63d4c8c97948b0 kernel/rcu/tree_plugin.h Paul E. McKenney 2018-07-03 797 rcu_report_exp_rdp(this_cpu_ptr(&rcu_data));
d28139c4e96713 kernel/rcu/tree_plugin.h Paul E. McKenney 2018-06-28 798 }
d28139c4e96713 kernel/rcu/tree_plugin.h Paul E. McKenney 2018-06-28 799
:::::: The code at line 792 was first introduced by commit
:::::: 45975c7d21a1c0aba97e3d8007e2a7c123145748 rcu: Define RCU-sched API in terms of RCU for Tree RCU PREEMPT builds
:::::: TO: Paul E. McKenney <paulmck(a)linux.vnet.ibm.com>
:::::: CC: Paul E. McKenney <paulmck(a)linux.vnet.ibm.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH v6 23/36] drm: vmwgfx: fix common struct sg_table related issues
by kernel test robot
Hi Marek,
I love your patch! Perhaps something to improve:
[auto build test WARNING on next-20200618]
[also build test WARNING on v5.8-rc1]
[cannot apply to linuxtv-media/master staging/staging-testing drm-exynos/exynos-drm-next drm-intel/for-linux-next linus/master v5.8-rc1 v5.7 v5.7-rc7]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Marek-Szyprowski/DRM-fix-struct-...
base: ce2cc8efd7a40cbd17841add878cb691d0ce0bba
config: x86_64-randconfig-s021-20200618 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.2-rc1-10-gc17b1b06-dirty
# save the attached .config to linux build tree
make W=1 C=1 ARCH=x86_64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c:365:38: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected struct sg_table *sgt @@ got struct sg_table sgt @@
>> drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c:365:38: sparse: expected struct sg_table *sgt
>> drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c:365:38: sparse: got struct sg_table sgt
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c:386:43: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected struct sg_table *sgt @@ got struct sg_table sgt @@
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c:386:43: sparse: expected struct sg_table *sgt
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c:386:43: sparse: got struct sg_table sgt
vim +365 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
352
353 /**
354 * vmw_ttm_unmap_from_dma - unmap device addresses previsouly mapped for
355 * TTM pages
356 *
357 * @vmw_tt: Pointer to a struct vmw_ttm_backend
358 *
359 * Used to free dma mappings previously mapped by vmw_ttm_map_for_dma.
360 */
361 static void vmw_ttm_unmap_from_dma(struct vmw_ttm_tt *vmw_tt)
362 {
363 struct device *dev = vmw_tt->dev_priv->dev->dev;
364
> 365 dma_unmap_sgtable(dev, vmw_tt->sgt, DMA_BIDIRECTIONAL, 0);
366 vmw_tt->sgt.nents = vmw_tt->sgt.orig_nents;
367 }
368
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [PATCH 2/2] nvmet: remove workarounds for gcc bug wrt unnamed fields in initializers
by kernel test robot
Hi Niklas,
I love your patch! Yet something to improve:
[auto build test ERROR on block/for-next]
[also build test ERROR on linus/master v5.8-rc1 next-20200618]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Niklas-Cassel/nvme-remove-workar...
base: https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git for-next
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 487ca07fcc75d52755c9fe2ee05bcb3b6eeeec44)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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/nvme/target/rdma.c:1543:20: error: use of undeclared identifier 'priv'
.private_data = &priv,
^
drivers/nvme/target/rdma.c:1544:30: error: use of undeclared identifier 'priv'
.private_data_len = sizeof(priv),
^
2 errors generated.
vim +/priv +1543 drivers/nvme/target/rdma.c
1533
1534 static int nvmet_rdma_cm_accept(struct rdma_cm_id *cm_id,
1535 struct nvmet_rdma_queue *queue,
1536 struct rdma_conn_param *p)
1537 {
1538 struct rdma_conn_param param = {
1539 .rnr_retry_count = 7,
1540 .flow_control = 1,
1541 .initiator_depth = min_t(u8, p->initiator_depth,
1542 queue->dev->device->attrs.max_qp_init_rd_atom),
> 1543 .private_data = &priv,
1544 .private_data_len = sizeof(priv),
1545 };
1546 struct nvme_rdma_cm_rep priv = {
1547 .recfmt = cpu_to_le16(NVME_RDMA_CM_FMT_1_0),
1548 .crqsize = cpu_to_le16(queue->recv_queue_size),
1549 };
1550 int ret = -ENOMEM;
1551
1552 ret = rdma_accept(cm_id, ¶m);
1553 if (ret)
1554 pr_err("rdma_accept failed (error code = %d)\n", ret);
1555
1556 return ret;
1557 }
1558
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
Re: [RFC PATCH 02/21] mm: Allow DMA mapping of pages which are not online
by kernel test robot
Hi Jonathan,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on net/master]
[also build test WARNING on linus/master v5.8-rc1 next-20200618]
[cannot apply to char-misc/char-misc-testing net-next/master]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Jonathan-Lemon/netgpu-networking...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net.git ef7232da6bcd4294cbb2d424bc35885721570f01
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-13) 9.3.0
reproduce (this is a W=1 build):
# save the attached .config to linux build tree
make W=1 ARCH=i386
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 >>, old ones prefixed by <<):
In file included from arch/x86/include/asm/bug.h:86,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from arch/x86/include/asm/preempt.h:7,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/efi.h:17,
from drivers/firmware/efi/libstub/x86-stub.c:9:
include/linux/dma-mapping.h: In function 'dma_map_resource':
>> include/linux/dma-mapping.h:352:19: warning: implicit declaration of function 'pfn_online'; did you mean 'cpu_online'? [-Wimplicit-function-declaration]
352 | if (WARN_ON_ONCE(pfn_online(PHYS_PFN(phys_addr))))
| ^~~~~~~~~~
include/asm-generic/bug.h:101:25: note: in definition of macro 'WARN_ON_ONCE'
101 | int __ret_warn_on = !!(condition); | ^~~~~~~~~
vim +352 include/linux/dma-mapping.h
339
340 static inline dma_addr_t dma_map_resource(struct device *dev,
341 phys_addr_t phys_addr,
342 size_t size,
343 enum dma_data_direction dir,
344 unsigned long attrs)
345 {
346 const struct dma_map_ops *ops = get_dma_ops(dev);
347 dma_addr_t addr = DMA_MAPPING_ERROR;
348
349 BUG_ON(!valid_dma_direction(dir));
350
351 /* Don't allow online RAM to be mapped */
> 352 if (WARN_ON_ONCE(pfn_online(PHYS_PFN(phys_addr))))
353 return DMA_MAPPING_ERROR;
354
355 if (dma_is_direct(ops))
356 addr = dma_direct_map_resource(dev, phys_addr, size, dir, attrs);
357 else if (ops->map_resource)
358 addr = ops->map_resource(dev, phys_addr, size, dir, attrs);
359
360 debug_dma_map_resource(dev, phys_addr, size, dir, addr);
361 return addr;
362 }
363
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months
[omap-audio:peter/linux-next-wip 22/92] drivers/misc/ovv_dmaengine.c:258:2: error: implicit declaration of function 'omap_dma_set_global_params'
by kernel test robot
tree: https://github.com/omap-audio/linux-audio peter/linux-next-wip
head: 0b053a09178c4bf6ca33fcea67aec032968d4410
commit: 924d565985f8e984c105f55c80de94704cded25a [22/92] misc: omap_video_vrfb test for dmaengine conversion HACK
config: arm-allyesconfig (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
git checkout 924d565985f8e984c105f55c80de94704cded25a
# 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/misc/ovv_dmaengine.c: In function 'omap_vout_prepare_vrfb':
>> drivers/misc/ovv_dmaengine.c:258:2: error: implicit declaration of function 'omap_dma_set_global_params' [-Werror=implicit-function-declaration]
258 | omap_dma_set_global_params(DMA_DEFAULT_ARB_RATE, 0x20, 0);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
At top level:
drivers/misc/ovv_dmaengine.c:148:13: warning: 'ovv_dump_50_item_from' defined but not used [-Wunused-function]
148 | static void ovv_dump_50_item_from(struct omap_vout_device *vout, int start)
| ^~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/omap_dma_set_global_params +258 drivers/misc/ovv_dmaengine.c
206
207 static int omap_vout_prepare_vrfb(struct omap_vout_device *vout,
208 struct videobuf_buffer *vb)
209 {
210 dma_addr_t dmabuf;
211 struct vid_vrfb_dma *tx;
212 u32 dest_frame_index = 0, src_element_index = 0;
213 u32 dest_element_index = 0, src_frame_index = 0;
214 u32 elem_count = 0, frame_count = 0, pixsize = 2;
215
216 if (!is_rotation_enabled(vout))
217 return 0;
218
219 dmabuf = vout->buf_phy_addr[vb->i];
220 /* If rotation is enabled, copy input buffer into VRFB
221 * memory space using DMA. We are copying input buffer
222 * into VRFB memory space of desired angle and DSS will
223 * read image VRFB memory for 0 degree angle
224 */
225 pixsize = vout->bpp * vout->vrfb_bpp;
226 /*
227 * DMA transfer in double index mode
228 */
229
230 /* Frame index */
231 dest_frame_index = ((MAX_PIXELS_PER_LINE * pixsize) -
232 (vout->pix.width * vout->bpp)) + 1;
233
234 /* Source and destination parameters */
235 src_element_index = 0;
236 src_frame_index = 0;
237 dest_element_index = 1;
238 /* Number of elements per frame */
239 elem_count = vout->pix.width * vout->bpp;
240 frame_count = vout->pix.height;
241 tx = &vout->vrfb_dma_tx;
242 tx->tx_status = 0;
243 omap_set_dma_transfer_params(tx->dma_ch, OMAP_DMA_DATA_TYPE_S32,
244 (elem_count / 4), frame_count, OMAP_DMA_SYNC_ELEMENT,
245 tx->dev_id, 0x0);
246 /* src_port required only for OMAP1 */
247 omap_set_dma_src_params(tx->dma_ch, 0, OMAP_DMA_AMODE_POST_INC,
248 dmabuf, src_element_index, src_frame_index);
249 /*set dma source burst mode for VRFB */
250 omap_set_dma_src_burst_mode(tx->dma_ch, OMAP_DMA_DATA_BURST_16);
251
252 /* dest_port required only for OMAP1 */
253 omap_set_dma_dest_params(tx->dma_ch, 0, OMAP_DMA_AMODE_DOUBLE_IDX,
254 vout->vrfb_context[vb->i].paddr[0], dest_element_index,
255 dest_frame_index);
256 /*set dma dest burst mode for VRFB */
257 omap_set_dma_dest_burst_mode(tx->dma_ch, OMAP_DMA_DATA_BURST_16);
> 258 omap_dma_set_global_params(DMA_DEFAULT_ARB_RATE, 0x20, 0);
259
260 omap_start_dma(tx->dma_ch);
261 wait_event_interruptible_timeout(tx->wait, tx->tx_status == 1,
262 VRFB_TX_TIMEOUT);
263
264 if (tx->tx_status == 0) {
265 omap_stop_dma(tx->dma_ch);
266 return -EINVAL;
267 }
268
269 return 0;
270 }
271
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 3 months