[PATCH] drivers/misc/sgi-xp: remove unused declarations in xp.h

Gaosheng Cui posted 1 patch 3 years, 6 months ago
drivers/misc/sgi-xp/xp.h | 2 --
1 file changed, 2 deletions(-)
[PATCH] drivers/misc/sgi-xp: remove unused declarations in xp.h
Posted by Gaosheng Cui 3 years, 6 months ago
xp_nofault_PIOR_target and xp_error_PIOR have been removed since
commit 9726bfcdb977 ("misc/sgi-xp: remove SGI SN2 support"),
so remove them.

Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
---
 drivers/misc/sgi-xp/xp.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/misc/sgi-xp/xp.h b/drivers/misc/sgi-xp/xp.h
index 9f9af77f8d2e..cf073304b714 100644
--- a/drivers/misc/sgi-xp/xp.h
+++ b/drivers/misc/sgi-xp/xp.h
@@ -334,9 +334,7 @@ extern int (*xp_cpu_to_nasid) (int);
 extern enum xp_retval (*xp_expand_memprotect) (unsigned long, unsigned long);
 extern enum xp_retval (*xp_restrict_memprotect) (unsigned long, unsigned long);
 
-extern u64 xp_nofault_PIOR_target;
 extern int xp_nofault_PIOR(void *);
-extern int xp_error_PIOR(void);
 
 extern struct device *xp;
 extern enum xp_retval xp_init_uv(void);
-- 
2.25.1
Re: [PATCH] drivers/misc/sgi-xp: remove unused declarations in xp.h
Posted by Steve Wahl 3 years, 6 months ago
Shouldn't xp_nofault_PIOR be removed also, for the exact same reasons?

On Sun, Sep 11, 2022 at 05:32:12PM +0800, Gaosheng Cui wrote:
> xp_nofault_PIOR_target and xp_error_PIOR have been removed since
> commit 9726bfcdb977 ("misc/sgi-xp: remove SGI SN2 support"),
> so remove them.
> 
> Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
> ---
>  drivers/misc/sgi-xp/xp.h | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/misc/sgi-xp/xp.h b/drivers/misc/sgi-xp/xp.h
> index 9f9af77f8d2e..cf073304b714 100644
> --- a/drivers/misc/sgi-xp/xp.h
> +++ b/drivers/misc/sgi-xp/xp.h
> @@ -334,9 +334,7 @@ extern int (*xp_cpu_to_nasid) (int);
>  extern enum xp_retval (*xp_expand_memprotect) (unsigned long, unsigned long);
>  extern enum xp_retval (*xp_restrict_memprotect) (unsigned long, unsigned long);
>  
> -extern u64 xp_nofault_PIOR_target;
>  extern int xp_nofault_PIOR(void *);
> -extern int xp_error_PIOR(void);
>  
>  extern struct device *xp;
>  extern enum xp_retval xp_init_uv(void);
> -- 
> 2.25.1
> 

-- 
Steve Wahl, Hewlett Packard Enterprise
Re: [PATCH] drivers/misc/sgi-xp: remove unused declarations in xp.h
Posted by cuigaosheng 3 years, 6 months ago
> Shouldn't xp_nofault_PIOR be removed also, for the exact same reasons?
>
> On Sun, Sep 11, 2022 at 05:32:12PM +0800, Gaosheng Cui wrote:
>> xp_nofault_PIOR_target and xp_error_PIOR have been removed since
>> commit 9726bfcdb977 ("misc/sgi-xp: remove SGI SN2 support"),
>> so remove them.
>>
>> Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
>> ---
>>   drivers/misc/sgi-xp/xp.h | 2 --
>>   1 file changed, 2 deletions(-)
>>
>> diff --git a/drivers/misc/sgi-xp/xp.h b/drivers/misc/sgi-xp/xp.h
>> index 9f9af77f8d2e..cf073304b714 100644
>> --- a/drivers/misc/sgi-xp/xp.h
>> +++ b/drivers/misc/sgi-xp/xp.h
>> @@ -334,9 +334,7 @@ extern int (*xp_cpu_to_nasid) (int);
>>   extern enum xp_retval (*xp_expand_memprotect) (unsigned long, unsigned long);
>>   extern enum xp_retval (*xp_restrict_memprotect) (unsigned long, unsigned long);
>>   
>> -extern u64 xp_nofault_PIOR_target;
>>   extern int xp_nofault_PIOR(void *);
>> -extern int xp_error_PIOR(void);
>>   
>>   extern struct device *xp;
>>   extern enum xp_retval xp_init_uv(void);
>> -- 
>> 2.25.1
>>
Yes, Thanks for taking the time to review this patch, I have made a patch V2 and submitted it.
link: https://lore.kernel.org/lkml/20220913110356.764711-1-cuigaosheng1@huawei.com/T/#u