Re: [PATCH] spi: pl022: enable compile testing

Mark Brown
2026-04-08T11:47:45Z

[-- Attachment #1: Type: text/plain, Size: 932 bytes --]

On Wed, Apr 08, 2026 at 10:44:07AM +0200, Johan Hovold wrote:
> There seems to be nothing preventing this driver from being compile
> tested so enable that for wider build coverage.

$ grep amba drivers/spi/spi-pl022.c
#include <linux/amba/bus.h>
#include <linux/amba/pl022.h>
struct amba_device *adev;
static int pl022_probe(struct amba_device *adev, const struct amba_id *id)
status = amba_request_regions(adev, NULL);
amba_set_drvdata(adev, pl022);
amba_release_regions(adev);
pl022_remove(struct amba_device *adev)
struct pl022 *pl022 = amba_get_drvdata(adev);
amba_release_regions(adev);
static const struct amba_id pl022_ids[] = {
MODULE_DEVICE_TABLE(amba, pl022_ids);
static struct amba_driver pl022_driver = {
return amba_driver_register(&pl022_driver);
amba_driver_unregister(&pl022_driver);

At least amba_request_regions() and amba_release_regions() don't appear
to have stubs for !AMBA?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]