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 AFF4AC00144 for ; Sat, 30 Jul 2022 02:42:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239575AbiG3Cmi (ORCPT ); Fri, 29 Jul 2022 22:42:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230476AbiG3Cmg (ORCPT ); Fri, 29 Jul 2022 22:42:36 -0400 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 017A42F022 for ; Fri, 29 Jul 2022 19:42:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659148955; x=1690684955; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=mcpZdeDc1xfj4+c/v41ilgEl0id0FXrF8qWUD5A4IXE=; b=ZffO6LB0W8SZYwjTsqaBUhPW4YaNxzekItQL56huZDLbUs8HzPpVaCCq 7qGwgWZBiEh3HiOi60nW/q5YCJ5xe9jjdubzYRUwDGu96T9wZc94PXvex IYyuspdKEHQRJ+DA10PUBDgJ81OBDXQBOKYfCYkEJ2JIlmKLSwsDugDp0 jdSkzr29yrEe2jjtrEO4JUfrq/qWPLYxLUgWx65BjmZmHpIdenAqAHN2M ygXBg3xQaRIb53jQlWcV3bxhH4Kzz0TproeXG8lJWmN89pccxSz82klUJ lmYEiInRqTlzNI6ONNVuWbQfgD0DFXiOhQdS8rvkKFsEA6uM3Ujz9apJr w==; X-IronPort-AV: E=McAfee;i="6400,9594,10423"; a="375188610" X-IronPort-AV: E=Sophos;i="5.93,202,1654585200"; d="scan'208";a="375188610" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2022 19:42:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,202,1654585200"; d="scan'208";a="928949097" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 29 Jul 2022 19:42:34 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oHcQz-000CIs-34; Sat, 30 Jul 2022 02:42:33 +0000 Date: Sat, 30 Jul 2022 10:42:18 +0800 From: kernel test robot To: Rob Clark , dri-devel@lists.freedesktop.org Cc: linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] dma-buf: Add ioctl to query mmap info Message-ID: <202207301057.KVTYTw6h-lkp@intel.com> References: <20220729170744.1301044-2-robdclark@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220729170744.1301044-2-robdclark@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Rob, I love your patch! Perhaps something to improve: [auto build test WARNING on linus/master] [also build test WARNING on v5.19-rc8] [cannot apply to drm-misc/drm-misc-next drm/drm-next drm-exynos/exynos-drm-next drm-intel/for-linux-next drm-tip/drm-tip next-20220728] [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/Rob-Clark/dma-buf-map-info-support/20220730-010844 base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 6e2c0490769ef8a95b61304389116ccc85c53e12 config: m68k-randconfig-s032-20220729 (https://download.01.org/0day-ci/archive/20220730/202207301057.KVTYTw6h-lkp@intel.com/config) compiler: m68k-linux-gcc (GCC) 12.1.0 reproduce: wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # apt-get install sparse # sparse version: v0.6.4-39-gce1a6720-dirty # https://github.com/intel-lab-lkp/linux/commit/203f14a73a179d6c5fbfa4813e45fde2a9ae9860 git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review Rob-Clark/dma-buf-map-info-support/20220730-010844 git checkout 203f14a73a179d6c5fbfa4813e45fde2a9ae9860 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=m68k SHELL=/bin/bash If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot sparse warnings: (new ones prefixed by >>) >> drivers/dma-buf/dma-buf.c:346:26: sparse: sparse: incorrect type in argument 1 (different modifiers) @@ expected void [noderef] __user *to @@ got void const [noderef] __user *uarg @@ drivers/dma-buf/dma-buf.c:346:26: sparse: expected void [noderef] __user *to drivers/dma-buf/dma-buf.c:346:26: sparse: got void const [noderef] __user *uarg vim +346 drivers/dma-buf/dma-buf.c 328 329 static long dma_buf_info(struct dma_buf *dmabuf, const void __user *uarg) 330 { 331 struct dma_buf_info arg; 332 333 if (copy_from_user(&arg, uarg, sizeof(arg))) 334 return -EFAULT; 335 336 switch (arg.param) { 337 case DMA_BUF_INFO_VM_PROT: 338 if (!dmabuf->ops->mmap_info) 339 return -ENOSYS; 340 arg.value = dmabuf->ops->mmap_info(dmabuf); 341 break; 342 default: 343 return -EINVAL; 344 } 345 > 346 if (copy_to_user(uarg, &arg, sizeof(arg))) 347 return -EFAULT; 348 349 return 0; 350 } 351 -- 0-DAY CI Kernel Test Service https://01.org/lkp