Re: [ndctl PATCH] ndctl.spec.in: use SPDX formula for license

2024-08-21 Thread Verma, Vishal L
On Wed, 2024-08-21 at 15:02 -0700, alison.schofi...@intel.com wrote: > From: Miroslav Suchy > > According to SPEC v2, the operator has to be in the upper case. > > Reposted here from github pull request: > https://github.com/pmem/ndctl/pull/265/ > > Signed-off-by: Miroslav Suchy Looks good, R

[ndctl PATCH] ndctl.spec.in: use SPDX formula for license

2024-08-21 Thread alison . schofield
From: Miroslav Suchy According to SPEC v2, the operator has to be in the upper case. Reposted here from github pull request: https://github.com/pmem/ndctl/pull/265/ Signed-off-by: Miroslav Suchy --- ndctl.spec.in | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ndct

Re: [ndctl PATCH] ndctl.spec.in: enable libtrace{event|fs} support for Fedora

2024-08-21 Thread Dave Jiang
On 8/21/24 2:45 PM, alison.schofi...@intel.com wrote: > From: Jerry James > > As noted in https://src.fedoraproject.org/rpms/ndctl/pull-request/2, > the expression "0%{?rhel}" evaluates to zero on Fedora, so the > conditional "%if 0%{?rhel} < 9" evaluates to true, since 0 is less > than 9. The

Re: [ndctl PATCH] ndctl.spec.in: enable libtrace{event|fs} support for Fedora

2024-08-21 Thread Verma, Vishal L
On Wed, 2024-08-21 at 14:45 -0700, alison.schofi...@intel.com wrote: > From: Jerry James > > As noted in https://src.fedoraproject.org/rpms/ndctl/pull-request/2, > the expression "0%{?rhel}" evaluates to zero on Fedora, so the > conditional "%if 0%{?rhel} < 9" evaluates to true, since 0 is less >

Re: [PATCH ndctl 2/2] libndctl.c: major and minor numbers are unsigned

2024-08-21 Thread Verma, Vishal L
On Tue, 2024-08-20 at 14:26 -0400, jmo...@redhat.com wrote: > From: Jeff Moyer > > Static analysis points out that the cast of bus->major and bus->minor > to a signed type in the call to parent_dev_path could result in a > negative number.  I sincerely doubt we'll see major and minor numbers > th

Re: [PATCH ndctl 1/2] ndctl/keys.c: don't leak fd in error cases

2024-08-21 Thread Verma, Vishal L
On Tue, 2024-08-20 at 14:26 -0400, jmo...@redhat.com wrote: > From: Jeff Moyer > > Static analysis points out that fd is leaked in some cases.  The > change to the while loop is optional.  I only did that to make the > code consistent. > > Signed-off-by: Jeff Moyer Looks good, Reviewed-by: Vis

[ndctl PATCH] ndctl.spec.in: enable libtrace{event|fs} support for Fedora

2024-08-21 Thread alison . schofield
From: Jerry James As noted in https://src.fedoraproject.org/rpms/ndctl/pull-request/2, the expression "0%{?rhel}" evaluates to zero on Fedora, so the conditional "%if 0%{?rhel} < 9" evaluates to true, since 0 is less than 9. The result is that ndctl builds for Fedora lack support for libtraceeven