diff mbox series

[1/1] watchdog: remove unneeded inclusion of <uapi/linux/sched/types.h>

Message ID 20200827062154.1847-1-thunder.leizhen@huawei.com
State New
Headers show
Series [1/1] watchdog: remove unneeded inclusion of <uapi/linux/sched/types.h> | expand

Commit Message

Zhen Lei Aug. 27, 2020, 6:21 a.m. UTC
There has been no reference to "struct sched_param" since
commit 94beddacb53c ("sched,watchdog: Convert to sched_set_fifo()"), so
there's no need to include <uapi/linux/sched/types.h> any more, delete
it.

Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>

---
 drivers/watchdog/watchdog_dev.c | 2 --
 1 file changed, 2 deletions(-)

-- 
1.8.3

Comments

Guenter Roeck Aug. 27, 2020, 1:40 p.m. UTC | #1
On 8/26/20 11:21 PM, Zhen Lei wrote:
> There has been no reference to "struct sched_param" since

> commit 94beddacb53c ("sched,watchdog: Convert to sched_set_fifo()"), so

> there's no need to include <uapi/linux/sched/types.h> any more, delete

> it.

> 

> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>


Reviewed-by: Guenter Roeck <linux@roeck-us.net>


> ---

>  drivers/watchdog/watchdog_dev.c | 2 --

>  1 file changed, 2 deletions(-)

> 

> diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/watchdog_dev.c

> index 6798addabd5a067..0f18fa2433310b0 100644

> --- a/drivers/watchdog/watchdog_dev.c

> +++ b/drivers/watchdog/watchdog_dev.c

> @@ -43,8 +43,6 @@

>  #include <linux/watchdog.h>	/* For watchdog specific items */

>  #include <linux/uaccess.h>	/* For copy_to_user/put_user/... */

>  

> -#include <uapi/linux/sched/types.h>	/* For struct sched_param */

> -

>  #include "watchdog_core.h"

>  #include "watchdog_pretimeout.h"

>  

>
Zhen Lei Sept. 7, 2020, 7:50 a.m. UTC | #2
Hi, Wim Van Sebroeck, Guenter Roeck:
  What's your opinion? Guenter Roeck given "Reviewed-by" two weeks ago.


On 2020/8/27 21:40, Guenter Roeck wrote:
> On 8/26/20 11:21 PM, Zhen Lei wrote:

>> There has been no reference to "struct sched_param" since

>> commit 94beddacb53c ("sched,watchdog: Convert to sched_set_fifo()"), so

>> there's no need to include <uapi/linux/sched/types.h> any more, delete

>> it.

>>

>> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>

> 

> Reviewed-by: Guenter Roeck <linux@roeck-us.net>

> 

>> ---

>>  drivers/watchdog/watchdog_dev.c | 2 --

>>  1 file changed, 2 deletions(-)

>>

>> diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/watchdog_dev.c

>> index 6798addabd5a067..0f18fa2433310b0 100644

>> --- a/drivers/watchdog/watchdog_dev.c

>> +++ b/drivers/watchdog/watchdog_dev.c

>> @@ -43,8 +43,6 @@

>>  #include <linux/watchdog.h>	/* For watchdog specific items */

>>  #include <linux/uaccess.h>	/* For copy_to_user/put_user/... */

>>  

>> -#include <uapi/linux/sched/types.h>	/* For struct sched_param */

>> -

>>  #include "watchdog_core.h"

>>  #include "watchdog_pretimeout.h"

>>  

>>

> 

> 

>
Guenter Roeck Sept. 8, 2020, 2:40 a.m. UTC | #3
On 9/7/20 12:50 AM, Leizhen (ThunderTown) wrote:
> Hi, Wim Van Sebroeck, Guenter Roeck:

>   What's your opinion? Guenter Roeck given "Reviewed-by" two weeks ago.

> 


The patch is in my watchdog-next branch, and Wim usually picks it up
from there.

Guenter

> 

> On 2020/8/27 21:40, Guenter Roeck wrote:

>> On 8/26/20 11:21 PM, Zhen Lei wrote:

>>> There has been no reference to "struct sched_param" since

>>> commit 94beddacb53c ("sched,watchdog: Convert to sched_set_fifo()"), so

>>> there's no need to include <uapi/linux/sched/types.h> any more, delete

>>> it.

>>>

>>> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>

>>

>> Reviewed-by: Guenter Roeck <linux@roeck-us.net>

>>

>>> ---

>>>  drivers/watchdog/watchdog_dev.c | 2 --

>>>  1 file changed, 2 deletions(-)

>>>

>>> diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/watchdog_dev.c

>>> index 6798addabd5a067..0f18fa2433310b0 100644

>>> --- a/drivers/watchdog/watchdog_dev.c

>>> +++ b/drivers/watchdog/watchdog_dev.c

>>> @@ -43,8 +43,6 @@

>>>  #include <linux/watchdog.h>	/* For watchdog specific items */

>>>  #include <linux/uaccess.h>	/* For copy_to_user/put_user/... */

>>>  

>>> -#include <uapi/linux/sched/types.h>	/* For struct sched_param */

>>> -

>>>  #include "watchdog_core.h"

>>>  #include "watchdog_pretimeout.h"

>>>  

>>>

>>

>>

>>

>
Zhen Lei Sept. 8, 2020, 3:34 a.m. UTC | #4
On 2020/9/8 10:40, Guenter Roeck wrote:
> On 9/7/20 12:50 AM, Leizhen (ThunderTown) wrote:

>> Hi, Wim Van Sebroeck, Guenter Roeck:

>>   What's your opinion? Guenter Roeck given "Reviewed-by" two weeks ago.

>>

> 

> The patch is in my watchdog-next branch, and Wim usually picks it up

> from there.


Oh, thanks.

> 

> Guenter

> 

>>

>> On 2020/8/27 21:40, Guenter Roeck wrote:

>>> On 8/26/20 11:21 PM, Zhen Lei wrote:

>>>> There has been no reference to "struct sched_param" since

>>>> commit 94beddacb53c ("sched,watchdog: Convert to sched_set_fifo()"), so

>>>> there's no need to include <uapi/linux/sched/types.h> any more, delete

>>>> it.

>>>>

>>>> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>

>>>

>>> Reviewed-by: Guenter Roeck <linux@roeck-us.net>

>>>

>>>> ---

>>>>  drivers/watchdog/watchdog_dev.c | 2 --

>>>>  1 file changed, 2 deletions(-)

>>>>

>>>> diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/watchdog_dev.c

>>>> index 6798addabd5a067..0f18fa2433310b0 100644

>>>> --- a/drivers/watchdog/watchdog_dev.c

>>>> +++ b/drivers/watchdog/watchdog_dev.c

>>>> @@ -43,8 +43,6 @@

>>>>  #include <linux/watchdog.h>	/* For watchdog specific items */

>>>>  #include <linux/uaccess.h>	/* For copy_to_user/put_user/... */

>>>>  

>>>> -#include <uapi/linux/sched/types.h>	/* For struct sched_param */

>>>> -

>>>>  #include "watchdog_core.h"

>>>>  #include "watchdog_pretimeout.h"

>>>>  

>>>>

>>>

>>>

>>>

>>

> 

> 

>
Zhen Lei Oct. 14, 2020, 2:14 a.m. UTC | #5
On 2020/9/8 11:34, Leizhen (ThunderTown) wrote:
> 

> 

> On 2020/9/8 10:40, Guenter Roeck wrote:

>> On 9/7/20 12:50 AM, Leizhen (ThunderTown) wrote:

>>> Hi, Wim Van Sebroeck, Guenter Roeck:

>>>   What's your opinion? Guenter Roeck given "Reviewed-by" two weeks ago.

>>>

>>

>> The patch is in my watchdog-next branch, and Wim usually picks it up

>> from there.

> 


Hi, Guenter:
  Have you sent [GIT PULL] updates for 5.10, I don't see this patch in linux-next.

> Oh, thanks.

> 

>>

>> Guenter

>>

>>>

>>> On 2020/8/27 21:40, Guenter Roeck wrote:

>>>> On 8/26/20 11:21 PM, Zhen Lei wrote:

>>>>> There has been no reference to "struct sched_param" since

>>>>> commit 94beddacb53c ("sched,watchdog: Convert to sched_set_fifo()"), so

>>>>> there's no need to include <uapi/linux/sched/types.h> any more, delete

>>>>> it.

>>>>>

>>>>> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>

>>>>

>>>> Reviewed-by: Guenter Roeck <linux@roeck-us.net>

>>>>

>>>>> ---

>>>>>  drivers/watchdog/watchdog_dev.c | 2 --

>>>>>  1 file changed, 2 deletions(-)

>>>>>

>>>>> diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/watchdog_dev.c

>>>>> index 6798addabd5a067..0f18fa2433310b0 100644

>>>>> --- a/drivers/watchdog/watchdog_dev.c

>>>>> +++ b/drivers/watchdog/watchdog_dev.c

>>>>> @@ -43,8 +43,6 @@

>>>>>  #include <linux/watchdog.h>	/* For watchdog specific items */

>>>>>  #include <linux/uaccess.h>	/* For copy_to_user/put_user/... */

>>>>>  

>>>>> -#include <uapi/linux/sched/types.h>	/* For struct sched_param */

>>>>> -

>>>>>  #include "watchdog_core.h"

>>>>>  #include "watchdog_pretimeout.h"

>>>>>  

>>>>>

>>>>

>>>>

>>>>

>>>

>>

>>

>>
Guenter Roeck Oct. 14, 2020, 7:51 a.m. UTC | #6
On 10/13/20 7:14 PM, Leizhen (ThunderTown) wrote:
> 
> 
> On 2020/9/8 11:34, Leizhen (ThunderTown) wrote:
>>
>>
>> On 2020/9/8 10:40, Guenter Roeck wrote:
>>> On 9/7/20 12:50 AM, Leizhen (ThunderTown) wrote:
>>>> Hi, Wim Van Sebroeck, Guenter Roeck:
>>>>   What's your opinion? Guenter Roeck given "Reviewed-by" two weeks ago.
>>>>
>>>
>>> The patch is in my watchdog-next branch, and Wim usually picks it up
>>> from there.
>>
> 
> Hi, Guenter:
>   Have you sent [GIT PULL] updates for 5.10, I don't see this patch in linux-next.
> 

Wim does that. Unfortunately, he often does not pick up patches until shortly
before he sends a pull request to Linus.

Guenter

>> Oh, thanks.
>>
>>>
>>> Guenter
>>>
>>>>
>>>> On 2020/8/27 21:40, Guenter Roeck wrote:
>>>>> On 8/26/20 11:21 PM, Zhen Lei wrote:
>>>>>> There has been no reference to "struct sched_param" since
>>>>>> commit 94beddacb53c ("sched,watchdog: Convert to sched_set_fifo()"), so
>>>>>> there's no need to include <uapi/linux/sched/types.h> any more, delete
>>>>>> it.
>>>>>>
>>>>>> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
>>>>>
>>>>> Reviewed-by: Guenter Roeck <linux@roeck-us.net>
>>>>>
>>>>>> ---
>>>>>>  drivers/watchdog/watchdog_dev.c | 2 --
>>>>>>  1 file changed, 2 deletions(-)
>>>>>>
>>>>>> diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/watchdog_dev.c
>>>>>> index 6798addabd5a067..0f18fa2433310b0 100644
>>>>>> --- a/drivers/watchdog/watchdog_dev.c
>>>>>> +++ b/drivers/watchdog/watchdog_dev.c
>>>>>> @@ -43,8 +43,6 @@
>>>>>>  #include <linux/watchdog.h>	/* For watchdog specific items */
>>>>>>  #include <linux/uaccess.h>	/* For copy_to_user/put_user/... */
>>>>>>  
>>>>>> -#include <uapi/linux/sched/types.h>	/* For struct sched_param */
>>>>>> -
>>>>>>  #include "watchdog_core.h"
>>>>>>  #include "watchdog_pretimeout.h"
>>>>>>  
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>>
>>>
>
diff mbox series

Patch

diff --git a/drivers/watchdog/watchdog_dev.c b/drivers/watchdog/watchdog_dev.c
index 6798addabd5a067..0f18fa2433310b0 100644
--- a/drivers/watchdog/watchdog_dev.c
+++ b/drivers/watchdog/watchdog_dev.c
@@ -43,8 +43,6 @@ 
 #include <linux/watchdog.h>	/* For watchdog specific items */
 #include <linux/uaccess.h>	/* For copy_to_user/put_user/... */
 
-#include <uapi/linux/sched/types.h>	/* For struct sched_param */
-
 #include "watchdog_core.h"
 #include "watchdog_pretimeout.h"