This is an automated email from the ASF dual-hosted git repository.

pkarashchenko pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git


The following commit(s) were added to refs/heads/master by this push:
     new 0f9642d40 graphics/ft80x: Fix error: implicit declaration of function 
'getpid
0f9642d40 is described below

commit 0f9642d403f7fadc32dcbd41320c4f2d93671566
Author: Xiang Xiao <[email protected]>
AuthorDate: Mon Feb 6 06:21:50 2023 +0800

    graphics/ft80x: Fix error: implicit declaration of function 'getpid
    
    report here: 
https://github.com/apache/nuttx/actions/runs/4100097451/jobs/7070641033
    
    Signed-off-by: Xiang Xiao <[email protected]>
---
 graphics/ft80x/ft80x_ramcmd.c | 16 ++++++++++++----
 graphics/ft80x/ft80x_touch.c  | 14 ++++++++++----
 2 files changed, 22 insertions(+), 8 deletions(-)

diff --git a/graphics/ft80x/ft80x_ramcmd.c b/graphics/ft80x/ft80x_ramcmd.c
index cdfb77324..c65afae76 100644
--- a/graphics/ft80x/ft80x_ramcmd.c
+++ b/graphics/ft80x/ft80x_ramcmd.c
@@ -30,6 +30,7 @@
 #include <signal.h>
 #include <assert.h>
 #include <errno.h>
+#include <unistd.h>
 
 #include <nuttx/lcd/ft80x.h>
 
@@ -214,10 +215,13 @@ uint16_t ft80x_ramcmd_freespace(int fd, FAR uint16_t 
*offset,
       return ret;
     }
 
-  /* Return the free space in the FIFO.  NOTE that 4 bytes are not available */
+  /* Return the free space in the FIFO.  NOTE that 4 bytes are not
+   * available
+   */
 
   *offset = regs[1] & FT80X_CMDFIFO_MASK;
-  *avail  = (FT80X_CMDFIFO_SIZE - 4) - ((regs[1] - regs[0]) & 
FT80X_CMDFIFO_MASK);
+  *avail  = (FT80X_CMDFIFO_SIZE - 4) -
+            ((regs[1] - regs[0]) & FT80X_CMDFIFO_MASK);
   return OK;
 }
 
@@ -270,7 +274,9 @@ int ft80x_ramcmd_waitfifoempty(int fd)
 
   for (; ; )
     {
-      /* Read both the FT80X_REG_CMD_WRITE and FT80X_REG_CMD_READ registers. */
+      /* Read both the FT80X_REG_CMD_WRITE and FT80X_REG_CMD_READ
+       * registers.
+       */
 
       ret = ft80x_getregs(fd, FT80X_REG_CMD_READ, 2, regs);
       if (ret < 0)
@@ -323,7 +329,9 @@ int ft80x_ramcmd_waitfifoempty(int fd)
       ioctl(fd, FT80X_IOC_EVENTNOTIFY,
             (unsigned long)((uintptr_t)&notify));
 
-      /* Check if the signal was received correctly or if the timeout 
occurred. */
+      /* Check if the signal was received correctly or if the timeout
+       * occurred.
+       */
 
       if (ret < 0)
         {
diff --git a/graphics/ft80x/ft80x_touch.c b/graphics/ft80x/ft80x_touch.c
index 0c497d772..b3ca8c670 100644
--- a/graphics/ft80x/ft80x_touch.c
+++ b/graphics/ft80x/ft80x_touch.c
@@ -29,6 +29,7 @@
 #include <signal.h>
 #include <assert.h>
 #include <errno.h>
+#include <unistd.h>
 
 #include <nuttx/lcd/ft80x.h>
 
@@ -94,7 +95,8 @@ int ft80x_touch_gettransform(int fd, FAR uint32_t matrix[6])
  *
  * Returned Value:
  *   A value of 1-255 is returned if a graphics object is touched.  Zero is
- *   returned if no graphics object is touched.  A negated errno value on 
failure.
+ *   returned if no graphics object is touched.  A negated errno value on
+ *   failure.
  *
  ****************************************************************************/
 
@@ -138,7 +140,8 @@ int ft80x_touch_tag(int fd)
  *
  * Returned Value:
  *   A value of 1-255 is returned if a graphics object is touched.  Zero is
- *   returned if no graphics object is touched.  A negated errno value on 
failure.
+ *   returned if no graphics object is touched.  A negated errno value on
+ *   failure.
  *
  ****************************************************************************/
 
@@ -224,7 +227,9 @@ int ft80x_touch_waittag(int fd, uint8_t oldtag)
       ioctl(fd, FT80X_IOC_EVENTNOTIFY,
             (unsigned long)((uintptr_t)&notify));
 
-      /* Check if the signal was received correctly or if the timeout 
occurred. */
+      /* Check if the signal was received correctly or if the timeout
+       * occurred.
+       */
 
       if (ret < 0)
         {
@@ -261,7 +266,8 @@ int ft80x_touch_waittag(int fd, uint8_t oldtag)
  *
  * Returned Value:
  *   A value of 1-255 is returned if a graphics object is touched.  Zero is
- *   returned if no graphics object is touched.  A negated errno value on 
failure.
+ *   returned if no graphics object is touched.  A negated errno value on
+ *   failure.
  *
  ****************************************************************************/
 

Reply via email to