Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp523536imn; Fri, 29 Jul 2022 14:33:24 -0700 (PDT) X-Google-Smtp-Source: AA6agR79L512ezgstaB06/T9S+/KA8Wga6uzcn/7Qg90nU7+4r3Foco5BGC+0oGzBc2rJ7yXXZ6H X-Received: by 2002:a17:902:e5c5:b0:16d:4a23:d0aa with SMTP id u5-20020a170902e5c500b0016d4a23d0aamr5896488plf.69.1659130393800; Fri, 29 Jul 2022 14:33:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659130393; cv=none; d=google.com; s=arc-20160816; b=XaiUyT/IPi6I26nknFUWL5LoSroJhNMUHUA78lXMY+i++k8+ZGDvbIQ7K5zxWj0S+q Fn6ZXt7UJQFmFK0tzf20KUjX/KuxXyuzN3NDjaRxjOxQ42chvcJXnej7K6bByR38upbS SDumplTjaF0YW8V3wT8fzImn6j0DE7MTXq+uY5VBCjit9fhTOrC0+g+OoQdc+MvzEXij 3fSQvsTjH684HqkVcHc7h/goHYhiZHNvxzpGmGz2/X4AhPHG/zbZ6WqEMBvmGgclx9ni xXfA0/95oQbGH47Pxx373wx7+/sJbkRxHwn4cKOyHkObTGVPOmjg0Q/TKDSVF08VjyKm nAKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=WeBm8vYY4WZDzKrlUVzjN4yB+LHOpltIjl06sNO62NI=; b=GqxemEB+rlAUpYu0rjbXLkFiSHsDVQ0H8vg550uxmixFvwJCLBC66Ssd4tAHzPMcdF rQpMHPMf1B22a/LkeXrUd3PoYsadVgZojvfdhqtkjSypzgqi1hvy0buCCgi4ivWRkZ3Z FSyrwQb6pEXFvDCBursJX0JU3p1QUNS0tjoqcUprcsN+nnJHfwuxTKMpF6fPzQ1bp14R SaRrZ5UARNEmfvJnAnYbTE5DIghtoBWWcKO66Fc8YfL8RRZhjCfriQ53XXzP+d3ZejUr JFvBOgUjGKpRrlxuSDIi0rluUYqku0cmr/R2/X7n8IXwpsmorCtxAht5VINzisvwOd2A XbxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WSyX6Ky2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c14-20020a170902d48e00b0016413dbbf89si6066574plg.166.2022.07.29.14.32.58; Fri, 29 Jul 2022 14:33:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=WSyX6Ky2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239311AbiG2V2b (ORCPT + 99 others); Fri, 29 Jul 2022 17:28:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43452 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229977AbiG2V2a (ORCPT ); Fri, 29 Jul 2022 17:28:30 -0400 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CC5B8AEC4 for ; Fri, 29 Jul 2022 14:28:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1659130106; x=1690666106; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=0/y1fR/f4oWwAdcJ5GdMgM4eKAEqgTbVggLZ/wY8Bhs=; b=WSyX6Ky2Kw6BBdBc4+9to37svjqTBE1CHu3kgFn3vRgODJwDTvSvOi01 +A760UEnaScsQry9ID1qP8wze9KBkwJGpwi12vEBm/uSPUJasjRm19G1u KtANy2LI8DxOLhtcowxIrB3hkpl6KsOd3BuSndVpdAu5a1PsPhsajF8xw LDZspT0ze6KvbQGifbWn4JlPVV1k6j8o1e5iYV2lXvfpz0ULHPJsnwMi8 LNxdMdKZ+VY+yt2RHwp1UF5n1UW3qhNrDORmF+T99dsHsydjxYtNP7Oha RDTOX18UQmZ6OaH+56fpOYZwviPd6uwwMj1W1uHHG6RIxocSV12zopL5v w==; X-IronPort-AV: E=McAfee;i="6400,9594,10423"; a="290054072" X-IronPort-AV: E=Sophos;i="5.93,202,1654585200"; d="scan'208";a="290054072" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Jul 2022 14:28:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,202,1654585200"; d="scan'208";a="629522403" Received: from lkp-server01.sh.intel.com (HELO e0eace57cfef) ([10.239.97.150]) by orsmga008.jf.intel.com with ESMTP; 29 Jul 2022 14:28:24 -0700 Received: from kbuild by e0eace57cfef with local (Exim 4.96) (envelope-from ) id 1oHXWx-000C6r-2n; Fri, 29 Jul 2022 21:28:23 +0000 Date: Sat, 30 Jul 2022 05:27:52 +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: <202207300546.hB4U217w-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> X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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: arc-randconfig-r043-20220729 (https://download.01.org/0day-ci/archive/20220730/202207300546.hB4U217w-lkp@intel.com/config) compiler: arceb-elf-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://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 W=1 O=build_dir ARCH=arc SHELL=/bin/bash drivers/dma-buf/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): drivers/dma-buf/dma-buf.c: In function 'dma_buf_info': >> drivers/dma-buf/dma-buf.c:346:26: warning: passing argument 1 of 'copy_to_user' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 346 | if (copy_to_user(uarg, &arg, sizeof(arg))) | ^~~~ In file included from include/linux/sched/task.h:11, from include/linux/sched/signal.h:9, from include/linux/rcuwait.h:6, from include/linux/percpu-rwsem.h:7, from include/linux/fs.h:33, from drivers/dma-buf/dma-buf.c:14: include/linux/uaccess.h:157:27: note: expected 'void *' but argument is of type 'const void *' 157 | copy_to_user(void __user *to, const void *from, unsigned long n) | ~~~~~~~~~~~~~^~ 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