* [linux-nvme:nvme-5.14 27/28] drivers/nvme/host/pci.c:539:7: error: implicit declaration of function 'nvme_ctrl_sgl_supported'
@ 2021-06-08 22:11 ` kernel test robot
0 siblings, 0 replies; 8+ messages in thread
From: kernel test robot @ 2021-06-08 22:11 UTC (permalink / raw)
To: Chaitanya Kulkarni
Cc: kbuild-all, clang-built-linux, linux-nvme, Christoph Hellwig
[-- Attachment #1: Type: text/plain, Size: 3286 bytes --]
tree: git://git.infradead.org/nvme.git nvme-5.14
head: b0386eb167134d958f1876a1a7e39e113385c516
commit: a854c5eb4e959f0dfc6e1c22b51128ac68bc051c [27/28] nvme-pci: use helper for ctrl sgl check
config: powerpc-randconfig-r013-20210608 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d32cc150feb72f315a5bbd34f92e7beca21a50da)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
git remote add linux-nvme git://git.infradead.org/nvme.git
git fetch --no-tags linux-nvme nvme-5.14
git checkout a854c5eb4e959f0dfc6e1c22b51128ac68bc051c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/nvme/host/pci.c:7:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:15:
In file included from include/linux/bitops.h:32:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:308:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> drivers/nvme/host/pci.c:539:7: error: implicit declaration of function 'nvme_ctrl_sgl_supported' [-Werror,-Wimplicit-function-declaration]
if (!nvme_ctrl_sgl_supported(&dev->ctrl))
^
drivers/nvme/host/pci.c:858:8: error: implicit declaration of function 'nvme_ctrl_sgl_supported' [-Werror,-Wimplicit-function-declaration]
nvme_ctrl_sgl_supported(&dev->ctrl))
^
1 warning and 2 errors generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for HOTPLUG_CPU
Depends on SMP && (PPC_PSERIES || PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE
Selected by
- PM_SLEEP_SMP && SMP && (ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE && PM_SLEEP
vim +/nvme_ctrl_sgl_supported +539 drivers/nvme/host/pci.c
530
531 static inline bool nvme_pci_use_sgls(struct nvme_dev *dev, struct request *req)
532 {
533 struct nvme_iod *iod = blk_mq_rq_to_pdu(req);
534 int nseg = blk_rq_nr_phys_segments(req);
535 unsigned int avg_seg_size;
536
537 avg_seg_size = DIV_ROUND_UP(blk_rq_payload_bytes(req), nseg);
538
> 539 if (!nvme_ctrl_sgl_supported(&dev->ctrl))
540 return false;
541 if (!iod->nvmeq->qid)
542 return false;
543 if (!sgl_threshold || avg_seg_size < sgl_threshold)
544 return false;
545 return true;
546 }
547
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36964 bytes --]
[-- Attachment #3: Type: text/plain, Size: 158 bytes --]
_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
^ permalink raw reply [flat|nested] 8+ messages in thread
* [linux-nvme:nvme-5.14 27/28] drivers/nvme/host/pci.c:539:7: error: implicit declaration of function 'nvme_ctrl_sgl_supported'
@ 2021-06-08 22:11 ` kernel test robot
0 siblings, 0 replies; 8+ messages in thread
From: kernel test robot @ 2021-06-08 22:11 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3358 bytes --]
tree: git://git.infradead.org/nvme.git nvme-5.14
head: b0386eb167134d958f1876a1a7e39e113385c516
commit: a854c5eb4e959f0dfc6e1c22b51128ac68bc051c [27/28] nvme-pci: use helper for ctrl sgl check
config: powerpc-randconfig-r013-20210608 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project d32cc150feb72f315a5bbd34f92e7beca21a50da)
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 powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
git remote add linux-nvme git://git.infradead.org/nvme.git
git fetch --no-tags linux-nvme nvme-5.14
git checkout a854c5eb4e959f0dfc6e1c22b51128ac68bc051c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/nvme/host/pci.c:7:
In file included from include/linux/acpi.h:13:
In file included from include/linux/irqdomain.h:35:
In file included from include/linux/of.h:15:
In file included from include/linux/bitops.h:32:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:308:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> drivers/nvme/host/pci.c:539:7: error: implicit declaration of function 'nvme_ctrl_sgl_supported' [-Werror,-Wimplicit-function-declaration]
if (!nvme_ctrl_sgl_supported(&dev->ctrl))
^
drivers/nvme/host/pci.c:858:8: error: implicit declaration of function 'nvme_ctrl_sgl_supported' [-Werror,-Wimplicit-function-declaration]
nvme_ctrl_sgl_supported(&dev->ctrl))
^
1 warning and 2 errors generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for HOTPLUG_CPU
Depends on SMP && (PPC_PSERIES || PPC_PMAC || PPC_POWERNV || FSL_SOC_BOOKE
Selected by
- PM_SLEEP_SMP && SMP && (ARCH_SUSPEND_POSSIBLE || ARCH_HIBERNATION_POSSIBLE && PM_SLEEP
vim +/nvme_ctrl_sgl_supported +539 drivers/nvme/host/pci.c
530
531 static inline bool nvme_pci_use_sgls(struct nvme_dev *dev, struct request *req)
532 {
533 struct nvme_iod *iod = blk_mq_rq_to_pdu(req);
534 int nseg = blk_rq_nr_phys_segments(req);
535 unsigned int avg_seg_size;
536
537 avg_seg_size = DIV_ROUND_UP(blk_rq_payload_bytes(req), nseg);
538
> 539 if (!nvme_ctrl_sgl_supported(&dev->ctrl))
540 return false;
541 if (!iod->nvmeq->qid)
542 return false;
543 if (!sgl_threshold || avg_seg_size < sgl_threshold)
544 return false;
545 return true;
546 }
547
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 36964 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [linux-nvme:nvme-5.14 27/28] drivers/nvme/host/pci.c:539:7: error: implicit declaration of function 'nvme_ctrl_sgl_supported'
2021-06-09 0:14 ` Chaitanya Kulkarni
@ 2021-06-09 12:58 ` Christoph Hellwig
-1 siblings, 0 replies; 8+ messages in thread
From: Christoph Hellwig @ 2021-06-09 12:58 UTC (permalink / raw)
To: Chaitanya Kulkarni
Cc: kernel test robot, kbuild-all, linux-nvme, Christoph Hellwig
I'll drop the patch for now.
_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [linux-nvme:nvme-5.14 27/28] drivers/nvme/host/pci.c:539:7: error: implicit declaration of function 'nvme_ctrl_sgl_supported'
@ 2021-06-09 12:58 ` Christoph Hellwig
0 siblings, 0 replies; 8+ messages in thread
From: Christoph Hellwig @ 2021-06-09 12:58 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 28 bytes --]
I'll drop the patch for now.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [linux-nvme:nvme-5.14 27/28] drivers/nvme/host/pci.c:539:7: error: implicit declaration of function 'nvme_ctrl_sgl_supported'
2021-06-08 21:30 ` kernel test robot
@ 2021-06-09 0:14 ` Chaitanya Kulkarni
-1 siblings, 0 replies; 8+ messages in thread
From: Chaitanya Kulkarni @ 2021-06-09 0:14 UTC (permalink / raw)
To: kernel test robot; +Cc: kbuild-all, linux-nvme, Christoph Hellwig
> On Jun 8, 2021, at 2:30 PM, kernel test robot <lkp@intel.com> wrote:
>
> tree: git://git.infradead.org/nvme.git nvme-5.14
> head: b0386eb167134d958f1876a1a7e39e113385c516
> commit: a854c5eb4e959f0dfc6e1c22b51128ac68bc051c [27/28] nvme-pci: use helper for ctrl sgl check
> config: sparc-randconfig-r024-20210608 (attached as .config)
> compiler: sparc-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
> git remote add linux-nvme git://git.infradead.org/nvme.git
> git fetch --no-tags linux-nvme nvme-5.14
> git checkout a854c5eb4e959f0dfc6e1c22b51128ac68bc051c
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
> drivers/nvme/host/pci.c: In function 'nvme_pci_use_sgls':
>>> drivers/nvme/host/pci.c:539:7: error: implicit declaration of function 'nvme_ctrl_sgl_supported' [-Werror=implicit-function-declaration]
> 539 | if (!nvme_ctrl_sgl_supported(&dev->ctrl))
> | ^~~~~~~~~~~~~~~~~~~~~~~
> cc1: some warnings being treated as errors
>
>
> vim +/nvme_ctrl_sgl_supported +539 drivers/nvme/host/pci.c
>
> 530
> 531 static inline bool nvme_pci_use_sgls(struct nvme_dev *dev, struct request *req)
> 532 {
> 533 struct nvme_iod *iod = blk_mq_rq_to_pdu(req);
> 534 int nseg = blk_rq_nr_phys_segments(req);
> 535 unsigned int avg_seg_size;
> 536
> 537 avg_seg_size = DIV_ROUND_UP(blk_rq_payload_bytes(req), nseg);
> 538
>> 539 if (!nvme_ctrl_sgl_supported(&dev->ctrl))
> 540 return false;
> 541 if (!iod->nvmeq->qid)
> 542 return false;
> 543 if (!sgl_threshold || avg_seg_size < sgl_threshold)
> 544 return false;
> 545 return true;
> 546 }
> 547
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
> <.config.gz>
The patches to fix this are already sent.
_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [linux-nvme:nvme-5.14 27/28] drivers/nvme/host/pci.c:539:7: error: implicit declaration of function 'nvme_ctrl_sgl_supported'
@ 2021-06-09 0:14 ` Chaitanya Kulkarni
0 siblings, 0 replies; 8+ messages in thread
From: Chaitanya Kulkarni @ 2021-06-09 0:14 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2394 bytes --]
> On Jun 8, 2021, at 2:30 PM, kernel test robot <lkp@intel.com> wrote:
>
> tree: git://git.infradead.org/nvme.git nvme-5.14
> head: b0386eb167134d958f1876a1a7e39e113385c516
> commit: a854c5eb4e959f0dfc6e1c22b51128ac68bc051c [27/28] nvme-pci: use helper for ctrl sgl check
> config: sparc-randconfig-r024-20210608 (attached as .config)
> compiler: sparc-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
> git remote add linux-nvme git://git.infradead.org/nvme.git
> git fetch --no-tags linux-nvme nvme-5.14
> git checkout a854c5eb4e959f0dfc6e1c22b51128ac68bc051c
> # save the attached .config to linux build tree
> COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
>
> If you fix the issue, kindly add following tag as appropriate
> Reported-by: kernel test robot <lkp@intel.com>
>
> All errors (new ones prefixed by >>):
>
> drivers/nvme/host/pci.c: In function 'nvme_pci_use_sgls':
>>> drivers/nvme/host/pci.c:539:7: error: implicit declaration of function 'nvme_ctrl_sgl_supported' [-Werror=implicit-function-declaration]
> 539 | if (!nvme_ctrl_sgl_supported(&dev->ctrl))
> | ^~~~~~~~~~~~~~~~~~~~~~~
> cc1: some warnings being treated as errors
>
>
> vim +/nvme_ctrl_sgl_supported +539 drivers/nvme/host/pci.c
>
> 530
> 531 static inline bool nvme_pci_use_sgls(struct nvme_dev *dev, struct request *req)
> 532 {
> 533 struct nvme_iod *iod = blk_mq_rq_to_pdu(req);
> 534 int nseg = blk_rq_nr_phys_segments(req);
> 535 unsigned int avg_seg_size;
> 536
> 537 avg_seg_size = DIV_ROUND_UP(blk_rq_payload_bytes(req), nseg);
> 538
>> 539 if (!nvme_ctrl_sgl_supported(&dev->ctrl))
> 540 return false;
> 541 if (!iod->nvmeq->qid)
> 542 return false;
> 543 if (!sgl_threshold || avg_seg_size < sgl_threshold)
> 544 return false;
> 545 return true;
> 546 }
> 547
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
> <.config.gz>
The patches to fix this are already sent.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [linux-nvme:nvme-5.14 27/28] drivers/nvme/host/pci.c:539:7: error: implicit declaration of function 'nvme_ctrl_sgl_supported'
@ 2021-06-08 21:30 ` kernel test robot
0 siblings, 0 replies; 8+ messages in thread
From: kernel test robot @ 2021-06-08 21:30 UTC (permalink / raw)
To: Chaitanya Kulkarni; +Cc: kbuild-all, linux-nvme, Christoph Hellwig
[-- Attachment #1: Type: text/plain, Size: 2029 bytes --]
tree: git://git.infradead.org/nvme.git nvme-5.14
head: b0386eb167134d958f1876a1a7e39e113385c516
commit: a854c5eb4e959f0dfc6e1c22b51128ac68bc051c [27/28] nvme-pci: use helper for ctrl sgl check
config: sparc-randconfig-r024-20210608 (attached as .config)
compiler: sparc-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
git remote add linux-nvme git://git.infradead.org/nvme.git
git fetch --no-tags linux-nvme nvme-5.14
git checkout a854c5eb4e959f0dfc6e1c22b51128ac68bc051c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/nvme/host/pci.c: In function 'nvme_pci_use_sgls':
>> drivers/nvme/host/pci.c:539:7: error: implicit declaration of function 'nvme_ctrl_sgl_supported' [-Werror=implicit-function-declaration]
539 | if (!nvme_ctrl_sgl_supported(&dev->ctrl))
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/nvme_ctrl_sgl_supported +539 drivers/nvme/host/pci.c
530
531 static inline bool nvme_pci_use_sgls(struct nvme_dev *dev, struct request *req)
532 {
533 struct nvme_iod *iod = blk_mq_rq_to_pdu(req);
534 int nseg = blk_rq_nr_phys_segments(req);
535 unsigned int avg_seg_size;
536
537 avg_seg_size = DIV_ROUND_UP(blk_rq_payload_bytes(req), nseg);
538
> 539 if (!nvme_ctrl_sgl_supported(&dev->ctrl))
540 return false;
541 if (!iod->nvmeq->qid)
542 return false;
543 if (!sgl_threshold || avg_seg_size < sgl_threshold)
544 return false;
545 return true;
546 }
547
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 29349 bytes --]
[-- Attachment #3: Type: text/plain, Size: 158 bytes --]
_______________________________________________
Linux-nvme mailing list
Linux-nvme@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-nvme
^ permalink raw reply [flat|nested] 8+ messages in thread
* [linux-nvme:nvme-5.14 27/28] drivers/nvme/host/pci.c:539:7: error: implicit declaration of function 'nvme_ctrl_sgl_supported'
@ 2021-06-08 21:30 ` kernel test robot
0 siblings, 0 replies; 8+ messages in thread
From: kernel test robot @ 2021-06-08 21:30 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2079 bytes --]
tree: git://git.infradead.org/nvme.git nvme-5.14
head: b0386eb167134d958f1876a1a7e39e113385c516
commit: a854c5eb4e959f0dfc6e1c22b51128ac68bc051c [27/28] nvme-pci: use helper for ctrl sgl check
config: sparc-randconfig-r024-20210608 (attached as .config)
compiler: sparc-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
git remote add linux-nvme git://git.infradead.org/nvme.git
git fetch --no-tags linux-nvme nvme-5.14
git checkout a854c5eb4e959f0dfc6e1c22b51128ac68bc051c
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
drivers/nvme/host/pci.c: In function 'nvme_pci_use_sgls':
>> drivers/nvme/host/pci.c:539:7: error: implicit declaration of function 'nvme_ctrl_sgl_supported' [-Werror=implicit-function-declaration]
539 | if (!nvme_ctrl_sgl_supported(&dev->ctrl))
| ^~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +/nvme_ctrl_sgl_supported +539 drivers/nvme/host/pci.c
530
531 static inline bool nvme_pci_use_sgls(struct nvme_dev *dev, struct request *req)
532 {
533 struct nvme_iod *iod = blk_mq_rq_to_pdu(req);
534 int nseg = blk_rq_nr_phys_segments(req);
535 unsigned int avg_seg_size;
536
537 avg_seg_size = DIV_ROUND_UP(blk_rq_payload_bytes(req), nseg);
538
> 539 if (!nvme_ctrl_sgl_supported(&dev->ctrl))
540 return false;
541 if (!iod->nvmeq->qid)
542 return false;
543 if (!sgl_threshold || avg_seg_size < sgl_threshold)
544 return false;
545 return true;
546 }
547
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 29349 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2021-06-09 13:25 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-08 22:11 [linux-nvme:nvme-5.14 27/28] drivers/nvme/host/pci.c:539:7: error: implicit declaration of function 'nvme_ctrl_sgl_supported' kernel test robot
2021-06-08 22:11 ` kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2021-06-08 21:30 kernel test robot
2021-06-08 21:30 ` kernel test robot
2021-06-09 0:14 ` Chaitanya Kulkarni
2021-06-09 0:14 ` Chaitanya Kulkarni
2021-06-09 12:58 ` Christoph Hellwig
2021-06-09 12:58 ` Christoph Hellwig
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.