From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id E36EDC43334 for ; Sun, 17 Jul 2022 19:07:05 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3386D6B0071; Sun, 17 Jul 2022 15:07:05 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 2E8816B0072; Sun, 17 Jul 2022 15:07:05 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1AFEB6B0073; Sun, 17 Jul 2022 15:07:05 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0016.hostedemail.com [216.40.44.16]) by kanga.kvack.org (Postfix) with ESMTP id 0AA336B0071 for ; Sun, 17 Jul 2022 15:07:05 -0400 (EDT) Received: from smtpin03.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id C6B863481A for ; Sun, 17 Jul 2022 19:07:04 +0000 (UTC) X-FDA: 79697524368.03.40EE283 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by imf07.hostedemail.com (Postfix) with ESMTP id BDB2D40058 for ; Sun, 17 Jul 2022 19:07:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1658084823; x=1689620823; h=date:from:to:cc:subject:message-id:mime-version; bh=OEClk+VtawNY7rtdBaBzYmzLmHY1zTosC3FLdzs9tP0=; b=RHGqiE+tOpaBHC6QL6Nk/TRiWNhGKj/TKa0gaIu/OkXw86jLpSMdOcfW iVT2W7uEU90ntzWhKFpMBZed84vX+eNzjd/gZoGf7xnHq/ykYfirNlfva WEC42pllBrqOBXSdT7nl0ruYCTk29xdd3tYQ5yu6mPwM8E2+nwy1jrJF2 krFWnjFgDfeyC3YOd+RToIVb7pI2ivCBEOy1ZByoXWjx6ORsFrkrGG97p wdniOyANYBuFSS1ArAATCpmbcqZxVX/RdjRO4bh57ZweiAg5szaIKToyL L03SEUY2czUnDNDGJoBfSNq2drJc7DNOo/Gc9JNmpbnmZHxxUH22Z4CXZ A==; X-IronPort-AV: E=McAfee;i="6400,9594,10411"; a="265869043" X-IronPort-AV: E=Sophos;i="5.92,279,1650956400"; d="scan'208";a="265869043" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jul 2022 12:07:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.92,279,1650956400"; d="scan'208";a="924087878" Received: from lkp-server02.sh.intel.com (HELO ff137eb26ff1) ([10.239.97.151]) by fmsmga005.fm.intel.com with ESMTP; 17 Jul 2022 12:07:01 -0700 Received: from kbuild by ff137eb26ff1 with local (Exim 4.95) (envelope-from ) id 1oD9bY-0003bM-Dx; Sun, 17 Jul 2022 19:07:00 +0000 Date: Mon, 18 Jul 2022 03:06:40 +0800 From: kernel test robot To: Sreekanth Reddy Cc: kbuild-all@lists.01.org, Linux Memory Management List , "Martin K. Petersen" Subject: [linux-next:master 10391/10906] drivers/scsi/mpi3mr/mpi3mr_os.c:389:40: warning: cast from pointer to integer of different size Message-ID: <202207180253.NWBbnISq-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1658084824; a=rsa-sha256; cv=none; b=lEXiOmtcpT0hJFCPaDsID53yeXUHN+7mGV0MuRYjLYkcy/v3WX0BScCzoo44uF3YmUAx4A diTamfvdFhtK3Jrw9Hn7a2xMJuCYrr4+foWyqYFkUAfbOaIJSaWcW171OJCEv0vSjgdWkQ QQUB62PJxAHm+ztnNqGmgfDm5SHQI+8= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=RHGqiE+t; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf07.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.136) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1658084824; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding:in-reply-to: references:dkim-signature; bh=zNoqOCXs0aY5Pd9Xt9IkVduw834xyea0kFGtksQhgZQ=; b=8kiSvGcwbqFh4gfDiiOZYYXZxNT6T7jghjSHKU9SrkhOQkj/Lnmx0xHfCr/l75CWPwdkD+ pyhX2u5aZS8dnHchsthfYG+Yzq3hJ/9SlARNke4faS/Ac74UjT4hJdwbW7wr11cIn92ige gQUYDMF/VWJSoBuNj4GLLVKV8fdtDMI= X-Rspamd-Queue-Id: BDB2D40058 X-Rspam-User: Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=RHGqiE+t; dmarc=pass (policy=none) header.from=intel.com; spf=none (imf07.hostedemail.com: domain of lkp@intel.com has no SPF policy when checking 192.55.52.136) smtp.mailfrom=lkp@intel.com X-Rspamd-Server: rspam08 X-Stat-Signature: tfeptzypab4farsnqhyj6fb5xn48idfh X-HE-Tag: 1658084823-834174 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 6014cfa5bf32cf8c5c58b3cfd5ee0e1542c8a825 commit: c196bc4dce42bdcc2c69ec106d176f427c56003a [10391/10906] scsi: mpi3mr: Reduce VD queue depth on detecting throttling config: csky-allyesconfig (https://download.01.org/0day-ci/archive/20220718/202207180253.NWBbnISq-lkp@intel.com/config) compiler: csky-linux-gcc (GCC) 12.1.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/next/linux-next.git/commit/?id=c196bc4dce42bdcc2c69ec106d176f427c56003a git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout c196bc4dce42bdcc2c69ec106d176f427c56003a # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=csky SHELL=/bin/bash drivers/gpu/drm/amd/amdgpu/ drivers/net/vmxnet3/ drivers/scsi/mpi3mr/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/scsi/mpi3mr/mpi3mr_os.c: In function 'mpi3mr_queue_qd_reduction_event': >> drivers/scsi/mpi3mr/mpi3mr_os.c:389:40: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast] 389 | *(__le64 *)fwevt->event_data = (__le64)tg; | ^ drivers/scsi/mpi3mr/mpi3mr_os.c: In function 'mpi3mr_fwevt_bh': >> drivers/scsi/mpi3mr/mpi3mr_os.c:1663:22: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 1663 | tg = (struct mpi3mr_throttle_group_info *) | ^ drivers/scsi/mpi3mr/mpi3mr_os.c: In function 'mpi3mr_queue_qd_reduction_event': drivers/scsi/mpi3mr/mpi3mr_os.c:389:9: warning: array subscript '__le64 {aka long long unsigned int}[9]' is partly outside array bounds of 'unsigned char[76]' [-Warray-bounds] 389 | *(__le64 *)fwevt->event_data = (__le64)tg; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/fs.h:45, from include/linux/highmem.h:5, from include/linux/bvec.h:10, from include/linux/blk_types.h:10, from include/linux/blkdev.h:9, from drivers/scsi/mpi3mr/mpi3mr.h:13, from drivers/scsi/mpi3mr/mpi3mr_os.c:10: In function 'kmalloc', inlined from 'kzalloc' at include/linux/slab.h:733:9, inlined from 'mpi3mr_alloc_fwevt' at drivers/scsi/mpi3mr/mpi3mr_os.c:198:10, inlined from 'mpi3mr_queue_qd_reduction_event' at drivers/scsi/mpi3mr/mpi3mr_os.c:384:10: include/linux/slab.h:600:24: note: at offset 72 into object of size 76 allocated by 'kmem_cache_alloc_trace' 600 | return kmem_cache_alloc_trace( | ^~~~~~~~~~~~~~~~~~~~~~~ 601 | kmalloc_caches[kmalloc_type(flags)][index], | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 602 | flags, size); | ~~~~~~~~~~~~ vim +389 drivers/scsi/mpi3mr/mpi3mr_os.c 358 359 /** 360 * mpi3mr_queue_qd_reduction_event - Queue TG QD reduction event 361 * @mrioc: Adapter instance reference 362 * @tg: Throttle group information pointer 363 * 364 * Accessor to queue on synthetically generated driver event to 365 * the event worker thread, the driver event will be used to 366 * reduce the QD of all VDs in the TG from the worker thread. 367 * 368 * Return: None. 369 */ 370 static void mpi3mr_queue_qd_reduction_event(struct mpi3mr_ioc *mrioc, 371 struct mpi3mr_throttle_group_info *tg) 372 { 373 struct mpi3mr_fwevt *fwevt; 374 u16 sz = sizeof(struct mpi3mr_throttle_group_info *); 375 376 /* 377 * If the QD reduction event is already queued due to throttle and if 378 * the QD is not restored through device info change event 379 * then dont queue further reduction events 380 */ 381 if (tg->fw_qd != tg->modified_qd) 382 return; 383 384 fwevt = mpi3mr_alloc_fwevt(sz); 385 if (!fwevt) { 386 ioc_warn(mrioc, "failed to queue TG QD reduction event\n"); 387 return; 388 } > 389 *(__le64 *)fwevt->event_data = (__le64)tg; 390 fwevt->mrioc = mrioc; 391 fwevt->event_id = MPI3MR_DRIVER_EVENT_TG_QD_REDUCTION; 392 fwevt->send_ack = 0; 393 fwevt->process_evt = 1; 394 fwevt->evt_ctx = 0; 395 fwevt->event_data_size = sz; 396 tg->modified_qd = max_t(u16, (tg->fw_qd * tg->qd_reduction) / 10, 8); 397 398 dprint_event_bh(mrioc, "qd reduction event queued for tg_id(%d)\n", 399 tg->id); 400 mpi3mr_fwevt_add_to_list(mrioc, fwevt); 401 } 402 -- 0-DAY CI Kernel Test Service https://01.org/lkp