gcc-11 warns about an strnlen with a length larger than the size of the
passed buffer:
drivers/scsi/lpfc/lpfc_attr.c: In function 'lpfc_nvme_info_show':
drivers/scsi/lpfc/lpfc_attr.c:518:25: error: 'strnlen' specified bound 4095 exceeds source size 24 [-Werror=stringop-overread]
518 | strnlen(LPFC_NVME_INFO_MORE_STR, PAGE_SIZE - 1)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In this case, the code is entirely valid, as the string is properly
terminated, and the size argument is only there out of extra caution in
case it exceeds a page.
This cannot really happen here, so just simplify it to a sizeof().
Link: https://lore.kernel.org/r/20210322160253.4032422-10-arnd@kernel.org
Fixes: afff0d2321 ("scsi: lpfc: Add Buffer overflow check, when nvme_info larger than PAGE_SIZE")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
[ Upstream commit 3765fad508 ]
ADATA XPG GAMMIX S50 drives report bogus eui64 values that appear to
be the same across drives in one system. Quirk them out so they are
not marked as "non globally unique" duplicates.
Signed-off-by: Stefan Reiter <stefan@pimaker.at>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Stable-dep-of: 74391b3e69 ("nvme-pci: add NVME_QUIRK_BOGUS_NID for T-FORCE Z330 SSD")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Change-Id: I105713f41f06931d7eec2aea12d70c05653ddf57
[ Upstream commit ac9b57d4e1 ]
Kingston SSDs do support NVMe Write_Zeroes cmd but take long time to
process. The firmware version is locked by these SSDs, we can not expect
firmware improvement, so disable Write_Zeroes cmd.
Signed-off-by: Xander Li <xander_li@kingston.com.tw>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Stable-dep-of: 8d6e38f636 ("nvme-pci: add NVME_QUIRK_BOGUS_NID for Netac NV7000")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Change-Id: Icd0676b9ac84ce39ed4b93168e940bd4e1a1d623
By default, the debug port is binded to /dev/ttyFIQ0 for the FIQ
debugger. In order to switch the port to generic UART port,
'fiq-debugger' must be disabled and 'uart2' is required to be enabled
with proper pins.
Change-Id: I213cd319a119bde044458a59b2b0a1bded1f9546
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
The new panel ODROID-Vu8S is physically same as ODROID-Vu8M, but it's
necessary to apply different controller setup. Therefore new display
panel information with controller setup codes are added as
'odroid,vu8s'.
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Icc005d1793aa2cd69fc618e8663c5f5b133e221f
(cherry picked from commit 855f74c871898b280ffd839336eafd068078a85d)
This error happens after reverting the commit,
[c3f038c2dc] "PCI: rockchip: dw_ep: Delaying the link training after hot reset"
drivers/pci/controller/dwc/pcie-dw-rockchip.c: In function 'rk_pcie_really_probe':
drivers/pci/controller/dwc/pcie-dw-rockchip.c:2105:9: error: 'struct rk_pcie' has no member named 'hot_rst_wq'
rk_pcie->hot_rst_wq = create_singlethread_workqueue("rk_pcie_hot_rst_wq");
^~
drivers/pci/controller/dwc/pcie-dw-rockchip.c:2106:14: error: 'struct rk_pcie' has no member named 'hot_rst_wq'
if (!rk_pcie->hot_rst_wq) {
^~
In file included from ./include/linux/srcu.h:21:0,
from ./include/linux/notifier.h:16,
from ./include/linux/clk.h:14,
from drivers/pci/controller/dwc/pcie-dw-rockchip.c:11:
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Ic948980de4a1ba9a30fbdcb4daf8f518c96f054b
This patch is to adds the panel, Elida HJ080BE31IA1, initialization
sequence and timing to ILI9881C driver.
Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: If0f06ac08c5ca4396700cfd4d950ecf493008e5f
- Create the ov5647 device tree overlays.
- Make power pin always on.
Change-Id: I00ecc943d68011167cdeaff219c89088f97a7d18
Signed-off-by: Luke go <sangch.go@gmail.com>