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

Remove NV_PUBLIC #1045

Closed
wants to merge 2 commits into from
Closed

Remove NV_PUBLIC #1045

wants to merge 2 commits into from

Conversation

krader1961
Copy link
Contributor

The definition of NV_PUBLIC is wrong. It includes two symbols,
NV_NOSCOPE and NV_NOADD, that can never appear in the nvflag struct
member. So it doesn't make any sense to include them given how NV_PUBLIC
is used.

It is a no-op for two of the three places it is used. For the third use
all it does is filter out NV_NOFREE from the flag so do that explicitly.

Looking at the ksh93u+ branch its use appears to be broken there as
well. So the code has been this way for quite a while.

Related #1038

The definition of `NV_PUBLIC` is wrong. It includes two symbols,
`NV_NOSCOPE` and `NV_NOADD`, that can never appear in the `nvflag` struct
member. So it doesn't make any sense to include them given how `NV_PUBLIC`
is used.

It is a no-op for two of the three places it is used. For the third use
all it does is filter out `NV_NOFREE` from the flag so do that explicitly.

Looking at the ksh93u+ branch its use appears to be broken there as
well. So the code has been this way for quite a while.

Related #1038
I've satisfied myself that this is another symbol that does not need to
be aliased to a symbol valid for a `nvflag`.

Related #1038
@siteshwar
Copy link
Contributor

LGTM

@krader1961 krader1961 closed this Dec 5, 2018
@krader1961 krader1961 deleted the widen-nvflag branch December 21, 2018 23:12
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.

2 participants