Skip to content

Commit 0ceb386

Browse files
emuslnkuba-moo
authored andcommitted
ionic: fix snprintf format length warning
Our friendly kernel test robot has reminded us that with a new check we have a warning about a potential string truncation. In this case it really doesn't hurt anything, but it is worth addressing especially since there really is no reason to reserve so many bytes for our queue names. It seems that cutting the queue name buffer length in half stops the complaint. Fixes: c06107c ("ionic: more ionic name tweaks") Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202311300201.lO8v7mKU-lkp@intel.com/ Signed-off-by: Shannon Nelson <shannon.nelson@amd.com> Reviewed-by: Brett Creeley <brett.creeley@amd.com> Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com> Link: https://lore.kernel.org/r/20231204192234.21017-2-shannon.nelson@amd.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 58d3aad commit 0ceb386

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/ethernet/pensando/ionic/ionic_dev.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ struct ionic_desc_info {
223223
void *cb_arg;
224224
};
225225

226-
#define IONIC_QUEUE_NAME_MAX_SZ 32
226+
#define IONIC_QUEUE_NAME_MAX_SZ 16
227227

228228
struct ionic_queue {
229229
struct device *dev;

0 commit comments

Comments
 (0)