anchao opened a new pull request, #15848:
URL: https://github.com/apache/nuttx/pull/15848

   ## Summary
   
   arm/memory_barrier: fix build warning on GCC14
   
   ```
   nuttx/include/arch/spinlock.h:66:9: warning: "UP_DSB" redefined
      66 | #define UP_DSB() __asm__ __volatile__ ("dsb sy" : : : "memory")
         |         ^~~~~~
   In file included from nuttx/include/arch/barriers.h:37,
                    from nuttx/include/arch/spinlock.h:34:
   nuttx/include/arch/armv8-m/barriers.h:42:9: note: this is the location of 
the previous definition
      42 | #define UP_DSB()  arm_dsb(15)
         |         ^~~~~~
   nuttx/include/arch/spinlock.h:67:9: warning: "UP_DMB" redefined
      67 | #define UP_DMB() __asm__ __volatile__ ("dmb st" : : : "memory")
         |         ^~~~~~
   nuttx/include/arch/armv8-m/barriers.h:41:9: note: this is the location of 
the previous definition
      41 | #define UP_DMB()  arm_dmb()
         |         ^~~~~~
   ```
   
   nuttx/compiler: fix build warning on GCC14
   
   ```
   nuttx/include/arch/armv8-m/irq.h:496:36: warning: 'always_inline' function 
might not be inlinable unless also declared 'inline' [-Wattributes]
     496 | static always_inline_function bool up_interrupt_context(void)
         |                                    ^~~~~~~~~~~~~~~~~~~~
   nuttx/include/arch/armv8-m/irq.h:490:41: warning: 'always_inline' function 
might not be inlinable unless also declared 'inline' [-Wattributes]
     490 | static always_inline_function uintptr_t up_getusrsp(void *regs)
         |                                         ^~~~~~~~~~~
   nuttx/include/arch/armv8-m/irq.h:477:40: warning: 'always_inline' function 
might not be inlinable unless also declared 'inline' [-Wattributes]
     477 | static always_inline_function uint32_t up_getsp(void)
         |                                        ^~~~~~~~
   nuttx/include/arch/armv8-m/irq.h:451:40: warning: 'always_inline' function 
might not be inlinable unless also declared 'inline' [-Wattributes]
     451 | static always_inline_function uint32_t getpsp(void)
         |                                        ^~~~~~
   nuttx/include/arch/armv8-m/irq.h:441:36: warning: 'always_inline' function 
might not be inlinable unless also declared 'inline' [-Wattributes]
     441 | static always_inline_function void setcontrol(uint32_t control)
         |                                    ^~~~~~~~~~
   nuttx/include/arch/armv8-m/irq.h:428:40: warning: 'always_inline' function 
might not be inlinable unless also declared 'inline' [-Wattributes]
     428 | static always_inline_function uint32_t getcontrol(void)
         |                                        ^~~~~~~~~~
   ```
   
   Signed-off-by: chao an <anchao.arc...@bytedance.com>
   
   
   ## Impact
   
   N/A
   
   ## Testing
   
   ci-check


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to