From patchwork Thu Jul 23 12:24:21 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 247062 Delivered-To: patch@linaro.org Received: by 2002:a54:2c11:0:0:0:0:0 with SMTP id g17csp1148984ecp; Thu, 23 Jul 2020 05:26:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzLPJRbJbIRbkKBGeEng8NalLm7nPSzHhJgdUAzxwxVeXrWyQCHWhMxwjFxckMVYfOkTgId X-Received: by 2002:a17:906:8588:: with SMTP id v8mr4248453ejx.211.1595507216248; Thu, 23 Jul 2020 05:26:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595507216; cv=none; d=google.com; s=arc-20160816; b=Kh0yuVRw5BUpgUsz4Cwpb/YmCnRRYysV9MdYk5x4UmuUmGRdB50D0ATgaZVaGCOGPZ XiSUeKTrFD6rlLmBwzuu6WzK267YZqmoN5NlJ45B1SHpGxzLTmQqgDhiFAIB0R8z5PQp 6Ru6yXVOib5+4bID9RM9eqK9iN1/64BFSgxwZtyCAFCFp8W5xLaZM52c3NWtO0WlpFWV 0mUVqByugaffPtEcdSmmUwsz0vQqx3OYri8yHDWFmkRP63OsQAKyqxM9ZgARjFwrCRgg TECkEHQlIjOyNsf6iWI2kTFDNjki1W67MCoVZh9r76kHEJ/mhyIqzQiUgEUjgYHzFWkL nrow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=EocuI/v8dMGAgziexe3ETAgpgON59vWZbZOU+TdWcao=; b=BKevSnCxRLttXBmZklQ5xXw4OMZenDFIuJc6hyNJKbyI0X/WBUEuof10lOnCcWT1mQ 6/H/XbGvSiyEKwyNV1bf+OiniESzicMOrc1NM/rHtr+wdwZDKal5+/cbGKMSd3Xcudqq ScLtCUqZmNbehTrjhCssBpjwppSOLDPlmoO4CBQZ+4Y+Apb5WGMBRA4fKolXsDJovV/M KLlT5xXlO5zp28vyrbrovLAMUUazQVcJWiRgVCtOqL2qdOw7/ACr7O+AwlgjWjJ5jQ5u DKzCE5bkU0agCYSKMHZInC1+KPXF/Wn7p6rHasH53FsQaY3LLg+CFMugKGyV8PzjszRM pgQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S7iTBu6T; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c25si1749149ejb.6.2020.07.23.05.26.56 for ; Thu, 23 Jul 2020 05:26:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S7iTBu6T; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729128AbgGWM0r (ORCPT ); Thu, 23 Jul 2020 08:26:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728919AbgGWMZJ (ORCPT ); Thu, 23 Jul 2020 08:25:09 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1EF6DC0619E4 for ; Thu, 23 Jul 2020 05:25:09 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id z15so4955758wrl.8 for ; Thu, 23 Jul 2020 05:25:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EocuI/v8dMGAgziexe3ETAgpgON59vWZbZOU+TdWcao=; b=S7iTBu6TIjSJT9lhyIg+YJr8IZo3qTqoKB4l1HwFH6Yxl5aaRRU4n+oBwQu130P2Ks sq2howsZNiIYBIUOPdPJjji/uqA574RfrXiW+g3GQgpongvY0tmmZ5j9GDJO5IP8N0sf aI+l6KjfNk3Yp+P6QIMHWINQKS94OLgynWUI4uLFXCwoovOEmUs+kLgPBMENG4jxPOQ2 3CMxtks+EOf+T7KV/anCeQJt+/p4LoiNftuqImi2Ua9LeFcD+rx96t2pCu5DOlD1Lkeg WuUvgX3aTE+a2OETnGp4WsXka1VhtlCAK8zisNcSsoNizljQjq4qG9Jp8RYPPBb2rn5a oX4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EocuI/v8dMGAgziexe3ETAgpgON59vWZbZOU+TdWcao=; b=OUKEvzkkQpDOTYN2GiqESfd1/lBoq+yO7FexGM9rhKdjhX65sdzyjKG0XV+USilyPs c/yRiK+P6xjmp5XHt7MZ5w67HCqxmSPkxpCzo4wvXDhDiEtu9Wxh8CP3xgXyXT4r9kXw 0bJnVwWSLUpHFlAgakUuuLry3UCK3fxzRd3hqe/Kzysa1KHrlm+4FuwxSrWZxG347dZY l8f6CzY8Sg9agx/pHa4gTQDjQUf4+poPe35OZrGqkRln2pVpw3sZuADaZI6vQpEmKoWY HlxDzB1D/u7t8URPjKtnssnIqPlfLfDLFp+Pvq94EKGBef/02uYqV37g6fDiba1ikipG p27Q== X-Gm-Message-State: AOAM533X4u1wSBNuExHlCjz5TQVc6cYtQQKD1dG+o9JcMWWWEmxvt7W7 Ds6f1SWwDw9uQzd9Yb2sskusow== X-Received: by 2002:adf:c401:: with SMTP id v1mr3678093wrf.379.1595507107890; Thu, 23 Jul 2020 05:25:07 -0700 (PDT) Received: from localhost.localdomain ([2.27.167.73]) by smtp.gmail.com with ESMTPSA id j5sm3510651wma.45.2020.07.23.05.25.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 05:25:07 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Lee Jones , James Smart , Dick Kennedy Subject: [PATCH 15/40] scsi: lpfc: lpfc_init: Use __printf() format notation Date: Thu, 23 Jul 2020 13:24:21 +0100 Message-Id: <20200723122446.1329773-16-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200723122446.1329773-1-lee.jones@linaro.org> References: <20200723122446.1329773-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/scsi/lpfc/lpfc_init.c: In function ‘lpfc_dbg_print’: drivers/scsi/lpfc/lpfc_init.c:14212:6: warning: function ‘lpfc_dbg_print’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] 14212 | sizeof(phba->dbg_log[idx].log), fmt, args); | ^~~~~~ Cc: James Smart Cc: Dick Kennedy Signed-off-by: Lee Jones --- drivers/scsi/lpfc/lpfc_init.c | 1 + 1 file changed, 1 insertion(+) -- 2.25.1 diff --git a/drivers/scsi/lpfc/lpfc_init.c b/drivers/scsi/lpfc/lpfc_init.c index 20edf001fdd97..ccfae1c0c0963 100644 --- a/drivers/scsi/lpfc/lpfc_init.c +++ b/drivers/scsi/lpfc/lpfc_init.c @@ -14187,6 +14187,7 @@ void lpfc_dmp_dbg(struct lpfc_hba *phba) atomic_set(&phba->dbg_log_dmping, 0); } +__printf(2, 3) void lpfc_dbg_print(struct lpfc_hba *phba, const char *fmt, ...) { unsigned int idx;