[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <d7d04629-941b-4efb-84ee-92fbd0f42f9c@lunn.ch>
Date: Thu, 24 Oct 2024 16:04:35 +0200
From: Andrew Lunn <andrew@...n.ch>
To: "Leizhen (ThunderTown)" <thunder.leizhen@...wei.com>
Cc: Simon Horman <horms@...nel.org>, Rasesh Mody <rmody@...vell.com>,
Sudarsana Kalluru <skalluru@...vell.com>,
GR-Linux-NIC-Dev@...vell.com, Andrew Lunn <andrew+netdev@...n.ch>,
"David S . Miller" <davem@...emloft.net>,
Eric Dumazet <edumazet@...gle.com>,
Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>,
netdev@...r.kernel.org
Subject: Re: [PATCH 1/2] bna: Fix return value check for debugfs create APIs
> Do you want to ignore all the return values of debugfs_create_dir() and debugfs_create_file()?
All return values from all debugfs_foo() calls.
debugfs has been designed so that it should be robust if any previous
call to debugfs failed. It will not crash, it will just keep going.
It does not matter if the contents of debugfs are messed up as a
result, it is not an ABI, you cannot trust it to contain anything
useful, and it might be missing all together, since it is optional.
Andrew
Powered by blists - more mailing lists