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 10FCDC04A68 for ; Sat, 30 Jul 2022 06:12:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230156AbiG3GMr (ORCPT ); Sat, 30 Jul 2022 02:12:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34390 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229464AbiG3GMp (ORCPT ); Sat, 30 Jul 2022 02:12:45 -0400 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1AA8B101CE for ; Fri, 29 Jul 2022 23:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659161565; x=1690697565; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=z3dt3CF/Wfrwij9l6dIICz7tlz6a9YtfxGNodSaZ3wo=; b=Rtj3sd+9zqi4mYb8Cf3YGpQCZK7dXIvovtvCiCtvzPoW6PsUqeBrtp/i 55zKqzG79tYKtwx6JopxeOFNhRu8gisFvnXXNRr1ChqzBSnKNc4zdc3Ez QmoeAjQg5+Q+p5Yys4/Pwz2CjrhQlW2vUF6EEy6Sr8Ev1mcCXEjrI59TQ ThyjyWdXH+cMGkRFy2moIK6fBB5vo8t/5XSiopKHY6HOSS5WCOVIAefOF ZhEH8ueYEqPeNGten5HFJSwSE1unIxTSHfkCrqEqlhbpVNu1yhxxvAg3D JP9xVVPGcCQmvlfUVQm5i+7nxbuICeCxVnU7ILbQ+Wd8HGhNK5VfjwNn+ Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10423"; a="269277812" X-IronPort-AV: E=Sophos;i="5.93,203,1654585200"; d="scan'208";a="269277812" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2022 23:12:44 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,203,1654585200"; d="scan'208";a="928980357" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by fmsmga005.fm.intel.com with ESMTP; 29 Jul 2022 23:12:43 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oHfiN-000CUB-0k; Sat, 30 Jul 2022 06:12:43 +0000 Date: Sat, 30 Jul 2022 14:12:02 +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: <202207301450.M4icK2Bg-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! Yet something to improve: [auto build test ERROR on linus/master] [also build test ERROR 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: arm-randconfig-r033-20220729 (https://download.01.org/0day-ci/archive/20220730/202207301450.M4icK2Bg-lkp@intel.com/config) compiler: clang version 16.0.0 (https://github.com/llvm/llvm-project 52cd00cabf479aa7eb6dbb063b7ba41ea57bce9e) 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 # install arm cross compiling tool for clang build # apt-get install binutils-arm-linux-gnueabi # 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=clang make.cross W=1 O=build_dir ARCH=arm SHELL=/bin/bash drivers/dma-buf/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/dma-buf/dma-buf.c:346:19: error: passing 'const void *' to parameter of type 'void *' discards qualifiers [-Werror,-Wincompatible-pointer-types-discards-qualifiers] if (copy_to_user(uarg, &arg, sizeof(arg))) ^~~~ include/linux/uaccess.h:157:27: note: passing argument to parameter 'to' here copy_to_user(void __user *to, const void *from, unsigned long n) ^ 1 error generated. 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