Commit 6e0d4ff4 authored by Dong Aisheng's avatar Dong Aisheng Committed by Stephen Boyd

clk: add more __must_check for bulk APIs

we need it even when !CONFIG_HAVE_CLK because it allows
us to catch missing checking return values in the non-clk
compile configurations too. More test coverage.

Cc: Stephen Boyd <sboyd@codeaurora.org>
Suggested-by: default avatarStephen Boyd <sboyd@codeaurora.org>
Signed-off-by: default avatarDong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: default avatarStephen Boyd <sboyd@kernel.org>
parent 7928b2cb
...@@ -209,7 +209,7 @@ static inline int clk_prepare(struct clk *clk) ...@@ -209,7 +209,7 @@ static inline int clk_prepare(struct clk *clk)
return 0; return 0;
} }
static inline int clk_bulk_prepare(int num_clks, struct clk_bulk_data *clks) static inline int __must_check clk_bulk_prepare(int num_clks, struct clk_bulk_data *clks)
{ {
might_sleep(); might_sleep();
return 0; return 0;
...@@ -603,8 +603,8 @@ static inline struct clk *clk_get(struct device *dev, const char *id) ...@@ -603,8 +603,8 @@ static inline struct clk *clk_get(struct device *dev, const char *id)
return NULL; return NULL;
} }
static inline int clk_bulk_get(struct device *dev, int num_clks, static inline int __must_check clk_bulk_get(struct device *dev, int num_clks,
struct clk_bulk_data *clks) struct clk_bulk_data *clks)
{ {
return 0; return 0;
} }
...@@ -614,8 +614,8 @@ static inline struct clk *devm_clk_get(struct device *dev, const char *id) ...@@ -614,8 +614,8 @@ static inline struct clk *devm_clk_get(struct device *dev, const char *id)
return NULL; return NULL;
} }
static inline int devm_clk_bulk_get(struct device *dev, int num_clks, static inline int __must_check devm_clk_bulk_get(struct device *dev, int num_clks,
struct clk_bulk_data *clks) struct clk_bulk_data *clks)
{ {
return 0; return 0;
} }
...@@ -645,7 +645,7 @@ static inline int clk_enable(struct clk *clk) ...@@ -645,7 +645,7 @@ static inline int clk_enable(struct clk *clk)
return 0; return 0;
} }
static inline int clk_bulk_enable(int num_clks, struct clk_bulk_data *clks) static inline int __must_check clk_bulk_enable(int num_clks, struct clk_bulk_data *clks)
{ {
return 0; return 0;
} }
...@@ -719,8 +719,8 @@ static inline void clk_disable_unprepare(struct clk *clk) ...@@ -719,8 +719,8 @@ static inline void clk_disable_unprepare(struct clk *clk)
clk_unprepare(clk); clk_unprepare(clk);
} }
static inline int clk_bulk_prepare_enable(int num_clks, static inline int __must_check clk_bulk_prepare_enable(int num_clks,
struct clk_bulk_data *clks) struct clk_bulk_data *clks)
{ {
int ret; int ret;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment