OFS / linux-dfl-backport

Backport version of the linux-dfl (Device Feature List) kernel driver for FPGA devices. This is an out-of-tree driver, designed to be built, packaged, and installed as a stand-alone set of driver modules.
GNU General Public License v2.0
3 stars 11 forks source link

modpost: fix dfl MODULE_DEVICE_TABLE built on big-endian host #143

Closed pcolberg closed 2 months ago

pcolberg commented 2 months ago

When MODULE_DEVICE_TABLE(dfl, ) is built on a host with a different endianness from the target architecture, it results in an incorrect MODULE_ALIAS(). Refer to commit ac96a15a0f0c ("modpost: fix ishtp MODULE_DEVICE_TABLE built on big-endian host") for details.

This resolves a build failure after commit a660deb0f1f6 ("modpost: detect endianness on run-time"), which fails to compile bswap() for the argument type guid_t since it is not __uint{16,32,64}_t.

pcolberg commented 2 months ago

This file is not compiled in the backport driver, but I am including the patch for completeness. The patch was needed to rebase the fpga-ofs-dev branch onto Linux 6.12-rc1.

pcolberg commented 2 months ago

@bmuddebi suggests to use this opportunity and add the patch which stores the GUID as a string. I will still merge this PR for now, but submit the revised GUID patch after testing.