Page MenuHomeFreeBSD

linuxkpi whitespace cleanup
ClosedPublic

Authored by emaste on Mar 23 2018, 2:47 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 17, 11:34 AM
Unknown Object (File)
Wed, Apr 17, 6:05 AM
Unknown Object (File)
Wed, Apr 17, 6:02 AM
Unknown Object (File)
Wed, Apr 17, 4:01 AM
Unknown Object (File)
Dec 20 2023, 4:37 AM
Unknown Object (File)
Dec 11 2023, 5:28 AM
Unknown Object (File)
Nov 24 2023, 2:42 AM
Unknown Object (File)
Aug 14 2023, 8:39 PM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Posting for review as a heads-up / coordinate with any WIP

Looks ok to me. I pointed out a bunch of style bugs in the modified lines, but if you prefer to just commit the mechanical change it's ok to ignore me. I'd like the linuxkpi to follow style(9) more carefully.

sys/compat/linuxkpi/common/include/linux/device.h
536 ↗(On Diff #40637)

Looks like there's an extra tab here.

sys/compat/linuxkpi/common/include/linux/jiffies.h
41 ↗(On Diff #40637)

There should be a tab after #define.

sys/compat/linuxkpi/common/include/linux/kobject.h
72 ↗(On Diff #40637)

Continuing lines should be indented by four spaces.

sys/compat/linuxkpi/common/include/linux/list.h
170 ↗(On Diff #40637)

There should be a tab after #define.

438 ↗(On Diff #40637)

While here you could add parens.

sys/compat/linuxkpi/common/include/linux/pci.h
470 ↗(On Diff #40637)

Add parens? Ditto below.

686 ↗(On Diff #40637)

Should be indented by four spaces.

748 ↗(On Diff #40637)

The indentation is wrong, ditto in pcie_cap_has_rtctl().

831 ↗(On Diff #40637)

Parens?

sys/compat/linuxkpi/common/include/linux/usb.h
68 ↗(On Diff #40637)

The whitespace still looks weird here, but that might just be an artifact of phabricator.

sys/compat/linuxkpi/common/include/net/ipv6.h
67 ↗(On Diff #40637)

Wrong indentation.

This revision is now accepted and ready to land.Mar 23 2018, 2:54 PM

There are currently no big changes pending.
Make sure you MFC these changes to 11-stable aswell.
Feel free to fix simple style issues in the lines you are touching.

This revision was automatically updated to reflect the committed changes.
emaste marked 7 inline comments as done.
sys/compat/linuxkpi/common/include/linux/list.h
438 ↗(On Diff #40637)

I left these for now as Linuxulator appears to be mostly paren-less return style; most likely the whole thing should be done in one commit.