From patchwork Wed Mar 17 08:56:49 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 403055 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp284111jai; Wed, 17 Mar 2021 01:58:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1kk5vCjqNOD+ifmGx9Qf/6scqiRO7wPHLclZXDSLH8LzVNeHDYU76IK3UgOWmlXXaWPb7 X-Received: by 2002:a17:906:af91:: with SMTP id mj17mr32970233ejb.230.1615971507803; Wed, 17 Mar 2021 01:58:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615971507; cv=none; d=google.com; s=arc-20160816; b=sEDF9YRrqUwn3yiO9LQ/5FWSLHT0H/BtzaORlaiMdM0Jqig5feUYmaBlb2rj22bI4D Xm9RXDQ58hzbZTvbEmZF4ZVntTGuU4G5y0Hrb0MflgRWzgcqS/1ArOhYFXP3nBzboSnd EThQdcm7B3vHMNYGxfxaBWqxfwFrW635IHqGxMTsAnLbmJ9BCHhIXbgMwtHes37P+675 W6QNAfC+HFwQRG7kU+1A+i66SfRUrQ07CrvlStBsLTiGJT6gTIOuEi+tmgGWBF+d6gPz wboEQzRLU6Ufb8Ral53wTz2n+0Jk2X7xFFawAvD3ldukeInl+oB9WQmZbC2de0DDbQSm ToWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=QUcUbYzVq4WAbYCHC6A4U/IWUbOjJbgRMpmZlOoFPaU=; b=h2sMBY1OyTQ6ZiIdZ8Wec38a4YxtoubZJG2mDW1hJeosGQaw6ip9f/aGv/Kb1bzKHm vOjFP8NCeC7s4dtG7SfAi3PorE1Ef542iLs/biuJQzBiFEuthIFCDoEzpnnGRJFrsadR kqsdHVxdc2/xFlu6egjk820qe7kpdWoMDQYtJOugQfmwA4DcEv+GL/OvmtfssP+86pvk 81j+5udideGCpz91RBe+NGH29YWTP4/CjcCf+S/3O0w9OpmTiOe+uoJncOVlaxO/TQLx EhueV3RV5CCvG6OQjI8x/0EuMjNPhbX9r1Vzr32BzhRSW4Kwmx7FqU8u2Y+WCsmnBFZR uN/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=D0YkNBCY; 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 kd10si15492094ejc.41.2021.03.17.01.58.27 for ; Wed, 17 Mar 2021 01:58:27 -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=D0YkNBCY; 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 S229912AbhCQI56 (ORCPT ); Wed, 17 Mar 2021 04:57:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39266 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229730AbhCQI5V (ORCPT ); Wed, 17 Mar 2021 04:57:21 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 02892C061762 for ; Wed, 17 Mar 2021 01:57:13 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id r10-20020a05600c35cab029010c946c95easo804630wmq.4 for ; Wed, 17 Mar 2021 01:57:12 -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=QUcUbYzVq4WAbYCHC6A4U/IWUbOjJbgRMpmZlOoFPaU=; b=D0YkNBCYTamiXrgPRgqVt+oGtaNIahNih1zVi3JKpExNJovdhGEzRski9jHwxTVYsS oZsaTDTrC+reO7lrS5Vk7P4YhRpbgdpgxDPYZ311JVftUG04ixF8ZvUW9GHagMdn9Ypa 1paDvFYIvxO/+sD5a076CFTNSSaxqghBAR4e5zPEIehRkZvm6loUtHO4SW4AIbczZzad 5ozQpPUQD0HjK3zxPE+Y4on2H2VdeJ38f/opy4xsRZzgAvIoa836WgjLO6FmhIWBsIFq JFKSAxClEw4wclve1ds0Ni6hI5VcExEUynhWwogfo+xLSzBJpu66LmnGz1NS4GOd3Flj aFng== 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=QUcUbYzVq4WAbYCHC6A4U/IWUbOjJbgRMpmZlOoFPaU=; b=bAT+VNtVZ//ZhBXd08NvbNlmS/zQmbcZ+JmgZZrVo7WJiybP8tUJWUF68p67KOUitj 5aqWZ91T6ndV4WWT3GVq4Hbk/XundgWOM8XRJSj9nNr9IN83JoQDthsoIAerhOVRZm7u gQYQvXvY5E23qk459izMPqtJOIY01H3vBqoIQWejmP5RskV19Ylnmdi5ZkiDh3awrrkq HF+jKDz1yNU5nnVW/rH6ZxqslYnsCo2EKMnaT/bxM0folxukLUeofFuJhuKzyfjN/gne 2G6EV1CAstKP42X2u/jqSmRnBanUFbvtnqatHHwfzK8l01YPdQObK760H7dSre1tQ1nT kk3w== X-Gm-Message-State: AOAM533EtTA/cll1oGHiUJFiUm7DZa518HkaGPXwXO9dJInBCkAe5hVv t1kssVHmTupJGOHhOXUwXtzugg== X-Received: by 2002:a1c:7406:: with SMTP id p6mr2599861wmc.103.1615971431794; Wed, 17 Mar 2021 01:57:11 -0700 (PDT) Received: from dell.default ([91.110.221.194]) by smtp.gmail.com with ESMTPSA id j123sm1807243wmb.1.2021.03.17.01.57.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 01:57:11 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, GOTO Masanori , YOKOTA Hiroshi , "James E.J. Bottomley" , "Martin K. Petersen" , gotom@debian.org, linux-scsi@vger.kernel.org Subject: [PATCH 06/18] scsi: nsp32: Supply __printf(x, y) formatting for nsp32_message() Date: Wed, 17 Mar 2021 08:56:49 +0000 Message-Id: <20210317085701.2891231-7-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210317085701.2891231-1-lee.jones@linaro.org> References: <20210317085701.2891231-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/scsi/nsp32.c: In function ‘nsp32_message’: drivers/scsi/nsp32.c:318:2: warning: function ‘nsp32_message’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] Cc: GOTO Masanori Cc: YOKOTA Hiroshi Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: gotom@debian.org Cc: linux-scsi@vger.kernel.org Signed-off-by: Lee Jones --- drivers/scsi/nsp32.c | 1 + 1 file changed, 1 insertion(+) -- 2.27.0 diff --git a/drivers/scsi/nsp32.c b/drivers/scsi/nsp32.c index e44b1a0f67099..d5aa96f05bce4 100644 --- a/drivers/scsi/nsp32.c +++ b/drivers/scsi/nsp32.c @@ -309,6 +309,7 @@ static struct scsi_host_template nsp32_template = { #define NSP32_DEBUG_BUF_LEN 100 +__printf(4, 5) static void nsp32_message(const char *func, int line, char *type, char *fmt, ...) { va_list args;