public inbox for [email protected]
 help / color / mirror / Atom feed
From: kernel test robot <[email protected]>
To: Bart Van Assche <[email protected]>
Cc: [email protected], Ammar Faizi <[email protected]>,
	GNU/Weeb Mailing List <[email protected]>,
	[email protected], Jens Axboe <[email protected]>
Subject: [ammarfaizi2-block:axboe/linux-block/for-next 38/112] drivers/block/null_blk/./trace.h:33:1: sparse: sparse: cast to restricted blk_opf_t
Date: Sun, 17 Jul 2022 07:10:34 +0800	[thread overview]
Message-ID: <[email protected]> (raw)

tree:   https://github.com/ammarfaizi2/linux-block axboe/linux-block/for-next
head:   b1fc9e8ad3d2d294d15e87d57af00890cd23cfc4
commit: 342a72a334073f163da924b69c3d3fb4685eb33a [38/112] block: Introduce the type blk_opf_t
config: csky-randconfig-s053-20220715 (https://download.01.org/0day-ci/archive/20220717/[email protected]/config)
compiler: csky-linux-gcc (GCC) 12.1.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        # apt-get install sparse
        # sparse version: v0.6.4-39-gce1a6720-dirty
        # https://github.com/ammarfaizi2/linux-block/commit/342a72a334073f163da924b69c3d3fb4685eb33a
        git remote add ammarfaizi2-block https://github.com/ammarfaizi2/linux-block
        git fetch --no-tags ammarfaizi2-block axboe/linux-block/for-next
        git checkout 342a72a334073f163da924b69c3d3fb4685eb33a
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=csky SHELL=/bin/bash drivers/block/ fs/

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <[email protected]>


sparse warnings: (new ones prefixed by >>)
   drivers/block/null_blk/zoned.c: note: in included file (through include/trace/trace_events.h, include/trace/define_trace.h, drivers/block/null_blk/trace.h):
>> drivers/block/null_blk/./trace.h:33:1: sparse: sparse: cast to restricted blk_opf_t
>> drivers/block/null_blk/./trace.h:33:1: sparse: sparse: cast to restricted blk_opf_t
>> drivers/block/null_blk/./trace.h:33:1: sparse: sparse: restricted blk_opf_t degrades to integer
>> drivers/block/null_blk/./trace.h:33:1: sparse: sparse: restricted blk_opf_t degrades to integer
   drivers/block/null_blk/zoned.c: note: in included file (through drivers/block/null_blk/null_blk.h):
   include/linux/blk-mq.h:203:33: sparse: sparse: restricted blk_opf_t degrades to integer
   include/linux/blk-mq.h:203:31: sparse: sparse: incorrect type in return expression (different base types) @@     expected restricted blk_opf_t enum req_op @@     got unsigned int @@
   include/linux/blk-mq.h:203:31: sparse:     expected restricted blk_opf_t enum req_op
   include/linux/blk-mq.h:203:31: sparse:     got unsigned int
   drivers/block/null_blk/zoned.c:56:32: sparse: sparse: context imbalance in 'null_report_zones' - unexpected unlock
   drivers/block/null_blk/zoned.c:56:32: sparse: sparse: context imbalance in 'null_zone_write' - unexpected unlock
   drivers/block/null_blk/zoned.c:498:29: sparse: sparse: context imbalance in 'null_open_zone' - different lock contexts for basic block
   drivers/block/null_blk/zoned.c:513:29: sparse: sparse: context imbalance in 'null_close_zone' - different lock contexts for basic block
   drivers/block/null_blk/zoned.c:558:29: sparse: sparse: context imbalance in 'null_finish_zone' - different lock contexts for basic block
   drivers/block/null_blk/zoned.c:574:37: sparse: sparse: context imbalance in 'null_reset_zone' - different lock contexts for basic block
   drivers/block/null_blk/zoned.c:56:32: sparse: sparse: context imbalance in 'null_zone_mgmt' - unexpected unlock
   drivers/block/null_blk/zoned.c:56:32: sparse: sparse: context imbalance in 'null_process_zoned_cmd' - unexpected unlock

vim +33 drivers/block/null_blk/./trace.h

c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  32  
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25 @33  TRACE_EVENT(nullb_zone_op,
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  34  	    TP_PROTO(struct nullb_cmd *cmd, unsigned int zone_no,
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  35  		     unsigned int zone_cond),
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  36  	    TP_ARGS(cmd, zone_no, zone_cond),
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  37  	    TP_STRUCT__entry(
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  38  		__array(char, disk, DISK_NAME_LEN)
ff07a02e9e8e648 drivers/block/null_blk/trace.h Bart Van Assche    2022-07-14  39  		__field(enum req_op, op)
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  40  		__field(unsigned int, zone_no)
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  41  		__field(unsigned int, zone_cond)
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  42  	    ),
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  43  	    TP_fast_assign(
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  44  		__entry->op = req_op(cmd->rq);
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  45  		__entry->zone_no = zone_no;
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  46  		__entry->zone_cond = zone_cond;
f3fa33acca9f005 drivers/block/null_blk/trace.h Christoph Hellwig  2021-11-26  47  		__assign_disk_name(__entry->disk, cmd->rq->q->disk);
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  48  	    ),
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  49  	    TP_printk("%s req=%-15s zone_no=%u zone_cond=%-10s",
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  50  		      __print_disk_name(__entry->disk),
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  51  		      blk_op_str(__entry->op),
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  52  		      __entry->zone_no,
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  53  		      blk_zone_cond_str(__entry->zone_cond))
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  54  );
c51d04199826824 drivers/block/null_blk_trace.h Chaitanya Kulkarni 2020-03-25  55  

:::::: The code at line 33 was first introduced by commit
:::::: c51d04199826824944ed563748c9542eea27c2d7 null_blk: add tracepoint helpers for zoned mode

:::::: TO: Chaitanya Kulkarni <[email protected]>
:::::: CC: Jens Axboe <[email protected]>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

                 reply	other threads:[~2022-07-16 23:11 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    [email protected] \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox