Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp2747772rwe; Sun, 28 Aug 2022 21:56:32 -0700 (PDT) X-Google-Smtp-Source: AA6agR6B4c6oZknlVvS1BOFOdiI0+TbYEJiVFHEwJbuZsb1vPWUZiQbcdpAgEOPWTEpfi4rCa9Xt X-Received: by 2002:a17:907:2854:b0:740:2574:1f33 with SMTP id el20-20020a170907285400b0074025741f33mr8594048ejc.105.1661748991849; Sun, 28 Aug 2022 21:56:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661748991; cv=none; d=google.com; s=arc-20160816; b=e0uyaWhL/6CuSV5ZuoZmwSR3kghqj22FO1tLj8WX6JJJJm3sXl7feFCnI447/fmkGN Ua+jW/ywCP4lyW04SNOX2l0eHf71o1pxFGaQNFQmBSVt44pvoKbV//ekABh6vd725mY/ xeefoTTQmMRqTT+n8h9EhIkOp9siMbvBSWdlPe0jqi3UKDsyJTwT6qA4E/rXRajxrBaj QSpiI/lIO2wooBRT9daxlzZy0SSg6MXBf2ZQwwMKSVzW8Q10IkTxUoZtXprEmjWaeSHJ G5Gxu7PQfzdGJCQeFbtRQYYiyCGlMH6Elr5uxWO2GMLndaZ8ZvBiBE41GAzQTdoygp14 Egvw== 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=A9cw3D6xK6wo+iF98GGfolYmP4yPDPw0msn12VTIP8k=; b=cUi93xDzXjkrviXxICQXqrMfZyjxa+6iotqq4HHZCOQD2mB2LD9ugn3D1i98wG7A6R xpoNN8QSZYr7veGSIK8B0L5igatzXMVsou1vMGqaMzsOL5OMDJOfa+Sl+Tb+xKswauHO xCGeBS0duax5CO1PPOYIGlBZlOp0taqVmkfstjKDpSN4eDnhSnRKpIYgXbL/qTuqr7U7 riGu93QbpDQ+sjAopKEiqBbvXU3QREW11tgJHKBZcyEKAZjjFvqkKfAEmLh568eWA7nz F8GBKqq4t/t1z3JjfMR+yhfBbHMJGBUXLvF9N7z/6b9rB+pRfeGa9wWO9+1xfWZkMZGj 1BXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=IMf4nPST; 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 n11-20020a05640205cb00b00442785a4226si7208104edx.258.2022.08.28.21.56.06; Sun, 28 Aug 2022 21:56:31 -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=IMf4nPST; 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 S229664AbiH2DcW (ORCPT + 99 others); Sun, 28 Aug 2022 23:32:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbiH2DcU (ORCPT ); Sun, 28 Aug 2022 23:32:20 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0AAB5193E5; Sun, 28 Aug 2022 20:32:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661743939; x=1693279939; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=ZNxOoPeAHhN/1dtqMR/zUEqKl0gYFGInH11MuO8ZPZw=; b=IMf4nPST4vRVS9x2lN9siwPlUoeI0r431TXhID+vGKeeqSTlLrP4K+cz n3MclI3NhGeW3QOe4tKz2ksgrEK3jhO90vPLChF2R5mKxOZzSGl1BVxYh NbgOr443CFuUZK8A5brf0NHWEkXhPnsju4Gbxql2FASZzfXS7hTqs+gfg 3+1QY0nOutXzTlUKqtK2wjPhI+5xHfmgLo9Xaomocy10d7dloHHmH06Ur DsWegjQN3tMKbPdvrMN9wSdKuHSWCRPZMiL8A3fd9rSL9nqwudTJ2LTpj y7z+UbKOwFniGtNyQSymHaMjBqoWd6VqD51adflhKuUhlYQhKs9VRnwEO w==; X-IronPort-AV: E=McAfee;i="6500,9779,10453"; a="292380499" X-IronPort-AV: E=Sophos;i="5.93,271,1654585200"; d="scan'208";a="292380499" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Aug 2022 20:32:18 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,271,1654585200"; d="scan'208";a="737196036" Received: from lkp-server01.sh.intel.com (HELO b2bbdd52f619) ([10.239.97.150]) by orsmga004.jf.intel.com with ESMTP; 28 Aug 2022 20:32:15 -0700 Received: from kbuild by b2bbdd52f619 with local (Exim 4.96) (envelope-from ) id 1oSVVW-00008N-1w; Mon, 29 Aug 2022 03:32:14 +0000 Date: Mon, 29 Aug 2022 11:31:45 +0800 From: kernel test robot To: oushixiong , Dave Airlie Cc: llvm@lists.linux.dev, kbuild-all@lists.01.org, Thomas Zimmermann , David Airlie , Daniel Vetter , Sumit Semwal , Christian =?iso-8859-1?Q?K=F6nig?= , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org, oushixiong Subject: Re: [PTACH v3] drm/ast: add dmabuf/prime buffer sharing support Message-ID: <202208291132.RQqpjzO1-lkp@intel.com> References: <20220827091030.496671-1-oushixiong@kylinos.cn> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220827091030.496671-1-oushixiong@kylinos.cn> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 oushixiong, Thank you for the patch! Perhaps something to improve: [auto build test WARNING on drm-misc/drm-misc-next] [also build test WARNING on drm/drm-next drm-intel/for-linux-next drm-tip/drm-tip linus/master v6.0-rc3 next-20220826] [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/oushixiong/drm-ast-add-dmabuf-prime-buffer-sharing-support/20220829-084713 base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next config: i386-randconfig-a013 (https://download.01.org/0day-ci/archive/20220829/202208291132.RQqpjzO1-lkp@intel.com/config) compiler: clang version 14.0.6 (https://github.com/llvm/llvm-project f28c006a5895fc0e329fe15fead81e37457cb1d1) 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/da31884b8b7e33af5cd8aa750dea30fde59d52aa git remote add linux-review https://github.com/intel-lab-lkp/linux git fetch --no-tags linux-review oushixiong/drm-ast-add-dmabuf-prime-buffer-sharing-support/20220829-084713 git checkout da31884b8b7e33af5cd8aa750dea30fde59d52aa # 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=i386 SHELL=/bin/bash drivers/gpu/drm/ast/ If you fix the issue, kindly add following tag where applicable Reported-by: kernel test robot All warnings (new ones prefixed by >>): >> drivers/gpu/drm/ast/ast_drv.c:54:24: warning: no previous prototype for function 'ast_gem_prime_import' [-Wmissing-prototypes] struct drm_gem_object *ast_gem_prime_import(struct drm_device *dev, ^ drivers/gpu/drm/ast/ast_drv.c:54:1: note: declare 'static' if the function is not intended to be used outside of this translation unit struct drm_gem_object *ast_gem_prime_import(struct drm_device *dev, ^ static 1 warning generated. vim +/ast_gem_prime_import +54 drivers/gpu/drm/ast/ast_drv.c 53 > 54 struct drm_gem_object *ast_gem_prime_import(struct drm_device *dev, 55 struct dma_buf *dma_buf) 56 { 57 struct drm_gem_vram_object *gbo; 58 59 gbo = drm_gem_vram_of_gem(dma_buf->priv); 60 if (gbo->bo.base.dev == dev) { 61 /* 62 * Importing dmabuf exported from out own gem increases 63 * refcount on gem itself instead of f_count of dmabuf. 64 */ 65 drm_gem_object_get(&gbo->bo.base); 66 return &gbo->bo.base; 67 } 68 69 gbo = drm_gem_vram_create(dev, dma_buf->size, 0); 70 if (IS_ERR(gbo)) 71 return NULL; 72 73 get_dma_buf(dma_buf); 74 return &gbo->bo.base; 75 } 76 -- 0-DAY CI Kernel Test Service https://01.org/lkp