All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Martin K. Petersen" <martin.petersen@oracle.com>
To: linux-scsi@vger.kernel.org, Justin Tee <justintee8345@gmail.com>
Cc: "Martin K . Petersen" <martin.petersen@oracle.com>,
	jsmart2021@gmail.com, justin.tee@broadcom.com,
	"Gustavo A . R . Silva" <gustavoars@kernel.org>,
	Kees Cook <keescook@chromium.org>
Subject: Re: [PATCH v3][next] scsi: lpfc: Use struct_size() helper
Date: Wed, 14 Jun 2023 22:16:22 -0400	[thread overview]
Message-ID: <168679535168.3778526.14503496950152410985.b4-ty@oracle.com> (raw)
In-Reply-To: <20230531223319.24328-1-justintee8345@gmail.com>

On Wed, 31 May 2023 15:33:19 -0700, Justin Tee wrote:

> Prefer struct_size() over open-coded versions of idiom:
> 
> sizeof(struct-with-flex-array) + sizeof(typeof-flex-array-elements) * count
> 
> where count is the max number of items the flexible array is supposed to
> contain.
> 
> [...]

Applied to 6.5/scsi-queue, thanks!

[1/1] scsi: lpfc: Use struct_size() helper
      https://git.kernel.org/mkp/scsi/c/bb26224ed47c

-- 
Martin K. Petersen	Oracle Linux Engineering

      parent reply	other threads:[~2023-06-15  2:16 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-31 22:33 [PATCH v3][next] scsi: lpfc: Use struct_size() helper Justin Tee
2023-06-01 14:14 ` Kees Cook
2023-06-08  1:03 ` Martin K. Petersen
2023-06-15  2:16 ` Martin K. Petersen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=168679535168.3778526.14503496950152410985.b4-ty@oracle.com \
    --to=martin.petersen@oracle.com \
    --cc=gustavoars@kernel.org \
    --cc=jsmart2021@gmail.com \
    --cc=justin.tee@broadcom.com \
    --cc=justintee8345@gmail.com \
    --cc=keescook@chromium.org \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.