Re: [pci:review/vga] BUILD SUCCESS WITH WARNING b6f0a577c4fbcc4f1e7eaf0e9a30bcfd20002b44

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jul 22, 2021 at 02:35:29PM -0500, Bjorn Helgaas wrote:
> On Thu, Jul 22, 2021 at 02:06:19PM +0800, kernel test robot wrote:
> > tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci.git review/vga
> > branch HEAD: b6f0a577c4fbcc4f1e7eaf0e9a30bcfd20002b44  FIXME PCI/VGA: Rework default VGA device selection
> > 
> > possible Warning in current branch:
> > 
> > drivers/pci/vgaarb.c:1045:8: warning: %d in format string (no. 6) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint]
> 
> At b6f0a577c4fb ("FIXME PCI/VGA: Rework default VGA device
> selection"), line 1045 in vgaarb.c does not contain a format string:
> 
>   1042  #define PCI_INVALID_CARD       ((struct pci_dev *)-1UL)
>   1043
>   1044  /*
>   1045   * Each user has an array of these, tracking which cards have locks
>   1046   */
>   1047  struct vga_arb_user_card {
>   1048          struct pci_dev *pdev;
> 
> Where's the info so I can reproduce this?  Compiler version and
> options, .config file, etc?

Never mind, I think I found it manually.  At 4e5cfb7f1564 ("PCI/VGA:
Move vgaarb to drivers/pci"), line 1045 *was* an snprintf that used %d
for unsigned values.

> > Warning ids grouped by kconfigs:
> > 
> > gcc_recent_errors
> > `-- arm-randconfig-p001-20210720
> >     `-- drivers-pci-vgaarb.c:warning:d-in-format-string-(no.-)-requires-int-but-the-argument-type-is-unsigned-int-.-invalidPrintfArgType_sint



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux