mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 1/2] soc: ti: pruss: remove misplaced semicolon from pruss_cfg_xfr_enable
@ 2024-11-09  5:01 guanjing
  2024-11-09  5:01 ` [PATCH v3 2/2] soc: ti: pruss: fix the return type of these functions in icssg_prueth_sr1.c guanjing
  0 siblings, 1 reply; 3+ messages in thread
From: guanjing @ 2024-11-09  5:01 UTC (permalink / raw)
  To: rogerq, s-anna, nm, horms, p-mohan; +Cc: linux-kernel, guanjing

Remove misplaced colon in inline variant of pruss_cfg_xfr_enable()
which results in a syntax error when the code is compiled without
CONFIG_TI_PRUSS.

Fixes: 0211cc1e4fbb ("soc: ti: pruss: Add helper functions to set GPI mode, MII_RT_event and XFR")
Signed-off-by: guanjing <guanjing@cmss.chinamobile.com>
---
 include/linux/pruss_driver.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/pruss_driver.h b/include/linux/pruss_driver.h
index c9a31c567e85..29a76a60869c 100644
--- a/include/linux/pruss_driver.h
+++ b/include/linux/pruss_driver.h
@@ -167,7 +167,7 @@ static inline int pruss_cfg_miirt_enable(struct pruss *pruss, bool enable)
 
 static inline int pruss_cfg_xfr_enable(struct pruss *pruss,
 				       enum pru_type pru_type,
-				       bool enable);
+				       bool enable)
 {
 	return ERR_PTR(-EOPNOTSUPP);
 }
-- 
2.33.0




^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH v3 2/2] soc: ti: pruss: fix the return type of these functions in icssg_prueth_sr1.c
  2024-11-09  5:01 [PATCH v3 1/2] soc: ti: pruss: remove misplaced semicolon from pruss_cfg_xfr_enable guanjing
@ 2024-11-09  5:01 ` guanjing
  2024-11-11 12:34   ` Roger Quadros
  0 siblings, 1 reply; 3+ messages in thread
From: guanjing @ 2024-11-09  5:01 UTC (permalink / raw)
  To: rogerq, s-anna, nm, horms, p-mohan; +Cc: linux-kernel, guanjing

There is a mismatch between the return type of these functions and
the type of the values returned. This fix ensuers compilation (of
drivers/net/ethernet/ti/icssg/icssg_prueth_sr1.o) to work without
CONFIG_TI_PRUSS.

Fixes: 0211cc1e4fbb ("soc: ti: pruss: Add helper functions to set GPI mode, MII_RT_event and XFR")
Signed-off-by: guanjing <guanjing@cmss.chinamobile.com>
---
 include/linux/pruss_driver.h | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/include/linux/pruss_driver.h b/include/linux/pruss_driver.h
index 29a76a60869c..2e18fef1a2e1 100644
--- a/include/linux/pruss_driver.h
+++ b/include/linux/pruss_driver.h
@@ -144,32 +144,32 @@ static inline int pruss_release_mem_region(struct pruss *pruss,
 static inline int pruss_cfg_get_gpmux(struct pruss *pruss,
 				      enum pruss_pru_id pru_id, u8 *mux)
 {
-	return ERR_PTR(-EOPNOTSUPP);
+	return -EOPNOTSUPP;
 }
 
 static inline int pruss_cfg_set_gpmux(struct pruss *pruss,
 				      enum pruss_pru_id pru_id, u8 mux)
 {
-	return ERR_PTR(-EOPNOTSUPP);
+	return -EOPNOTSUPP;
 }
 
 static inline int pruss_cfg_gpimode(struct pruss *pruss,
 				    enum pruss_pru_id pru_id,
 				    enum pruss_gpi_mode mode)
 {
-	return ERR_PTR(-EOPNOTSUPP);
+	return -EOPNOTSUPP;
 }
 
 static inline int pruss_cfg_miirt_enable(struct pruss *pruss, bool enable)
 {
-	return ERR_PTR(-EOPNOTSUPP);
+	return -EOPNOTSUPP;
 }
 
 static inline int pruss_cfg_xfr_enable(struct pruss *pruss,
 				       enum pru_type pru_type,
 				       bool enable)
 {
-	return ERR_PTR(-EOPNOTSUPP);
+	return -EOPNOTSUPP;
 }
 
 #endif /* CONFIG_TI_PRUSS */
-- 
2.33.0




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v3 2/2] soc: ti: pruss: fix the return type of these functions in icssg_prueth_sr1.c
  2024-11-09  5:01 ` [PATCH v3 2/2] soc: ti: pruss: fix the return type of these functions in icssg_prueth_sr1.c guanjing
@ 2024-11-11 12:34   ` Roger Quadros
  0 siblings, 0 replies; 3+ messages in thread
From: Roger Quadros @ 2024-11-11 12:34 UTC (permalink / raw)
  To: guanjing, s-anna, nm, horms, p-mohan; +Cc: linux-kernel



On 09/11/2024 07:01, guanjing wrote:
> There is a mismatch between the return type of these functions and
> the type of the values returned. This fix ensuers compilation (of
> drivers/net/ethernet/ti/icssg/icssg_prueth_sr1.o) to work without
> CONFIG_TI_PRUSS.
> 
> Fixes: 0211cc1e4fbb ("soc: ti: pruss: Add helper functions to set GPI mode, MII_RT_event and XFR")
> Signed-off-by: guanjing <guanjing@cmss.chinamobile.com>

Reviewed-by: Roger Quadros <rogerq@kernel.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-11-11 12:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-09  5:01 [PATCH v3 1/2] soc: ti: pruss: remove misplaced semicolon from pruss_cfg_xfr_enable guanjing
2024-11-09  5:01 ` [PATCH v3 2/2] soc: ti: pruss: fix the return type of these functions in icssg_prueth_sr1.c guanjing
2024-11-11 12:34   ` Roger Quadros

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®