firmware_loader: move struct builtin_fw to the only place used
authorLuis Chamberlain <mcgrof@kernel.org>
Thu, 21 Oct 2021 15:58:37 +0000 (08:58 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 22 Oct 2021 12:13:53 +0000 (14:13 +0200)
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>
drivers/base/firmware_loader/builtin/main.c
include/linux/firmware.h

index d85626b2fdf503a5af4560183eacf11efcc4cab6..a065c31508973642e0f2c2aa2f6a064e40a63362 100644 (file)
@@ -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[];
 
index 34e8d5844fa0a7607ed15f884bec3c9c70f7d21c..3b057dfc82841bf0543201fd2d53977e02230a63 100644 (file)
@@ -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,