wifi: iwlwifi: pcie: add size assertions
authorJohannes Berg <johannes.berg@intel.com>
Tue, 20 Jun 2023 10:03:48 +0000 (13:03 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 21 Jun 2023 12:02:14 +0000 (14:02 +0200)
commit1caa3a5e921c146cc82a674e7ef01633a142c475
tree9cbb20f0c46e377282decabb89e9b678221298ac
parent4742c732624bd2609aeb0acee38c0a126e61ed47
wifi: iwlwifi: pcie: add size assertions

Ensure that the TX command scratch fits into the buffer
provided by the first TB. It does, of course, but add
some build-time validations in case we touch this code.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Gregory Greenman <gregory.greenman@intel.com>
Link: https://lore.kernel.org/r/20230620125813.8f54f2990b92.If19a038dfd633d4601e3d44dd0ff678bc0a851e9@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/pcie/tx.c
drivers/net/wireless/intel/iwlwifi/queue/tx.c