Commit Graph
9 Commits
Author SHA1 Message Date
Alejandro Vallejo eea7d98d1c CODING_STYLE: Custom type names must be snake-cased by word
There's the unwritten convention of splitting type names using
underscores. Add such convention to the CODINNG_STYLE to make it
common and less unwritten.

Signed-off-by: Alejandro Vallejo <agarciav@amd.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
2025-06-24 14:54:34 +02:00
Alejandro Vallejo c65ff27d71 xen/dt: Remove loop in dt_read_number()
The DT spec declares only two number types for a property: u32 and u64,
as per Table 2.3 in Section 2.2.4. Remove unbounded loop and replace
with a switch statement. Default to a size of 1 cell in the nonsensical
size case, with a warning printed on the Xen console.

Suggested-by: Daniel P. Smith" <dpsmith@apertussolutions.com>
Signed-off-by: Alejandro Vallejo <agarciav@amd.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
2025-06-20 17:47:31 -07:00
Alejandro Vallejo 4f48bd7851 x86: Preinitialise all modules to be of kind BOOTMOD_UNKNOWN
A later patch removes boot_module and replaces its uses with bootmodule.
The equivalent field for "type" doesn't have BOOTMOD_UNKNOWN as a zero
value, so it must be explicitly set in the static xen_boot_info.

Not a functional change.

Signed-off-by: Alejandro Vallejo <agarciav@amd.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
2025-06-16 10:14:37 +02:00
Alejandro Vallejo 218b41f571 arm/gnttab: Remove xen/grant_table.h cyclic include
The way they currently include each other, with one of the includes
being conditional on CONFIG_GRANT_TABLE, makes it hard to know which
contents are included when.

Break the cycle by removing the asm/grant_table.h include.

Not a functional change because.

Signed-off-by: Alejandro Vallejo <agarciav@amd.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
2025-06-16 10:14:10 +02:00
Alejandro Vallejo efe0870d4a xen/dt: Add BOOTMOD_MICROCODE
In preparation for x86 to start using bootmodule instead of boot_module

Signed-off-by: Alejandro Vallejo <agarciav@amd.com>
Reviewed-by: Michal Orzel <michal.orzel@amd.com>
2025-06-11 11:08:28 +02:00
Alejandro Vallejo 461510e87e x86: Add missing pci_dev forward declaration in asm/pci.h
struct pci_dev is used in function prototypes within the header, so it must
be forward declared for asm/pci.h not to depend on xen/pci.h being included
first.

Not a functional change.

Signed-off-by: Alejandro Vallejo <agarciav@amd.com>
Reviewed-by: Jason Andryuk <jason.andryuk@amd.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
2025-06-04 12:11:14 +02:00
Alejandro Vallejo 1cadd2a011 xen: Add missing forward declaration to btcpupools_get_domain_pool_id
And remove the ifdef guard, as it's inconsequential.

Signed-off-by: Alejandro Vallejo <agarciav@amd.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
2025-06-02 12:46:19 +02:00
Alejandro Vallejo 546281a115 riscv: Add missing forward declaration to intc.h
Very much not a functional change

Signed-off-by: Alejandro Vallejo <agarciav@amd.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
2025-06-02 12:45:57 +02:00
Alejandro Vallejo 1083fb5a72 licence: Add missing SPDX line to bootfdt.h
Signed-off-by: Alejandro Vallejo <agarciav@amd.com>
Acked-by: Michal Orzel <michal.orzel@amd.com>
2025-06-02 12:45:21 +02:00