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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07D3FC433EF for ; Fri, 14 Jan 2022 18:04:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244063AbiANSE0 (ORCPT ); Fri, 14 Jan 2022 13:04:26 -0500 Received: from mga17.intel.com ([192.55.52.151]:62728 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243990AbiANSEW (ORCPT ); Fri, 14 Jan 2022 13:04:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642183462; x=1673719462; h=date:from:to:cc:subject:message-id:mime-version; bh=mZVNO8bBWYDoGXvMeTT1wxgX8brQjfjeABvzlv+a6bw=; b=AaCKtEucNgLsvIXbxEZ1AkL1+D9nwMgyq4o9gTofiq4ztTmUAY2wHSm2 P+aI9+NJx9tknBrK3nDLzJh4nK4m4pWwVQpopzfvttZx5svrSlBu7M8UN T0pSFRD5wqKR82Wr3dFHvzKpzySA6IFA46pyvnjRpGlCtu4g1ySID+m2R VV6Ym2WMLd4KvgERQppVJUyXgvukNHcw9rhawRGuaHbWywyU9MoRzDv+8 IhdNsK1tuqyrvwCpgatpWlJ9/FzBjPdKH4LANjQsdIozVlUqqHW2qxgap VInHPNyTTMof40yuUgCkwpDIGJHkIb+1m6Shi0fNpMMJqNFrh7y8L01Ls Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10227"; a="224986286" X-IronPort-AV: E=Sophos;i="5.88,289,1635231600"; d="scan'208";a="224986286" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Jan 2022 10:04:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,289,1635231600"; d="scan'208";a="475863098" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by orsmga006.jf.intel.com with ESMTP; 14 Jan 2022 10:04:18 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1n8Qvx-0008rt-J0; Fri, 14 Jan 2022 18:04:17 +0000 Date: Sat, 15 Jan 2022 02:03:18 +0800 From: kernel test robot To: Hans Verkuil Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org Subject: [hverkuil-media-tree:for-v5.18f 82/82] drivers/media/platform/aspeed-video.c:1836:30: warning: format '%p' expects argument of type 'void *', but argument 4 has type 'dma_addr_t' {aka 'unsigned int'} Message-ID: <202201150148.ScCRoG8b-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org tree: git://linuxtv.org/hverkuil/media_tree.git for-v5.18f head: 97dd85f0caf1ad96c275147583c46f8ee12308fc commit: 97dd85f0caf1ad96c275147583c46f8ee12308fc [82/82] f config: parisc-buildonly-randconfig-r002-20220113 (https://download.01.org/0day-ci/archive/20220115/202201150148.ScCRoG8b-lkp@intel.com/config) compiler: hppa-linux-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 git remote add hverkuil-media-tree git://linuxtv.org/hverkuil/media_tree.git git fetch --no-tags hverkuil-media-tree for-v5.18f git checkout 97dd85f0caf1ad96c275147583c46f8ee12308fc # 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=parisc SHELL=/bin/bash drivers/media/platform/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/linux/device.h:15, from drivers/media/platform/aspeed-video.c:9: drivers/media/platform/aspeed-video.c: In function 'aspeed_video_init': >> drivers/media/platform/aspeed-video.c:1836:30: warning: format '%p' expects argument of type 'void *', but argument 4 has type 'dma_addr_t' {aka 'unsigned int'} [-Wformat=] 1836 | dev_info(video->dev, "alloc mem size(%d) at %pad for jpeg header\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_printk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); \ | ^~~ include/linux/dev_printk.h:150:58: note: in expansion of macro 'dev_fmt' 150 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt(fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/media/platform/aspeed-video.c:1836:9: note: in expansion of macro 'dev_info' 1836 | dev_info(video->dev, "alloc mem size(%d) at %pad for jpeg header\n", | ^~~~~~~~ drivers/media/platform/aspeed-video.c:1836:54: note: format string is defined here 1836 | dev_info(video->dev, "alloc mem size(%d) at %pad for jpeg header\n", | ~^ | | | void * | %d vim +1836 drivers/media/platform/aspeed-video.c 1780 1781 static int aspeed_video_init(struct aspeed_video *video) 1782 { 1783 int irq; 1784 int rc; 1785 struct device *dev = video->dev; 1786 1787 irq = irq_of_parse_and_map(dev->of_node, 0); 1788 if (!irq) { 1789 dev_err(dev, "Unable to find IRQ\n"); 1790 return -ENODEV; 1791 } 1792 1793 rc = devm_request_threaded_irq(dev, irq, NULL, aspeed_video_irq, 1794 IRQF_ONESHOT, DEVICE_NAME, video); 1795 if (rc < 0) { 1796 dev_err(dev, "Unable to request IRQ %d\n", irq); 1797 return rc; 1798 } 1799 dev_info(video->dev, "irq %d\n", irq); 1800 1801 video->eclk = devm_clk_get(dev, "eclk"); 1802 if (IS_ERR(video->eclk)) { 1803 dev_err(dev, "Unable to get ECLK\n"); 1804 return PTR_ERR(video->eclk); 1805 } 1806 1807 rc = clk_prepare(video->eclk); 1808 if (rc) 1809 return rc; 1810 1811 video->vclk = devm_clk_get(dev, "vclk"); 1812 if (IS_ERR(video->vclk)) { 1813 dev_err(dev, "Unable to get VCLK\n"); 1814 rc = PTR_ERR(video->vclk); 1815 goto err_unprepare_eclk; 1816 } 1817 1818 rc = clk_prepare(video->vclk); 1819 if (rc) 1820 goto err_unprepare_eclk; 1821 1822 of_reserved_mem_device_init(dev); 1823 1824 rc = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32)); 1825 if (rc) { 1826 dev_err(dev, "Failed to set DMA mask\n"); 1827 goto err_release_reserved_mem; 1828 } 1829 1830 if (!aspeed_video_alloc_buf(video, &video->jpeg, 1831 VE_JPEG_HEADER_SIZE)) { 1832 dev_err(dev, "Failed to allocate DMA for JPEG header\n"); 1833 rc = -ENOMEM; 1834 goto err_release_reserved_mem; 1835 } > 1836 dev_info(video->dev, "alloc mem size(%d) at %pad for jpeg header\n", 1837 VE_JPEG_HEADER_SIZE, video->jpeg.dma); 1838 1839 aspeed_video_init_jpeg_table(video->jpeg.virt, video->yuv420); 1840 1841 return 0; 1842 1843 err_release_reserved_mem: 1844 of_reserved_mem_device_release(dev); 1845 clk_unprepare(video->vclk); 1846 err_unprepare_eclk: 1847 clk_unprepare(video->eclk); 1848 1849 return rc; 1850 } 1851 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org From mboxrd@z Thu Jan 1 00:00:00 1970 Content-Type: multipart/mixed; boundary="===============3418627128887964000==" MIME-Version: 1.0 From: kernel test robot To: kbuild-all@lists.01.org Subject: [hverkuil-media-tree:for-v5.18f 82/82] drivers/media/platform/aspeed-video.c:1836:30: warning: format '%p' expects argument of type 'void *', but argument 4 has type 'dma_addr_t' {aka 'unsigned int'} Date: Sat, 15 Jan 2022 02:03:18 +0800 Message-ID: <202201150148.ScCRoG8b-lkp@intel.com> List-Id: --===============3418627128887964000== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable tree: git://linuxtv.org/hverkuil/media_tree.git for-v5.18f head: 97dd85f0caf1ad96c275147583c46f8ee12308fc commit: 97dd85f0caf1ad96c275147583c46f8ee12308fc [82/82] f config: parisc-buildonly-randconfig-r002-20220113 (https://download.01.org/= 0day-ci/archive/20220115/202201150148.ScCRoG8b-lkp(a)intel.com/config) compiler: hppa-linux-gcc (GCC) 11.2.0 reproduce (this is a W=3D1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/= make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross git remote add hverkuil-media-tree git://linuxtv.org/hverkuil/media= _tree.git git fetch --no-tags hverkuil-media-tree for-v5.18f git checkout 97dd85f0caf1ad96c275147583c46f8ee12308fc # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=3D$HOME/0day COMPILER=3Dgcc-11.2.0 make.cross= O=3Dbuild_dir ARCH=3Dparisc SHELL=3D/bin/bash drivers/media/platform/ If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot All warnings (new ones prefixed by >>): In file included from include/linux/device.h:15, from drivers/media/platform/aspeed-video.c:9: drivers/media/platform/aspeed-video.c: In function 'aspeed_video_init': >> drivers/media/platform/aspeed-video.c:1836:30: warning: format '%p' expe= cts argument of type 'void *', but argument 4 has type 'dma_addr_t' {aka 'u= nsigned int'} [-Wformat=3D] 1836 | dev_info(video->dev, "alloc mem size(%d) at %pad for jpe= g header\n", | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~~~~~~~~~~ include/linux/dev_printk.h:110:30: note: in definition of macro 'dev_pri= ntk_index_wrap' 110 | _p_func(dev, fmt, ##__VA_ARGS__); = \ | ^~~ include/linux/dev_printk.h:150:58: note: in expansion of macro 'dev_fmt' 150 | dev_printk_index_wrap(_dev_info, KERN_INFO, dev, dev_fmt= (fmt), ##__VA_ARGS__) | ^~~~~~~ drivers/media/platform/aspeed-video.c:1836:9: note: in expansion of macr= o 'dev_info' 1836 | dev_info(video->dev, "alloc mem size(%d) at %pad for jpe= g header\n", | ^~~~~~~~ drivers/media/platform/aspeed-video.c:1836:54: note: format string is de= fined here 1836 | dev_info(video->dev, "alloc mem size(%d) at %pad for jpe= g header\n", | ~^ | | | void * | %d vim +1836 drivers/media/platform/aspeed-video.c 1780 = 1781 static int aspeed_video_init(struct aspeed_video *video) 1782 { 1783 int irq; 1784 int rc; 1785 struct device *dev =3D video->dev; 1786 = 1787 irq =3D irq_of_parse_and_map(dev->of_node, 0); 1788 if (!irq) { 1789 dev_err(dev, "Unable to find IRQ\n"); 1790 return -ENODEV; 1791 } 1792 = 1793 rc =3D devm_request_threaded_irq(dev, irq, NULL, aspeed_video_irq, 1794 IRQF_ONESHOT, DEVICE_NAME, video); 1795 if (rc < 0) { 1796 dev_err(dev, "Unable to request IRQ %d\n", irq); 1797 return rc; 1798 } 1799 dev_info(video->dev, "irq %d\n", irq); 1800 = 1801 video->eclk =3D devm_clk_get(dev, "eclk"); 1802 if (IS_ERR(video->eclk)) { 1803 dev_err(dev, "Unable to get ECLK\n"); 1804 return PTR_ERR(video->eclk); 1805 } 1806 = 1807 rc =3D clk_prepare(video->eclk); 1808 if (rc) 1809 return rc; 1810 = 1811 video->vclk =3D devm_clk_get(dev, "vclk"); 1812 if (IS_ERR(video->vclk)) { 1813 dev_err(dev, "Unable to get VCLK\n"); 1814 rc =3D PTR_ERR(video->vclk); 1815 goto err_unprepare_eclk; 1816 } 1817 = 1818 rc =3D clk_prepare(video->vclk); 1819 if (rc) 1820 goto err_unprepare_eclk; 1821 = 1822 of_reserved_mem_device_init(dev); 1823 = 1824 rc =3D dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32)); 1825 if (rc) { 1826 dev_err(dev, "Failed to set DMA mask\n"); 1827 goto err_release_reserved_mem; 1828 } 1829 = 1830 if (!aspeed_video_alloc_buf(video, &video->jpeg, 1831 VE_JPEG_HEADER_SIZE)) { 1832 dev_err(dev, "Failed to allocate DMA for JPEG header\n"); 1833 rc =3D -ENOMEM; 1834 goto err_release_reserved_mem; 1835 } > 1836 dev_info(video->dev, "alloc mem size(%d) at %pad for jpeg header\n", 1837 VE_JPEG_HEADER_SIZE, video->jpeg.dma); 1838 = 1839 aspeed_video_init_jpeg_table(video->jpeg.virt, video->yuv420); 1840 = 1841 return 0; 1842 = 1843 err_release_reserved_mem: 1844 of_reserved_mem_device_release(dev); 1845 clk_unprepare(video->vclk); 1846 err_unprepare_eclk: 1847 clk_unprepare(video->eclk); 1848 = 1849 return rc; 1850 } 1851 = --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org --===============3418627128887964000==--