diff options
| author | Alison Schofield <[email protected]> | 2023-08-15 17:20:52 +0000 |
|---|---|---|
| committer | Dan Williams <[email protected]> | 2023-10-24 23:04:10 +0000 |
| commit | 9214c9d56c470b183f3d374c7aed7c8756f80fd9 (patch) | |
| tree | 9ffada672f21144b93a2083dd5a09192c628af59 /drivers/usb/cdns3/cdns3-starfive.c | |
| parent | cxl/pci: Update comment (diff) | |
| download | kernel-9214c9d56c470b183f3d374c7aed7c8756f80fd9.tar.gz kernel-9214c9d56c470b183f3d374c7aed7c8756f80fd9.zip | |
cxl/mbox: Remove useless cast in cxl_mem_create_range_info()
DEFINE_RES_MEM() is a wrapper around the DEFINE_RES_NAMED() macro
which already has the (struct resource) for the compound literal.
The user of the macro should not repeat the cast.
Cleans up these sparse warnings:
drivers/cxl/core/mbox.c:1184:18: warning: cast to non-scalar
drivers/cxl/core/mbox.c:1184:18: warning: cast from non-scalar
Fixes: 52c4d11f1dce ("resource: Convert DEFINE_RES_NAMED() to be compound literal")
Signed-off-by: Alison Schofield <[email protected]>
Reviewed-by: Jonathan Cameron <[email protected]>
Reviewed-by: Davidlohr Bueso <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Dan Williams <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-starfive.c')
0 files changed, 0 insertions, 0 deletions
