diff --git a/drivers/jesd204/jesd204-core.c b/drivers/jesd204/jesd204-core.c index 218961319ed68..b030752c94af4 100644 --- a/drivers/jesd204/jesd204-core.c +++ b/drivers/jesd204/jesd204-core.c @@ -627,6 +627,7 @@ void jesd204_printk(const char *level, const struct jesd204_dev *jdev, va_end(args); } +EXPORT_SYMBOL_GPL(jesd204_printk); static int jesd204_dev_alloc_links(struct jesd204_dev_top *jdev_top) { diff --git a/include/linux/jesd204/jesd204.h b/include/linux/jesd204/jesd204.h index b24c1a8a1b076..698011feac44c 100644 --- a/include/linux/jesd204/jesd204.h +++ b/include/linux/jesd204/jesd204.h @@ -7,6 +7,7 @@ #ifndef _JESD204_H_ #define _JESD204_H_ +#include #include #include @@ -249,7 +250,7 @@ struct jesd204_dev_data { struct jesd204_state_op state_ops[__JESD204_MAX_OPS]; }; -#ifdef CONFIG_JESD204 +#if IS_ENABLED(CONFIG_JESD204) struct jesd204_dev *devm_jesd204_dev_register(struct device *dev, const struct jesd204_dev_data *i); @@ -400,7 +401,7 @@ static inline void jesd204_copy_link_params(struct jesd204_link *dst, #endif /* #ifdef CONFIG_JESD204 */ -#if defined(CONFIG_PRINTK) && defined(CONFIG_JESD204) +#if defined(CONFIG_PRINTK) && IS_ENABLED(CONFIG_JESD204) __printf(3, 4) void jesd204_printk(const char *level, const struct jesd204_dev *jdev,