From patchwork Wed Mar 17 09:11:19 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 403064 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp293724jai; Wed, 17 Mar 2021 02:12:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzL7O9jEwGwuEyyTNN6O2vrhcZtkUUVD6L01Itjdv+y6HlWUQH+ZE5dq60wr9smEt7y4CrM X-Received: by 2002:a17:906:340d:: with SMTP id c13mr24226042ejb.29.1615972344074; Wed, 17 Mar 2021 02:12:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615972344; cv=none; d=google.com; s=arc-20160816; b=gcDi+XoXIvQCVNL7cJvgkILhSXQiO9+hW61iSh+wjIAI4N8V+Eqpqx1uTVWv/wgeWU WHHBdycgnb7OgRwzpP7nbQB0aRXlxlE/Zn3PZw35NutL9gyB1rYsmk4wAHZ8PttJPcq4 V6QTkqxAan/PIyICs9qVyWfU0bgTCew5YJrv1W++XM2Fc634x/Ass1GnR5a8gsYmvdsg iGKrxZ2rsAYQzNX2TeitfITLWnfN546iG9JKylj4pSt9HU3p9iJgiCLB6netCq8tfzDx fHXkNnNabDcSv7LlAjlamSHfhLL0VLIFx13ASy/Wg+FDIwLiztPuFoXX3nzG2GGXqNO/ 7l0Q== 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=RFP33+3NGj3kbw23uNVhf2j4oiXjgIpud4R67Lk32f+MRbE61nvsjsMnSE8pB33myT WHB1/NN/HH8yLPDoh2eej0D4H25NeGTGF4/ADr1WafsiPpmh8AXBBLUBXcKaGYPvuh6r 97rvw0uKYzDzNceZ7AFd7iVe02HkK8OCxJU+jqFpLeBclq4e+NyAEovy0gMNI8XiHSTH XQUdxa239cIDMGpGNy3oM44/DnGXRnuN65UcX5Lz0g1oj6g6N/V/7V56Bb+R7bdltr1j ssIfdHp/FcxJW1sGPl5sEtDa6Dd2/afFThGQ+dhv56Sk6EVJhcnx/rnkgXdFQvj9Whjw xD0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=qSOrLft8; 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 lo11si16575875ejb.60.2021.03.17.02.12.23 for ; Wed, 17 Mar 2021 02:12:24 -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=qSOrLft8; 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 S229535AbhCQJLy (ORCPT ); Wed, 17 Mar 2021 05:11:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42358 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229823AbhCQJLb (ORCPT ); Wed, 17 Mar 2021 05:11:31 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 74595C06174A for ; Wed, 17 Mar 2021 02:11:31 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id z6-20020a1c4c060000b029010f13694ba2so827784wmf.5 for ; Wed, 17 Mar 2021 02:11:31 -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=qSOrLft8oGs6hVSsCNmwZZTMED/qFbTW9EEw6QlFA09kUTI6BcJSa3donspZaTB2pI amz9oxFTpQ422j9x6M6PFn1eJDxKD29Y6EJd9jOuVD3T9vhuu9nn28QJJtJQK/5AZ6AH OG4LR0YoM4fpF6IzoyCmXsBHLOhf1RQgaeTD6cibhWx+XomtwVuDJ9S/ZNwRK1b93eq9 m7QyE7x+orCiUZQXGRX/xULU9vT0jCmB2iOM3oSVWA3AtaWwpSyGt5E1t2eD30eM9h0w 0UY1CVO8Rwf5QZn6LjG9C4ySTXoasW47tR4zp2iHUTQjMzFWzXMffLZ+c14xmz9YHTac UjrQ== 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=XLLpGrvkFXWgPtb2qfYS/aM5fKLTNgbpXzlZMwUYsHjlYaZiK/kPnN82wSmXlxY49Z ZrO0ZtbzPUHsqufpeNP7UtoLB2/lLBDU/Laj6nNg1WYkEiPNxwK43CtsiKtVVdzjGYUK /AB76p8mPtGp694V2t8LPCpQ04h5LRUovRjjE3XePo/7Qa1SuyXT6THS3VeltIrMpJ23 upXmAJQkDmH7lJ99vgDfUSLxgd7dWFs7FhBl5Hiccz2N+KJSc4vRpHgU8kgrkr/LNhkd 9jx27QOs9QFt8s1P5xD4H3ChlxU2C2+4zAEZyk6n7vOnp2XKRATBFMk4t3oCUVU0srkA 9aOw== X-Gm-Message-State: AOAM533Mx9tibIRTvx3MYMBSi5nnxb0U0hRepoo52nW5jnskvm1rFtmr w5OCueGJr6DV7aHHAoOrtqPPlg== X-Received: by 2002:a1c:3954:: with SMTP id g81mr2766758wma.170.1615972290211; Wed, 17 Mar 2021 02:11:30 -0700 (PDT) Received: from dell.default ([91.110.221.194]) by smtp.gmail.com with ESMTPSA id s83sm1709279wms.16.2021.03.17.02.11.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 02:11:29 -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 2/8] scsi: nsp32: Supply __printf(x, y) formatting for nsp32_message() Date: Wed, 17 Mar 2021 09:11:19 +0000 Message-Id: <20210317091125.2910058-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210317091125.2910058-1-lee.jones@linaro.org> References: <20210317091125.2910058-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;