Received: by 2002:ab2:620c:0:b0:1ef:ffd0:ce49 with SMTP id o12csp396128lqt; Mon, 18 Mar 2024 10:50:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVySHeAEqtlt5Ibw2EHPXWNx+NW/loaPkMMDDml7f4R1es1XSoiQZpvQCeomWuN8ZcF+Q19xndy1gsRLfzHEhQNn9veU6gk70SB6qQSnA== X-Google-Smtp-Source: AGHT+IHiv7c0s3lrSvtn8PLehkUWXqf3LUTJqM784wlSr6tjg9jCvlw3CUUoSrSDvi7UY/d/1T13 X-Received: by 2002:a2e:9188:0:b0:2d4:98bf:a646 with SMTP id f8-20020a2e9188000000b002d498bfa646mr3730560ljg.13.1710784247816; Mon, 18 Mar 2024 10:50:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710784247; cv=pass; d=google.com; s=arc-20160816; b=UxdUBGNuuTX9MZ6M4iWu44ETu9XID52hNU2wMeKOzeUtLkPp6zlbIptyVjFBQNc3Z+ o4X6SB5GeTZuK3kTtoXYaJmxht69B68wB9AyQG4/je8IYzovg4uI4KNbrk3sbi0D3M4P DaeOeLYknFByYA9OJjnRcxv5Juf4NzVEC04UYSHNn6xkUgHrKcZNGGbN5VWXaq0IRNEx yOifRRXylvInj8ouOmNzCFiWfQShw8sqv9/c0zKiAF2JmivxqEi7ULkSdht8WGv4Jmxz iSZSRs4aQqaopo3DTwE8IDywdmBfHN8V7ZQo5n1T1xokgLxeTsNUr8snaIfJSg5xR70o Rp6w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/VcPEddX1islQWdam1fg/Nsh5drRsgd5s5jxvHenleg=; fh=MVkqCMlcuEQQdLTAIMhPnTsmzTwez5dg4nK5H+J5yfU=; b=B+J2IAi9h4SjyVZq5PGIEkc1AAejP/c2tS3JHwlpEP2A5laQ/TlZZrvibCcpsRm+cy rteuCoMugSwKEzGxuo2QyzuDI7VBOwJw6FaAIct3HcdfGBIEMavnYsTHvjmOtlLKBZpL nig+I1IX3h91Xv49wnHehn9/8A3MnL9c6ai01Ph1zBO7zYxASjaRYhHoS0fLwjeplKxi p6Whifk6gYEClOloKLdPd7NSv0h3BJcvK3VC7WJMbPOEoc6TZeD0J4QPTbD1pgj5vlOT 8whhoXR7JHxt7gPkKGEbMJBl3Kfd2axZIoVyB/hHKoAkmAFo2fU1xvEXXRMw9g70Ld/z jq/Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=XlZWs+Jf; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-106480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106480-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dg6-20020a0564021d0600b00568c3be40bbsi2267821edb.248.2024.03.18.10.50.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Mar 2024 10:50:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-106480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=XlZWs+Jf; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-106480-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-106480-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 859951F23DDE for ; Mon, 18 Mar 2024 17:50:47 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01B3D55E52; Mon, 18 Mar 2024 17:50:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="XlZWs+Jf" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (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 9B1BF55C3C for ; Mon, 18 Mar 2024 17:50:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710784238; cv=none; b=nNJ+wXQ7dV/aXsZyK0PHOspmxCXurSlR3em0mPpwNniGeAN0UdeVx+JbTIZ2hTmYwYCzgQYh0/0NM0J8GTpvHszJFNpsLqhY/VHVG+pkxCW0jmJ3lGoT0/7mxjX25ba33XXOxrNKQAnb0jQfAPrJ10b8P7nqVQMfABvltktXCTs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710784238; c=relaxed/simple; bh=pQUEXLiwsG9pj5PVCtfU0JO6LrCsUmWuFBjSmI5msyE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=QpBuibfFOZCCiNGP0DtLy5AdbHSyXzGT+HWoINqmRyu5Ah/Vr2CTlhY83JnFIJ0kU1yFJsTIqNX3HbT1GCrRwoewaM/VT/v5g20jJH5TK7ya0c8LqoIKU7saSIKo8BSE0/qLE/8FRXiXbSJ+Al5I3SMfHE4AtP97S4d437qKE6E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=XlZWs+Jf; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from pendragon.ideasonboard.com (81-175-209-231.bb.dnainternet.fi [81.175.209.231]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 94D937E9; Mon, 18 Mar 2024 18:50:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1710784208; bh=pQUEXLiwsG9pj5PVCtfU0JO6LrCsUmWuFBjSmI5msyE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=XlZWs+Jf10VPkSIZExabneHvJ8lPq37tytooEGy4gXnTQOUn+SBX64FjyPPL5IiiN 92deGuT2P4WZHtLhdkYdvo6BzTg7FIN57y0JL/vEG/n61IUsahuTfD9wmQLYjST/81 pETs6/R8TlJ4l5MEDjO7d2427SLRIfRFb4Q1I0X4= Date: Mon, 18 Mar 2024 19:50:32 +0200 From: Laurent Pinchart To: Sean Anderson Cc: kernel test robot , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , dri-devel@lists.freedesktop.org, oe-kbuild-all@lists.linux.dev, David Airlie , linux-kernel@vger.kernel.org, Michal Simek , linux-arm-kernel@lists.infradead.org, Daniel Vetter Subject: Re: [PATCH 6/6] drm: zynqmp_dp: Add debugfs interface for compliance testing Message-ID: <20240318175032.GM13682@pendragon.ideasonboard.com> References: <20240315230916.1759060-7-sean.anderson@linux.dev> <202403161704.ACHJdSJG-lkp@intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Mon, Mar 18, 2024 at 11:06:40AM -0400, Sean Anderson wrote: > On 3/16/24 06:14, kernel test robot wrote: > > Hi Sean, > > > > kernel test robot noticed the following build warnings: > > > > [auto build test WARNING on v6.8] > > [cannot apply to drm-misc/drm-misc-next linus/master next-20240315] > > [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/Sean-Anderson/drm-zynqmp_dp-Downgrade-log-level-for-aux-retries-message/20240316-071208 > > base: v6.8 > > patch link: https://lore.kernel.org/r/20240315230916.1759060-7-sean.anderson%40linux.dev > > patch subject: [PATCH 6/6] drm: zynqmp_dp: Add debugfs interface for compliance testing > > config: microblaze-allmodconfig (https://download.01.org/0day-ci/archive/20240316/202403161704.ACHJdSJG-lkp@intel.com/config) > > compiler: microblaze-linux-gcc (GCC) 13.2.0 > > reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240316/202403161704.ACHJdSJG-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/202403161704.ACHJdSJG-lkp@intel.com/ > > > > All warnings (new ones prefixed by >>): > > > > drivers/gpu/drm/xlnx/zynqmp_dp.c: In function 'zynqmp_dp_bridge_debugfs_init': > >>> drivers/gpu/drm/xlnx/zynqmp_dp.c:2168:31: warning: 'sprintf' may write a terminating nul past the end of the destination [-Wformat-overflow=] > > 2168 | sprintf(name, fmt, i); > > | ^~~ > > drivers/gpu/drm/xlnx/zynqmp_dp.c:2168:17: note: 'sprintf' output between 18 and 20 bytes into a destination of size 19 > > 2168 | sprintf(name, fmt, i); > > | ^~~~~~~~~~~~~~~~~~~~~ > > Not a bug, as i will be at most 4, which uses 1 digit. The compiler can't know that. Please fix this, there's a zero warning policy. > > vim +/sprintf +2168 drivers/gpu/drm/xlnx/zynqmp_dp.c > > > > 2136 > > 2137 DEFINE_DEBUGFS_ATTRIBUTE(fops_zynqmp_dp_rate, zynqmp_dp_rate_get, > > 2138 zynqmp_dp_rate_set, "%llu\n"); > > 2139 > > 2140 static void zynqmp_dp_bridge_debugfs_init(struct drm_bridge *bridge, > > 2141 struct dentry *root) > > 2142 { > > 2143 struct zynqmp_dp *dp = bridge_to_dp(bridge); > > 2144 struct dentry *test; > > 2145 int i; > > 2146 > > 2147 dp->test.bw_code = DP_LINK_BW_5_4; > > 2148 dp->test.link_cnt = dp->num_lanes; > > 2149 > > 2150 test = debugfs_create_dir("test", root); > > 2151 #define CREATE_FILE(name) \ > > 2152 debugfs_create_file(#name, 0600, test, dp, &fops_zynqmp_dp_##name) > > 2153 CREATE_FILE(pattern); > > 2154 CREATE_FILE(enhanced); > > 2155 CREATE_FILE(downspread); > > 2156 CREATE_FILE(active); > > 2157 CREATE_FILE(custom); > > 2158 CREATE_FILE(rate); > > 2159 CREATE_FILE(lanes); > > 2160 > > 2161 for (i = 0; i < dp->num_lanes; i++) { > > 2162 static const char fmt[] = "lane%d_preemphasis"; > > 2163 char name[sizeof(fmt)]; > > 2164 > > 2165 dp->debugfs_train_set[i].dp = dp; > > 2166 dp->debugfs_train_set[i].lane = i; > > 2167 > >> 2168 sprintf(name, fmt, i); > > 2169 debugfs_create_file(name, 0600, test, > > 2170 &dp->debugfs_train_set[i], > > 2171 &fops_zynqmp_dp_preemphasis); > > 2172 > > 2173 sprintf(name, "lane%d_swing", i); > > 2174 debugfs_create_file(name, 0600, test, > > 2175 &dp->debugfs_train_set[i], > > 2176 &fops_zynqmp_dp_swing); > > 2177 } > > 2178 } > > 2179 -- Regards, Laurent Pinchart