You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ra...@apache.org on 2024/11/03 10:44:47 UTC
(nuttx) branch labeler created (now c5b32366eb)
This is an automated email from the ASF dual-hosted git repository.
raiden00 pushed a change to branch labeler
in repository https://gitbox.apache.org/repos/asf/nuttx.git
at c5b32366eb .github/labeler.yml: add missing drivers label
This branch includes the following new commits:
new d45998e7db sched/misc/assert.c: don't compile dump_task logic if CONFIG_DEBUG_ALERT=n
new 76ec5fd6c0 cmake: don't include syslog files if CONFIG_SYSLOG=n
new c5b32366eb .github/labeler.yml: add missing drivers label
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
(nuttx) 01/03: sched/misc/assert.c: don't compile dump_task logic if CONFIG_DEBUG_ALERT=n
Posted by ra...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
raiden00 pushed a commit to branch labeler
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit d45998e7dbfe6f1c741749ed3c254888fb4080b4
Author: raiden00pl <ra...@railab.me>
AuthorDate: Sun Nov 3 11:07:24 2024 +0100
sched/misc/assert.c: don't compile dump_task logic if CONFIG_DEBUG_ALERT=n
Don't compile dump_task logic if CONFIG_DEBUG_ALERT=n.
With _alert() disabled this logic does nothing, but the compiler
is not smart enough to optimize this code.
on minimal stm32f3 configuration it saves 396B of flash.
---
sched/misc/assert.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/sched/misc/assert.c b/sched/misc/assert.c
index 53948a16cc..c77d1d617c 100644
--- a/sched/misc/assert.c
+++ b/sched/misc/assert.c
@@ -109,6 +109,7 @@ static bool g_cpu_paused[CONFIG_SMP_NCPUS];
static uintptr_t g_last_regs[CONFIG_SMP_NCPUS][XCPTCONTEXT_REGS]
aligned_data(XCPTCONTEXT_ALIGN);
+#ifdef CONFIG_DEBUG_ALERT
static FAR const char * const g_policy[4] =
{
"FIFO", "RR", "SPORADIC"
@@ -121,6 +122,7 @@ static FAR const char * const g_ttypenames[4] =
"Kthread",
"Invalid"
};
+#endif
/****************************************************************************
* Private Functions
@@ -326,6 +328,7 @@ static void dump_stacks(FAR struct tcb_s *rtcb, uintptr_t sp)
#endif
+#ifdef CONFIG_DEBUG_ALERT
/****************************************************************************
* Name: dump_task
****************************************************************************/
@@ -422,6 +425,7 @@ static void dump_task(FAR struct tcb_s *tcb, FAR void *arg)
, args
);
}
+#endif
/****************************************************************************
* Name: dump_backtrace
@@ -522,7 +526,9 @@ static void dump_tasks(void)
}
#endif
+#ifdef CONFIG_DEBUG_ALERT
nxsched_foreach(dump_task, NULL);
+#endif
#ifdef CONFIG_SCHED_BACKTRACE
nxsched_foreach(dump_backtrace, NULL);
(nuttx) 02/03: cmake: don't include syslog files if CONFIG_SYSLOG=n
Posted by ra...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
raiden00 pushed a commit to branch labeler
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 76ec5fd6c0097f50ab2e87011724f605d32dc1c2
Author: raiden00pl <ra...@railab.me>
AuthorDate: Sun Nov 3 11:02:34 2024 +0100
cmake: don't include syslog files if CONFIG_SYSLOG=n
don't include syslog files if CONFIG_SYSLOG=n
---
drivers/syslog/CMakeLists.txt | 14 ++++++++++++--
1 file changed, 12 insertions(+), 2 deletions(-)
diff --git a/drivers/syslog/CMakeLists.txt b/drivers/syslog/CMakeLists.txt
index 1090ac65bb..ddc7663658 100644
--- a/drivers/syslog/CMakeLists.txt
+++ b/drivers/syslog/CMakeLists.txt
@@ -17,11 +17,21 @@
# the License.
#
# ##############################################################################
-# ##############################################################################
# Include SYSLOG Infrastructure
-set(SRCS vsyslog.c syslog_channel.c syslog_putc.c syslog_write.c syslog_flush.c)
+set(SRCS)
+
+if(CONFIG_SYSLOG)
+ list(
+ APPEND
+ SRCS
+ vsyslog.c
+ syslog_channel.c
+ syslog_putc.c
+ syslog_write.c
+ syslog_flush.c)
+endif()
if(CONFIG_SYSLOG_INTBUFFER)
list(APPEND SRCS syslog_intbuffer.c)
(nuttx) 03/03: .github/labeler.yml: add missing drivers label
Posted by ra...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
raiden00 pushed a commit to branch labeler
in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit c5b32366eb4da3abfa9e1087049ed6904aaf075e
Author: raiden00pl <ra...@railab.me>
AuthorDate: Sun Nov 3 11:44:18 2024 +0100
.github/labeler.yml: add missing drivers label
add missing drivers label for labeler.yml
---
.github/labeler.yml | 90 +++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 90 insertions(+)
diff --git a/.github/labeler.yml b/.github/labeler.yml
index 8468ce3673..bd778f9ba2 100644
--- a/.github/labeler.yml
+++ b/.github/labeler.yml
@@ -192,6 +192,96 @@
- any-glob-to-any-file: 'include/crypto/**'
- any-glob-to-any-file: 'include/nuttx/crypto/**'
+# someday this should be broken down into more precise categories
+
+"Area: Drivers":
+ - changed-files:
+ - any-glob-to-any-file: 'drivers/1wire/**'
+ - any-glob-to-any-file: 'drivers/bch/**'
+ - any-glob-to-any-file: 'drivers/can/**'
+ - any-glob-to-any-file: 'drivers/devicetree/**'
+ - any-glob-to-any-file: 'drivers/dma/**'
+ - any-glob-to-any-file: 'drivers/dummy/**'
+ - any-glob-to-any-file: 'drivers/eeprom/**'
+ - any-glob-to-any-file: 'drivers/efuse/**'
+ - any-glob-to-any-file: 'drivers/i2c/**'
+ - any-glob-to-any-file: 'drivers/i2s/**'
+ - any-glob-to-any-file: 'drivers/i3c/**'
+ - any-glob-to-any-file: 'drivers/input/**'
+ - any-glob-to-any-file: 'drivers/ioexpander/**'
+ - any-glob-to-any-file: 'drivers/ipcc/**'
+ - any-glob-to-any-file: 'drivers/lcd/**'
+ - any-glob-to-any-file: 'drivers/leds/**'
+ - any-glob-to-any-file: 'drivers/loops/**'
+ - any-glob-to-any-file: 'drivers/math/**'
+ - any-glob-to-any-file: 'drivers/misc/**'
+ - any-glob-to-any-file: 'drivers/mmcsd/**'
+ - any-glob-to-any-file: 'drivers/modem/**'
+ - any-glob-to-any-file: 'drivers/motor/**'
+ - any-glob-to-any-file: 'drivers/mtd/**'
+ - any-glob-to-any-file: 'drivers/note/**'
+ - any-glob-to-any-file: 'drivers/pinctrl/**'
+ - any-glob-to-any-file: 'drivers/pipes/**'
+ - any-glob-to-any-file: 'drivers/power/**'
+ - any-glob-to-any-file: 'drivers/rc/**'
+ - any-glob-to-any-file: 'drivers/regmap/**'
+ - any-glob-to-any-file: 'drivers/reset/**'
+ - any-glob-to-any-file: 'drivers/rf/**'
+ - any-glob-to-any-file: 'drivers/rmt/**'
+ - any-glob-to-any-file: 'drivers/rpmsg/**'
+ - any-glob-to-any-file: 'drivers/rptun/**'
+ - any-glob-to-any-file: 'drivers/segger/**'
+ - any-glob-to-any-file: 'drivers/serial/**'
+ - any-glob-to-any-file: 'drivers/spi/**'
+ - any-glob-to-any-file: 'drivers/syslog/**'
+ - any-glob-to-any-file: 'drivers/thermal/**'
+ - any-glob-to-any-file: 'drivers/timers/**'
+ - any-glob-to-any-file: 'drivers/usrsock/**'
+ - any-glob-to-any-file: 'drivers/vhost/**'
+ - any-glob-to-any-file: 'drivers/virtio/**'
+ - any-glob-to-any-file: 'drivers/wireless/**'
+ - any-glob-to-any-file: 'include/nuttx/1wire/**'
+ - any-glob-to-any-file: 'include/nuttx/aie/**'
+ - any-glob-to-any-file: 'include/nuttx/analog/**'
+ - any-glob-to-any-file: 'include/nuttx/clk/**'
+ - any-glob-to-any-file: 'include/nuttx/contactless/**'
+ - any-glob-to-any-file: 'include/nuttx/coresight/**'
+ - any-glob-to-any-file: 'include/nuttx/fdt.h'
+ - any-glob-to-any-file: 'include/nuttx/dma/**'
+ - any-glob-to-any-file: 'include/nuttx/drivers/**'
+ - any-glob-to-any-file: 'include/nuttx/eeprom/**'
+ - any-glob-to-any-file: 'include/nuttx/efuse/**'
+ - any-glob-to-any-file: 'include/nuttx/i2c/**'
+ - any-glob-to-any-file: 'include/nuttx/i3c/**'
+ - any-glob-to-any-file: 'include/nuttx/input/**'
+ - any-glob-to-any-file: 'include/nuttx/ioexpander/**'
+ - any-glob-to-any-file: 'include/nuttx/ipcc.h'
+ - any-glob-to-any-file: 'include/nuttx/lcd/**'
+ - any-glob-to-any-file: 'include/nuttx/leds/**'
+ - any-glob-to-any-file: 'include/nuttx/math/**'
+ - any-glob-to-any-file: 'include/nuttx/modem/**'
+ - any-glob-to-any-file: 'include/nuttx/motor/**'
+ - any-glob-to-any-file: 'include/nuttx/mtd/**'
+ - any-glob-to-any-file: 'include/nuttx/note/**'
+ - any-glob-to-any-file: 'include/nuttx/pinctrl/**'
+ - any-glob-to-any-file: 'include/nuttx/power/**'
+ - any-glob-to-any-file: 'include/nuttx/rc/**'
+ - any-glob-to-any-file: 'include/nuttx/regmap/**'
+ - any-glob-to-any-file: 'include/nuttx/reset/**'
+ - any-glob-to-any-file: 'include/nuttx/rf/**'
+ - any-glob-to-any-file: 'include/nuttx/rmt/**'
+ - any-glob-to-any-file: 'include/nuttx/rpmsg/**'
+ - any-glob-to-any-file: 'include/nuttx/rptun/**'
+ - any-glob-to-any-file: 'include/nuttx/segger/**'
+ - any-glob-to-any-file: 'include/nuttx/serial/**'
+ - any-glob-to-any-file: 'include/nuttx/spi/**'
+ - any-glob-to-any-file: 'include/nuttx/syslog/**'
+ - any-glob-to-any-file: 'include/nuttx/timers/**'
+ - any-glob-to-any-file: 'include/nuttx/usrsock/**'
+ - any-glob-to-any-file: 'include/nuttx/vhost/**'
+ - any-glob-to-any-file: 'include/nuttx/virtio/**'
+ - any-glob-to-any-file: 'include/nuttx/wireless/**'
+
"Area: Documentation":
- changed-files:
- any-glob-to-any-file: 'Documentation/**'