All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: Re: [PATCH 16/16] PCI: Remove usage of the deprecated "pci-dma-compat.h" API
Date: Fri, 07 Jan 2022 17:41:06 +0800	[thread overview]
Message-ID: <202201071737.L7WbVLeU-lkp@intel.com> (raw)
In-Reply-To: <e965573211f8c81c8ba978cfbc21925810a662b1.1641500561.git.christophe.jaillet@wanadoo.fr>

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

Hi Christophe,

Thank you for the patch! Yet something to improve:

[auto build test ERROR on media-tree/master]
[also build test ERROR on helgaas-pci/next soc/for-next linus/master v5.16-rc8 next-20220106]
[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/Christophe-JAILLET/Remove-usage-of-the-deprecated-pci-dma-compat-h-API/20220107-055614
base:   git://linuxtv.org/media_tree.git master
config: arc-randconfig-r025-20220107 (https://download.01.org/0day-ci/archive/20220107/202201071737.L7WbVLeU-lkp(a)intel.com/config)
compiler: arceb-elf-gcc (GCC) 11.2.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/24f5ae55a3ed7f1638a921db66d8e2f428f2e79d
        git remote add linux-review https://github.com/0day-ci/linux
        git fetch --no-tags linux-review Christophe-JAILLET/Remove-usage-of-the-deprecated-pci-dma-compat-h-API/20220107-055614
        git checkout 24f5ae55a3ed7f1638a921db66d8e2f428f2e79d
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=arc SHELL=/bin/bash drivers/scsi/

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

All error/warnings (new ones prefixed by >>):

   In file included from drivers/scsi/fdomain.c:87:
>> include/scsi/scsicam.h:16:31: warning: 'struct block_device' declared inside parameter list will not be visible outside of this definition or declaration
      16 | int scsicam_bios_param(struct block_device *bdev, sector_t capacity, int *ip);
         |                               ^~~~~~~~~~~~
   include/scsi/scsicam.h:17:27: warning: 'struct block_device' declared inside parameter list will not be visible outside of this definition or declaration
      17 | bool scsi_partsize(struct block_device *bdev, sector_t capacity, int geom[3]);
         |                           ^~~~~~~~~~~~
   include/scsi/scsicam.h:18:40: warning: 'struct block_device' declared inside parameter list will not be visible outside of this definition or declaration
      18 | unsigned char *scsi_bios_ptable(struct block_device *bdev);
         |                                        ^~~~~~~~~~~~
   drivers/scsi/fdomain.c: In function 'fdomain_biosparam':
>> drivers/scsi/fdomain.c:468:45: error: passing argument 1 of 'scsi_bios_ptable' from incompatible pointer type [-Werror=incompatible-pointer-types]
     468 |         unsigned char *p = scsi_bios_ptable(bdev);
         |                                             ^~~~
         |                                             |
         |                                             struct block_device *
   In file included from drivers/scsi/fdomain.c:87:
   include/scsi/scsicam.h:18:54: note: expected 'struct block_device *' but argument is of type 'struct block_device *'
      18 | unsigned char *scsi_bios_ptable(struct block_device *bdev);
         |                                 ~~~~~~~~~~~~~~~~~~~~~^~~~
   cc1: some warnings being treated as errors


vim +/scsi_bios_ptable +468 drivers/scsi/fdomain.c

ebeb466531154d6 Ondrej Zary 2019-05-14  463  
ebeb466531154d6 Ondrej Zary 2019-05-14  464  static int fdomain_biosparam(struct scsi_device *sdev,
ebeb466531154d6 Ondrej Zary 2019-05-14  465  			     struct block_device *bdev,	sector_t capacity,
ebeb466531154d6 Ondrej Zary 2019-05-14  466  			     int geom[])
ebeb466531154d6 Ondrej Zary 2019-05-14  467  {
ebeb466531154d6 Ondrej Zary 2019-05-14 @468  	unsigned char *p = scsi_bios_ptable(bdev);
ebeb466531154d6 Ondrej Zary 2019-05-14  469  
ebeb466531154d6 Ondrej Zary 2019-05-14  470  	if (p && p[65] == 0xaa && p[64] == 0x55 /* Partition table valid */
ebeb466531154d6 Ondrej Zary 2019-05-14  471  	    && p[4]) {	 /* Partition type */
ebeb466531154d6 Ondrej Zary 2019-05-14  472  		geom[0] = p[5] + 1;	/* heads */
ebeb466531154d6 Ondrej Zary 2019-05-14  473  		geom[1] = p[6] & 0x3f;	/* sectors */
ebeb466531154d6 Ondrej Zary 2019-05-14  474  	} else {
ebeb466531154d6 Ondrej Zary 2019-05-14  475  		if (capacity >= 0x7e0000) {
ebeb466531154d6 Ondrej Zary 2019-05-14  476  			geom[0] = 255;	/* heads */
ebeb466531154d6 Ondrej Zary 2019-05-14  477  			geom[1] = 63;	/* sectors */
ebeb466531154d6 Ondrej Zary 2019-05-14  478  		} else if (capacity >= 0x200000) {
ebeb466531154d6 Ondrej Zary 2019-05-14  479  			geom[0] = 128;	/* heads */
ebeb466531154d6 Ondrej Zary 2019-05-14  480  			geom[1] = 63;	/* sectors */
ebeb466531154d6 Ondrej Zary 2019-05-14  481  		} else {
ebeb466531154d6 Ondrej Zary 2019-05-14  482  			geom[0] = 64;	/* heads */
ebeb466531154d6 Ondrej Zary 2019-05-14  483  			geom[1] = 32;	/* sectors */
ebeb466531154d6 Ondrej Zary 2019-05-14  484  		}
ebeb466531154d6 Ondrej Zary 2019-05-14  485  	}
ebeb466531154d6 Ondrej Zary 2019-05-14  486  	geom[2] = sector_div(capacity, geom[0] * geom[1]);
ebeb466531154d6 Ondrej Zary 2019-05-14  487  	kfree(p);
ebeb466531154d6 Ondrej Zary 2019-05-14  488  
ebeb466531154d6 Ondrej Zary 2019-05-14  489  	return 0;
ebeb466531154d6 Ondrej Zary 2019-05-14  490  }
ebeb466531154d6 Ondrej Zary 2019-05-14  491  

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

  parent reply	other threads:[~2022-01-07  9:41 UTC|newest]

Thread overview: 82+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-06 21:45 [PATCH 00/16] Remove usage of the deprecated "pci-dma-compat.h" API Christophe JAILLET
2022-01-06 21:45 ` Christophe JAILLET
2022-01-06 21:46 ` [PATCH 01/16] alpha: " Christophe JAILLET
2022-01-10  8:43   ` Christoph Hellwig
2022-01-06 21:47 ` [PATCH 02/16] floppy: " Christophe JAILLET
2022-01-06 21:47   ` Christophe JAILLET
2022-01-10  8:43   ` Christoph Hellwig
2022-01-10  8:43     ` Christoph Hellwig
2022-01-06 21:49 ` [PATCH 03/16] fpga: dfl: pci: " Christophe JAILLET
2022-01-06 23:06   ` Arnd Bergmann
2022-01-07  0:58     ` Arnd Bergmann
2022-01-07  6:34       ` Christophe JAILLET
2022-01-10  8:44   ` Christoph Hellwig
2022-01-06 21:50 ` [PATCH 04/16] media: " Christophe JAILLET
2022-01-07  0:51   ` Arnd Bergmann
2022-01-07  7:10     ` Mauro Carvalho Chehab
2022-02-18 13:11       ` Hans Verkuil
2022-01-10  8:44   ` Christoph Hellwig
2022-01-06 21:51 ` [PATCH 05/16] agp/intel: " Christophe JAILLET
2022-01-07  0:53   ` Arnd Bergmann
2022-01-10  8:45   ` Christoph Hellwig
2022-01-06 21:51 ` [PATCH 06/16] sparc: " Christophe JAILLET
2022-01-07  0:54   ` Arnd Bergmann
2022-01-07 11:04   ` David Miller
2022-01-10  8:45   ` Christoph Hellwig
2022-01-06 21:52 ` [PATCH 07/16] dmaengine: pch_dma: " Christophe JAILLET
2022-01-07  0:56   ` Arnd Bergmann
2022-01-08 16:47     ` Vinod Koul
2022-01-10  8:45   ` Christoph Hellwig
2022-01-06 21:52 ` [PATCH 08/16] rapidio/tsi721: " Christophe JAILLET
2022-01-07  1:00   ` Arnd Bergmann
2022-01-10  8:46   ` Christoph Hellwig
2022-01-06 21:53 ` [PATCH 09/16] media: v4l2-pci-skeleton: " Christophe JAILLET
2022-01-07  1:01   ` Arnd Bergmann
2022-01-10  8:46   ` Christoph Hellwig
2022-01-06 21:54 ` [PATCH 10/16] scsi: message: fusion: " Christophe JAILLET
2022-01-10  8:47   ` Christoph Hellwig
2022-01-06 21:54 ` [PATCH 11/16] scsi: mptbase: Use dma_alloc_coherent() in 'mpt_alloc_fw_memory()' Christophe JAILLET
2022-01-10  8:47   ` Christoph Hellwig
2022-01-06 21:54 ` [PATCH 12/16] scsi: mptbase: Use dma_alloc_coherent() Christophe JAILLET
2022-01-10  8:47   ` Christoph Hellwig
2022-01-06 21:54 ` [PATCH 13/16] scsi: mptsas: Use dma_alloc_coherent() in mptsas_exp_repmanufacture_info() Christophe JAILLET
2022-01-10  8:48   ` Christoph Hellwig
2022-01-06 21:54 ` [PATCH 14/16] scsi: mptsas: Use dma_alloc_coherent() Christophe JAILLET
2022-01-10  8:48   ` Christoph Hellwig
2022-01-06 21:54 ` [PATCH 15/16] scsi: mptctl: " Christophe JAILLET
2022-01-10  8:48   ` Christoph Hellwig
2022-01-06 21:55 ` [PATCH 16/16] PCI: Remove usage of the deprecated "pci-dma-compat.h" API Christophe JAILLET
2022-01-06 22:28   ` Bjorn Helgaas
2022-01-07  6:34     ` Christophe JAILLET
2022-01-07 17:23       ` Marion & Christophe JAILLET
2022-01-10  8:49         ` Christoph Hellwig
2022-01-07  9:20   ` kernel test robot
2022-01-07  9:41   ` kernel test robot [this message]
2022-01-10 15:35 ` [PATCH 00/16] " Martin K. Petersen
2022-01-10 15:35   ` Martin K. Petersen
2022-01-10 15:35   ` Martin K. Petersen
2022-01-19  4:06 ` Martin K. Petersen
2022-01-19  4:06   ` Martin K. Petersen
2022-01-25 19:28 ` Moritz Fischer
2022-01-25 19:28   ` Moritz Fischer
2022-01-25 19:28   ` Moritz Fischer
2022-02-23  7:46 ` Christoph Hellwig
2022-02-23  7:46   ` Christoph Hellwig
2022-02-23  7:46   ` Christoph Hellwig
2022-02-23 20:26   ` Christophe JAILLET
2022-02-23 20:26     ` Christophe JAILLET
2022-02-23 20:42     ` Arnd Bergmann
2022-02-23 20:42       ` Arnd Bergmann
2022-02-23 20:42       ` Arnd Bergmann
2022-02-24  6:25     ` Christoph Hellwig
2022-02-24  6:25       ` Christoph Hellwig
2022-02-24  6:25       ` Christoph Hellwig
2022-02-24  7:07       ` Arnd Bergmann
2022-02-24  7:07         ` Arnd Bergmann
2022-02-24  7:07         ` Arnd Bergmann
2022-02-24 18:15         ` Christophe JAILLET
2022-02-24 18:15           ` Christophe JAILLET
2022-02-24 18:15           ` Christophe JAILLET
2022-02-25 16:20 ` Christoph Hellwig
2022-02-25 16:20   ` Christoph Hellwig
2022-02-25 16:20   ` Christoph Hellwig

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=202201071737.L7WbVLeU-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.