sched: Fix nxstyle errors

error: Long line found
This commit is contained in:
simbit18 2023-05-11 10:36:08 +02:00 committed by Alan Carvalho de Assis
parent d66282a893
commit bf9b8dfbfe
2 changed files with 27 additions and 27 deletions

View File

@ -1,4 +1,4 @@
/******************************************************************************** /****************************************************************************
* sched/mqueue/mqueue.h * sched/mqueue/mqueue.h
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
@ -16,14 +16,14 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
* *
********************************************************************************/ ****************************************************************************/
#ifndef __SCHED_MQUEUE_MQUEUE_H #ifndef __SCHED_MQUEUE_MQUEUE_H
#define __SCHED_MQUEUE_MQUEUE_H #define __SCHED_MQUEUE_MQUEUE_H
/******************************************************************************** /****************************************************************************
* Included Files * Included Files
********************************************************************************/ ****************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
#include <nuttx/compiler.h> #include <nuttx/compiler.h>
@ -39,17 +39,17 @@
#if defined(CONFIG_MQ_MAXMSGSIZE) && CONFIG_MQ_MAXMSGSIZE > 0 #if defined(CONFIG_MQ_MAXMSGSIZE) && CONFIG_MQ_MAXMSGSIZE > 0
/******************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
********************************************************************************/ ****************************************************************************/
#define MQ_MAX_BYTES CONFIG_MQ_MAXMSGSIZE #define MQ_MAX_BYTES CONFIG_MQ_MAXMSGSIZE
#define MQ_MAX_MSGS 16 #define MQ_MAX_MSGS 16
#define MQ_PRIO_MAX _POSIX_MQ_PRIO_MAX #define MQ_PRIO_MAX _POSIX_MQ_PRIO_MAX
/******************************************************************************** /****************************************************************************
* Public Type Definitions * Public Type Definitions
********************************************************************************/ ****************************************************************************/
enum mqalloc_e enum mqalloc_e
{ {
@ -73,9 +73,9 @@ struct mqueue_msg_s
char mail[MQ_MAX_BYTES]; /* Message data */ char mail[MQ_MAX_BYTES]; /* Message data */
}; };
/******************************************************************************** /****************************************************************************
* Public Data * Public Data
********************************************************************************/ ****************************************************************************/
#ifdef __cplusplus #ifdef __cplusplus
#define EXTERN extern "C" #define EXTERN extern "C"
@ -97,23 +97,23 @@ EXTERN struct list_node g_msgfree;
EXTERN struct list_node g_msgfreeirq; EXTERN struct list_node g_msgfreeirq;
/******************************************************************************** /****************************************************************************
* Public Function Prototypes * Public Function Prototypes
********************************************************************************/ ****************************************************************************/
struct tcb_s; /* Forward reference */ struct tcb_s; /* Forward reference */
struct task_group_s; /* Forward reference */ struct task_group_s; /* Forward reference */
/* Functions defined in mq_initialize.c *****************************************/ /* Functions defined in mq_initialize.c *************************************/
void nxmq_initialize(void); void nxmq_initialize(void);
void nxmq_free_msg(FAR struct mqueue_msg_s *mqmsg); void nxmq_free_msg(FAR struct mqueue_msg_s *mqmsg);
/* mq_waitirq.c *****************************************************************/ /* mq_waitirq.c *************************************************************/
void nxmq_wait_irq(FAR struct tcb_s *wtcb, int errcode); void nxmq_wait_irq(FAR struct tcb_s *wtcb, int errcode);
/* mq_rcvinternal.c *************************************************************/ /* mq_rcvinternal.c *********************************************************/
#ifdef CONFIG_DEBUG_FEATURES #ifdef CONFIG_DEBUG_FEATURES
int nxmq_verify_receive(FAR struct file *mq, FAR char *msg, size_t msglen); int nxmq_verify_receive(FAR struct file *mq, FAR char *msg, size_t msglen);
@ -126,7 +126,7 @@ ssize_t nxmq_do_receive(FAR struct mqueue_inode_s *msgq,
FAR struct mqueue_msg_s *mqmsg, FAR struct mqueue_msg_s *mqmsg,
FAR char *ubuffer, FAR unsigned int *prio); FAR char *ubuffer, FAR unsigned int *prio);
/* mq_sndinternal.c *************************************************************/ /* mq_sndinternal.c *********************************************************/
#ifdef CONFIG_DEBUG_FEATURES #ifdef CONFIG_DEBUG_FEATURES
int nxmq_verify_send(FAR struct file *mq, FAR const char *msg, int nxmq_verify_send(FAR struct file *mq, FAR const char *msg,
@ -140,7 +140,7 @@ int nxmq_do_send(FAR struct mqueue_inode_s *msgq,
FAR struct mqueue_msg_s *mqmsg, FAR struct mqueue_msg_s *mqmsg,
FAR const char *msg, size_t msglen, unsigned int prio); FAR const char *msg, size_t msglen, unsigned int prio);
/* mq_recover.c *****************************************************************/ /* mq_recover.c *************************************************************/
void nxmq_recover(FAR struct tcb_s *tcb); void nxmq_recover(FAR struct tcb_s *tcb);

View File

@ -1,4 +1,4 @@
/******************************************************************************* /****************************************************************************
* sched/task/task_terminate.c * sched/task/task_terminate.c
* *
* Licensed to the Apache Software Foundation (ASF) under one or more * Licensed to the Apache Software Foundation (ASF) under one or more
@ -16,11 +16,11 @@
* License for the specific language governing permissions and limitations * License for the specific language governing permissions and limitations
* under the License. * under the License.
* *
*******************************************************************************/ ****************************************************************************/
/******************************************************************************* /****************************************************************************
* Included Files * Included Files
*******************************************************************************/ ****************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
@ -37,11 +37,11 @@
#include "signal/signal.h" #include "signal/signal.h"
#include "task/task.h" #include "task/task.h"
/******************************************************************************* /****************************************************************************
* Public Functions * Public Functions
*******************************************************************************/ ****************************************************************************/
/******************************************************************************* /****************************************************************************
* Name: nxtask_terminate * Name: nxtask_terminate
* *
* Description: * Description:
@ -73,7 +73,7 @@
* This function can fail if the provided pid does not correspond to a * This function can fail if the provided pid does not correspond to a
* task (errno is not set) * task (errno is not set)
* *
*******************************************************************************/ ****************************************************************************/
int nxtask_terminate(pid_t pid) int nxtask_terminate(pid_t pid)
{ {
@ -110,8 +110,8 @@ int nxtask_terminate(pid_t pid)
nxtask_exithook(dtcb, EXIT_SUCCESS); nxtask_exithook(dtcb, EXIT_SUCCESS);
/* Since all tasks pass through this function as the final step in their /* Since all tasks pass through this function as the final step in their
* exit sequence, this is an appropriate place to inform any instrumentation * exit sequence, this is an appropriate place to inform any
* layer that the task no longer exists. * instrumentation layer that the task no longer exists.
*/ */
sched_note_stop(dtcb); sched_note_stop(dtcb);