Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (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 A54EB218AAA for ; Fri, 15 Aug 2025 20:35:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.17 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755290139; cv=none; b=MxRemWKqGxbJCy3tOg5usK5/s8AH62ECZ55SN7mN56+MuAKIacvMsoDTT45sdknA1CXlqwXTFNc1sw5aa52eATIpC1B3w5VpASu8Q/UOV8uix3i0/viTVq/opyuwtwP9azSdHBCH5GtYJxtYvuQa8w8IYZBrYHcFT/Mkk50z/qw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755290139; c=relaxed/simple; bh=6/seuBhNy/r0/ZvsBHWbqeaVlQZm6Hl7cU7V8oDuh7g=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mBkHp8UY/Tg4maJrs/d2I3qAlge8OWQmGDLHrlr60AZ9iV9dM8eHdxkTjkYfGc4fT8MIH/xQ4DFL3vOU/Cw8xSDUvkxWwSOENW+/GBA6QR56+Ajvqu7sjEiuzjeT/b8cGWLuYoQTLNpqkgLxGPlgPsxP3sjePNCQ9+darlchwIw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=cS/X6g5U; arc=none smtp.client-ip=192.198.163.17 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="cS/X6g5U" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1755290138; x=1786826138; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=6/seuBhNy/r0/ZvsBHWbqeaVlQZm6Hl7cU7V8oDuh7g=; b=cS/X6g5UdvRaA6n1M1JQubXjTWtDofg1gcOrd5VmN+JQL+D1vIEf83HM AGSwmqgR/8JtCl1HTcfE8otduZ1HYKRM4KBiOHmZ/vbP/hYuvPtPZzj25 D6GcaFgG6X1B28mGn8bj1WiAsTJHRipjg/qGazy9bbKXvkDGqsZNH72vA TAS9hv+Pvtc37f+o+p1Ftuu/1Kd/uHvWrSro+2dZlgftdW/IRtO9WDB1/ STN2Qc/l6POv5aUa8068a6tgmVvmgnXY5phDws9t1uqMOFHKlOIJdPndR whMLlEes0lQsYzwd9RFeIe3nLXimhJLRetH/bA8thoj1D61zCHbKqXXJs Q==; X-CSE-ConnectionGUID: kUZZYLAlQOauhZrcrzTb0w== X-CSE-MsgGUID: yG8VJldHTiW0PIua7pvIFw== X-IronPort-AV: E=McAfee;i="6800,10657,11523"; a="57541313" X-IronPort-AV: E=Sophos;i="6.17,293,1747724400"; d="scan'208";a="57541313" Received: from orviesa006.jf.intel.com ([10.64.159.146]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Aug 2025 13:35:36 -0700 X-CSE-ConnectionGUID: /gUBN50jTAWPtDPX+DdnDg== X-CSE-MsgGUID: C5YlJRYURTmAjx4761y+Jw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.17,293,1747724400"; d="scan'208";a="166271616" Received: from lkp-server02.sh.intel.com (HELO 4ea60e6ab079) ([10.239.97.151]) by orviesa006.jf.intel.com with ESMTP; 15 Aug 2025 13:35:29 -0700 Received: from kbuild by 4ea60e6ab079 with local (Exim 4.96) (envelope-from ) id 1un194-000CK4-1P; Fri, 15 Aug 2025 20:35:26 +0000 Date: Sat, 16 Aug 2025 04:34:56 +0800 From: kernel test robot To: Alex Hung , dri-devel@lists.freedesktop.org, amd-gfx@lists.freedesktop.org Cc: oe-kbuild-all@lists.linux.dev, wayland-devel@lists.freedesktop.org, harry.wentland@amd.com, alex.hung@amd.com, leo.liu@amd.com, ville.syrjala@linux.intel.com, pekka.paalanen@collabora.com, contact@emersion.fr, mwen@igalia.com, jadahl@redhat.com, sebastian.wick@redhat.com, shashank.sharma@amd.com, agoins@nvidia.com, joshua@froggi.es, mdaenzer@redhat.com, aleixpol@kde.org, xaver.hugl@gmail.com, victoria@system76.com, daniel@ffwll.ch, uma.shankar@intel.com, quic_naseer@quicinc.com, quic_cbraga@quicinc.com, quic_abhinavk@quicinc.com, marcan@marcan.st, Liviu.Dudau@arm.com, sashamcintosh@google.com, chaitanya.kumar.borah@intel.com, louis.chauvet@bootlin.com, mcanal@igalia.com Subject: Re: [PATCH V11 15/47] drm/vkms: Add kunit tests for linear and sRGB LUTs Message-ID: <202508160408.6Oo4aZ4X-lkp@intel.com> References: <20250815035047.3319284-16-alex.hung@amd.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20250815035047.3319284-16-alex.hung@amd.com> Hi Alex, kernel test robot noticed the following build errors: [auto build test ERROR on drm-exynos/exynos-drm-next] [also build test ERROR on linus/master v6.17-rc1 next-20250815] [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/Alex-Hung/drm-Add-helper-for-conversion-from-signed-magnitude/20250815-120435 base: https://git.kernel.org/pub/scm/linux/kernel/git/daeinki/drm-exynos.git exynos-drm-next patch link: https://lore.kernel.org/r/20250815035047.3319284-16-alex.hung%40amd.com patch subject: [PATCH V11 15/47] drm/vkms: Add kunit tests for linear and sRGB LUTs config: arc-randconfig-001-20250816 (https://download.01.org/0day-ci/archive/20250816/202508160408.6Oo4aZ4X-lkp@intel.com/config) compiler: arc-linux-gcc (GCC) 8.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250816/202508160408.6Oo4aZ4X-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/202508160408.6Oo4aZ4X-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from drivers/gpu/drm/vkms/vkms_composer.c:15: drivers/gpu/drm/vkms/vkms_composer.h:21:32: warning: 'struct vkms_color_lut' declared inside parameter list will not be visible outside of this definition or declaration s64 get_lut_index(const struct vkms_color_lut *lut, u16 channel_value); ^~~~~~~~~~~~~~ drivers/gpu/drm/vkms/vkms_composer.h:22:45: warning: 'struct vkms_color_lut' declared inside parameter list will not be visible outside of this definition or declaration u16 apply_lut_to_channel_value(const struct vkms_color_lut *lut, u16 channel_value, ^~~~~~~~~~~~~~ drivers/gpu/drm/vkms/vkms_composer.c:77:22: error: conflicting types for 'get_lut_index' VISIBLE_IF_KUNIT s64 get_lut_index(const struct vkms_color_lut *lut, u16 channel_value) ^~~~~~~~~~~~~ In file included from drivers/gpu/drm/vkms/vkms_composer.c:15: drivers/gpu/drm/vkms/vkms_composer.h:21:5: note: previous declaration of 'get_lut_index' was here s64 get_lut_index(const struct vkms_color_lut *lut, u16 channel_value); ^~~~~~~~~~~~~ In file included from include/linux/linkage.h:7, from include/linux/preempt.h:10, from include/linux/spinlock.h:56, from include/drm/drm_crtc.h:28, from include/drm/drm_atomic.h:31, from drivers/gpu/drm/vkms/vkms_composer.c:5: drivers/gpu/drm/vkms/vkms_composer.c:83:24: error: conflicting types for 'get_lut_index' EXPORT_SYMBOL_IF_KUNIT(get_lut_index); ^~~~~~~~~~~~~ include/linux/export.h:76:21: note: in definition of macro '__EXPORT_SYMBOL' extern typeof(sym) sym; \ ^~~ include/kunit/visibility.h:27:44: note: in expansion of macro 'EXPORT_SYMBOL_NS' #define EXPORT_SYMBOL_IF_KUNIT(symbol) EXPORT_SYMBOL_NS(symbol, "EXPORTED_FOR_KUNIT_TESTING") ^~~~~~~~~~~~~~~~ drivers/gpu/drm/vkms/vkms_composer.c:83:1: note: in expansion of macro 'EXPORT_SYMBOL_IF_KUNIT' EXPORT_SYMBOL_IF_KUNIT(get_lut_index); ^~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/gpu/drm/vkms/vkms_composer.c:15: drivers/gpu/drm/vkms/vkms_composer.h:21:5: note: previous declaration of 'get_lut_index' was here s64 get_lut_index(const struct vkms_color_lut *lut, u16 channel_value); ^~~~~~~~~~~~~ >> drivers/gpu/drm/vkms/vkms_composer.c:85:22: error: conflicting types for 'apply_lut_to_channel_value' VISIBLE_IF_KUNIT u16 apply_lut_to_channel_value(const struct vkms_color_lut *lut, u16 channel_value, ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/gpu/drm/vkms/vkms_composer.c:15: drivers/gpu/drm/vkms/vkms_composer.h:22:5: note: previous declaration of 'apply_lut_to_channel_value' was here u16 apply_lut_to_channel_value(const struct vkms_color_lut *lut, u16 channel_value, ^~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/linkage.h:7, from include/linux/preempt.h:10, from include/linux/spinlock.h:56, from include/drm/drm_crtc.h:28, from include/drm/drm_atomic.h:31, from drivers/gpu/drm/vkms/vkms_composer.c:5: drivers/gpu/drm/vkms/vkms_composer.c:111:24: error: conflicting types for 'apply_lut_to_channel_value' EXPORT_SYMBOL_IF_KUNIT(apply_lut_to_channel_value); ^~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/export.h:76:21: note: in definition of macro '__EXPORT_SYMBOL' extern typeof(sym) sym; \ ^~~ include/kunit/visibility.h:27:44: note: in expansion of macro 'EXPORT_SYMBOL_NS' #define EXPORT_SYMBOL_IF_KUNIT(symbol) EXPORT_SYMBOL_NS(symbol, "EXPORTED_FOR_KUNIT_TESTING") ^~~~~~~~~~~~~~~~ drivers/gpu/drm/vkms/vkms_composer.c:111:1: note: in expansion of macro 'EXPORT_SYMBOL_IF_KUNIT' EXPORT_SYMBOL_IF_KUNIT(apply_lut_to_channel_value); ^~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/gpu/drm/vkms/vkms_composer.c:15: drivers/gpu/drm/vkms/vkms_composer.h:22:5: note: previous declaration of 'apply_lut_to_channel_value' was here u16 apply_lut_to_channel_value(const struct vkms_color_lut *lut, u16 channel_value, ^~~~~~~~~~~~~~~~~~~~~~~~~~ vim +/apply_lut_to_channel_value +85 drivers/gpu/drm/vkms/vkms_composer.c 76 77 VISIBLE_IF_KUNIT s64 get_lut_index(const struct vkms_color_lut *lut, u16 channel_value) 78 { 79 s64 color_channel_fp = drm_int2fixp(channel_value); 80 81 return drm_fixp_mul(color_channel_fp, lut->channel_value2index_ratio); 82 } > 83 EXPORT_SYMBOL_IF_KUNIT(get_lut_index); 84 > 85 VISIBLE_IF_KUNIT u16 apply_lut_to_channel_value(const struct vkms_color_lut *lut, u16 channel_value, 86 enum lut_channel channel) 87 { 88 s64 lut_index = get_lut_index(lut, channel_value); 89 u16 *floor_lut_value, *ceil_lut_value; 90 u16 floor_channel_value, ceil_channel_value; 91 92 /* 93 * This checks if `struct drm_color_lut` has any gap added by the compiler 94 * between the struct fields. 95 */ 96 static_assert(sizeof(struct drm_color_lut) == sizeof(__u16) * 4); 97 98 floor_lut_value = (__u16 *)&lut->base[drm_fixp2int(lut_index)]; 99 if (drm_fixp2int(lut_index) == (lut->lut_length - 1)) 100 /* We're at the end of the LUT array, use same value for ceil and floor */ 101 ceil_lut_value = floor_lut_value; 102 else 103 ceil_lut_value = (__u16 *)&lut->base[drm_fixp2int_ceil(lut_index)]; 104 105 floor_channel_value = floor_lut_value[channel]; 106 ceil_channel_value = ceil_lut_value[channel]; 107 108 return lerp_u16(floor_channel_value, ceil_channel_value, 109 lut_index & DRM_FIXED_DECIMAL_MASK); 110 } 111 EXPORT_SYMBOL_IF_KUNIT(apply_lut_to_channel_value); 112 113 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki