From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 1776D22C6E3; Sat, 7 Dec 2024 07:45:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733557549; cv=none; b=Pkh/t6NlyLa4Gp//n6NlW67kaAZ7NVeCvvZOJs8Se5TEUDuLwG6zRHGxwU3dOQgCdUWXmfVPKl/hS8k68iADHKi5PU+hR8VSVXD1I8stZbT5UfgG5GFF5jRFk1tVTLBKv8wxAKSlYAw+8ZHcRlVIp/YkJCD77oVtF/d4Hb02Lmk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1733557549; c=relaxed/simple; bh=a88x8f60dtnCM+RV3nG2J+MnbK12fsObWZFZLq9PC4U=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=BAYzqeLA6ummLCGzoQX913pJtdpo3yYbm+a0ryzMYQthkG39ZmmSGC92sIkISDKSUVOnAKbqRfY57iOk98FdJ6w0xFsaKUA8bGLLV+4lOTP+4ryXSf1NIoqL/3fnpc3OGHKD5pegYKw/ZVsmRgqXJL7B1ZU8Fo3f8B3Q7LDjPsQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=hZ2g4AfS; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="hZ2g4AfS" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 73680C4CECD; Sat, 7 Dec 2024 07:45:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1733557548; bh=a88x8f60dtnCM+RV3nG2J+MnbK12fsObWZFZLq9PC4U=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=hZ2g4AfSkamRYfBm83sisoe+XMSSDYlDajh8zKx/BFypHYCISNInttSvwhN/fwWJd 7A8wpjTe1S+WoTHdvpfKyYQMMk10ybFN8HBQ8w4r5iNk1OXKs+4Bn3H3LOwoCa4uqK LXtVLxZK76bPqg/ORml4ZVDfsPxBEjTL75lc37c7k9+g5Tfjv+xeESFmm8HTMEuLYp U4GNRnjHClxyQNwQNkZd1f7SvSPG8neE+tUD3Ej+uM+rVtkMVrlAIDmkExSpP094ih 2e1naNjBY9g7UMJ7kZ9V+b3CS/Sply70EQzkmzPWOdHHgsJB9Q96S3WeeXLSAm46O3 JW/NDZosSXGlw== Date: Sat, 7 Dec 2024 07:45:47 +0000 From: Wei Liu To: Dexuan Cui Cc: "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Long Li , Greg Kroah-Hartman , Saurabh Sengar , "open list:Hyper-V/Azure CORE AND DRIVERS" , open list , stable@vger.kernel.org Subject: Re: [PATCH] tools: hv: Fix a complier warning in the fcopy uio daemon Message-ID: References: <20240910004433.50254-1-decui@microsoft.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=us-ascii Content-Disposition: inline In-Reply-To: <20240910004433.50254-1-decui@microsoft.com> On Tue, Sep 10, 2024 at 12:44:32AM +0000, Dexuan Cui wrote: > hv_fcopy_uio_daemon.c:436:53: warning: '%s' directive output may be truncated > writing up to 14 bytes into a region of size 10 [-Wformat-truncation=] > 436 | snprintf(uio_dev_path, sizeof(uio_dev_path), "/dev/%s", uio_name); > > Also added 'static' for the array 'desc[]'. > > Fixes: 82b0945ce2c2 ("tools: hv: Add new fcopy application based on uio driver") > Cc: stable@vger.kernel.org # 6.10+ > Signed-off-by: Dexuan Cui Applied to hyperv-fixes. Thanks.