diff options
author | Pieter Van Trappen <pieter.van.trappen@cern.ch> | 2025-07-08 17:24:48 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@amd.com> | 2025-07-24 08:54:15 +0200 |
commit | 53a10c8ce996dff088fe4afecf0ea446acba854b (patch) | |
tree | e6f313a58cbc57a06569ef6fc08ee48ebaeafb33 /drivers/fpga/virtex2.c | |
parent | 5d74cf2204d48b9a0900fcd2173e807e16ad0fb2 (diff) |
drivers: fpga: correct compiler errors and warnings
Errors reported by GCC 14.2 when enabling FPGA commands and
drivers. Also many style fixes as reported by checkpatch.pl on the
diffs. Most changes in stratixII.c which has been reorganized as well
to avoid the top function prototypes.
No functional changes.
Signed-off-by: Pieter Van Trappen <pieter.van.trappen@cern.ch>
Link: https://lore.kernel.org/r/20250708152455.1214487-4-vtpieter@gmail.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
Diffstat (limited to 'drivers/fpga/virtex2.c')
-rw-r--r-- | drivers/fpga/virtex2.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/fpga/virtex2.c b/drivers/fpga/virtex2.c index 8e2c12bb58b..805cbac8082 100644 --- a/drivers/fpga/virtex2.c +++ b/drivers/fpga/virtex2.c @@ -19,6 +19,7 @@ #include <log.h> #include <virtex2.h> #include <linux/delay.h> +#include <time.h> /* * If the SelectMap interface can be overrun by the processor, enable @@ -301,6 +302,7 @@ static int virtex2_ssm_load(xilinx_desc *desc, const void *buf, size_t bsize) size_t bytecount = 0; unsigned char *data = (unsigned char *)buf; int cookie = desc->cookie; + unsigned long ts; ret_val = virtex2_slave_pre(fn, cookie); if (ret_val != FPGA_SUCCESS) |