[kvalo-ath:master-pending] BUILD SUCCESS f65b341f16421fea422a49bcea89275be0b1b4a7

2024-04-22 Thread kernel test robot
tree/branch: https://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git master-pending branch HEAD: f65b341f16421fea422a49bcea89275be0b1b4a7 Merge branch 'pending' into master-pending elapsed time: 931m configs tested: 143 configs skipped: 3 The following configs have been built

[kvalo-ath:ath-next] BUILD SUCCESS e1bdff48a1bb4a4ac660c19c55a820968c48b3f2

2024-04-22 Thread kernel test robot
allnoconfig gcc i386 allyesconfig gcc i386 buildonly-randconfig-001-20240422 clang i386 buildonly-randconfig-002-20240422 gcc i386 buildonly-randconfig-003-20240422 clang i386 buildonly-randconfig-004-20240422

[kvalo-ath:master] BUILD SUCCESS 264e95feb91f4c02f75e7dba7a67267b0022db2c

2024-04-22 Thread kernel test robot
gcc i386 allyesconfig gcc i386 buildonly-randconfig-001-20240422 clang i386 buildonly-randconfig-002-20240422 gcc i386 buildonly-randconfig-003-20240422 clang i386 buildonly-randconfig-004-20240422 gcc i386

Re: [PATCH wireless v2] wifi: ath10k: Fix an error code problem in ath10k_dbg_sta_write_peer_debug_trigger()

2024-04-22 Thread Su Hui
On 2024/4/22 14:53, Kalle Valo wrote: Su Hui writes: Clang Static Checker (scan-build) Warning: drivers/net/wireless/ath/ath10k/debugfs_sta.c:line 429, column 3 Value stored to 'ret' is never read. Return 'ret' rather than 'count' when 'ret' stores an error code. By the way, remove some

[kvalo-ath:ath-qca] BUILD SUCCESS 521924b116b83a7d3081bbcfec712b4b8c93cf9f

2024-04-22 Thread kernel test robot
gcc i386 allyesconfig gcc i386 buildonly-randconfig-001-20240422 clang i386 buildonly-randconfig-002-20240422 gcc i386 buildonly-randconfig-003-20240422 clang i386 buildonly-randconfig-004-20240422 gcc i386

Re: [PATCH wireless v2] wifi: ath10k: Fix an error code problem in ath10k_dbg_sta_write_peer_debug_trigger()

2024-04-22 Thread Jeff Johnson
On 4/21/2024 8:42 PM, Su Hui wrote: > Clang Static Checker (scan-build) Warning: > drivers/net/wireless/ath/ath10k/debugfs_sta.c:line 429, column 3 > Value stored to 'ret' is never read. > > Return 'ret' rather than 'count' when 'ret' stores an error code. > By the way, remove some useless code.

Re: [PATCH wireless v2] wifi: ath10k: Fix an error code problem in ath10k_dbg_sta_write_peer_debug_trigger()

2024-04-22 Thread Jeff Johnson
On 4/21/2024 8:42 PM, Su Hui wrote: > Clang Static Checker (scan-build) Warning: > drivers/net/wireless/ath/ath10k/debugfs_sta.c:line 429, column 3 > Value stored to 'ret' is never read. > > Return 'ret' rather than 'count' when 'ret' stores an error code. > By the way, remove some useless code.

[PATCH net-next v7 04/10] net: marvell: prestera: allocate dummy net_device dynamically

2024-04-22 Thread Breno Leitao
Embedding net_device into structures prohibits the usage of flexible arrays in the net_device structure. For more details, see the discussion at [1]. Un-embed the net_device from the private struct by converting it into a pointer. Then use the leverage the new alloc_netdev_dummy() helper to

Re: (subset) [PATCH RFC v2 0/4] wifi: ath10k: support board-specific firmware overrides

2024-04-22 Thread Bjorn Andersson
On Wed, 06 Mar 2024 10:16:44 +0200, Dmitry Baryshkov wrote: > On WCN3990 platforms actual firmware, wlanmdsp.mbn, is sideloaded to the > modem DSP via the TQFTPserv. These MBN files are signed by the device > vendor, can only be used with the particular SoC or device. > > Unfortunately

Re: [PATCH net-next v7 10/10] wifi: ath11k: allocate dummy net_device dynamically

2024-04-22 Thread Kalle Valo
Breno Leitao writes: > Embedding net_device into structures prohibits the usage of flexible > arrays in the net_device structure. For more details, see the discussion > at [1]. > > Un-embed the net_device from struct ath11k_ext_irq_grp by converting it > into a pointer. Then use the leverage

Re: [PATCH net-next v7 09/10] wifi: ath10k: allocate dummy net_device dynamically

2024-04-22 Thread Kalle Valo
Breno Leitao writes: > Embedding net_device into structures prohibits the usage of flexible > arrays in the net_device structure. For more details, see the discussion > at [1]. > > Un-embed the net_device from struct ath10k by converting it > into a pointer. Then use the leverage alloc_netdev()

Re: [PATCH net-next v7 08/10] wifi: qtnfmac: Use netdev dummy allocator helper

2024-04-22 Thread Kalle Valo
Breno Leitao writes: > There is a new dummy netdev allocator, use it instead of > alloc_netdev()/init_dummy_netdev combination. > > Using alloc_netdev() with init_dummy_netdev might cause some memory > corruption at the driver removal side. > > Fixes: 61cdb09ff760 ("wifi: qtnfmac: allocate dummy

[PATCH net-next v7 10/10] wifi: ath11k: allocate dummy net_device dynamically

2024-04-22 Thread Breno Leitao
Embedding net_device into structures prohibits the usage of flexible arrays in the net_device structure. For more details, see the discussion at [1]. Un-embed the net_device from struct ath11k_ext_irq_grp by converting it into a pointer. Then use the leverage alloc_netdev() to allocate the

[PATCH net-next v7 09/10] wifi: ath10k: allocate dummy net_device dynamically

2024-04-22 Thread Breno Leitao
Embedding net_device into structures prohibits the usage of flexible arrays in the net_device structure. For more details, see the discussion at [1]. Un-embed the net_device from struct ath10k by converting it into a pointer. Then use the leverage alloc_netdev() to allocate the net_device object

[PATCH net-next v7 08/10] wifi: qtnfmac: Use netdev dummy allocator helper

2024-04-22 Thread Breno Leitao
There is a new dummy netdev allocator, use it instead of alloc_netdev()/init_dummy_netdev combination. Using alloc_netdev() with init_dummy_netdev might cause some memory corruption at the driver removal side. Fixes: 61cdb09ff760 ("wifi: qtnfmac: allocate dummy net_device dynamically")

[PATCH net-next v7 07/10] net: ibm/emac: allocate dummy net_device dynamically

2024-04-22 Thread Breno Leitao
Embedding net_device into structures prohibits the usage of flexible arrays in the net_device structure. For more details, see the discussion at [1]. Un-embed the net_device from the private struct by converting it into a pointer. Then use the leverage the new alloc_netdev_dummy() helper to

[PATCH net-next v7 05/10] net: mediatek: mtk_eth_sock: allocate dummy net_device dynamically

2024-04-22 Thread Breno Leitao
Embedding net_device into structures prohibits the usage of flexible arrays in the net_device structure. For more details, see the discussion at [1]. Un-embed the net_device from the private struct by converting it into a pointer. Then use the leverage the new alloc_netdev_dummy() helper to

[PATCH net-next v7 06/10] net: ipa: allocate dummy net_device dynamically

2024-04-22 Thread Breno Leitao
Embedding net_device into structures prohibits the usage of flexible arrays in the net_device structure. For more details, see the discussion at [1]. Un-embed the net_device from the private struct by converting it into a pointer. Then use the leverage the new alloc_netdev_dummy() helper to

[PATCH net-next v7 03/10] net: create a dummy net_device allocator

2024-04-22 Thread Breno Leitao
It is impossible to use init_dummy_netdev together with alloc_netdev() as the 'setup' argument. This is because alloc_netdev() initializes some fields in the net_device structure, and later init_dummy_netdev() memzero them all. This causes some problems as reported here:

[PATCH net-next v7 02/10] net: free_netdev: exit earlier if dummy

2024-04-22 Thread Breno Leitao
For dummy devices, exit earlier at free_netdev() instead of executing the whole function. This is necessary, because dummy devices are special, and shouldn't have the second part of the function executed. Otherwise reg_state, which is NETREG_DUMMY, will be overwritten and there will be no way to

[PATCH net-next v7 01/10] net: core: Fix documentation

2024-04-22 Thread Breno Leitao
Fix bad grammar in description of init_dummy_netdev() function. This topic showed up in the review of the "allocate dummy device dynamically" patch set. Suggested-by: Ido Schimmel Signed-off-by: Breno Leitao Reviewed-by: Ido Schimmel --- net/core/dev.c | 4 ++-- 1 file changed, 2

[PATCH net-next v7 00/10] allocate dummy device dynamically

2024-04-22 Thread Breno Leitao
struct net_device shouldn't be embedded into any structure, instead, the owner should use the private space to embed their state into net_device. But, in some cases the net_device is embedded inside the private structure, which blocks the usage of zero-length arrays inside net_device. Create a

Re: [PATCH wireless v2] wifi: ath10k: Fix an error code problem in ath10k_dbg_sta_write_peer_debug_trigger()

2024-04-22 Thread Kalle Valo
Su Hui writes: > Clang Static Checker (scan-build) Warning: > drivers/net/wireless/ath/ath10k/debugfs_sta.c:line 429, column 3 > Value stored to 'ret' is never read. > > Return 'ret' rather than 'count' when 'ret' stores an error code. > By the way, remove some useless code. > > Fixes: