Message ID | 20200707140055.2956235-8-lee.jones@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp942362ilg; Tue, 7 Jul 2020 07:01:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzk8KiXWOcvA7+WisWED/csmHmQd3dY/uOe5EYYACT4Hh3Rchnmabvm7VnY9rtXmTSIZv2W X-Received: by 2002:a50:f9c9:: with SMTP id a9mr64304324edq.89.1594130482443; Tue, 07 Jul 2020 07:01:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594130482; cv=none; d=google.com; s=arc-20160816; b=L35dxJOfzTIfS92Rf0je2B9t4CdlELPiJ2emB8ky/VrTejpD5JYQPTM+ntBkY9wplZ lbmLyhtqFjL/r3qyEQ7kQ1VfquaKx44/nQ3EEvg8CJsbho/sdHBCLQQOTS1j1h/72Mnj vmdv8/jkwvqzxSL/hWZwGUKp5BLPjQaSbLXnuf2dNDL9U+7aN0eMQq8/LW65E9qsGZoR zboDrCNP9cZPcf6x2OwWjpgKs51YuV5fZuHvQGBs6YiFB3kl9qCf2+PMKrIlLJAY2K4v nFvmZmJ4mDTXLk9rfG36Bg+JI2507BoMxHpVeh1JdyitEisHUDMdU+OqMu8qe8MXT5ss MseA== 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=SuL/Iy3i9aJ7SLBRjyYkn8G6jFvDgmCt3JP0c6V0JmE=; b=uAMByDOlPF0wkJGOXIWH5S1dR/aCMf5Y4VZYYdp7FnbZE2yymvqFF/ttMdO2tButLn K7bgVxqdJnTstNRCMv9S1OIm3xK+LQOQ+V42BVRmRp0kMLf21yXY6PeTXz3inpzq2hv1 s46T8t81b4BAfUkC7qaqFZnBHlSKiEZYxDvfAC/vaulfbIVVaAf62oO6qVBhWoAJrBu2 SfcPXVfHnonHBcqNa4eNT28MUho3XAyyH0fJxYYba4NN4kOZdrFy2DxMlTUgf3GiswqH PeuF91dTUzZl/RRIFehzJmEV5sb7beTViwWGrhUFle9hP52uzj7PmfgzvStfa9v0Ib// KBiA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KrbNLXwc; 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: <linux-scsi-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g3si16568851edn.594.2020.07.07.07.01.22 for <patch@linaro.org>; Tue, 07 Jul 2020 07:01:22 -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=KrbNLXwc; 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 S1728231AbgGGOBK (ORCPT <rfc822;patch@linaro.org>); Tue, 7 Jul 2020 10:01:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47904 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728207AbgGGOBJ (ORCPT <rfc822; linux-scsi@vger.kernel.org>); Tue, 7 Jul 2020 10:01:09 -0400 Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31B6BC08C5E1 for <linux-scsi@vger.kernel.org>; Tue, 7 Jul 2020 07:01:09 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id j4so42841568wrp.10 for <linux-scsi@vger.kernel.org>; Tue, 07 Jul 2020 07:01: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=SuL/Iy3i9aJ7SLBRjyYkn8G6jFvDgmCt3JP0c6V0JmE=; b=KrbNLXwcM8rh7ttMrR97DE+xAoJyroqlKx/hR/xRcE7XSM/PPL+3Y5pbiBajeyuHjs iwOG7qmicRXCfX9aM5vTp+l7L0enOJ2k5L9GG2WqKPgF0X/8UFD2zr8hsrCygaQB+5ew g6ICyCXsMEe62zk8uaCUHebsDC0ksQJj5YxhAI7fDooRZnuS1aSUzc8Ewr+1UJNvoLnw nS3Pw1pCEHpHltVJxgrmzM623dDKzXOJ9U+shmarEjFRGXpWilqb+I42YqXgX13E8CJG KFUAi2r8sYjC2qvzSd1/gXekLpbG6wzlgphw0M/6BVGjO3F8xguuvqcj45ujKGcKIzJv i+2g== 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=SuL/Iy3i9aJ7SLBRjyYkn8G6jFvDgmCt3JP0c6V0JmE=; b=TfTHEPFX3sJnBzglh8l3icD/bV+M2galq0RLt4sUSZdXPnnjCz+XkZF4OJmVNERLba 7I7SxKC51bCV0F2QzpOStnvPARnAnGKxk/xTWFDvljo1jPV7tjSmgnem/qPOeS1UGVO0 LcEGJaXsoWFg9ze1HjickAPOKeOEgJp33c83I42TnQDEfGrytBJPZuvjD+zqBOJDkW+U uc0QVD0+TZxlp5wwmcHGPWuTIzJ5QhVuUdFBQCemzsjsqOdrMJvdqAB+qfdyN0khLP7N VCuzBG7zFLLIhzQK8PBxNaJdHDtvFu1saDIBJ0sb1so/Xgo5GjZQJF3vt7cX/4PX95zu ogFA== X-Gm-Message-State: AOAM531b2UyzPp1kNIHmehjYRpsxPKnfDAtuPe+Fr2/PT766X5OmpxFA F89+gNHGHRJ/oomIaeF7fS+5IA== X-Received: by 2002:adf:eec8:: with SMTP id a8mr54760951wrp.421.1594130467935; Tue, 07 Jul 2020 07:01:07 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id z25sm1102823wmk.28.2020.07.07.07.01.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Jul 2020 07:01:07 -0700 (PDT) From: Lee Jones <lee.jones@linaro.org> To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Lee Jones <lee.jones@linaro.org>, YOKOTA Hiroshi <yokota@netlab.is.tsukuba.ac.jp> Subject: [PATCH 07/10] scsi: pcmcia: nsp_cs: Use new __printf() format notation Date: Tue, 7 Jul 2020 15:00:52 +0100 Message-Id: <20200707140055.2956235-8-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200707140055.2956235-1-lee.jones@linaro.org> References: <20200707140055.2956235-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org |
Series |
Fix a bunch SCSI related W=1 warnings
|
expand
|
diff --git a/drivers/scsi/pcmcia/nsp_cs.c b/drivers/scsi/pcmcia/nsp_cs.c index d79ce97a04bd7..57a78f84f97ab 100644 --- a/drivers/scsi/pcmcia/nsp_cs.c +++ b/drivers/scsi/pcmcia/nsp_cs.c @@ -134,6 +134,7 @@ static inline void nsp_inc_resid(struct scsi_cmnd *SCpnt, int residInc) scsi_set_resid(SCpnt, scsi_get_resid(SCpnt) + residInc); } +__printf(4, 5) static void nsp_cs_message(const char *func, int line, char *type, char *fmt, ...) { va_list args;
Fixes the following W=1 kernel build warning(s): drivers/scsi/pcmcia/nsp_cs.c: In function ‘nsp_cs_message’: drivers/scsi/pcmcia/nsp_cs.c:143:2: warning: function ‘nsp_cs_message’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] drivers/scsi/pcmcia/nsp_cs.c: In function ‘nsp_fifo_count’: drivers/scsi/pcmcia/nsp_cs.c:692:24: warning: variable ‘dummy’ set but not used [-Wunused-but-set-variable] Cc: YOKOTA Hiroshi <yokota@netlab.is.tsukuba.ac.jp> Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/scsi/pcmcia/nsp_cs.c | 1 + 1 file changed, 1 insertion(+) -- 2.25.1