Skip to content

Commit

Permalink
firmware_loader: remove old DECLARE_BUILTIN_FIRMWARE()
Browse files Browse the repository at this point in the history
This was never used upstream. Time to get rid of it. We
don't carry around unused baggage.

Reviewed-by: Borislav Petkov <[email protected]>
Signed-off-by: Luis Chamberlain <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
mcgrof authored and gregkh committed Oct 22, 2021
1 parent 48d09e9 commit e520ecf
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions include/linux/firmware.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,6 @@ struct builtin_fw {
};

bool firmware_request_builtin(struct firmware *fw, const char *name);

/* We have to play tricks here much like stringify() to get the
__COUNTER__ macro to be expanded as we want it */
#define __fw_concat1(x, y) x##y
#define __fw_concat(x, y) __fw_concat1(x, y)

#define DECLARE_BUILTIN_FIRMWARE(name, blob) \
DECLARE_BUILTIN_FIRMWARE_SIZE(name, &(blob), sizeof(blob))

#define DECLARE_BUILTIN_FIRMWARE_SIZE(name, blob, size) \
static const struct builtin_fw __fw_concat(__builtin_fw,__COUNTER__) \
__used __section(".builtin_fw") = { name, blob, size }

#else
static inline bool firmware_request_builtin(struct firmware *fw,
const char *name)
Expand Down

0 comments on commit e520ecf

Please sign in to comment.