Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use cstyle -cpP #5465

Merged
merged 1 commit into from
Dec 12, 2016
Merged

Use cstyle -cpP #5465

merged 1 commit into from
Dec 12, 2016

Conversation

behlendorf
Copy link
Contributor

Enable picky cstyle checks and resolve the new warnings. The vast
majority of the changes needed were to handle minor issues with
whitespace formatting. This patch contains no functional changes.

Enable picky cstyle checks and resolve the new warnings.  The vast
majority of the changes needed were to handle minor issues with
whitespace formatting.  This patch contains no functional changes.

Signed-off-by: Brian Behlendorf <[email protected]>
@mention-bot
Copy link

@behlendorf, thanks for your PR! By analyzing the history of the files in this pull request, we identified @ironMann, @mkjorling and @rdolbeau to be potential reviewers.

Copy link
Contributor

@inkdot7 inkdot7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, no functional changes.

For the record, non-whitespace changes found:

8 times ; to { }
fix missing ; in cmd/zed/agents/zfs_diagnosis.c
comment (confim -> confirm)
change endline , to ; in cmd/zpool/zpool_main.c
a number of /* BEGIN CSTYLED */ /* END CSTYLED */ blocks
== 0 to !
/* CSTYLED */ marker
ulong to unsigned long in module/zfs/dsl_scan.c
rearrangement of module_param lines in module/zfs/metaslab.c
add { } block around statement after for_each_online_node in module/zfs/zfs_vfsops.c

Copy link
Contributor

@dinatale2 dinatale2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@behlendorf
Copy link
Contributor Author

Thanks for careful review. @inkdot7 I'll add your nice summary of the non-whitespace changes to the commit message.

@behlendorf behlendorf merged commit 02730c3 into openzfs:master Dec 12, 2016
bzzz77 pushed a commit to bzzz77/zfs that referenced this pull request Dec 13, 2016
Enable picky cstyle checks and resolve the new warnings.  The vast
majority of the changes needed were to handle minor issues with
whitespace formatting.  This patch contains no functional changes.

Non-whitespace changes are as follows:

* 8 times ; to { } in for/while loop
* fix missing ; in cmd/zed/agents/zfs_diagnosis.c
* comment (confim -> confirm)
* change endline , to ; in cmd/zpool/zpool_main.c
* a number of /* BEGIN CSTYLED */ /* END CSTYLED */ blocks
* /* CSTYLED */ markers
* change == 0 to !
* ulong to unsigned long in module/zfs/dsl_scan.c
* rearrangement of module_param lines in module/zfs/metaslab.c
* add { } block around statement after for_each_online_node

Reviewed-by: Giuseppe Di Natale <[email protected]>
Reviewed-by: Håkan Johansson <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#5465
ironMann pushed a commit to ironMann/zfs that referenced this pull request Dec 13, 2016
Enable picky cstyle checks and resolve the new warnings.  The vast
majority of the changes needed were to handle minor issues with
whitespace formatting.  This patch contains no functional changes.

Non-whitespace changes are as follows:

* 8 times ; to { } in for/while loop
* fix missing ; in cmd/zed/agents/zfs_diagnosis.c
* comment (confim -> confirm)
* change endline , to ; in cmd/zpool/zpool_main.c
* a number of /* BEGIN CSTYLED */ /* END CSTYLED */ blocks
* /* CSTYLED */ markers
* change == 0 to !
* ulong to unsigned long in module/zfs/dsl_scan.c
* rearrangement of module_param lines in module/zfs/metaslab.c
* add { } block around statement after for_each_online_node

Reviewed-by: Giuseppe Di Natale <[email protected]>
Reviewed-by: Håkan Johansson <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#5465
@gmelikov
Copy link
Member

gmelikov commented Jan 8, 2017

@behlendorf I found illumos/illumos-gate@9a686fb is marked as No existing pull request against the master branch in OpenZFS Tracking. Maybe this PR closes it too?

@behlendorf
Copy link
Contributor Author

@gmelikov it looks like we have some but not all of the style changes proposed in illumos/illumos-gate@9a686fb. Can you open a new PR to pull in missing changes?. Note that several of the changes files aren't part of ZoL and those changes can simply be ignored.

@gmelikov
Copy link
Member

gmelikov commented Jan 9, 2017

@behlendorf thanks for information, i'll do it this week.

wli5 pushed a commit to wli5/zfs that referenced this pull request Feb 28, 2017
Enable picky cstyle checks and resolve the new warnings.  The vast
majority of the changes needed were to handle minor issues with
whitespace formatting.  This patch contains no functional changes.

Non-whitespace changes are as follows:

* 8 times ; to { } in for/while loop
* fix missing ; in cmd/zed/agents/zfs_diagnosis.c
* comment (confim -> confirm)
* change endline , to ; in cmd/zpool/zpool_main.c
* a number of /* BEGIN CSTYLED */ /* END CSTYLED */ blocks
* /* CSTYLED */ markers
* change == 0 to !
* ulong to unsigned long in module/zfs/dsl_scan.c
* rearrangement of module_param lines in module/zfs/metaslab.c
* add { } block around statement after for_each_online_node

Reviewed-by: Giuseppe Di Natale <[email protected]>
Reviewed-by: Håkan Johansson <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#5465
wli5 pushed a commit to wli5/zfs that referenced this pull request Feb 28, 2017
Enable picky cstyle checks and resolve the new warnings.  The vast
majority of the changes needed were to handle minor issues with
whitespace formatting.  This patch contains no functional changes.

Non-whitespace changes are as follows:

* 8 times ; to { } in for/while loop
* fix missing ; in cmd/zed/agents/zfs_diagnosis.c
* comment (confim -> confirm)
* change endline , to ; in cmd/zpool/zpool_main.c
* a number of /* BEGIN CSTYLED */ /* END CSTYLED */ blocks
* /* CSTYLED */ markers
* change == 0 to !
* ulong to unsigned long in module/zfs/dsl_scan.c
* rearrangement of module_param lines in module/zfs/metaslab.c
* add { } block around statement after for_each_online_node

Reviewed-by: Giuseppe Di Natale <[email protected]>
Reviewed-by: Håkan Johansson <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes openzfs#5465
@behlendorf behlendorf deleted the cstyle branch February 24, 2018 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants