* [PATCH v1 1/1] RDMA/mana_ib: Fix compilation error
@ 2024-04-23 20:42 Andy Shevchenko
2024-04-23 23:58 ` Long Li
2024-04-26 16:37 ` Jason Gunthorpe
0 siblings, 2 replies; 6+ messages in thread
From: Andy Shevchenko @ 2024-04-23 20:42 UTC (permalink / raw)
To: Leon Romanovsky, Konstantin Taranov, linux-rdma, linux-kernel
Cc: Long Li, Ajay Sharma, Jason Gunthorpe, Andy Shevchenko
The compilation with CONFIG_WERROR=y is broken:
.../hw/mana/device.c:88:6: error: variable 'ret' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
if (!upper_ndev) {
^~~~~~~~~~~
Fix this by assigning the ret to -ENODEV in respective condition.
Fixes: 8b184e4f1c32 ("RDMA/mana_ib: Enable RoCE on port 1")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
drivers/infiniband/hw/mana/device.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/infiniband/hw/mana/device.c b/drivers/infiniband/hw/mana/device.c
index fca4d0d85c64..4c45f8681e7f 100644
--- a/drivers/infiniband/hw/mana/device.c
+++ b/drivers/infiniband/hw/mana/device.c
@@ -88,6 +88,7 @@ static int mana_ib_probe(struct auxiliary_device *adev,
if (!upper_ndev) {
rcu_read_unlock();
ibdev_err(&dev->ib_dev, "Failed to get master netdev");
+ ret = -ENODEV;
goto free_ib_device;
}
ether_addr_copy(mac_addr, upper_ndev->dev_addr);
--
2.43.0.rc1.1336.g36b5255a03ac
^ permalink raw reply related [flat|nested] 6+ messages in thread
* RE: [PATCH v1 1/1] RDMA/mana_ib: Fix compilation error
2024-04-23 20:42 [PATCH v1 1/1] RDMA/mana_ib: Fix compilation error Andy Shevchenko
@ 2024-04-23 23:58 ` Long Li
2024-04-26 16:37 ` Jason Gunthorpe
1 sibling, 0 replies; 6+ messages in thread
From: Long Li @ 2024-04-23 23:58 UTC (permalink / raw)
To: Andy Shevchenko, Leon Romanovsky, Konstantin Taranov, linux-rdma,
linux-kernel
Cc: Ajay Sharma, Jason Gunthorpe
> Subject: [PATCH v1 1/1] RDMA/mana_ib: Fix compilation error
>
> The compilation with CONFIG_WERROR=y is broken:
>
> .../hw/mana/device.c:88:6: error: variable 'ret' is used uninitialized whenever
> 'if' condition is true [-Werror,-Wsometimes-uninitialized]
> if (!upper_ndev) {
> ^~~~~~~~~~~
>
> Fix this by assigning the ret to -ENODEV in respective condition.
>
> Fixes: 8b184e4f1c32 ("RDMA/mana_ib: Enable RoCE on port 1")
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Long Li <longli@microsoft.com>
> ---
> drivers/infiniband/hw/mana/device.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/infiniband/hw/mana/device.c
> b/drivers/infiniband/hw/mana/device.c
> index fca4d0d85c64..4c45f8681e7f 100644
> --- a/drivers/infiniband/hw/mana/device.c
> +++ b/drivers/infiniband/hw/mana/device.c
> @@ -88,6 +88,7 @@ static int mana_ib_probe(struct auxiliary_device *adev,
> if (!upper_ndev) {
> rcu_read_unlock();
> ibdev_err(&dev->ib_dev, "Failed to get master netdev");
> + ret = -ENODEV;
> goto free_ib_device;
> }
> ether_addr_copy(mac_addr, upper_ndev->dev_addr);
> --
> 2.43.0.rc1.1336.g36b5255a03ac
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 1/1] RDMA/mana_ib: Fix compilation error
2024-04-23 20:42 [PATCH v1 1/1] RDMA/mana_ib: Fix compilation error Andy Shevchenko
2024-04-23 23:58 ` Long Li
@ 2024-04-26 16:37 ` Jason Gunthorpe
2024-04-26 16:50 ` Andy Shevchenko
1 sibling, 1 reply; 6+ messages in thread
From: Jason Gunthorpe @ 2024-04-26 16:37 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Leon Romanovsky, Konstantin Taranov, linux-rdma, linux-kernel,
Long Li, Ajay Sharma
On Tue, Apr 23, 2024 at 11:42:58PM +0300, Andy Shevchenko wrote:
> The compilation with CONFIG_WERROR=y is broken:
>
> .../hw/mana/device.c:88:6: error: variable 'ret' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
> if (!upper_ndev) {
> ^~~~~~~~~~~
>
> Fix this by assigning the ret to -ENODEV in respective condition.
>
> Fixes: 8b184e4f1c32 ("RDMA/mana_ib: Enable RoCE on port 1")
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> ---
> drivers/infiniband/hw/mana/device.c | 1 +
> 1 file changed, 1 insertion(+)
This was fixed in
commit f88320b698ad099a2f742adfb9f87177bfffe0c5
Author: Konstantin Taranov <kotaranov@microsoft.com>
Date: Tue Apr 23 07:15:51 2024 -0700
RDMA/mana_ib: Fix missing ret value
Thanks,
Jason
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 1/1] RDMA/mana_ib: Fix compilation error
2024-04-26 16:37 ` Jason Gunthorpe
@ 2024-04-26 16:50 ` Andy Shevchenko
2024-04-26 16:56 ` Andy Shevchenko
2024-04-26 16:58 ` Jason Gunthorpe
0 siblings, 2 replies; 6+ messages in thread
From: Andy Shevchenko @ 2024-04-26 16:50 UTC (permalink / raw)
To: Jason Gunthorpe
Cc: Leon Romanovsky, Konstantin Taranov, linux-rdma, linux-kernel,
Long Li, Ajay Sharma
On Fri, Apr 26, 2024 at 01:37:19PM -0300, Jason Gunthorpe wrote:
> On Tue, Apr 23, 2024 at 11:42:58PM +0300, Andy Shevchenko wrote:
> > The compilation with CONFIG_WERROR=y is broken:
> >
> > .../hw/mana/device.c:88:6: error: variable 'ret' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
> > if (!upper_ndev) {
> > ^~~~~~~~~~~
> >
> > Fix this by assigning the ret to -ENODEV in respective condition.
> >
> > Fixes: 8b184e4f1c32 ("RDMA/mana_ib: Enable RoCE on port 1")
> > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> > ---
> > drivers/infiniband/hw/mana/device.c | 1 +
> > 1 file changed, 1 insertion(+)
>
> This was fixed in
Hmm... The below patch had been sent _after_ mine. What's wrong with mine patch?
> commit f88320b698ad099a2f742adfb9f87177bfffe0c5
> Author: Konstantin Taranov <kotaranov@microsoft.com>
> Date: Tue Apr 23 07:15:51 2024 -0700
>
> RDMA/mana_ib: Fix missing ret value
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 1/1] RDMA/mana_ib: Fix compilation error
2024-04-26 16:50 ` Andy Shevchenko
@ 2024-04-26 16:56 ` Andy Shevchenko
2024-04-26 16:58 ` Jason Gunthorpe
1 sibling, 0 replies; 6+ messages in thread
From: Andy Shevchenko @ 2024-04-26 16:56 UTC (permalink / raw)
To: Jason Gunthorpe
Cc: Leon Romanovsky, Konstantin Taranov, linux-rdma, linux-kernel,
Long Li, Ajay Sharma
On Fri, Apr 26, 2024 at 07:50:41PM +0300, Andy Shevchenko wrote:
> On Fri, Apr 26, 2024 at 01:37:19PM -0300, Jason Gunthorpe wrote:
> > On Tue, Apr 23, 2024 at 11:42:58PM +0300, Andy Shevchenko wrote:
> > > The compilation with CONFIG_WERROR=y is broken:
> > >
> > > .../hw/mana/device.c:88:6: error: variable 'ret' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
> > > if (!upper_ndev) {
> > > ^~~~~~~~~~~
> > >
> > > Fix this by assigning the ret to -ENODEV in respective condition.
> > >
> > > Fixes: 8b184e4f1c32 ("RDMA/mana_ib: Enable RoCE on port 1")
> > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> > > ---
> > > drivers/infiniband/hw/mana/device.c | 1 +
> > > 1 file changed, 1 insertion(+)
> >
> > This was fixed in
>
> Hmm... The below patch had been sent _after_ mine. What's wrong with mine patch?
Oh, my... Sorry, I missed PM, it was mine sent after that one!
I guess time for weekend.
--
With Best Regards,
Andy Shevchenko
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH v1 1/1] RDMA/mana_ib: Fix compilation error
2024-04-26 16:50 ` Andy Shevchenko
2024-04-26 16:56 ` Andy Shevchenko
@ 2024-04-26 16:58 ` Jason Gunthorpe
1 sibling, 0 replies; 6+ messages in thread
From: Jason Gunthorpe @ 2024-04-26 16:58 UTC (permalink / raw)
To: Andy Shevchenko
Cc: Leon Romanovsky, Konstantin Taranov, linux-rdma, linux-kernel,
Long Li, Ajay Sharma
On Fri, Apr 26, 2024 at 07:50:41PM +0300, Andy Shevchenko wrote:
> On Fri, Apr 26, 2024 at 01:37:19PM -0300, Jason Gunthorpe wrote:
> > On Tue, Apr 23, 2024 at 11:42:58PM +0300, Andy Shevchenko wrote:
> > > The compilation with CONFIG_WERROR=y is broken:
> > >
> > > .../hw/mana/device.c:88:6: error: variable 'ret' is used uninitialized whenever 'if' condition is true [-Werror,-Wsometimes-uninitialized]
> > > if (!upper_ndev) {
> > > ^~~~~~~~~~~
> > >
> > > Fix this by assigning the ret to -ENODEV in respective condition.
> > >
> > > Fixes: 8b184e4f1c32 ("RDMA/mana_ib: Enable RoCE on port 1")
> > > Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
> > > ---
> > > drivers/infiniband/hw/mana/device.c | 1 +
> > > 1 file changed, 1 insertion(+)
> >
> > This was fixed in
>
> Hmm... The below patch had been sent _after_ mine. What's wrong with
> mine patch?
It wasn't
Your's:
Date: Tue, 23 Apr 2024 23:42:58 +0300 [thread overview]
Konstantin's:
Date: Tue, 23 Apr 2024 07:15:51 -0700 [thread overview]
He beat you by 6 hours, which is why I took his, yours didn't exist at
the time I took it.
Jason
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-04-26 16:58 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-04-23 20:42 [PATCH v1 1/1] RDMA/mana_ib: Fix compilation error Andy Shevchenko
2024-04-23 23:58 ` Long Li
2024-04-26 16:37 ` Jason Gunthorpe
2024-04-26 16:50 ` Andy Shevchenko
2024-04-26 16:56 ` Andy Shevchenko
2024-04-26 16:58 ` Jason Gunthorpe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).