From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from linux.microsoft.com (linux.microsoft.com [13.77.154.182]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1F5D63FFD for ; Mon, 23 Jun 2025 04:56:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=13.77.154.182 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750654609; cv=none; b=DUULXEXufoniXJvpsqlNcclTlcox7TRHk/NAdtc20UFKDWibiNaEEYlNXsWqBpmOMtrDjqlsU8rTGkVGsQhD3FDtXQ1fUbUhsshpc9nwS4kRSO83OZnu1dATf+T5ohYQU03Z1SDie0ORshxyYtRAfHFMWYKQvffaZR1kewdWpLc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750654609; c=relaxed/simple; bh=scl1uj+9BWZbH3KZs083SVTr6HF4a+xt9w8QyM00UNU=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=HjKLyK67+DVaGnqfsEl7FCYeqGDkj4baYE0u1jt384WKa/HO3j4w6EcN3jW/XSx2FH0HQxZFRX+pUYl3H3OxHVYmmdZpzlVnhGrfzDNbX/gJIFU680rAUE/UGMgQlUPlXdmDdE0m3pjYqSDrBWLiXqmQWKbwC+6jRE8hafRNuS4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com; spf=pass smtp.mailfrom=linux.microsoft.com; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b=Dyso1E1n; arc=none smtp.client-ip=13.77.154.182 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.microsoft.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.microsoft.com header.i=@linux.microsoft.com header.b="Dyso1E1n" Received: from [10.95.67.184] (unknown [167.220.238.152]) by linux.microsoft.com (Postfix) with ESMTPSA id 8781D2117FA1; Sun, 22 Jun 2025 21:56:45 -0700 (PDT) DKIM-Filter: OpenDKIM Filter v2.11.0 linux.microsoft.com 8781D2117FA1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.microsoft.com; s=default; t=1750654607; bh=fKtTQ/V3tLM/Q3sN+XHyquj7NVafM2Wlq4hlZqZqMmE=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Dyso1E1nlmNzq6ZafFDIIUmOp181ng0s8qzeG656hhcPe5C0vB4DaYKwZNtuqnyvp JxJaoKP5jvXlq5y9SJy6+lNCmciWhcRzDTEMaQ24AUajpM8hiI6TMQIUYPCNRHifvz 9HlsYUFSECf+/JW19J1LEFsYbKZ+myGqeJJWowLo= Message-ID: Date: Mon, 23 Jun 2025 10:26:42 +0530 Precedence: bulk X-Mailing-List: linux-hyperv@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] tools/hv: fcopy: Fix irregularities with size of ring buffer To: Olaf Hering Cc: "K . Y . Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Michael Kelley , Saurabh Sengar , linux-hyperv@vger.kernel.org References: <20250620070618.3097-1-namjain@linux.microsoft.com> <20250621070644.3b4185b6.olaf@aepfle.de> Content-Language: en-US From: Naman Jain In-Reply-To: <20250621070644.3b4185b6.olaf@aepfle.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 6/21/2025 10:36 AM, Olaf Hering wrote: > Fri, 20 Jun 2025 12:36:18 +0530 Naman Jain : > >> + desc = (unsigned char *)malloc(ring_size * sizeof(unsigned char)); > > Is this cast required? > > > Olaf This should not be required, will remove it. Thanks for catching this! Regards, Naman