From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A9C871D534; Tue, 21 Nov 2023 06:35:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="ToPgXOA6" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1700548518; x=1732084518; h=date:from:to:cc:subject:message-id:mime-version; bh=cAvE01Gy59dT0s7TmFJTt5t5hBBdSGQLw6TX3/o0uHQ=; b=ToPgXOA6hTndOShQcLIaN1VwGwa8zXGthpgHKz7YBgEa44VOcif4CX+4 IX6wDK4Y04Ni2LvnbhbLAnYstPkxHUaP23aJHv7XhSuO6OsuLxvA+CweP PAO7I6XDfZ9GIQfPWSqFhxH1lrZJOGrjpLZAxUlgr6Eks9cagjlIdPXnE evpAy/E3iycoMzCaOzxgw8SJTQJ41HMY1ieuBYih+4kyAHZCcOTnm+YFd /b3/2OR5RxuwwJWpBk4EkZcPMoVdWXjgpUNHXD+J8jzdOStrqxhI+cPdc PiAntIQghdO02WpVwJ8R2ouiS7kmI9jizGOM3k5QDvLdfHgGYxLDtB6uR w==; X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="394618242" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="394618242" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Nov 2023 22:35:18 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10900"; a="742940224" X-IronPort-AV: E=Sophos;i="6.04,215,1695711600"; d="scan'208";a="742940224" Received: from lkp-server02.sh.intel.com (HELO b8de5498638e) ([10.239.97.151]) by orsmga006.jf.intel.com with ESMTP; 20 Nov 2023 22:35:16 -0800 Received: from kbuild by b8de5498638e with local (Exim 4.96) (envelope-from ) id 1r5KLQ-0007QW-1Z; Tue, 21 Nov 2023 06:34:57 +0000 Date: Tue, 21 Nov 2023 14:22:43 +0800 From: kernel test robot To: Inki Dae Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev Subject: [daeinki-drm-exynos:exynos-drm-fixes 2/2] drivers/gpu/drm/exynos/exynos_drm_dma.c:119:19: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const void *' Message-ID: <202311211435.3Bgnf3Jv-lkp@intel.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://git.kernel.org:/pub/scm/linux/kernel/git/daeinki/drm-exynos.git exynos-drm-fixes head: a30ba4bd7cdb5726d86a557c5df8df71c7bc7fad commit: 9f6ed6faadde040e556880ade6881b3ad92861a3 [2/2] drm/exynos: fix a wrong error checking config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20231121/202311211435.3Bgnf3Jv-lkp@intel.com/config) compiler: clang version 16.0.4 (https://github.com/llvm/llvm-project.git ae42196bc493ffe877a7e3dff8be32035dea4d07) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231121/202311211435.3Bgnf3Jv-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202311211435.3Bgnf3Jv-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/gpu/drm/exynos/exynos_drm_dma.c:119:19: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'const void *' [-Wint-conversion] return PTR_ERR(-ENODEV); ^~~~~~~ include/linux/err.h:49:61: note: passing argument to parameter 'ptr' here static inline long __must_check PTR_ERR(__force const void *ptr) ^ 1 error generated. vim +119 drivers/gpu/drm/exynos/exynos_drm_dma.c 94 95 int exynos_drm_register_dma(struct drm_device *drm, struct device *dev, 96 void **dma_priv) 97 { 98 struct exynos_drm_private *priv = drm->dev_private; 99 100 if (!priv->dma_dev) { 101 priv->dma_dev = dev; 102 DRM_INFO("Exynos DRM: using %s device for DMA mapping operations\n", 103 dev_name(dev)); 104 } 105 106 if (!IS_ENABLED(CONFIG_EXYNOS_IOMMU)) 107 return 0; 108 109 if (!priv->mapping) { 110 void *mapping = NULL; 111 112 if (IS_ENABLED(CONFIG_ARM_DMA_USE_IOMMU)) 113 mapping = arm_iommu_create_mapping(&platform_bus_type, 114 EXYNOS_DEV_ADDR_START, EXYNOS_DEV_ADDR_SIZE); 115 else if (IS_ENABLED(CONFIG_IOMMU_DMA)) 116 mapping = iommu_get_domain_for_dev(priv->dma_dev); 117 118 if (!mapping) > 119 return PTR_ERR(-ENODEV); 120 priv->mapping = mapping; 121 } 122 123 return drm_iommu_attach_device(drm, dev, dma_priv); 124 } 125 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki