Received: by 2002:ab2:3141:0:b0:1ed:23cc:44d1 with SMTP id i1csp1708341lqg; Mon, 4 Mar 2024 00:52:30 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUteKITl0QU8/aQG2w0Xi2OSRbOUo//YkKYQQB66fGUZkJDUh1vwENYtdJ6j+FMwYWQCtFKN+BOg76S2hjOh/FEZz45ISg4rpQ5ETUJtQ== X-Google-Smtp-Source: AGHT+IHb5U6gDrP1qMLjV92TJBq5hIB9hamdOPR5rd8vvS6uR3Il35yPe7Wsv9LkPJ92kvnuI02c X-Received: by 2002:a05:6e02:1988:b0:365:1611:5d75 with SMTP id g8-20020a056e02198800b0036516115d75mr11835690ilf.24.1709542350114; Mon, 04 Mar 2024 00:52:30 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709542350; cv=pass; d=google.com; s=arc-20160816; b=J4Q73r3TSU6oj6FZ9z7rmo0Olb1TujJKGH3d6/UhOfhbxnoZdDfMtVjTkoCT55QGRP XXiJ0LHQVwmtqJ3Eba+IBRlecQL5hFLjfYlbybQzlLk7kpu3goo52bsy73gjjfkaUPBc UDNpjrK3H1vn9lMMUQpV7dLVUIGxUa/uf/1ZqbDCFdSl+c6zviUcKJG0dUUDaQqgVzAO AFSvqP9IY855qIiSgmEWAnCT3xkekFUcfSv1WIiklK/fvBY/joDnjhEObeVkTO8PrBGT BZN5XtOSNpYn+883Q3zGlyBiUlew9D84oL9RRHKV8+kESSeOBpCifxKJ3T+9eqdPx1Z5 kLAw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:cc:user-agent:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:date:message-id :dkim-signature; bh=NYhwwBjTJuqFPNW98VgHCcN9yRUo2gG4FVkQpwbQNZw=; fh=N+B2OkPtUJSXcqYu2xLAQYoGOc60m2vmQa+ZehZMLls=; b=M1RMUB8efqa16rkB/nQUdIVuFCUm/qFD5AIxt08K/cUY1zzhsPWx9/fHHcZykiObyI unwRKnPkhocdwqAXqUnBGX0LMpGgPdUU+VsYCpSjNvlgYPxDu+xTJPcbAMEczr5a75PZ MDVR+I6O5xk5jWyXVWcEfjFJSGYx06lq1b3p8+YTY9IcjQ31QbQ8ziwGBq+IBKhmvWsA DgjjPGNBA/0DARIeDpRT8H/P9SvtDp5x04JysfMk2Hi/2Y7Jm0FlWvsU1CrY2m4LwueI pil1KhmjA8aDSA9hKmYsiEJsr+V9uby/gbCGSEsI4hWndndUot2GZ6ydU3x1ju5A/Ccc YlOg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=UALh7dVU; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-90242-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id o10-20020a62cd0a000000b006d3c35096dcsi7760136pfg.320.2024.03.04.00.52.29 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Mar 2024 00:52:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-90242-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=UALh7dVU; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-90242-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-90242-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C296F281A08 for ; Mon, 4 Mar 2024 08:52:29 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7335E225D5; Mon, 4 Mar 2024 08:45:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="UALh7dVU" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (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 1A7A51A58B; Mon, 4 Mar 2024 08:45:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709541905; cv=none; b=Q2oXlMRQDUl1o09dCJ0c8J/MI6xS/TwEnG6Zc1uFkxtIS0+3PKJg5yl0qaX3+CAAdnZDqdp5qR7vFZLoj4YaD96mSBrVyW76+0GT7IXuSDyOTfqXst0XCp+CX9G9bhMfxsZ8+lYfpZWGehJU7padKWxsywrg0kpKJEIT/6SxfEw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709541905; c=relaxed/simple; bh=+GAQ/9U68cQzOw2tMQbxtkFHqRIm+NAF8L7v5JI73Gc=; h=Message-ID:Date:MIME-Version:Cc:Subject:To:References:From: In-Reply-To:Content-Type; b=OSWObJKQisbgujSV0LqXS6OAs1ud+L2oglQtEjjfTI6ZBkDtkmzwJZNHDN5SGsAUbjhC6teIOtsBJngjyUoV7QwmF4VOLPl+wX64ucv5qjSnQujVjf7c5Yc4E95a4gU5RGroBLEEw4e3PDU47FmJ+I4imfVNq5fPQfuNSCMkGlY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=UALh7dVU; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1709541902; bh=+GAQ/9U68cQzOw2tMQbxtkFHqRIm+NAF8L7v5JI73Gc=; h=Date:Cc:Subject:To:References:From:In-Reply-To:From; b=UALh7dVUtCYFrhCQ5TAZ5MK8Q/UevNMPEqpLGVu+OI/GqYHa1YTfY33IsWVPbeedy SRMHz17SrzspB8mcA13JYZdoLeE8h2vDYMNXoapafhvFMPDR3H58l2rqrD9lMF78Es Y1+1UId6VhzAGEMYg7jfdMyj/ik7+xI9zriN9MefPzq4mhaOIEXpdb2ENcday/FaNL esmQ1Z26WjB/Eler2WoxiE5v44ZiYwxlcdVI7AJBKIEtKKtBaUeTpgpOeYchS9IDt/ rLV+HiZ+6evQrgk4pK0klUDjy+UIdstJEH6lWfrIuJU/5m3fUuJ4hjq7CwssE/njWe GgPNw6iwjd3gg== Received: from [10.193.1.1] (broslavsky.collaboradmins.com [68.183.210.73]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: usama.anjum) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 05B9A3781FE9; Mon, 4 Mar 2024 08:44:49 +0000 (UTC) Message-ID: Date: Mon, 4 Mar 2024 13:45:21 +0500 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Cc: Muhammad Usama Anjum , James Smart , Dick Kennedy , Justin Tee , "James E.J. Bottomley" , "Martin K. Petersen" , Hannes Reinecke , kernel@collabora.com, kernel-janitors@vger.kernel.org, James Smart , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] scsi: lpfc: correct size for wqe for memset Content-Language: en-US To: Justin Tee References: <20240301144458.2810597-1-usama.anjum@collabora.com> From: Muhammad Usama Anjum In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit I'll send v2. On 3/2/24 12:02 AM, Justin Tee wrote: > Hi Muhammad, > >> - memset(wqe, 0, sizeof(union lpfc_wqe)); >> + memset(wqe, 0, sizeof(union lpfc_wqe128)); > > How about instead memset(wqe, 0, sizeof(*wqe)); > > Thanks, > Justin > -- BR, Muhammad Usama Anjum