Fix missing inclusion of <limits.h>
PATCH 1/1 Fix missing inclusion of <limits.h>
Needed for PATH_MAX.
--- android/ipc-tester.c | 1 + android/system-emulator.c | 1 + android/tester-main.c | 1 + client/mgmt.c | 1 + emulator/serial.c | 1 + emulator/vhci.c | 1 + monitor/att.c | 2 +- peripheral/efivars.c | 1 + profiles/audio/a2dp.c | 1 + src/adapter.c | 1 + src/device.c | 1 + src/gatt-database.c | 1 + src/main.c | 1 + src/rfkill.c | 1 + src/storage.c | 1 + src/textfile.c | 1 + tools/bluemoon.c | 1 + tools/hciattach.c | 1 + tools/hciattach_ath3k.c | 1 + tools/hciattach_intel.c | 1 + tools/hciattach_st.c | 1 + tools/hciattach_ti.c | 1 + tools/test-runner.c | 1 + 23 files changed, 23 insertions(+), 1 deletion(-)
android/ipc-tester.c +1 -0
@@ -17,6 +17,7 @@#include <unistd.h> #include <errno.h> #include <poll.h> +#include <limits.h> #include <sys/socket.h> #include <sys/types.h>
android/system-emulator.c +1 -0
@@ -19,6 +19,7 @@#include <stdlib.h> #include <signal.h> #include <string.h> +#include <limits.h> #include <libgen.h> #include <poll.h> #include <sys/wait.h>
android/tester-main.c +1 -0
@@ -7,6 +7,7 @@#define _GNU_SOURCE#include <stdbool.h> #include <unistd.h> +#include <limits.h> #include <libgen.h> #include <sys/un.h>
client/mgmt.c +1 -0
@@ -17,6 +17,7 @@#include <unistd.h> #include <stdlib.h> #include <string.h> +#include <limits.h> #include <sys/types.h> #include <sys/param.h> #include <sys/socket.h>
emulator/serial.c +1 -0
@@ -21,6 +21,7 @@#include <stdlib.h> #include <string.h> #include <fcntl.h> +#include <limits.h> #include <sys/param.h> #include <sys/epoll.h> #include <sys/uio.h>
emulator/vhci.c +1 -0
@@ -23,6 +23,7 @@#include <fcntl.h> #include <unistd.h> #include <dirent.h> +#include <limits.h> #include "lib/bluetooth.h" #include "lib/hci.h"
monitor/att.c +1 -1
@@ -22,7 +22,7 @@#include <inttypes.h> #include <stdbool.h> #include <errno.h> -#include <linux/limits.h> +#include <limits.h> #include <sys/stat.h> #include <glib.h>
peripheral/efivars.c +1 -0
@@ -20,6 +20,7 @@#include <string.h> #include <stdlib.h> #include <stdint.h> +#include <limits.h> #include <sys/stat.h> #include <sys/types.h> #include <sys/param.h>
profiles/audio/a2dp.c +1 -0
@@ -19,6 +19,7 @@#include <stdlib.h> #include <stdio.h> #include <errno.h> +#include <limits.h> #include <dbus/dbus.h> #include <glib.h>
src/adapter.c +1 -0
@@ -24,6 +24,7 @@#include <sys/file.h> #include <sys/stat.h> #include <dirent.h> +#include <limits.h> #include <glib.h> #include <dbus/dbus.h>
src/device.c +1 -0
@@ -22,6 +22,7 @@#include <errno.h> #include <dirent.h> #include <time.h> +#include <limits.h> #include <sys/stat.h> #include <glib.h>
src/gatt-database.c +1 -0
@@ -16,6 +16,7 @@#include <stdlib.h> #include <errno.h> #include <unistd.h> +#include <limits.h> #include "lib/bluetooth.h" #include "lib/sdp.h"
src/main.c +1 -0
@@ -22,6 +22,7 @@#include <string.h> #include <signal.h> #include <stdbool.h> +#include <limits.h> #include <sys/signalfd.h> #include <sys/types.h> #include <sys/stat.h>
src/rfkill.c +1 -0
@@ -20,6 +20,7 @@#include <stdint.h> #include <stdlib.h> #include <string.h> +#include <limits.h> #include <glib.h>
src/storage.c +1 -0
@@ -21,6 +21,7 @@#include <unistd.h> #include <stdlib.h> #include <time.h> +#include <limits.h> #include <sys/file.h> #include <sys/stat.h>
src/textfile.c +1 -0
@@ -21,6 +21,7 @@#include <stdlib.h> #include <stdarg.h> #include <string.h> +#include <limits.h> #include <sys/file.h> #include <sys/stat.h> #include <sys/mman.h>
tools/bluemoon.c +1 -0
@@ -18,6 +18,7 @@#include <unistd.h> #include <stdlib.h> #include <string.h> +#include <limits.h> #include <getopt.h> #include <sys/stat.h> #include <sys/param.h>
tools/hciattach.c +1 -0
@@ -26,6 +26,7 @@#include <termios.h> #include <time.h> #include <poll.h> +#include <limits.h> #include <sys/time.h> #include <sys/param.h> #include <sys/ioctl.h>
tools/hciattach_ath3k.c +1 -0
@@ -16,6 +16,7 @@#include <string.h> #include <ctype.h> #include <time.h> +#include <limits.h> #include <sys/stat.h> #include <sys/time.h> #include <sys/types.h>
tools/hciattach_intel.c +1 -0
@@ -19,6 +19,7 @@#include <string.h> #include <errno.h> #include <fcntl.h> +#include <limits.h> #include <sys/param.h> #include <sys/ioctl.h> #include <time.h>
tools/hciattach_st.c +1 -0
@@ -12,6 +12,7 @@#include <config.h> #endif +#include <limits.h> #include <stdio.h> #include <errno.h> #include <fcntl.h>
tools/hciattach_ti.c +1 -0
@@ -14,6 +14,7 @@#endif #define _GNU_SOURCE +#include <limits.h> #include <stdio.h> #include <errno.h> #include <unistd.h>
tools/test-runner.c +1 -0
@@ -23,6 +23,7 @@#include <string.h> #include <getopt.h> #include <poll.h> +#include <limits.h> #include <sys/wait.h> #include <sys/stat.h> #include <sys/types.h>
Signature · 1 line
2.46.0
This is automated email and please do not reply to this email!
Dear submitter,
Thank you for submitting the patches to the linux bluetooth mailing list. This is a CI test results with your patch series:
PW Link:https://patchwork.kernel.org/project/bluetooth/list/?series=890531
---Test result---
Test Summary:
CheckPatch PASS 0.41 seconds GitLint PASS 0.29 seconds BuildEll PASS 24.41 seconds BluezMake PASS 1629.00 seconds MakeCheck PASS 13.20 seconds MakeDistcheck PASS 176.75 seconds CheckValgrind PASS 250.36 seconds CheckSmatch WARNING 352.20 seconds bluezmakeextell PASS 119.12 seconds IncrementalBuild PASS 1386.76 seconds ScanBuild WARNING 982.79 seconds
Details
##############################
Test: CheckSmatch - WARNING
Desc: Run smatch tool with source
Output:monitor/att.c: note: in included file:monitor/display.h:82:26: warning: Variable length array is used.
##############################
Test: ScanBuild - WARNING
Desc: Run Scan Build
Output:emulator/serial.c:151:2: warning: Assigned value is garbage or undefined
enum btdev_type uninitialized_var(type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
emulator/serial.c:151:36: warning: Value stored to 'type' during its initialization is never read
enum btdev_type uninitialized_var(type);
^~~~
emulator/serial.c:36:30: note: expanded from macro 'uninitialized_var'
#define uninitialized_var(x) x = x
^ ~
emulator/serial.c:214:2: warning: Assigned value is garbage or undefined
enum btdev_type uninitialized_var(dev_type);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
emulator/serial.c:214:36: warning: Value stored to 'dev_type' during its initialization is never read
enum btdev_type uninitialized_var(dev_type);
^~~~~~~~
emulator/serial.c:36:30: note: expanded from macro 'uninitialized_var'
#define uninitialized_var(x) x = x
^ ~
4 warnings generated.
profiles/audio/a2dp.c:372:8: warning: Use of memory after it is freed
if (!cb->resume_cb)
^~~~~~~~~~~~~
1 warning generated.
src/gatt-database.c:1156:10: warning: Value stored to 'bits' during its initialization is never read
uint8_t bits[] = { BT_GATT_CHRC_CLI_FEAT_ROBUST_CACHING,
^~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
tools/bluemoon.c:1102:8: warning: Null pointer passed to 1st parameter expecting 'nonnull'
if (strlen(optarg) > 3 && !strncmp(optarg, "hci", 3))
^~~~~~~~~~~~~~
1 warning generated.
tools/hciattach.c:817:7: warning: Although the value stored to 'n' is used in the enclosing expression, the value is never actually read from 'n'
if ((n = read_hci_event(fd, resp, 10)) < 0) {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/hciattach.c:865:7: warning: Although the value stored to 'n' is used in the enclosing expression, the value is never actually read from 'n'
if ((n = read_hci_event(fd, resp, 4)) < 0) {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/hciattach.c:887:8: warning: Although the value stored to 'n' is used in the enclosing expression, the value is never actually read from 'n'
if ((n = read_hci_event(fd, resp, 10)) < 0) {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/hciattach.c:909:7: warning: Although the value stored to 'n' is used in the enclosing expression, the value is never actually read from 'n'
if ((n = read_hci_event(fd, resp, 4)) < 0) {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/hciattach.c:930:7: warning: Although the value stored to 'n' is used in the enclosing expression, the value is never actually read from 'n'
if ((n = read_hci_event(fd, resp, 4)) < 0) {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
tools/hciattach.c:974:7: warning: Although the value stored to 'n' is used in the enclosing expression, the value is never actually read from 'n'
if ((n = read_hci_event(fd, resp, 6)) < 0) {
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~6 warnings generated.
---
Regards,
Linux Bluetooth
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:
Hello:
This patch was applied to bluetooth/bluez.git (master) by Luiz Augusto von Dentz <[email protected]>:
Quoted 20 lines · On Sun, 15 Sep 2024 22:23:20 +0200 you wrote:
Needed for
PATH_MAX.Signed-off-by Ismael Luceno <[email protected]>--- android/ipc-tester.c | 1 + android/system-emulator.c | 1 + android/tester-main.c | 1 + client/mgmt.c | 1 + emulator/serial.c | 1 + emulator/vhci.c | 1 + monitor/att.c | 2 +- peripheral/efivars.c | 1 + profiles/audio/a2dp.c | 1 + src/adapter.c | 1 + src/device.c | 1 + src/gatt-database.c | 1 + src/main.c | 1 + src/rfkill.c | 1 + src/storage.c | 1 + src/textfile.c | 1 +
Quoted 8 lines
tools/bluemoon.c | 1 + tools/hciattach.c | 1 + tools/hciattach_ath3k.c | 1 + tools/hciattach_intel.c | 1 + tools/hciattach_st.c | 1 + tools/hciattach_ti.c | 1 + tools/test-runner.c | 1 + 23 files changed, 23 insertions(+), 1 deletion(-)
Here is the summary with links:
- Fix missing inclusion of <limits.h>
https://git.kernel.org/pub/scm/bluetooth/bluez.git/?id=cd1c6b666fa9
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html