Re: [PATCH RFC net-next] net: hns3: debugfs add dump tm info of nodes, priority and qset
by kernel test robot
Hi Guangbin,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on v5.10]
[cannot apply to net-next/master net/master linus/master sparc-next/master v5.11-rc1 next-20201223]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Guangbin-Huang/net-hns3-debugfs-...
base: 2c85ebc57b3e1817b6ce1a6b703928e113a90442
config: arc-allyesconfig (attached as .config)
compiler: arceb-elf-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/0day-ci/linux/commit/6803a8cc977f24a0da7ebc14ef97f87b8...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Guangbin-Huang/net-hns3-debugfs-add-dump-tm-info-of-nodes-priority-and-qset/20201231-170940
git checkout 6803a8cc977f24a0da7ebc14ef97f87b85fa56cc
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arc
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 >>):
>> drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c:1776:5: warning: no previous prototype for 'hclge_dbg_read_cmd_tm' [-Wmissing-prototypes]
1776 | int hclge_dbg_read_cmd_tm(struct hnae3_handle *handle, const char *cmd_buf,
| ^~~~~~~~~~~~~~~~~~~~~
vim +/hclge_dbg_read_cmd_tm +1776 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c
1775
> 1776 int hclge_dbg_read_cmd_tm(struct hnae3_handle *handle, const char *cmd_buf,
1777 char *buf, int len)
1778 {
1779 #define DUMP_TM_NODE "dump nodes"
1780 #define DUMP_TM_PRI "dump priority"
1781 #define DUMP_TM_QSET "dump qset"
1782
1783 struct hclge_vport *vport = hclge_get_vport(handle);
1784 struct hclge_dev *hdev = vport->back;
1785
1786 if (strncmp(cmd_buf, DUMP_TM_NODE, strlen(DUMP_TM_NODE)) == 0)
1787 hclge_dbg_dump_tm_nodes(hdev, buf, len);
1788 else if (strncmp(cmd_buf, DUMP_TM_PRI, strlen(DUMP_TM_PRI)) == 0)
1789 hclge_dbg_dump_tm_pri(hdev, &cmd_buf[sizeof(DUMP_TM_PRI)],
1790 buf, len);
1791 else if (strncmp(cmd_buf, DUMP_TM_QSET, strlen(DUMP_TM_QSET)) == 0)
1792 hclge_dbg_dump_tm_qset(hdev, &cmd_buf[sizeof(DUMP_TM_QSET)],
1793 buf, len);
1794 else
1795 return -EINVAL;
1796
1797 return 0;
1798 }
1799
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[stable:linux-5.4.y 1860/4216] drivers/scsi/lpfc/lpfc_nportdisc.c:290:1: warning: no previous prototype for function 'lpfc_defer_pt2pt_acc'
by kernel test robot
Hi James,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.y
head: dfce803cd87dc139cfe4da1a68a5b3585e9e47e7
commit: 6b8fbd9b2db056d888dc4f34f61c824faea659b3 [1860/4216] scsi: lpfc: Fix pt2pt discovery on SLI3 HBAs
config: x86_64-randconfig-r021-20201230 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 6b316febb4388764789677f81f03aff373ec35b2)
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
# https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/c...
git remote add stable https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
git fetch --no-tags stable linux-5.4.y
git checkout 6b8fbd9b2db056d888dc4f34f61c824faea659b3
# 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 >>):
>> drivers/scsi/lpfc/lpfc_nportdisc.c:290:1: warning: no previous prototype for function 'lpfc_defer_pt2pt_acc' [-Wmissing-prototypes]
lpfc_defer_pt2pt_acc(struct lpfc_hba *phba, LPFC_MBOXQ_t *link_mbox)
^
drivers/scsi/lpfc/lpfc_nportdisc.c:289:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void
^
static
1 warning generated.
vim +/lpfc_defer_pt2pt_acc +290 drivers/scsi/lpfc/lpfc_nportdisc.c
281
282 /* lpfc_defer_pt2pt_acc - Complete SLI3 pt2pt processing on link up
283 * @phba: pointer to lpfc hba data structure.
284 * @link_mbox: pointer to CONFIG_LINK mailbox object
285 *
286 * This routine is only called if we are SLI3, direct connect pt2pt
287 * mode and the remote NPort issues the PLOGI after link up.
288 */
289 void
> 290 lpfc_defer_pt2pt_acc(struct lpfc_hba *phba, LPFC_MBOXQ_t *link_mbox)
291 {
292 LPFC_MBOXQ_t *login_mbox;
293 MAILBOX_t *mb = &link_mbox->u.mb;
294 struct lpfc_iocbq *save_iocb;
295 struct lpfc_nodelist *ndlp;
296 int rc;
297
298 ndlp = link_mbox->ctx_ndlp;
299 login_mbox = link_mbox->context3;
300 save_iocb = login_mbox->context3;
301 link_mbox->context3 = NULL;
302 login_mbox->context3 = NULL;
303
304 /* Check for CONFIG_LINK error */
305 if (mb->mbxStatus) {
306 lpfc_printf_log(phba, KERN_ERR, LOG_DISCOVERY,
307 "4575 CONFIG_LINK fails pt2pt discovery: %x\n",
308 mb->mbxStatus);
309 mempool_free(login_mbox, phba->mbox_mem_pool);
310 mempool_free(link_mbox, phba->mbox_mem_pool);
311 lpfc_sli_release_iocbq(phba, save_iocb);
312 return;
313 }
314
315 /* Now that CONFIG_LINK completed, and our SID is configured,
316 * we can now proceed with sending the PLOGI ACC.
317 */
318 rc = lpfc_els_rsp_acc(link_mbox->vport, ELS_CMD_PLOGI,
319 save_iocb, ndlp, login_mbox);
320 if (rc) {
321 lpfc_printf_log(phba, KERN_ERR, LOG_DISCOVERY,
322 "4576 PLOGI ACC fails pt2pt discovery: %x\n",
323 rc);
324 mempool_free(login_mbox, phba->mbox_mem_pool);
325 }
326
327 mempool_free(link_mbox, phba->mbox_mem_pool);
328 lpfc_sli_release_iocbq(phba, save_iocb);
329 }
330
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[android-common:android-4.19 12/14] drivers/nvdimm/nd_virtio.c:56:28: sparse: sparse: incorrect type in assignment (different base types)
by kernel test robot
tree: https://android.googlesource.com/kernel/common android-4.19
head: 45a6d3f5180d2d65d6d83fc9ecfa93fd2a332a67
commit: 748a437c5c0179283ae1814b612f9e1a744f3839 [12/14] UPSTREAM: virtio-pmem: Add virtio pmem driver
config: x86_64-randconfig-s021-20201231 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-15) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.3-184-g1b896707-dirty
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android-4.19
git checkout 748a437c5c0179283ae1814b612f9e1a744f3839
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=x86_64
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/nvdimm/nd_virtio.c:56:28: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned int [usertype] type @@ got restricted __virtio32 @@
drivers/nvdimm/nd_virtio.c:56:28: sparse: expected unsigned int [usertype] type
drivers/nvdimm/nd_virtio.c:56:28: sparse: got restricted __virtio32
>> drivers/nvdimm/nd_virtio.c:93:59: sparse: sparse: incorrect type in argument 2 (different base types) @@ expected restricted __virtio32 [usertype] val @@ got unsigned int [usertype] ret @@
drivers/nvdimm/nd_virtio.c:93:59: sparse: expected restricted __virtio32 [usertype] val
drivers/nvdimm/nd_virtio.c:93:59: sparse: got unsigned int [usertype] ret
vim +56 drivers/nvdimm/nd_virtio.c
36
37 /* The request submission function */
38 static int virtio_pmem_flush(struct nd_region *nd_region)
39 {
40 struct virtio_device *vdev = nd_region->provider_data;
41 struct virtio_pmem *vpmem = vdev->priv;
42 struct virtio_pmem_request *req_data;
43 struct scatterlist *sgs[2], sg, ret;
44 unsigned long flags;
45 int err, err1;
46
47 might_sleep();
48 req_data = kmalloc(sizeof(*req_data), GFP_KERNEL);
49 if (!req_data)
50 return -ENOMEM;
51
52 req_data->done = false;
53 init_waitqueue_head(&req_data->host_acked);
54 init_waitqueue_head(&req_data->wq_buf);
55 INIT_LIST_HEAD(&req_data->list);
> 56 req_data->req.type = cpu_to_virtio32(vdev, VIRTIO_PMEM_REQ_TYPE_FLUSH);
57 sg_init_one(&sg, &req_data->req, sizeof(req_data->req));
58 sgs[0] = &sg;
59 sg_init_one(&ret, &req_data->resp.ret, sizeof(req_data->resp));
60 sgs[1] = &ret;
61
62 spin_lock_irqsave(&vpmem->pmem_lock, flags);
63 /*
64 * If virtqueue_add_sgs returns -ENOSPC then req_vq virtual
65 * queue does not have free descriptor. We add the request
66 * to req_list and wait for host_ack to wake us up when free
67 * slots are available.
68 */
69 while ((err = virtqueue_add_sgs(vpmem->req_vq, sgs, 1, 1, req_data,
70 GFP_ATOMIC)) == -ENOSPC) {
71
72 dev_info(&vdev->dev, "failed to send command to virtio pmem device, no free slots in the virtqueue\n");
73 req_data->wq_buf_avail = false;
74 list_add_tail(&req_data->list, &vpmem->req_list);
75 spin_unlock_irqrestore(&vpmem->pmem_lock, flags);
76
77 /* A host response results in "host_ack" getting called */
78 wait_event(req_data->wq_buf, req_data->wq_buf_avail);
79 spin_lock_irqsave(&vpmem->pmem_lock, flags);
80 }
81 err1 = virtqueue_kick(vpmem->req_vq);
82 spin_unlock_irqrestore(&vpmem->pmem_lock, flags);
83 /*
84 * virtqueue_add_sgs failed with error different than -ENOSPC, we can't
85 * do anything about that.
86 */
87 if (err || !err1) {
88 dev_info(&vdev->dev, "failed to send command to virtio pmem device\n");
89 err = -EIO;
90 } else {
91 /* A host repsonse results in "host_ack" getting called */
92 wait_event(req_data->host_acked, req_data->done);
> 93 err = virtio32_to_cpu(vdev, req_data->resp.ret);
94 }
95
96 kfree(req_data);
97 return err;
98 };
99
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[intel-linux-intel-lts:4.14/yocto/base 13391/21617] include/sound/memalloc.h:77:17: error: 'PAGE_SIZE' undeclared; did you mean
by kernel test robot
Hi Kris,
FYI, the error/warning still remains.
tree: https://github.com/intel/linux-intel-lts.git 4.14/yocto/base
head: 1495f925e1703950fc61813cc0377cbcdf648385
commit: 4061602f6467fba015e9923e58102fc2d022b39b [13391/21617] x86/cpu: fix FAM6_ATOM naming
config: xtensa-randconfig-c004-20201231 (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.5.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/intel/linux-intel-lts/commit/4061602f6467fba015e9923e5...
git remote add intel-linux-intel-lts https://github.com/intel/linux-intel-lts.git
git fetch --no-tags intel-linux-intel-lts 4.14/yocto/base
git checkout 4061602f6467fba015e9923e58102fc2d022b39b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross ARCH=xtensa
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/sound/pcm.h:27:0,
from sound/core/pcm_iec958.c:11:
include/sound/memalloc.h: In function 'snd_sgbuf_aligned_pages':
>> include/sound/memalloc.h:77:17: error: 'PAGE_SIZE' undeclared (first use in this function); did you mean 'TASK_SIZE'?
return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
^~~~~~~~~
TASK_SIZE
include/sound/memalloc.h:77:17: note: each undeclared identifier is reported only once for each function it appears in
>> include/sound/memalloc.h:77:35: error: 'PAGE_SHIFT' undeclared (first use in this function); did you mean 'PAGE_SIZE'?
return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
^~~~~~~~~~
PAGE_SIZE
vim +77 include/sound/memalloc.h
71
72 /*
73 * return the pages matching with the given byte size
74 */
75 static inline unsigned int snd_sgbuf_aligned_pages(size_t size)
76 {
> 77 return (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
78 }
79
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[linux-stable-rc:linux-4.19.y 5303/9999] drivers/ata/pata_atiixp.c:282:19: warning: equality comparison with extraneous parentheses
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
head: e864f43593ccf9180c61738abdf1c1dde091367d
commit: b92e5db0f492026778cb31dfc479e50f33f75bca [5303/9999] powerpc/32: Avoid unsupported flags with clang
config: powerpc64-randconfig-r026-20201230 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 6b316febb4388764789677f81f03aff373ec35b2)
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/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.19.y
git checkout b92e5db0f492026778cb31dfc479e50f33f75bca
# 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 >>):
In file included from drivers/ata/pata_atiixp.c:15:
In file included from include/linux/kernel.h:11:
In file included from include/linux/bitops.h:19:
In file included from arch/powerpc/include/asm/bitops.h:247:
In file included from include/asm-generic/bitops/le.h:6:
In file included from arch/powerpc/include/uapi/asm/byteorder.h:14:
In file included from include/linux/byteorder/big_endian.h:11:
include/linux/byteorder/generic.h:195:16: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
for (i = 0; i < len; i++)
~ ^ ~~~
include/linux/byteorder/generic.h:203:16: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
for (i = 0; i < len; i++)
~ ^ ~~~
In file included from drivers/ata/pata_atiixp.c:16:
In file included from include/linux/module.h:10:
In file included from include/linux/stat.h:19:
In file included from include/linux/time.h:6:
In file included from include/linux/seqlock.h:36:
In file included from include/linux/spinlock.h:51:
In file included from include/linux/preempt.h:81:
In file included from ./arch/powerpc/include/generated/asm/preempt.h:1:
In file included from include/asm-generic/preempt.h:5:
include/linux/thread_info.h:141:29: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned int') [-Wsign-compare]
if (unlikely(sz >= 0 && sz < bytes)) {
~~ ^ ~~~~~
include/linux/compiler.h:77:42: note: expanded from macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
In file included from drivers/ata/pata_atiixp.c:16:
In file included from include/linux/module.h:13:
In file included from include/linux/kmod.h:22:
In file included from include/linux/umh.h:4:
In file included from include/linux/gfp.h:6:
include/linux/mmzone.h:984:44: warning: comparison of integers of different signs: 'int' and 'enum zone_type' [-Wsign-compare]
if (likely(!nodes && zonelist_zone_idx(z) <= highest_zoneidx))
~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
include/linux/compiler.h:76:40: note: expanded from macro 'likely'
# define likely(x) __builtin_expect(!!(x), 1)
^
In file included from drivers/ata/pata_atiixp.c:17:
In file included from include/linux/pci.h:1348:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:8:
In file included from include/linux/mm.h:26:
In file included from include/linux/page_ref.h:7:
include/linux/page-flags.h:162:21: warning: comparison of integers of different signs: 'const unsigned long' and 'long' [-Wsign-compare]
return page->flags == PAGE_POISON_PATTERN;
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~
In file included from drivers/ata/pata_atiixp.c:17:
In file included from include/linux/pci.h:1348:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:8:
include/linux/mm.h:560:14: warning: comparison of integers of different signs: 'unsigned long' and 'long' [-Wsign-compare]
return addr >= VMALLOC_START && addr < VMALLOC_END;
~~~~ ^ ~~~~~~~~~~~~~
In file included from drivers/ata/pata_atiixp.c:17:
In file included from include/linux/pci.h:1348:
In file included from include/linux/dmapool.h:14:
In file included from include/linux/scatterlist.h:8:
In file included from include/linux/mm.h:1162:
include/linux/vmstat.h:221:2: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
for_each_online_cpu(cpu)
^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/cpumask.h:778:36: note: expanded from macro 'for_each_online_cpu'
#define for_each_online_cpu(cpu) for_each_cpu((cpu), cpu_online_mask)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/cpumask.h:243:9: note: expanded from macro 'for_each_cpu'
(cpu) < nr_cpu_ids;)
~~~ ^ ~~~~~~~~~~
In file included from drivers/ata/pata_atiixp.c:18:
In file included from include/linux/blkdev.h:11:
include/linux/genhd.h:314:2: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
for_each_possible_cpu(i)
^~~~~~~~~~~~~~~~~~~~~~~~
include/linux/cpumask.h:777:36: note: expanded from macro 'for_each_possible_cpu'
#define for_each_possible_cpu(cpu) for_each_cpu((cpu), cpu_possible_mask)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/cpumask.h:243:9: note: expanded from macro 'for_each_cpu'
(cpu) < nr_cpu_ids;)
~~~ ^ ~~~~~~~~~~
In file included from drivers/ata/pata_atiixp.c:18:
In file included from include/linux/blkdev.h:21:
include/linux/bio.h:412:14: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
if (sectors >= bio_sectors(bio))
~~~~~~~ ^ ~~~~~~~~~~~~~~~~
In file included from drivers/ata/pata_atiixp.c:21:
include/linux/libata.h:113:23: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
if (dval < 0 || dval >= (sizeof(u32) * 8))
~~~~ ^ ~~~~~~~~~~~~~~~
drivers/ata/pata_atiixp.c:254:19: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
.sg_tablesize = LIBATA_DUMB_MAX_PRD,
^~~~~~~~~~~~~~~~~~~
drivers/ata/pata_atiixp.c:253:2: note: previous initialization is here
ATA_BMDMA_SHT(DRV_NAME),
^~~~~~~~~~~~~~~~~~~~~~~
include/linux/libata.h:1910:19: note: expanded from macro 'ATA_BMDMA_SHT'
.sg_tablesize = LIBATA_MAX_PRD, \
^~~~~~~~~~~~~~
>> drivers/ata/pata_atiixp.c:282:19: warning: equality comparison with extraneous parentheses [-Wparentheses-equality]
if((pdev->device == PCI_DEVICE_ID_ATI_IXP600_IDE))
~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/ata/pata_atiixp.c:282:19: note: remove extraneous parentheses around the comparison to silence this warning
if((pdev->device == PCI_DEVICE_ID_ATI_IXP600_IDE))
~ ^ ~
drivers/ata/pata_atiixp.c:282:19: note: use '=' to turn this equality comparison into an assignment
if((pdev->device == PCI_DEVICE_ID_ATI_IXP600_IDE))
^~
=
12 warnings generated.
Assembler messages:
Fatal error: invalid listing option `3'
clang-12: error: assembler command failed with exit code 1 (use -v to see invocation)
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 +282 drivers/ata/pata_atiixp.c
669a5db411d85a1 Jeff Garzik 2006-08-29 251
669a5db411d85a1 Jeff Garzik 2006-08-29 252 static struct scsi_host_template atiixp_sht = {
68d1d07b510bb57 Tejun Heo 2008-03-25 253 ATA_BMDMA_SHT(DRV_NAME),
635adc28087ced0 Alan Cox 2008-02-20 @254 .sg_tablesize = LIBATA_DUMB_MAX_PRD,
669a5db411d85a1 Jeff Garzik 2006-08-29 255 };
669a5db411d85a1 Jeff Garzik 2006-08-29 256
669a5db411d85a1 Jeff Garzik 2006-08-29 257 static struct ata_port_operations atiixp_port_ops = {
029cfd6b74fc5c5 Tejun Heo 2008-03-25 258 .inherits = &ata_bmdma_port_ops,
669a5db411d85a1 Jeff Garzik 2006-08-29 259
f47451c45fe0032 Tejun Heo 2010-05-10 260 .qc_prep = ata_bmdma_dumb_qc_prep,
669a5db411d85a1 Jeff Garzik 2006-08-29 261 .bmdma_start = atiixp_bmdma_start,
669a5db411d85a1 Jeff Garzik 2006-08-29 262 .bmdma_stop = atiixp_bmdma_stop,
bda3028813bd07f Jeff Garzik 2006-09-27 263
46b9e77076a609d Bartlomiej Zolnierkiewicz 2011-10-11 264 .prereset = atiixp_prereset,
029cfd6b74fc5c5 Tejun Heo 2008-03-25 265 .cable_detect = atiixp_cable_detect,
029cfd6b74fc5c5 Tejun Heo 2008-03-25 266 .set_piomode = atiixp_set_piomode,
029cfd6b74fc5c5 Tejun Heo 2008-03-25 267 .set_dmamode = atiixp_set_dmamode,
669a5db411d85a1 Jeff Garzik 2006-08-29 268 };
669a5db411d85a1 Jeff Garzik 2006-08-29 269
16028232bf6dc5e Tejun Heo 2009-01-16 270 static int atiixp_init_one(struct pci_dev *pdev, const struct pci_device_id *id)
669a5db411d85a1 Jeff Garzik 2006-08-29 271 {
1626aeb881236c8 Tejun Heo 2007-05-04 272 static const struct ata_port_info info = {
1d2808fd3d2d5d2 Jeff Garzik 2007-05-28 273 .flags = ATA_FLAG_SLAVE_POSS,
14bdef982caeda1 Erik Inge Bolsø 2009-03-14 274 .pio_mask = ATA_PIO4,
14bdef982caeda1 Erik Inge Bolsø 2009-03-14 275 .mwdma_mask = ATA_MWDMA12_ONLY,
14bdef982caeda1 Erik Inge Bolsø 2009-03-14 276 .udma_mask = ATA_UDMA5,
669a5db411d85a1 Jeff Garzik 2006-08-29 277 .port_ops = &atiixp_port_ops
669a5db411d85a1 Jeff Garzik 2006-08-29 278 };
16028232bf6dc5e Tejun Heo 2009-01-16 279 const struct ata_port_info *ppi[] = { &info, &info };
16028232bf6dc5e Tejun Heo 2009-01-16 280
e47ecd4e48030c5 Darren Stevens 2017-12-31 281 /* SB600 doesn't have secondary port wired */
e47ecd4e48030c5 Darren Stevens 2017-12-31 @282 if((pdev->device == PCI_DEVICE_ID_ATI_IXP600_IDE))
e47ecd4e48030c5 Darren Stevens 2017-12-31 283 ppi[1] = &ata_dummy_port_info;
e47ecd4e48030c5 Darren Stevens 2017-12-31 284
1c5afdf7a629d2e Tejun Heo 2010-05-19 285 return ata_pci_bmdma_init_one(pdev, ppi, &atiixp_sht, NULL,
1d3a8118b049252 Alan Cox 2010-02-17 286 ATA_HOST_PARALLEL_SCAN);
669a5db411d85a1 Jeff Garzik 2006-08-29 287 }
669a5db411d85a1 Jeff Garzik 2006-08-29 288
:::::: The code at line 282 was first introduced by commit
:::::: e47ecd4e48030c516e7521403f98903ea1c8f9a7 libata:pata_atiixp: Don't use unconnected secondary port on SB600
:::::: TO: Darren Stevens <darren(a)stevens-zone.net>
:::::: CC: Tejun Heo <tj(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
Re: [PATCH v6 3/8] power: supply: max8997_charger: Set CHARGER current limit
by Krzysztof Kozlowski
On Thu, Dec 31, 2020 at 07:19:07AM +0000, Timon Baetz wrote:
> On Thu, 31 Dec 2020 07:22:22 +0800, kernel test robot wrote:
> > Hi Timon,
> >
> > Thank you for the patch! Yet something to improve:
> >
> > [auto build test ERROR on regulator/for-next]
> > [also build test ERROR on pinctrl-samsung/for-next krzk/for-next v5.11-rc1 next-20201223]
> > [cannot apply to robh/for-next]
> > [If your patch is applied to the wrong git tree, kindly drop us a note.
> > And when submitting patch, we suggest to use '--base' as documented in
> > https://git-scm.com/docs/git-format-patch]
> >
> > url: https://github.com/0day-ci/linux/commits/Timon-Baetz/extcon-max8997-Add-C...
> > base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/regulator.git for-next
> > config: arm-randconfig-r004-20201230 (attached as .config)
> > compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 3c0d36f977d9e012b245c796ddc8596ac3af659b)
> > 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 arm cross compiling tool for clang build
> > # apt-get install binutils-arm-linux-gnueabi
> > # https://github.com/0day-ci/linux/commit/3a597219bbfc1f9a0b65b9662b7b95bbb...
> > git remote add linux-review https://github.com/0day-ci/linux
> > git fetch --no-tags linux-review Timon-Baetz/extcon-max8997-Add-CHGINS-and-CHGRM-interrupt-handling/20201231-045812
> > git checkout 3a597219bbfc1f9a0b65b9662b7b95bbb7cf728f
> > # save the attached .config to linux build tree
> > COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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/power/supply/max8997_charger.c:261:9: error: implicit declaration of function 'devm_extcon_register_notifier_all' [-Werror,-Wimplicit-function-declaration]
> > ret = devm_extcon_register_notifier_all(&pdev->dev, charger->edev,
> > ^
> > drivers/power/supply/max8997_charger.c:261:9: note: did you mean 'devm_extcon_register_notifier'?
> > include/linux/extcon.h:263:19: note: 'devm_extcon_register_notifier' declared here
> > static inline int devm_extcon_register_notifier(struct device *dev,
> > ^
> > 1 error generated.
>
> This is failing because CONFIG_EXTCON is not set and *_all() don't have
> stub implementations in extcon.h. Should I add a fix for it in this
> series?
It is not problem of your patchset, so up to you. After your changes
the driver still can work fine without CONFIG_EXTCON and CONFIG_REGULATOR.
Best regards,
Krzysztof
1 year, 4 months
[linux-stable-rc:linux-4.19.y 4058/6859] drivers/bluetooth/hci_bcm.c:775:39: warning: unused variable 'acpi_bcm_int_last_gpios'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
head: 3a10b2060ca30843d9251b80a2e1ca71e68035bd
commit: f66a52d991de7ca6c6dc7db768b50e6a28916d1f [4058/6859] kbuild: clang: choose GCC_TOOLCHAIN_DIR not on LD
config: powerpc64-randconfig-r001-20201231 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 6b316febb4388764789677f81f03aff373ec35b2)
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/stable/linux-stable-rc.gi...
git remote add linux-stable-rc https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git
git fetch --no-tags linux-stable-rc linux-4.19.y
git checkout f66a52d991de7ca6c6dc7db768b50e6a28916d1f
# 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 >>):
^
In file included from drivers/bluetooth/hci_bcm.c:42:
In file included from include/net/bluetooth/bluetooth.h:29:
In file included from include/net/sock.h:51:
include/linux/netdevice.h:3474:15: warning: comparison of integers of different signs: 'int' and 'unsigned int' [-Wsign-compare]
BUG_ON(index >= dev->num_rx_queues);
~~~~~ ^ ~~~~~~~~~~~~~~~~~~
arch/powerpc/include/asm/bug.h:77:7: note: expanded from macro 'BUG_ON'
if (x) \
^
In file included from drivers/bluetooth/hci_bcm.c:42:
In file included from include/net/bluetooth/bluetooth.h:29:
In file included from include/net/sock.h:51:
include/linux/netdevice.h:3785:37: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
if (debug_value < 0 || debug_value >= (sizeof(u32) * 8))
~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~
In file included from drivers/bluetooth/hci_bcm.c:42:
In file included from include/net/bluetooth/bluetooth.h:29:
In file included from include/net/sock.h:64:
In file included from include/linux/filter.h:24:
In file included from include/net/sch_generic.h:16:
In file included from include/net/rtnetlink.h:6:
include/net/netlink.h:358:18: warning: comparison of integers of different signs: 'const __u32' (aka 'const unsigned int') and 'int' [-Wsign-compare]
nlh->nlmsg_len <= remaining);
~~~~~~~~~~~~~~ ^ ~~~~~~~~~
include/net/netlink.h:395:21: warning: comparison of integers of different signs: 'const __u32' (aka 'const unsigned int') and 'int' [-Wsign-compare]
if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen))
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
include/net/netlink.h:430:21: warning: comparison of integers of different signs: 'const __u32' (aka 'const unsigned int') and 'int' [-Wsign-compare]
if (nlh->nlmsg_len < nlmsg_msg_size(hdrlen))
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/bluetooth/hci_bcm.c:42:
In file included from include/net/bluetooth/bluetooth.h:29:
In file included from include/net/sock.h:64:
In file included from include/linux/filter.h:24:
In file included from include/net/sch_generic.h:16:
include/net/rtnetlink.h:25:21: warning: comparison of integers of different signs: 'int' and 'unsigned long' [-Wsign-compare]
if (nlmsg_len(nlh) >= sizeof(struct rtgenmsg))
~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/bluetooth/hci_bcm.c:42:
In file included from include/net/bluetooth/bluetooth.h:29:
In file included from include/net/sock.h:64:
In file included from include/linux/filter.h:24:
include/net/sch_generic.h:387:33: warning: comparison of integers of different signs: 'unsigned long' and 'int' [-Wsign-compare]
BUILD_BUG_ON(sizeof(qcb->data) < sz);
~~~~~~~~~~~~~~~~~ ^ ~~
include/linux/build_bug.h:69:19: note: expanded from macro 'BUILD_BUG_ON'
BUILD_BUG_ON_MSG(condition, "BUILD_BUG_ON failed: " #condition)
^~~~~~~~~
include/linux/build_bug.h:45:58: note: expanded from macro 'BUILD_BUG_ON_MSG'
#define BUILD_BUG_ON_MSG(cond, msg) compiletime_assert(!(cond), msg)
^~~~
include/linux/compiler.h:360:22: note: expanded from macro 'compiletime_assert'
_compiletime_assert(condition, msg, __compiletime_assert_, __LINE__)
^~~~~~~~~
include/linux/compiler.h:348:23: note: expanded from macro '_compiletime_assert'
__compiletime_assert(condition, msg, prefix, suffix)
^~~~~~~~~
include/linux/compiler.h:337:18: note: expanded from macro '__compiletime_assert'
int __cond = !(condition); \
^~~~~~~~~
In file included from drivers/bluetooth/hci_bcm.c:42:
In file included from include/net/bluetooth/bluetooth.h:29:
In file included from include/net/sock.h:64:
In file included from include/linux/filter.h:24:
include/net/sch_generic.h:488:13: warning: comparison of integers of different signs: 'int' and 'const unsigned int' [-Wsign-compare]
return ntx < dev->real_num_tx_queues ?
~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~
include/net/sch_generic.h:532:15: warning: comparison of integers of different signs: 'u32' (aka 'unsigned int') and 'int' [-Wsign-compare]
return (hwtc < netdev_get_num_tc(dev)) ? hwtc : -EINVAL;
~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/bluetooth/hci_bcm.c:42:
In file included from include/net/bluetooth/bluetooth.h:29:
In file included from include/net/sock.h:64:
include/linux/filter.h:1009:16: warning: comparison of integers of different signs: 'const __u32' (aka 'const unsigned int') and 'int' [-Wsign-compare]
if (first->k == SKF_AD_OFF + SKF_AD_ALU_XOR_X)
~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/bluetooth/hci_bcm.c:42:
In file included from include/net/bluetooth/bluetooth.h:29:
include/net/sock.h:2241:43: warning: comparison of integers of different signs: 'unsigned int' and 'int' [-Wsign-compare]
return refcount_read(&sk->sk_wmem_alloc) < (sk->sk_sndbuf >> 1);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~
drivers/bluetooth/hci_bcm.c:776:42: warning: missing field 'quirks' initializer [-Wmissing-field-initializers]
{ "device-wakeup-gpios", &first_gpio, 1 },
^
drivers/bluetooth/hci_bcm.c:777:38: warning: missing field 'quirks' initializer [-Wmissing-field-initializers]
{ "shutdown-gpios", &second_gpio, 1 },
^
drivers/bluetooth/hci_bcm.c:778:40: warning: missing field 'quirks' initializer [-Wmissing-field-initializers]
{ "host-wakeup-gpios", &third_gpio, 1 },
^
drivers/bluetooth/hci_bcm.c:783:40: warning: missing field 'quirks' initializer [-Wmissing-field-initializers]
{ "host-wakeup-gpios", &first_gpio, 1 },
^
drivers/bluetooth/hci_bcm.c:784:43: warning: missing field 'quirks' initializer [-Wmissing-field-initializers]
{ "device-wakeup-gpios", &second_gpio, 1 },
^
drivers/bluetooth/hci_bcm.c:785:37: warning: missing field 'quirks' initializer [-Wmissing-field-initializers]
{ "shutdown-gpios", &third_gpio, 1 },
^
>> drivers/bluetooth/hci_bcm.c:775:39: warning: unused variable 'acpi_bcm_int_last_gpios' [-Wunused-const-variable]
static const struct acpi_gpio_mapping acpi_bcm_int_last_gpios[] = {
^
>> drivers/bluetooth/hci_bcm.c:782:39: warning: unused variable 'acpi_bcm_int_first_gpios' [-Wunused-const-variable]
static const struct acpi_gpio_mapping acpi_bcm_int_first_gpios[] = {
^
33 warnings generated.
Assembler messages:
Fatal error: invalid listing option `6'
clang-12: error: assembler command failed with exit code 1 (use -v to see invocation)
vim +/acpi_bcm_int_last_gpios +775 drivers/bluetooth/hci_bcm.c
89ab37b489d11e2 Daniel Drake 2017-01-05 774
89ab37b489d11e2 Daniel Drake 2017-01-05 @775 static const struct acpi_gpio_mapping acpi_bcm_int_last_gpios[] = {
9644e6b98cda048 Hans de Goede 2018-03-16 776 { "device-wakeup-gpios", &first_gpio, 1 },
9644e6b98cda048 Hans de Goede 2018-03-16 777 { "shutdown-gpios", &second_gpio, 1 },
9644e6b98cda048 Hans de Goede 2018-03-16 778 { "host-wakeup-gpios", &third_gpio, 1 },
89ab37b489d11e2 Daniel Drake 2017-01-05 779 { },
89ab37b489d11e2 Daniel Drake 2017-01-05 780 };
89ab37b489d11e2 Daniel Drake 2017-01-05 781
89ab37b489d11e2 Daniel Drake 2017-01-05 @782 static const struct acpi_gpio_mapping acpi_bcm_int_first_gpios[] = {
9644e6b98cda048 Hans de Goede 2018-03-16 783 { "host-wakeup-gpios", &first_gpio, 1 },
9644e6b98cda048 Hans de Goede 2018-03-16 784 { "device-wakeup-gpios", &second_gpio, 1 },
9644e6b98cda048 Hans de Goede 2018-03-16 785 { "shutdown-gpios", &third_gpio, 1 },
0395ffc1ee0509d Frederic Danis 2015-08-11 786 { },
0395ffc1ee0509d Frederic Danis 2015-08-11 787 };
0395ffc1ee0509d Frederic Danis 2015-08-11 788
:::::: The code at line 775 was first introduced by commit
:::::: 89ab37b489d11e2ec3a70635139dcda076c16354 Bluetooth: hci_bcm: Add support for BCM2E95 and BCM2E96
:::::: TO: Daniel Drake <drake(a)endlessm.com>
:::::: CC: Marcel Holtmann <marcel(a)holtmann.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months
[sashal-linux-stable:queue-4.4 7/10] arch/s390/kernel/smp.c:852:9: error: implicit declaration of function 'smp_get_base_cpu'; did you mean
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-4.4
head: 0403535f41a8ea7e98d76c506e9425d357c670c3
commit: dbcde903799671b0c171e0450733faaf11dc66ad [7/10] s390/smp: use smp_get_base_cpu() helper function
config: s390-allyesconfig (attached as .config)
compiler: s390-linux-gcc (GCC) 7.5.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://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-4.4
git checkout dbcde903799671b0c171e0450733faaf11dc66ad
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-7.5.0 make.cross ARCH=s390
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 >>):
arch/s390/kernel/smp.c: In function '__cpu_up':
>> arch/s390/kernel/smp.c:852:9: error: implicit declaration of function 'smp_get_base_cpu'; did you mean 'set_task_cpu'? [-Werror=implicit-function-declaration]
base = smp_get_base_cpu(cpu);
^~~~~~~~~~~~~~~~
set_task_cpu
cc1: some warnings being treated as errors
vim +852 arch/s390/kernel/smp.c
842
843 /* Upping and downing of CPUs */
844 int __cpu_up(unsigned int cpu, struct task_struct *tidle)
845 {
846 struct pcpu *pcpu;
847 int base, i, rc;
848
849 pcpu = pcpu_devices + cpu;
850 if (pcpu->state != CPU_STATE_CONFIGURED)
851 return -EIO;
> 852 base = smp_get_base_cpu(cpu);
853 for (i = 0; i <= smp_cpu_mtid; i++) {
854 if (base + i < nr_cpu_ids)
855 if (cpu_online(base + i))
856 break;
857 }
858 /*
859 * If this is the first CPU of the core to get online
860 * do an initial CPU reset.
861 */
862 if (i > smp_cpu_mtid &&
863 pcpu_sigp_retry(pcpu_devices + base, SIGP_INITIAL_CPU_RESET, 0) !=
864 SIGP_CC_ORDER_CODE_ACCEPTED)
865 return -EIO;
866
867 rc = pcpu_alloc_lowcore(pcpu, cpu);
868 if (rc)
869 return rc;
870 pcpu_prepare_secondary(pcpu, cpu);
871 pcpu_attach_task(pcpu, tidle);
872 pcpu_start_fn(pcpu, smp_start_secondary, NULL);
873 /* Wait until cpu puts itself in the online & active maps */
874 while (!cpu_online(cpu) || !cpu_active(cpu))
875 cpu_relax();
876 return 0;
877 }
878
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 4 months