* [PATCH 0/7] powerpc/rtas: Trivial, coding style, and kernel-doc fixes
@ 2023-11-06 13:42 Nathan Lynch via B4 Relay
2023-11-06 13:42 ` [PATCH 1/7] powerpc/pseries/rtas-work-area: Fix rtas_work_area_reserve_arena() kernel-doc Nathan Lynch via B4 Relay
` (8 more replies)
0 siblings, 9 replies; 10+ messages in thread
From: Nathan Lynch via B4 Relay @ 2023-11-06 13:42 UTC (permalink / raw)
To: Michael Ellerman, Nicholas Piggin, Christophe Leroy
Cc: Nathan Lynch, linuxppc-dev, kernel test robot
* Fix recently introduced kernel-doc warnings.
* Make minor coding style adjustments for readability.
* Remove rtas_service_present() and an old call_rtas() declaration.
* Move a pseries-specific function prototype to pseries code.
---
Nathan Lynch (7):
powerpc/pseries/rtas-work-area: Fix rtas_work_area_reserve_arena() kernel-doc
powerpc/rtas: Fix ppc_rtas_rmo_buf_show() kernel-doc
powerpc/rtas: Drop declaration of undefined call_rtas() function
powerpc/rtas: Remove unused rtas_service_present()
powerpc/rtas: Move post_mobility_fixup() declaration to pseries
powerpc/rtas: Remove trailing space
powerpc/rtas: Remove 'extern' from function declarations in rtas.h
arch/powerpc/include/asm/rtas.h | 62 ++++++++++++-------------
arch/powerpc/kernel/rtas-proc.c | 2 +
arch/powerpc/kernel/rtas.c | 23 ++++-----
arch/powerpc/platforms/pseries/pseries.h | 1 +
arch/powerpc/platforms/pseries/rtas-work-area.c | 1 +
arch/powerpc/platforms/pseries/suspend.c | 1 +
6 files changed, 43 insertions(+), 47 deletions(-)
---
base-commit: 303d77a6e1707498f09c9d8ee91b1dc07ca315a5
change-id: 20231025-rtas-trivial-2c22ce853f46
Best regards,
--
Nathan Lynch <nathanl@linux.ibm.com>
^ permalink raw reply [flat|nested] 10+ messages in thread
* [PATCH 1/7] powerpc/pseries/rtas-work-area: Fix rtas_work_area_reserve_arena() kernel-doc
2023-11-06 13:42 [PATCH 0/7] powerpc/rtas: Trivial, coding style, and kernel-doc fixes Nathan Lynch via B4 Relay
@ 2023-11-06 13:42 ` Nathan Lynch via B4 Relay
2023-11-06 13:42 ` [PATCH 2/7] powerpc/rtas: Fix ppc_rtas_rmo_buf_show() kernel-doc Nathan Lynch via B4 Relay
` (7 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Nathan Lynch via B4 Relay @ 2023-11-06 13:42 UTC (permalink / raw)
To: Michael Ellerman, Nicholas Piggin, Christophe Leroy
Cc: Nathan Lynch, linuxppc-dev, kernel test robot
From: Nathan Lynch <nathanl@linux.ibm.com>
From a W=1 build:
>> arch/powerpc/platforms/pseries/rtas-work-area.c:189: warning: Function parameter or member 'limit' not
>> described in 'rtas_work_area_reserve_arena'
Add the missing description of the limit parameter.
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202309131221.Bm1pg96n-lkp@intel.com/
---
arch/powerpc/platforms/pseries/rtas-work-area.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/platforms/pseries/rtas-work-area.c b/arch/powerpc/platforms/pseries/rtas-work-area.c
index b37d52f40360..7fe34bee84d8 100644
--- a/arch/powerpc/platforms/pseries/rtas-work-area.c
+++ b/arch/powerpc/platforms/pseries/rtas-work-area.c
@@ -184,6 +184,7 @@ machine_arch_initcall(pseries, rtas_work_area_allocator_init);
/**
* rtas_work_area_reserve_arena() - Reserve memory suitable for RTAS work areas.
+ * @limit: Upper limit for memblock allocation.
*/
void __init rtas_work_area_reserve_arena(const phys_addr_t limit)
{
--
2.41.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 2/7] powerpc/rtas: Fix ppc_rtas_rmo_buf_show() kernel-doc
2023-11-06 13:42 [PATCH 0/7] powerpc/rtas: Trivial, coding style, and kernel-doc fixes Nathan Lynch via B4 Relay
2023-11-06 13:42 ` [PATCH 1/7] powerpc/pseries/rtas-work-area: Fix rtas_work_area_reserve_arena() kernel-doc Nathan Lynch via B4 Relay
@ 2023-11-06 13:42 ` Nathan Lynch via B4 Relay
2023-11-06 13:42 ` [PATCH 3/7] powerpc/rtas: Drop declaration of undefined call_rtas() function Nathan Lynch via B4 Relay
` (6 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Nathan Lynch via B4 Relay @ 2023-11-06 13:42 UTC (permalink / raw)
To: Michael Ellerman, Nicholas Piggin, Christophe Leroy
Cc: Nathan Lynch, linuxppc-dev, kernel test robot
From: Nathan Lynch <nathanl@linux.ibm.com>
From a W=1 build:
>> arch/powerpc/kernel/rtas-proc.c:771: warning: Function parameter or member 'm' not described in
>> 'ppc_rtas_rmo_buf_show'
>> arch/powerpc/kernel/rtas-proc.c:771: warning: Function parameter or member 'v' not described in
>> 'ppc_rtas_rmo_buf_show'
Add the missing parameter descriptions.
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202309211645.1Lvwmbv4-lkp@intel.com/
---
arch/powerpc/kernel/rtas-proc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/powerpc/kernel/rtas-proc.c b/arch/powerpc/kernel/rtas-proc.c
index 9454b8395b6a..f38df72e64b8 100644
--- a/arch/powerpc/kernel/rtas-proc.c
+++ b/arch/powerpc/kernel/rtas-proc.c
@@ -752,6 +752,8 @@ static int ppc_rtas_tone_volume_show(struct seq_file *m, void *v)
/**
* ppc_rtas_rmo_buf_show() - Describe RTAS-addressable region for user space.
+ * @m: seq_file output target.
+ * @v: Unused.
*
* Base + size description of a range of RTAS-addressable memory set
* aside for user space to use as work area(s) for certain RTAS
--
2.41.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 3/7] powerpc/rtas: Drop declaration of undefined call_rtas() function
2023-11-06 13:42 [PATCH 0/7] powerpc/rtas: Trivial, coding style, and kernel-doc fixes Nathan Lynch via B4 Relay
2023-11-06 13:42 ` [PATCH 1/7] powerpc/pseries/rtas-work-area: Fix rtas_work_area_reserve_arena() kernel-doc Nathan Lynch via B4 Relay
2023-11-06 13:42 ` [PATCH 2/7] powerpc/rtas: Fix ppc_rtas_rmo_buf_show() kernel-doc Nathan Lynch via B4 Relay
@ 2023-11-06 13:42 ` Nathan Lynch via B4 Relay
2023-11-06 13:42 ` [PATCH 4/7] powerpc/rtas: Remove unused rtas_service_present() Nathan Lynch via B4 Relay
` (5 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Nathan Lynch via B4 Relay @ 2023-11-06 13:42 UTC (permalink / raw)
To: Michael Ellerman, Nicholas Piggin, Christophe Leroy
Cc: Nathan Lynch, linuxppc-dev
From: Nathan Lynch <nathanl@linux.ibm.com>
The call_rtas() function has never been a part of arch/powerpc, and
its implementation was removed from arch/ppc by 0a26b1364f14 ("ppc:
Remove CHRP, POWER3 and POWER4 support from arch/ppc").
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
---
arch/powerpc/include/asm/rtas.h | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/powerpc/include/asm/rtas.h b/arch/powerpc/include/asm/rtas.h
index c697c3c74694..3bf7f0a4b07e 100644
--- a/arch/powerpc/include/asm/rtas.h
+++ b/arch/powerpc/include/asm/rtas.h
@@ -542,8 +542,6 @@ static inline void pSeries_coalesce_init(void) { }
static inline void rtas_initialize(void) { }
#endif
-extern int call_rtas(const char *, int, int, unsigned long *, ...);
-
#ifdef CONFIG_HV_PERF_CTRS
void read_24x7_sys_info(void);
#else
--
2.41.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 4/7] powerpc/rtas: Remove unused rtas_service_present()
2023-11-06 13:42 [PATCH 0/7] powerpc/rtas: Trivial, coding style, and kernel-doc fixes Nathan Lynch via B4 Relay
` (2 preceding siblings ...)
2023-11-06 13:42 ` [PATCH 3/7] powerpc/rtas: Drop declaration of undefined call_rtas() function Nathan Lynch via B4 Relay
@ 2023-11-06 13:42 ` Nathan Lynch via B4 Relay
2023-11-06 13:42 ` [PATCH 5/7] powerpc/rtas: Move post_mobility_fixup() declaration to pseries Nathan Lynch via B4 Relay
` (4 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Nathan Lynch via B4 Relay @ 2023-11-06 13:42 UTC (permalink / raw)
To: Michael Ellerman, Nicholas Piggin, Christophe Leroy
Cc: Nathan Lynch, linuxppc-dev
From: Nathan Lynch <nathanl@linux.ibm.com>
rtas_service_present() has no more users.
rtas_function_implemented() is now the appropriate API for determining
whether a given RTAS function is available to call.
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
---
arch/powerpc/include/asm/rtas.h | 1 -
arch/powerpc/kernel/rtas.c | 5 -----
2 files changed, 6 deletions(-)
diff --git a/arch/powerpc/include/asm/rtas.h b/arch/powerpc/include/asm/rtas.h
index 3bf7f0a4b07e..c6568a647cd0 100644
--- a/arch/powerpc/include/asm/rtas.h
+++ b/arch/powerpc/include/asm/rtas.h
@@ -409,7 +409,6 @@ static inline bool rtas_function_implemented(const rtas_fn_handle_t handle)
return rtas_function_token(handle) != RTAS_UNKNOWN_SERVICE;
}
extern int rtas_token(const char *service);
-extern int rtas_service_present(const char *service);
extern int rtas_call(int token, int, int, int *, ...);
void rtas_call_unlocked(struct rtas_args *args, int token, int nargs,
int nret, ...);
diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas.c
index eddc031c4b95..b5b340a91157 100644
--- a/arch/powerpc/kernel/rtas.c
+++ b/arch/powerpc/kernel/rtas.c
@@ -900,11 +900,6 @@ int rtas_token(const char *service)
}
EXPORT_SYMBOL_GPL(rtas_token);
-int rtas_service_present(const char *service)
-{
- return rtas_token(service) != RTAS_UNKNOWN_SERVICE;
-}
-
#ifdef CONFIG_RTAS_ERROR_LOGGING
static u32 rtas_error_log_max __ro_after_init = RTAS_ERROR_LOG_MAX;
--
2.41.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 5/7] powerpc/rtas: Move post_mobility_fixup() declaration to pseries
2023-11-06 13:42 [PATCH 0/7] powerpc/rtas: Trivial, coding style, and kernel-doc fixes Nathan Lynch via B4 Relay
` (3 preceding siblings ...)
2023-11-06 13:42 ` [PATCH 4/7] powerpc/rtas: Remove unused rtas_service_present() Nathan Lynch via B4 Relay
@ 2023-11-06 13:42 ` Nathan Lynch via B4 Relay
2023-11-06 13:42 ` [PATCH 6/7] powerpc/rtas: Remove trailing space Nathan Lynch via B4 Relay
` (3 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Nathan Lynch via B4 Relay @ 2023-11-06 13:42 UTC (permalink / raw)
To: Michael Ellerman, Nicholas Piggin, Christophe Leroy
Cc: Nathan Lynch, linuxppc-dev
From: Nathan Lynch <nathanl@linux.ibm.com>
This is a pseries-specific function declaration that doesn't belong in
rtas.h. Move it to the pseries platform code and adjust
pseries/suspend.c accordingly.
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
---
arch/powerpc/include/asm/rtas.h | 1 -
arch/powerpc/platforms/pseries/pseries.h | 1 +
arch/powerpc/platforms/pseries/suspend.c | 1 +
3 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/powerpc/include/asm/rtas.h b/arch/powerpc/include/asm/rtas.h
index c6568a647cd0..2365668fc13e 100644
--- a/arch/powerpc/include/asm/rtas.h
+++ b/arch/powerpc/include/asm/rtas.h
@@ -444,7 +444,6 @@ extern void pSeries_log_error(char *buf, unsigned int err_type, int fatal);
#ifdef CONFIG_PPC_PSERIES
extern time64_t last_rtas_event;
extern int clobbering_unread_rtas_event(void);
-extern void post_mobility_fixup(void);
int rtas_syscall_dispatch_ibm_suspend_me(u64 handle);
#else
static inline int clobbering_unread_rtas_event(void) { return 0; }
diff --git a/arch/powerpc/platforms/pseries/pseries.h b/arch/powerpc/platforms/pseries/pseries.h
index 8376f03f932a..bba4ad192b0f 100644
--- a/arch/powerpc/platforms/pseries/pseries.h
+++ b/arch/powerpc/platforms/pseries/pseries.h
@@ -55,6 +55,7 @@ extern int dlpar_detach_node(struct device_node *);
extern int dlpar_acquire_drc(u32 drc_index);
extern int dlpar_release_drc(u32 drc_index);
extern int dlpar_unisolate_drc(u32 drc_index);
+extern void post_mobility_fixup(void);
void queue_hotplug_event(struct pseries_hp_errorlog *hp_errlog);
int handle_dlpar_errorlog(struct pseries_hp_errorlog *hp_errlog);
diff --git a/arch/powerpc/platforms/pseries/suspend.c b/arch/powerpc/platforms/pseries/suspend.c
index 5c43435472cc..382003dfdb9a 100644
--- a/arch/powerpc/platforms/pseries/suspend.c
+++ b/arch/powerpc/platforms/pseries/suspend.c
@@ -13,6 +13,7 @@
#include <asm/mmu.h>
#include <asm/rtas.h>
#include <asm/topology.h>
+#include "pseries.h"
static struct device suspend_dev;
--
2.41.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 6/7] powerpc/rtas: Remove trailing space
2023-11-06 13:42 [PATCH 0/7] powerpc/rtas: Trivial, coding style, and kernel-doc fixes Nathan Lynch via B4 Relay
` (4 preceding siblings ...)
2023-11-06 13:42 ` [PATCH 5/7] powerpc/rtas: Move post_mobility_fixup() declaration to pseries Nathan Lynch via B4 Relay
@ 2023-11-06 13:42 ` Nathan Lynch via B4 Relay
2023-11-06 13:42 ` [PATCH 7/7] powerpc/rtas: Remove 'extern' from function declarations in rtas.h Nathan Lynch via B4 Relay
` (2 subsequent siblings)
8 siblings, 0 replies; 10+ messages in thread
From: Nathan Lynch via B4 Relay @ 2023-11-06 13:42 UTC (permalink / raw)
To: Michael Ellerman, Nicholas Piggin, Christophe Leroy
Cc: Nathan Lynch, linuxppc-dev
From: Nathan Lynch <nathanl@linux.ibm.com>
Use scripts/cleanfile to remove instances of trailing space in the
core RTAS code and header.
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
---
arch/powerpc/include/asm/rtas.h | 6 +++---
arch/powerpc/kernel/rtas.c | 18 +++++++++---------
2 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/arch/powerpc/include/asm/rtas.h b/arch/powerpc/include/asm/rtas.h
index 2365668fc13e..1bed6be8ada3 100644
--- a/arch/powerpc/include/asm/rtas.h
+++ b/arch/powerpc/include/asm/rtas.h
@@ -268,7 +268,7 @@ typedef struct {
#define RTAS_TYPE_DEALLOC 0xE3
#define RTAS_TYPE_DUMP 0xE4
#define RTAS_TYPE_HOTPLUG 0xE5
-/* I don't add PowerMGM events right now, this is a different topic */
+/* I don't add PowerMGM events right now, this is a different topic */
#define RTAS_TYPE_PMGM_POWER_SW_ON 0x60
#define RTAS_TYPE_PMGM_POWER_SW_OFF 0x61
#define RTAS_TYPE_PMGM_LID_OPEN 0x62
@@ -461,7 +461,7 @@ static inline void rtas_cancel_event_scan(void) { }
/* Error types logged. */
#define ERR_FLAG_ALREADY_LOGGED 0x0
-#define ERR_FLAG_BOOT 0x1 /* log was pulled from NVRAM on boot */
+#define ERR_FLAG_BOOT 0x1 /* log was pulled from NVRAM on boot */
#define ERR_TYPE_RTAS_LOG 0x2 /* from rtas event-scan */
#define ERR_TYPE_KERNEL_PANIC 0x4 /* from die()/panic() */
#define ERR_TYPE_KERNEL_PANIC_GZ 0x8 /* ditto, compressed */
@@ -471,7 +471,7 @@ static inline void rtas_cancel_event_scan(void) { }
(ERR_TYPE_RTAS_LOG | ERR_TYPE_KERNEL_PANIC | ERR_TYPE_KERNEL_PANIC_GZ)
#define RTAS_DEBUG KERN_DEBUG "RTAS: "
-
+
#define RTAS_ERROR_LOG_MAX 2048
/*
diff --git a/arch/powerpc/kernel/rtas.c b/arch/powerpc/kernel/rtas.c
index b5b340a91157..c49f078382a9 100644
--- a/arch/powerpc/kernel/rtas.c
+++ b/arch/powerpc/kernel/rtas.c
@@ -670,7 +670,7 @@ static void call_rtas_display_status_delay(char c)
static int pending_newline = 0; /* did last write end with unprinted newline? */
static int width = 16;
- if (c == '\n') {
+ if (c == '\n') {
while (width-- > 0)
call_rtas_display_status(' ');
width = 16;
@@ -680,7 +680,7 @@ static void call_rtas_display_status_delay(char c)
if (pending_newline) {
call_rtas_display_status('\r');
call_rtas_display_status('\n');
- }
+ }
pending_newline = 0;
if (width--) {
call_rtas_display_status(c);
@@ -820,7 +820,7 @@ void rtas_progress(char *s, unsigned short hex)
else
rtas_call(display_character, 1, 1, NULL, '\r');
}
-
+
if (row_width)
width = row_width[current_line];
else
@@ -840,9 +840,9 @@ void rtas_progress(char *s, unsigned short hex)
spin_unlock(&progress_lock);
return;
}
-
+
/* RTAS wants CR-LF, not just LF */
-
+
if (*os == '\n') {
rtas_call(display_character, 1, 1, NULL, '\r');
rtas_call(display_character, 1, 1, NULL, '\n');
@@ -852,7 +852,7 @@ void rtas_progress(char *s, unsigned short hex)
*/
rtas_call(display_character, 1, 1, NULL, *os);
}
-
+
if (row_width)
width = row_width[current_line];
else
@@ -861,15 +861,15 @@ void rtas_progress(char *s, unsigned short hex)
width--;
rtas_call(display_character, 1, 1, NULL, *os);
}
-
+
os++;
-
+
/* if we overwrite the screen length */
if (width <= 0)
while ((*os != 0) && (*os != '\n') && (*os != '\r'))
os++;
}
-
+
spin_unlock(&progress_lock);
}
EXPORT_SYMBOL_GPL(rtas_progress); /* needed by rtas_flash module */
--
2.41.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [PATCH 7/7] powerpc/rtas: Remove 'extern' from function declarations in rtas.h
2023-11-06 13:42 [PATCH 0/7] powerpc/rtas: Trivial, coding style, and kernel-doc fixes Nathan Lynch via B4 Relay
` (5 preceding siblings ...)
2023-11-06 13:42 ` [PATCH 6/7] powerpc/rtas: Remove trailing space Nathan Lynch via B4 Relay
@ 2023-11-06 13:42 ` Nathan Lynch via B4 Relay
2023-11-13 2:45 ` (subset) [PATCH 0/7] powerpc/rtas: Trivial, coding style, and kernel-doc fixes Michael Ellerman
2023-12-07 12:38 ` Michael Ellerman
8 siblings, 0 replies; 10+ messages in thread
From: Nathan Lynch via B4 Relay @ 2023-11-06 13:42 UTC (permalink / raw)
To: Michael Ellerman, Nicholas Piggin, Christophe Leroy
Cc: Nathan Lynch, linuxppc-dev
From: Nathan Lynch <nathanl@linux.ibm.com>
This header occasionally gains new function declarations without the
leading extern in accordance with current style rules. Leaving the
legacy externs in place is making the header more difficult to read
over time because of the inconsistency. Remove them.
Signed-off-by: Nathan Lynch <nathanl@linux.ibm.com>
---
arch/powerpc/include/asm/rtas.h | 52 ++++++++++++++++++++---------------------
1 file changed, 26 insertions(+), 26 deletions(-)
diff --git a/arch/powerpc/include/asm/rtas.h b/arch/powerpc/include/asm/rtas.h
index 1bed6be8ada3..6e32ad62e936 100644
--- a/arch/powerpc/include/asm/rtas.h
+++ b/arch/powerpc/include/asm/rtas.h
@@ -408,42 +408,42 @@ static inline bool rtas_function_implemented(const rtas_fn_handle_t handle)
{
return rtas_function_token(handle) != RTAS_UNKNOWN_SERVICE;
}
-extern int rtas_token(const char *service);
-extern int rtas_call(int token, int, int, int *, ...);
+int rtas_token(const char *service);
+int rtas_call(int token, int, int, int *, ...);
void rtas_call_unlocked(struct rtas_args *args, int token, int nargs,
int nret, ...);
-extern void __noreturn rtas_restart(char *cmd);
-extern void rtas_power_off(void);
-extern void __noreturn rtas_halt(void);
-extern void rtas_os_term(char *str);
+void __noreturn rtas_restart(char *cmd);
+void rtas_power_off(void);
+void __noreturn rtas_halt(void);
+void rtas_os_term(char *str);
void rtas_activate_firmware(void);
-extern int rtas_get_sensor(int sensor, int index, int *state);
-extern int rtas_get_sensor_fast(int sensor, int index, int *state);
-extern int rtas_get_power_level(int powerdomain, int *level);
-extern int rtas_set_power_level(int powerdomain, int level, int *setlevel);
-extern bool rtas_indicator_present(int token, int *maxindex);
-extern int rtas_set_indicator(int indicator, int index, int new_value);
-extern int rtas_set_indicator_fast(int indicator, int index, int new_value);
-extern void rtas_progress(char *s, unsigned short hex);
+int rtas_get_sensor(int sensor, int index, int *state);
+int rtas_get_sensor_fast(int sensor, int index, int *state);
+int rtas_get_power_level(int powerdomain, int *level);
+int rtas_set_power_level(int powerdomain, int level, int *setlevel);
+bool rtas_indicator_present(int token, int *maxindex);
+int rtas_set_indicator(int indicator, int index, int new_value);
+int rtas_set_indicator_fast(int indicator, int index, int new_value);
+void rtas_progress(char *s, unsigned short hex);
int rtas_ibm_suspend_me(int *fw_status);
int rtas_error_rc(int rtas_rc);
struct rtc_time;
-extern time64_t rtas_get_boot_time(void);
-extern void rtas_get_rtc_time(struct rtc_time *rtc_time);
-extern int rtas_set_rtc_time(struct rtc_time *rtc_time);
+time64_t rtas_get_boot_time(void);
+void rtas_get_rtc_time(struct rtc_time *rtc_time);
+int rtas_set_rtc_time(struct rtc_time *rtc_time);
-extern unsigned int rtas_busy_delay_time(int status);
+unsigned int rtas_busy_delay_time(int status);
bool rtas_busy_delay(int status);
-extern int early_init_dt_scan_rtas(unsigned long node,
+int early_init_dt_scan_rtas(unsigned long node,
const char *uname, int depth, void *data);
-extern void pSeries_log_error(char *buf, unsigned int err_type, int fatal);
+void pSeries_log_error(char *buf, unsigned int err_type, int fatal);
#ifdef CONFIG_PPC_PSERIES
extern time64_t last_rtas_event;
-extern int clobbering_unread_rtas_event(void);
+int clobbering_unread_rtas_event(void);
int rtas_syscall_dispatch_ibm_suspend_me(u64 handle);
#else
static inline int clobbering_unread_rtas_event(void) { return 0; }
@@ -454,7 +454,7 @@ static inline int rtas_syscall_dispatch_ibm_suspend_me(u64 handle)
#endif
#ifdef CONFIG_PPC_RTAS_DAEMON
-extern void rtas_cancel_event_scan(void);
+void rtas_cancel_event_scan(void);
#else
static inline void rtas_cancel_event_scan(void) { }
#endif
@@ -479,7 +479,7 @@ static inline void rtas_cancel_event_scan(void) { }
* for all rtas calls that require an error buffer argument.
* This includes 'check-exception' and 'rtas-last-error'.
*/
-extern int rtas_get_error_log_max(void);
+int rtas_get_error_log_max(void);
/* Event Scan Parameters */
#define EVENT_SCAN_ALL_EVENTS 0xf0000000
@@ -518,8 +518,8 @@ static inline u32 rtas_config_addr(int busno, int devfn, int reg)
(devfn << 8) | (reg & 0xff);
}
-extern void rtas_give_timebase(void);
-extern void rtas_take_timebase(void);
+void rtas_give_timebase(void);
+void rtas_take_timebase(void);
#ifdef CONFIG_PPC_RTAS
static inline int page_is_rtas_user_buf(unsigned long pfn)
@@ -532,7 +532,7 @@ static inline int page_is_rtas_user_buf(unsigned long pfn)
/* Not the best place to put pSeries_coalesce_init, will be fixed when we
* move some of the rtas suspend-me stuff to pseries */
-extern void pSeries_coalesce_init(void);
+void pSeries_coalesce_init(void);
void rtas_initialize(void);
#else
static inline int page_is_rtas_user_buf(unsigned long pfn) { return 0;}
--
2.41.0
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: (subset) [PATCH 0/7] powerpc/rtas: Trivial, coding style, and kernel-doc fixes
2023-11-06 13:42 [PATCH 0/7] powerpc/rtas: Trivial, coding style, and kernel-doc fixes Nathan Lynch via B4 Relay
` (6 preceding siblings ...)
2023-11-06 13:42 ` [PATCH 7/7] powerpc/rtas: Remove 'extern' from function declarations in rtas.h Nathan Lynch via B4 Relay
@ 2023-11-13 2:45 ` Michael Ellerman
2023-12-07 12:38 ` Michael Ellerman
8 siblings, 0 replies; 10+ messages in thread
From: Michael Ellerman @ 2023-11-13 2:45 UTC (permalink / raw)
To: Nicholas Piggin, Christophe Leroy, Nathan Lynch; +Cc: linuxppc-dev
On Mon, 06 Nov 2023 07:42:52 -0600, Nathan Lynch wrote:
> * Fix recently introduced kernel-doc warnings.
> * Make minor coding style adjustments for readability.
> * Remove rtas_service_present() and an old call_rtas() declaration.
> * Move a pseries-specific function prototype to pseries code.
>
Patches 1-2 applied to powerpc/fixes.
[1/7] powerpc/pseries/rtas-work-area: Fix rtas_work_area_reserve_arena() kernel-doc
https://git.kernel.org/powerpc/c/65083333d3d16b282674aeef5cce5c72226c05e0
[2/7] powerpc/rtas: Fix ppc_rtas_rmo_buf_show() kernel-doc
https://git.kernel.org/powerpc/c/644b6025bcaff59737270d812c70302f5a8d4a8f
cheers
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [PATCH 0/7] powerpc/rtas: Trivial, coding style, and kernel-doc fixes
2023-11-06 13:42 [PATCH 0/7] powerpc/rtas: Trivial, coding style, and kernel-doc fixes Nathan Lynch via B4 Relay
` (7 preceding siblings ...)
2023-11-13 2:45 ` (subset) [PATCH 0/7] powerpc/rtas: Trivial, coding style, and kernel-doc fixes Michael Ellerman
@ 2023-12-07 12:38 ` Michael Ellerman
8 siblings, 0 replies; 10+ messages in thread
From: Michael Ellerman @ 2023-12-07 12:38 UTC (permalink / raw)
To: Nicholas Piggin, Christophe Leroy, Nathan Lynch
Cc: linuxppc-dev, kernel test robot
On Mon, 06 Nov 2023 07:42:52 -0600, Nathan Lynch wrote:
> * Fix recently introduced kernel-doc warnings.
> * Make minor coding style adjustments for readability.
> * Remove rtas_service_present() and an old call_rtas() declaration.
> * Move a pseries-specific function prototype to pseries code.
>
Patches 3-7 applied to powerpc/next.
[3/7] powerpc/rtas: Drop declaration of undefined call_rtas() function
https://git.kernel.org/powerpc/c/981d1c997fbc5e193b282f3a325a0230bf697363
[4/7] powerpc/rtas: Remove unused rtas_service_present()
https://git.kernel.org/powerpc/c/1d8faf1f41b550eb7ab7ac841ebd70f205840dde
[5/7] powerpc/rtas: Move post_mobility_fixup() declaration to pseries
https://git.kernel.org/powerpc/c/010862d235c9fab4f0f9dd169efc72df94110758
[6/7] powerpc/rtas: Remove trailing space
https://git.kernel.org/powerpc/c/19773eda86e289526b7f08fa56c92e75cd7796f6
[7/7] powerpc/rtas: Remove 'extern' from function declarations in rtas.h
https://git.kernel.org/powerpc/c/646477fc47905157a8440cdc45aad22901b5b3ce
cheers
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2023-12-07 12:50 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-06 13:42 [PATCH 0/7] powerpc/rtas: Trivial, coding style, and kernel-doc fixes Nathan Lynch via B4 Relay
2023-11-06 13:42 ` [PATCH 1/7] powerpc/pseries/rtas-work-area: Fix rtas_work_area_reserve_arena() kernel-doc Nathan Lynch via B4 Relay
2023-11-06 13:42 ` [PATCH 2/7] powerpc/rtas: Fix ppc_rtas_rmo_buf_show() kernel-doc Nathan Lynch via B4 Relay
2023-11-06 13:42 ` [PATCH 3/7] powerpc/rtas: Drop declaration of undefined call_rtas() function Nathan Lynch via B4 Relay
2023-11-06 13:42 ` [PATCH 4/7] powerpc/rtas: Remove unused rtas_service_present() Nathan Lynch via B4 Relay
2023-11-06 13:42 ` [PATCH 5/7] powerpc/rtas: Move post_mobility_fixup() declaration to pseries Nathan Lynch via B4 Relay
2023-11-06 13:42 ` [PATCH 6/7] powerpc/rtas: Remove trailing space Nathan Lynch via B4 Relay
2023-11-06 13:42 ` [PATCH 7/7] powerpc/rtas: Remove 'extern' from function declarations in rtas.h Nathan Lynch via B4 Relay
2023-11-13 2:45 ` (subset) [PATCH 0/7] powerpc/rtas: Trivial, coding style, and kernel-doc fixes Michael Ellerman
2023-12-07 12:38 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).