回复:[PATCH v22 net-next 02/12] net/nebula-matrix: add core driver architecture and HW layer initializat ion

"Illusion Wang" <[email protected]>
Newsgroups org.kernel.vger.linux-doc,org.kernel.vger.linux-kernel,org.kernel.vger.netdev
Message-ID <f42bb9df-2f69-49c9-a43e-c609f430c692.Illusion.Wang@nebula-matrix.com>
(https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20260723040110.91410-1-illusion.wang%40nebula-matrix.com)
One comment asks: 
>> +void nbl_hw_remove_leonis(struct nbl_adapter *adapter)
>> +{
>> +	/* All BAR mappings & PCI regions are managed by pcim/devres,
>> +	 * no manual iounmap / release required
>> +	 */
>> +}

>since nbl_hw_remove_leonis is an empty stub function with no
>implementation, is there a valid reason to retain it (along with its prototype
>in nbl_def_h.h), or should we delete both until a subsequent patch adds actual
>cleanup logic to it?

(https://lore.kernel.org/netdev/[email protected]/)
The other comment questions whether our initialization and teardown paths should
maintain strict symmetry—every successfully initialized layer must have a matching
remove callback invoked both in runtime device removal (nbl_core_remove) and all
early error unwind branches of the init flow.


I'm a bit confused about the two Sashiko review comments on Patch 2 of this patchset:
Which piece of feedback should I follow?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.