All of lore.kernel.org
 help / color / mirror / Atom feed
From: kbuild test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [RFC 2/6] mmc: core: Add core scaling support in driver
Date: Thu, 24 Oct 2019 13:54:02 +0800	[thread overview]
Message-ID: <201910241339.1eRqtl4F%lkp@intel.com> (raw)
In-Reply-To: <1571668177-3766-3-git-send-email-rampraka@codeaurora.org>

[-- Attachment #1: Type: text/plain, Size: 7087 bytes --]

Hi Ram,

[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on linus/master]
[cannot apply to v5.4-rc4 next-20191023]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]

url:    https://github.com/0day-ci/linux/commits/Ram-Prakash-Gupta/mmc-Add-clock-scaling-support-for-mmc-driver/20191024-121237
base:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 13b86bc4cd648eae69fdcf3d04b2750c76350053
config: x86_64-randconfig-f003-201942 (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
        # save the attached .config to linux build tree
        make ARCH=x86_64 

If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp@intel.com>

All errors (new ones prefixed by >>):

   In file included from drivers/mmc/core/queue.h:7:0,
                    from drivers/mmc/core/core.c:43:
   include/linux/blk-mq.h: In function 'blk_mq_rq_from_pdu':
>> include/linux/blk-mq.h:352:22: error: invalid application of 'sizeof' to incomplete type 'struct request'
     return pdu - sizeof(struct request);
                         ^~~~~~
   include/linux/blk-mq.h: In function 'blk_mq_rq_to_pdu':
>> include/linux/blk-mq.h:356:12: error: invalid use of undefined type 'struct request'
     return rq + 1;
               ^
   In file included from include/linux/export.h:44:0,
                    from include/linux/linkage.h:7,
                    from include/linux/kernel.h:8,
                    from include/linux/list.h:9,
                    from include/linux/module.h:9,
                    from drivers/mmc/core/core.c:10:
   include/linux/blk-mq.h: In function 'request_to_qc_t':
>> include/linux/blk-mq.h:370:8: error: dereferencing pointer to incomplete type 'struct request'
     if (rq->tag != -1)
           ^
   include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                       ^~~~
   include/linux/blk-mq.h:370:2: note: in expansion of macro 'if'
     if (rq->tag != -1)
     ^~
   At top level:
   drivers/mmc/core/core.c:114:13: warning: 'mmc_is_data_request' defined but not used [-Wunused-function]
    static bool mmc_is_data_request(struct mmc_request *mmc_request)
                ^~~~~~~~~~~~~~~~~~~
--
   In file included from drivers/mmc//core/queue.h:7:0,
                    from drivers/mmc//core/core.c:43:
   include/linux/blk-mq.h: In function 'blk_mq_rq_from_pdu':
>> include/linux/blk-mq.h:352:22: error: invalid application of 'sizeof' to incomplete type 'struct request'
     return pdu - sizeof(struct request);
                         ^~~~~~
   include/linux/blk-mq.h: In function 'blk_mq_rq_to_pdu':
>> include/linux/blk-mq.h:356:12: error: invalid use of undefined type 'struct request'
     return rq + 1;
               ^
   In file included from include/linux/export.h:44:0,
                    from include/linux/linkage.h:7,
                    from include/linux/kernel.h:8,
                    from include/linux/list.h:9,
                    from include/linux/module.h:9,
                    from drivers/mmc//core/core.c:10:
   include/linux/blk-mq.h: In function 'request_to_qc_t':
>> include/linux/blk-mq.h:370:8: error: dereferencing pointer to incomplete type 'struct request'
     if (rq->tag != -1)
           ^
   include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
    #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
                                                       ^~~~
   include/linux/blk-mq.h:370:2: note: in expansion of macro 'if'
     if (rq->tag != -1)
     ^~
   At top level:
   drivers/mmc//core/core.c:114:13: warning: 'mmc_is_data_request' defined but not used [-Wunused-function]
    static bool mmc_is_data_request(struct mmc_request *mmc_request)
                ^~~~~~~~~~~~~~~~~~~

vim +352 include/linux/blk-mq.h

9cf2bab6307659 Jens Axboe    2018-10-31  345  
320ae51feed5c2 Jens Axboe    2013-10-24  346  /*
320ae51feed5c2 Jens Axboe    2013-10-24  347   * Driver command data is immediately after the request. So subtract request
2963e3f7e8e346 Jens Axboe    2015-04-09  348   * size to get back to the original request, add request size to get the PDU.
320ae51feed5c2 Jens Axboe    2013-10-24  349   */
320ae51feed5c2 Jens Axboe    2013-10-24  350  static inline struct request *blk_mq_rq_from_pdu(void *pdu)
320ae51feed5c2 Jens Axboe    2013-10-24  351  {
320ae51feed5c2 Jens Axboe    2013-10-24 @352  	return pdu - sizeof(struct request);
320ae51feed5c2 Jens Axboe    2013-10-24  353  }
320ae51feed5c2 Jens Axboe    2013-10-24  354  static inline void *blk_mq_rq_to_pdu(struct request *rq)
320ae51feed5c2 Jens Axboe    2013-10-24  355  {
2963e3f7e8e346 Jens Axboe    2015-04-09 @356  	return rq + 1;
320ae51feed5c2 Jens Axboe    2013-10-24  357  }
320ae51feed5c2 Jens Axboe    2013-10-24  358  
320ae51feed5c2 Jens Axboe    2013-10-24  359  #define queue_for_each_hw_ctx(q, hctx, i)				\
0d0b7d427987f6 Jose Alonso   2014-01-28  360  	for ((i) = 0; (i) < (q)->nr_hw_queues &&			\
0d0b7d427987f6 Jose Alonso   2014-01-28  361  	     ({ hctx = (q)->queue_hw_ctx[i]; 1; }); (i)++)
320ae51feed5c2 Jens Axboe    2013-10-24  362  
320ae51feed5c2 Jens Axboe    2013-10-24  363  #define hctx_for_each_ctx(hctx, ctx, i)					\
0d0b7d427987f6 Jose Alonso   2014-01-28  364  	for ((i) = 0; (i) < (hctx)->nr_ctx &&				\
0d0b7d427987f6 Jose Alonso   2014-01-28  365  	     ({ ctx = (hctx)->ctxs[(i)]; 1; }); (i)++)
320ae51feed5c2 Jens Axboe    2013-10-24  366  
7b7ab780a04869 Sagi Grimberg 2018-12-14  367  static inline blk_qc_t request_to_qc_t(struct blk_mq_hw_ctx *hctx,
7b7ab780a04869 Sagi Grimberg 2018-12-14  368  		struct request *rq)
7b7ab780a04869 Sagi Grimberg 2018-12-14  369  {
7b7ab780a04869 Sagi Grimberg 2018-12-14 @370  	if (rq->tag != -1)
7b7ab780a04869 Sagi Grimberg 2018-12-14  371  		return rq->tag | (hctx->queue_num << BLK_QC_T_SHIFT);
7b7ab780a04869 Sagi Grimberg 2018-12-14  372  
7b7ab780a04869 Sagi Grimberg 2018-12-14  373  	return rq->internal_tag | (hctx->queue_num << BLK_QC_T_SHIFT) |
7b7ab780a04869 Sagi Grimberg 2018-12-14  374  			BLK_QC_T_INTERNAL;
7b7ab780a04869 Sagi Grimberg 2018-12-14  375  }
7b7ab780a04869 Sagi Grimberg 2018-12-14  376  

:::::: The code@line 352 was first introduced by commit
:::::: 320ae51feed5c2f13664aa05a76bec198967e04d blk-mq: new multi-queue block IO queueing mechanism

:::::: TO: Jens Axboe <axboe@kernel.dk>
:::::: CC: Jens Axboe <axboe@kernel.dk>

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 32473 bytes --]

  reply	other threads:[~2019-10-24  5:54 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-10-21 14:29 [RFC 0/6] mmc: Add clock scaling support for mmc driver Ram Prakash Gupta
2019-10-21 14:29 ` [RFC 1/6] mmc: core: Parse clk scaling dt entries Ram Prakash Gupta
2019-10-24  8:38   ` kbuild test robot
2019-10-21 14:29 ` [RFC 2/6] mmc: core: Add core scaling support in driver Ram Prakash Gupta
2019-10-24  5:54   ` kbuild test robot [this message]
2019-10-21 14:29 ` [RFC 3/6] mmc: core: Initialize clk scaling for mmc and SDCard Ram Prakash Gupta
2019-10-21 14:29 ` [RFC 4/6] mmc: core: Add debugfs entries for scaling support Ram Prakash Gupta
2019-10-21 14:29 ` [RFC 5/6] mmc: sdhci-msm: Add capability in platform host Ram Prakash Gupta
2019-10-21 14:29 ` [RFC 6/6] dt-bindings: mmc: sdhci-msm: Add clk scaling dt parameters Ram Prakash Gupta
2019-10-29 16:36   ` Rob Herring
2019-10-22  8:40 ` [RFC 0/6] mmc: Add clock scaling support for mmc driver Ulf Hansson
     [not found]   ` <5c78cc29-deb1-4cea-5b30-6f7538ca4703@codeaurora.org>
2019-11-15 17:39     ` Doug Anderson
2019-11-29  8:10       ` rampraka
2019-12-04  2:09         ` Doug Anderson
2019-11-29  7:34   ` rampraka
     [not found]   ` <0101016eb6152d19-fa1453b7-ae71-49d7-b13b-8c4009375ee1-000000@us-west-2.amazonses.com>
2019-12-18 15:11     ` Ulf Hansson

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 \
    --in-reply-to=201910241339.1eRqtl4F%lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.