Repository navigation
Fix the nxstyle errors in 60 files that implement poll. - #20794
Merged
Merged
Conversation
Fix the older nxstyle errors in these files: indentation, alignment of braces and comments, and the blank line after declarations. This is a layout change only. The C tokens do not change. tools/nxstyle.c reports no error for them now. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]>
Fix the older nxstyle errors in these files: indentation, alignment of braces and comments, and the blank line after declarations. This is a layout change only. The C tokens do not change. tools/nxstyle.c reports no error for them now. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]>
casaroli
requested review from
Donny9,
GUIDINGLI,
Ouss4,
acassis,
adamfeuer,
btashton,
davids5,
gustavonihei,
jerpelea,
masayuki2009,
michallenc,
pkarashchenko,
raiden00pl,
simbit18,
xiaoxiang781216 and
yamt
as code owners
October 18, 2026 22:55
Fix the older nxstyle errors in these files: indentation, alignment of braces and comments, and the blank line after declarations. This is a layout change only. The C tokens do not change. tools/nxstyle.c reports no error for them now. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]>
Fix the older nxstyle errors in these files: indentation, alignment of braces and comments, and the blank line after declarations. This is a layout change only. The C tokens do not change, except ten pairs of braces around single statements in cc1101.c. tools/nxstyle.c reports no error for them now. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]>
Fix the older nxstyle errors in these files: indentation, alignment of braces and comments, and the blank line after declarations. This is a layout change only. The C tokens do not change, except one pair of braces around a single return statement in rpmsg_sockif.c. tools/nxstyle.c reports no error for them now. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]>
Fix the older nxstyle errors in these files: indentation, alignment of braces and comments, and the blank line after declarations. This is a layout change only. The C tokens do not change. tools/nxstyle.c reports no error for them now. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <[email protected]>
|
casaroli
force-pushed
the
nxstyle-poll
branch
from
October 18, 2026 23:13
f715e9b to
104a248
Compare
xiaoxiang781216
approved these changes
Oct 19, 2026
casaroli
marked this pull request as draft
October 19, 2026 01:38
casaroli
marked this pull request as ready for review
October 19, 2026 01:45
anchao
approved these changes
Oct 19, 2026
michallenc
approved these changes
Oct 19, 2026
🔗 Cross-repo PR dependenciesThe read-only Build run reported the following dependent PR(s) and fetched head SHA(s): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
These 60 files have older nxstyle errors (about 1000). The CI check job runs nxstyle on every touched file whole, so any change to them fails that job. A later PR changes the poll method in each of them; this PR fixes the layout first, so that the later diff stays small.
One commit per area. The change is layout only: indentation of switch bodies and statements, the blank line after declarations, comment alignment, and line breaks. The C tokens do not change, except braces that nxstyle requires around a single statement: ten in
drivers/wireless/cc1101.cand one innet/rpmsg/rpmsg_sockif.c. Each statement is a plain assignment orreturn, not a macro.drivers/usbmisc/fusb302.cis in a separate PR, #20795, because it also needs a real fix (unbalanced parentheses).Files, by commit:
arch/arm/src/common/stm32/stm32_bbsram_m3m4_v1.c,arch/arm/src/rtl8720c/ameba_hci.c,arch/arm/src/sama5/sam_tsd.c,arch/arm/src/stm32f7/stm32_bbsram.c,arch/arm/src/stm32h7/stm32_bbsram.c,arch/renesas/src/rx65n/rx65n_sbram.c,boards/arm/cxd56xx/drivers/sensors/cxd5610_gnss.c,boards/arm/sam34/sam4l-xplained/src/sam_slcd.c,boards/arm/stm32l1/stm32ldiscovery/src/stm32_lcd.c,boards/mips/pic32mx/sure-pic32mx/src/pic32mx_lcd1602.c.ads7843e.c,ajoystick.c,cypress_mbr3108.c,djoystick.c,max11802.c,mxt.c,spq10kbd.c,stmpe811_tsc.c,touchscreen_upper.c,tsc2007.c.drivers/usbdev/usbdev_fs.c,drivers/usbdev/uvc.c,drivers/usbhost/usbhost_cdcmbim.c,usbhost_hidmouse.c,usbhost_xboxcontroller.c,drivers/usbmisc/fusb301.c,fusb303.c.drivers/lcd/pcf8574_lcd_backpack.c,drivers/lcd/tda19988.c,drivers/modem/alt1250/alt1250.c,drivers/modem/u-blox.c,drivers/wireless/cc1101.c,drivers/wireless/lpwan/sx127x/sx127x.c,drivers/wireless/nrf24l01.c.fs/vfs/fs_epoll.c,fs/vfs/fs_inotify.c,net/can/can_sockif.c,net/icmp/icmp_sockif.c,net/icmpv6/icmpv6_sockif.c,net/local/local_sockif.c,net/netlink/netlink_sockif.c,net/rpmsg/rpmsg_sockif.c.drivers/analog/adc.c,drivers/analog/comp.c,drivers/i2c/i2c_slave_driver.c,drivers/misc/dev_ascii.c,drivers/misc/goldfish_pipe.c,drivers/misc/rpmsgdev.c,drivers/net/tun.c,drivers/note/noteram_driver.c,drivers/pipes/pipe_common.c,drivers/power/battery/battery_charger.c,drivers/power/battery/battery_monitor.c,drivers/serial/pty.c,drivers/spi/spi_slave_driver.c,drivers/syslog/ramlog.c,drivers/timers/timer.c,drivers/usrsock/usrsock_rpmsg_server.c,drivers/video/fb.c,drivers/video/v4l2_cap.c.Review points:
net/local/local_sockif.c: an assignment continues on lines inside#ifdef CONFIG_NET_LOCAL_STREAM/#else. nxstyle skips preprocessor lines and reads= -1;as a new statement, so both continuation lines are at column 2. Any other layout needs a token change.drivers/usbdev/uvc.c: one comment moves from under acaselabel to above it.ajoystick.c,djoystick.c,pcf8574_lcd_backpack.c,noteram_driver.c: some comments and one argument list are re-wrapped (same words, same arguments).Impact
None. No code change.
Testing
tools/checkpatch.sh -c -u -m -gpasses.cc1101.candrpmsg_sockif.c. The preprocessor lines are the same after whitespace normalization.-D__LINE__=0:objdump -dis identical for 46 objects, including the two files with braces. 43 come from a wideqemu-armv8aconfiguration;stm32_lcd.c(stm32ldiscovery:chrono),sam_tsd.c(sama5d3x-ek:nxwm) andpcf8574_lcd_backpack.c(adafruit-feather-rp2040:lcd1602) from Arm builds.ameba_hci.c,cxd5610_gnss.c,sam_slcd.c,pic32mx_lcd1602.c,spq10kbd.c,usbdev_fs.c,usbhost_cdcmbim.c,usbhost_xboxcontroller.corfusb303.c;rx65n_sbram.cneeds an RX toolchain;tda19988.cdoes not compile on master in that configuration.