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