[PATCH v4 02/26] arm64/sysreg: Add LINKER_SCRIPT guards for sysreg.h

Mark Brown broonie at kernel.org
Wed Jun 22 04:19:54 PDT 2022


On Wed, Jun 22, 2022 at 12:11:10PM +0100, Mark Rutland wrote:
> On Mon, Jun 20, 2022 at 01:43:43PM +0100, Mark Brown wrote:
> > Linker scripts are preprocessed with __ASSEMBLY__ defined which works well
> > for most things but not for assembler macros. In preparation for allowing
> > sysreg.h to be included in linker files add some LINKER_SCRIPT guard
> > defines around assembler macros in headers so the headers are safe for
> > inclusion in linker scripts.

> Where does that need to happen?

> I couldn't spot a direct include; does that happen as a transitive dependency
> later in the series?

Yes, it's pulled in as a result of one of the patches in the series.
IIRC it's cache.h that's currently included in the linker scripts.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20220622/3d31f6b2/attachment.sig>


More information about the linux-arm-kernel mailing list