Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

firmware_loader: move struct builtin_fw to the only place used

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>

authored by

Luis Chamberlain and committed by
Greg Kroah-Hartman
e2e2c0f2 9d489604

+6 -6
+6
drivers/base/firmware_loader/builtin/main.c
··· 7 7 /* Only if FW_LOADER=y */ 8 8 #ifdef CONFIG_FW_LOADER 9 9 10 + struct builtin_fw { 11 + char *name; 12 + void *data; 13 + unsigned long size; 14 + }; 15 + 10 16 extern struct builtin_fw __start_builtin_fw[]; 11 17 extern struct builtin_fw __end_builtin_fw[]; 12 18
-6
include/linux/firmware.h
··· 25 25 * FW_LOADER=m 26 26 */ 27 27 #ifdef CONFIG_FW_LOADER 28 - struct builtin_fw { 29 - char *name; 30 - void *data; 31 - unsigned long size; 32 - }; 33 - 34 28 bool firmware_request_builtin(struct firmware *fw, const char *name); 35 29 #else 36 30 static inline bool firmware_request_builtin(struct firmware *fw,