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 7EDB2C3DA6E for ; Sun, 17 Dec 2023 08:08:45 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7AB2B6B0075; Sun, 17 Dec 2023 03:08:44 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 75BA06B0078; Sun, 17 Dec 2023 03:08:44 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 622926B007B; Sun, 17 Dec 2023 03:08:44 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 4F2B86B0075 for ; Sun, 17 Dec 2023 03:08:44 -0500 (EST) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 14B83160162 for ; Sun, 17 Dec 2023 08:08:44 +0000 (UTC) X-FDA: 81575583768.22.96D36CD Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.11]) by imf07.hostedemail.com (Postfix) with ESMTP id A9B7640014 for ; Sun, 17 Dec 2023 08:08:41 +0000 (UTC) Authentication-Results: imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=iUp4CyMm; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 198.175.65.11 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1702800522; 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=Mg5eZY5BHwmijLe+3/YW0Cy66vz8v+wH07FEzGNpoyQ=; b=f0XqTMtWBLNBUzwblH+1Y0NyzNkRAp+WLAcbFQIJJOGguBf7L0tj0aw38I/aEa5ucbTlJz CR6pjkJaq/MHCJVDU7d6OJWHdDCliORx1apZM4zmblS+kIE+YjPCuhLubKCBchDN0XGtre Hp4zPYg8vo9z6OIWGqUCiZRHbg+Kj6I= ARC-Authentication-Results: i=1; imf07.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=iUp4CyMm; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf07.hostedemail.com: domain of lkp@intel.com designates 198.175.65.11 as permitted sender) smtp.mailfrom=lkp@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1702800522; a=rsa-sha256; cv=none; b=eKagZRjQAhpwrEQ5ecjA70B6+fc/gpwKCaGf/Gha5okxtrLB8iQwJiOjxj692+76WGjiI2 89nNw9riP4OGLXG5ELGpFgPsMiil5bwEOsxJ9IulkhIo5VeYcVBsCQTMFb8TrqfoxxObAl 2Fj1xEwUkf3anj2OlABbd1QY5WFh4/c= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1702800522; x=1734336522; h=date:from:to:cc:subject:message-id:mime-version; bh=5NXzoIRSDAl/OjSr6xbYZNe+bA/fxCKfexV2BaBHuD8=; b=iUp4CyMm1EQllfDoOpN5dgGIbvH3483wClvmbM28b2XNhchKYEr7xNQx +OBaVw6PKb/JZpvsFWQj/RaTLwBlcoOHauLY7mHqkJ+u5B0694iij1JQH JSa7Ni6QR40226tEUkxu71Rd4oFw/33C1h5b6knPc8MnFiIfKuQKy9KSY Akqj/dbi8v12oo1IT1+UXBZWhrZ+BTuwinuaiBcHmpzc8tbQra5Hos0W8 g6Qb0ISQVzu6qFkEMhFyEBKDA/Fzq7GC5vp2XFKTWABeDYkMc5lLIIaVu 6FJAFJ9zp3N19Lno0mlcPyESk84UeFSK3UaP161TToP185rQwhLyOYeFX g==; X-IronPort-AV: E=McAfee;i="6600,9927,10926"; a="2244016" X-IronPort-AV: E=Sophos;i="6.04,283,1695711600"; d="scan'208";a="2244016" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orvoesa103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Dec 2023 00:08:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10926"; a="865881832" X-IronPort-AV: E=Sophos;i="6.04,283,1695711600"; d="scan'208";a="865881832" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by FMSMGA003.fm.intel.com with ESMTP; 17 Dec 2023 00:08:38 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rEmCN-0002qG-25; Sun, 17 Dec 2023 08:08:34 +0000 Date: Sun, 17 Dec 2023 16:07:52 +0800 From: kernel test robot To: Manivannan Sadhasivam Cc: oe-kbuild-all@lists.linux.dev, Linux Memory Management List Subject: [linux-next:master 7696/8213] drivers/bus/mhi/ep/main.c:519:22: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'size_t' {aka 'unsigned int'} Message-ID: <202312171537.W9d6tX7p-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Rspamd-Queue-Id: A9B7640014 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: tyqssooacjcc6s76drh7wdgmi9ungdom X-HE-Tag: 1702800521-381340 X-HE-Meta: U2FsdGVkX1/j9zkPJNhdy0hX4uFNDEs4VBLZ8MgXZPCneZVbTpSN3eAD2dP90bfiglsai6BixeQtr5uol6yLdfrYRvCFzGM1987sTpgoHM3G62JEGNzIjsmNkL8Uj3ayUNvsYKi0GpHTvcIQcZhiVqeOOXcDm7BNb4oPewucO2QLc3n+eFZdY88St3kKiK6F7GonBr7+m2JO5EYeAtSpTkZt0LWY2SmK+bKEgI7QlG0C9RpfAZj4MyeXfCt92JNJItTDbWlQlusc+BWHPD9JgmThZMeH10x2zDwsp/T6mF5iCoWQ/Ynhs98r71Reu66zIn4DBFHznaPbrUSEDb/pRexxsUPQXqdmpyRj/vOtxjdCtXbmoCbrlbAgkqdwTM7ohFr7RPZ0mwFjVFgSCkS1ZBWtNBCGAydMoyuQV9cSUBWRgH4ItaNZvnE0UnMEpwRBahrOkN8+VwIPOJAPeUvIiyQ/1eMid5plydu2L0wXhDHqCxde1/+MpXpWH5xMw3/WkuBXA3C8PtrxmbOI75uIhMwl6FkC3iRIs56zYYErQI+heXWXyKbzwI4RQ5XqDJWrAY3Sp3qgaMz6Jc/6x5VWm6XJHaTWL5g7CJloc0+DB12INvYY3aLN13IRcttzjVM0go683TxvogZzJVhfV90aF8mmLRxwvXHmhfuoaolc2xY06ep8WkqHf41rQ5IXKNGqxja9sGNqRYD76wmc8IBUDjsU2+zlXa8XuihUgU7H6bZXS8IJ6tN3FnryEqzae81qu07cXnOJpMRuGHu73N3el5QMtilTex4OxUIcuwq5ke7MQl3FL+sgKv6/dy6S7wvveeNZ0TbiNBIyE3rYCwAhVhHKGo7jEOYzQdQtCo/xKH4ENJCM6jTwpInufcfjdQVLBFej1j6ldSk= 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: List-Subscribe: List-Unsubscribe: tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: 17cb8a20bde66a520a2ca7aad1063e1ce7382240 commit: e59bba2cc6c746942c7c2d83ebcd9b92ae0a1aca [7696/8213] bus: mhi: ep: Add support for async DMA write operation config: arm-randconfig-r081-20231214 (https://download.01.org/0day-ci/archive/20231217/202312171537.W9d6tX7p-lkp@intel.com/config) compiler: arm-linux-gnueabi-gcc (GCC) 13.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231217/202312171537.W9d6tX7p-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 | Closes: https://lore.kernel.org/oe-kbuild-all/202312171537.W9d6tX7p-lkp@intel.com/ All warnings (new ones prefixed by >>): In file included from include/linux/device.h:15, from include/linux/mhi.h:9, from include/linux/mhi_ep.h:10, from drivers/bus/mhi/ep/main.c:15: drivers/bus/mhi/ep/main.c: In function 'mhi_ep_skb_completion': >> drivers/bus/mhi/ep/main.c:519:22: warning: format '%ld' expects argument of type 'long int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 519 | dev_dbg(dev, "Sending completion for ring (%d) rd_offset: %ld\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:129:41: note: in definition of macro 'dev_printk' 129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:163:45: note: in expansion of macro 'dev_fmt' 163 | dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \ | ^~~~~~~ drivers/bus/mhi/ep/main.c:519:9: note: in expansion of macro 'dev_dbg' 519 | dev_dbg(dev, "Sending completion for ring (%d) rd_offset: %ld\n", | ^~~~~~~ drivers/bus/mhi/ep/main.c:519:69: note: format string is defined here 519 | dev_dbg(dev, "Sending completion for ring (%d) rd_offset: %ld\n", | ~~^ | | | long int | %d drivers/bus/mhi/ep/main.c: In function 'mhi_ep_queue_skb': drivers/bus/mhi/ep/main.c:600:30: warning: format '%ld' expects argument of type 'long int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=] 600 | dev_dbg(dev, "rd_offset at the end of queue_skb: %ld\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:129:41: note: in definition of macro 'dev_printk' 129 | _dev_printk(level, dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:163:45: note: in expansion of macro 'dev_fmt' 163 | dev_printk(KERN_DEBUG, dev, dev_fmt(fmt), ##__VA_ARGS__); \ | ^~~~~~~ drivers/bus/mhi/ep/main.c:600:17: note: in expansion of macro 'dev_dbg' 600 | dev_dbg(dev, "rd_offset at the end of queue_skb: %ld\n", | ^~~~~~~ drivers/bus/mhi/ep/main.c:600:68: note: format string is defined here 600 | dev_dbg(dev, "rd_offset at the end of queue_skb: %ld\n", | ~~^ | | | long int | %d vim +519 drivers/bus/mhi/ep/main.c 499 500 static void mhi_ep_skb_completion(struct mhi_ep_buf_info *buf_info) 501 { 502 struct mhi_ep_device *mhi_dev = buf_info->mhi_dev; 503 struct mhi_ep_cntrl *mhi_cntrl = mhi_dev->mhi_cntrl; 504 struct mhi_ep_chan *mhi_chan = mhi_dev->dl_chan; 505 struct mhi_ep_ring *ring = &mhi_cntrl->mhi_chan[mhi_chan->chan].ring; 506 struct mhi_ring_element *el = &ring->ring_cache[ring->rd_offset]; 507 struct device *dev = &mhi_dev->dev; 508 struct mhi_result result = {}; 509 int ret; 510 511 if (mhi_chan->xfer_cb) { 512 result.buf_addr = buf_info->cb_buf; 513 result.dir = mhi_chan->dir; 514 result.bytes_xferd = buf_info->size; 515 516 mhi_chan->xfer_cb(mhi_dev, &result); 517 } 518 > 519 dev_dbg(dev, "Sending completion for ring (%d) rd_offset: %ld\n", 520 ring->er_index, ring->rd_offset); 521 ret = mhi_ep_send_completion_event(mhi_cntrl, ring, el, buf_info->size, 522 buf_info->code); 523 if (ret) { 524 dev_err(dev, "Error sending transfer completion event\n"); 525 return; 526 } 527 528 mhi_ep_ring_inc_index(ring); 529 } 530 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki