Skip to content

Commit ea2c092

Browse files
hcodinadavem330
authored andcommitted
net: wan: framer: Add missing static inline qualifiers
Compilation with CONFIG_GENERIC_FRAMER disabled lead to the following warnings: framer.h:184:16: warning: no previous prototype for function 'framer_get' [-Wmissing-prototypes] 184 | struct framer *framer_get(struct device *dev, const char *con_id) framer.h:184:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 184 | struct framer *framer_get(struct device *dev, const char *con_id) framer.h:189:6: warning: no previous prototype for function 'framer_put' [-Wmissing-prototypes] 189 | void framer_put(struct device *dev, struct framer *framer) framer.h:189:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 189 | void framer_put(struct device *dev, struct framer *framer) Add missing 'static inline' qualifiers for these functions. Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: 82c944d ("net: wan: Add framer framework support") Cc: [email protected] Signed-off-by: Herve Codina <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent c4d2d23 commit ea2c092

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/framer/framer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,12 +181,12 @@ static inline int framer_notifier_unregister(struct framer *framer,
181181
return -ENOSYS;
182182
}
183183

184-
struct framer *framer_get(struct device *dev, const char *con_id)
184+
static inline struct framer *framer_get(struct device *dev, const char *con_id)
185185
{
186186
return ERR_PTR(-ENOSYS);
187187
}
188188

189-
void framer_put(struct device *dev, struct framer *framer)
189+
static inline void framer_put(struct device *dev, struct framer *framer)
190190
{
191191
}
192192

0 commit comments

Comments
 (0)