Skip to content

Commit

Permalink
firmware_loader: move struct builtin_fw to the only place used
Browse files Browse the repository at this point in the history
Now that x86 doesn't abuse picking at internals to the firmware
loader move out the built-in firmware struct to its only user.

Reviewed-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Link: https://lore.kernel.org/r/20211021155843.1969401-5-mcgrof@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Luis Chamberlain authored and Greg Kroah-Hartman committed Oct 22, 2021
1 parent 9d48960 commit e2e2c0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 6 additions & 0 deletions drivers/base/firmware_loader/builtin/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
/* Only if FW_LOADER=y */
#ifdef CONFIG_FW_LOADER

struct builtin_fw {
char *name;
void *data;
unsigned long size;
};

extern struct builtin_fw __start_builtin_fw[];
extern struct builtin_fw __end_builtin_fw[];

Expand Down
6 changes: 0 additions & 6 deletions include/linux/firmware.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@ struct device;
* FW_LOADER=m
*/
#ifdef CONFIG_FW_LOADER
struct builtin_fw {
char *name;
void *data;
unsigned long size;
};

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

0 comments on commit e2e2c0f

Please sign in to comment.