mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: ching Huang <ching2048@areca.com.tw>,
	martin.petersen@oracle.com,
	James.Bottomley@hansenpartnership.com,
	linux-scsi@vger.kernel.org,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: oe-kbuild-all@lists.linux.dev
Subject: Re: [PATCH V2 1/3] scsi: arcmsr: support Areca ARC-1688 Raid controller
Date: Sun, 24 Sep 2023 14:11:25 +0800	[thread overview]
Message-ID: <202309241359.nvcTUvcu-lkp@intel.com> (raw)
In-Reply-To: <bc855b702c8a2fbb7d3ffff69f65b6ce89c9042c.camel@areca.com.tw>

Hi ching,

kernel test robot noticed the following build warnings:

[auto build test WARNING on mkp-scsi/for-next]
[also build test WARNING on jejb-scsi/for-next linus/master v6.6-rc2 next-20230921]
[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#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/ching-Huang/scsi-arcmsr-support-Areca-ARC-1688-Raid-controller/20230922-170045
base:   https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
patch link:    https://lore.kernel.org/r/bc855b702c8a2fbb7d3ffff69f65b6ce89c9042c.camel%40areca.com.tw
patch subject: [PATCH V2 1/3] scsi: arcmsr: support Areca ARC-1688 Raid controller
config: arc-allyesconfig (https://download.01.org/0day-ci/archive/20230924/202309241359.nvcTUvcu-lkp@intel.com/config)
compiler: arceb-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20230924/202309241359.nvcTUvcu-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202309241359.nvcTUvcu-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/scsi/arcmsr/arcmsr_hba.c: In function 'arcmsr_free_ccb_pool':
>> drivers/scsi/arcmsr/arcmsr_hba.c:2094:53: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
    2094 |                                 pXorPhys->xorPhys = (dma_addr_t)NULL;
         |                                                     ^


vim +2094 drivers/scsi/arcmsr/arcmsr_hba.c

  2077	
  2078	static void arcmsr_free_ccb_pool(struct AdapterControlBlock *acb)
  2079	{
  2080		if (acb->xor_mega) {
  2081			struct Xor_sg *pXorPhys;
  2082			void **pXorVirt;
  2083			int i;
  2084	
  2085			pXorPhys = (struct Xor_sg *)(acb->xorVirt +
  2086				sizeof(struct HostRamBuf));
  2087			pXorVirt = (void **)((unsigned long)acb->xorVirt +
  2088				(unsigned long)acb->xorVirtOffset);
  2089			for (i = 0; i < acb->xor_mega; i++) {
  2090				if (pXorPhys->xorPhys) {
  2091					dma_free_coherent(&acb->pdev->dev,
  2092						ARCMSR_XOR_SEG_SIZE,
  2093						*pXorVirt, pXorPhys->xorPhys);
> 2094					pXorPhys->xorPhys = (dma_addr_t)NULL;
  2095					*pXorVirt = NULL;
  2096				}
  2097				pXorPhys++;
  2098				pXorVirt++;
  2099			}
  2100			dma_free_coherent(&acb->pdev->dev, acb->init2cfg_size,
  2101				acb->xorVirt, acb->xorPhys);
  2102		}
  2103		dma_free_coherent(&acb->pdev->dev, acb->uncache_size, acb->dma_coherent, acb->dma_coherent_handle);
  2104	}
  2105	

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

      reply	other threads:[~2023-09-24  6:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-22  8:50 ching Huang
2023-09-24  6:11 ` kernel test robot [this message]

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=202309241359.nvcTUvcu-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=James.Bottomley@hansenpartnership.com \
    --cc=ching2048@areca.com.tw \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=martin.petersen@oracle.com \
    --cc=oe-kbuild-all@lists.linux.dev \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®