[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <yq1353om1ie.fsf@ca-mkp.ca.oracle.com>
Date: Mon, 22 May 2023 18:42:51 -0400
From: "Martin K. Petersen" <martin.petersen@...cle.com>
To: Kees Cook <keescook@...omium.org>
Cc: Jesse Brandeburg <jesse.brandeburg@...el.com>,
Christoph Hellwig <hch@...radead.org>,
Tony Nguyen <anthony.l.nguyen@...el.com>,
"David S. Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>,
Paolo Abeni <pabeni@...hat.com>,
James Smart <james.smart@...adcom.com>,
Keith Busch <kbusch@...nel.org>, Jens Axboe <axboe@...nel.dk>,
Sagi Grimberg <sagi@...mberg.me>,
HighPoint Linux Team <linux@...hpoint-tech.com>,
"James E.J. Bottomley" <jejb@...ux.ibm.com>,
"Martin K. Petersen" <martin.petersen@...cle.com>,
Kashyap Desai <kashyap.desai@...adcom.com>,
Sumit Saxena <sumit.saxena@...adcom.com>,
Shivasharan S <shivasharan.srikanteshwara@...adcom.com>,
Don Brace <don.brace@...rochip.com>,
"Darrick J. Wong" <djwong@...nel.org>,
Dave Chinner <dchinner@...hat.com>,
Guo Xuenan <guoxuenan@...wei.com>,
Gwan-gyeong Mun <gwan-gyeong.mun@...el.com>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Daniel Latypov <dlatypov@...gle.com>,
kernel test robot <lkp@...el.com>,
intel-wired-lan@...ts.osuosl.org, netdev@...r.kernel.org,
linux-nvme@...ts.infradead.org, linux-scsi@...r.kernel.org,
megaraidlinux.pdl@...adcom.com, storagedev@...rochip.com,
linux-xfs@...r.kernel.org, linux-hardening@...r.kernel.org,
Christoph Hellwig <hch@....de>,
Tales Aparecida <tales.aparecida@...il.com>,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] overflow: Add struct_size_t() helper
Kees,
> While struct_size() is normally used in situations where the structure
> type already has a pointer instance, there are places where no variable
> is available. In the past, this has been worked around by using a typed
> NULL first argument, but this is a bit ugly. Add a helper to do this,
> and replace the handful of instances of the code pattern with it.
SCSI bits look fine to me.
Acked-by: Martin K. Petersen <martin.petersen@...cle.com>
--
Martin K. Petersen Oracle Linux Engineering
Powered by blists - more mailing lists