Skip to content

Commit 333a210

Browse files
tiwaigregkh
authored andcommitted
firmware: Fix missing inline
I mistakenly dropped the inline while resolving the patch conflicts in the previous fix patch. Without inline, we get compiler warnings wrt unused functions. Note that Mauro's original patch contained the correct changes; it's all my fault to submit a patch before a morning coffee. Fixes: c8917b8 ("firmware: fix build errors in paged buffer handling code") Signed-off-by: Takashi Iwai <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8569785 commit 333a210

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/base/firmware_loader/firmware.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ int fw_grow_paged_buf(struct fw_priv *fw_priv, int pages_needed);
141141
int fw_map_paged_buf(struct fw_priv *fw_priv);
142142
#else
143143
static inline void fw_free_paged_buf(struct fw_priv *fw_priv) {}
144-
static int fw_grow_paged_buf(struct fw_priv *fw_priv, int pages_needed) { return -ENXIO; }
145-
static int fw_map_paged_buf(struct fw_priv *fw_priv) { return -ENXIO; }
144+
static inline int fw_grow_paged_buf(struct fw_priv *fw_priv, int pages_needed) { return -ENXIO; }
145+
static inline int fw_map_paged_buf(struct fw_priv *fw_priv) { return -ENXIO; }
146146
#endif
147147

148148
#endif /* __FIRMWARE_LOADER_H */

0 commit comments

Comments
 (0)