From patchwork Wed Mar 17 09:11:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 403063 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp293713jai; Wed, 17 Mar 2021 02:12:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzbsrPXkqkKXfmr3uljSZXg0924FgQEp8gUj9RjE98BmT5pgixln5ZtROq+Y18fWK8+U4MZ X-Received: by 2002:a50:fd83:: with SMTP id o3mr41793226edt.90.1615972343684; Wed, 17 Mar 2021 02:12:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615972343; cv=none; d=google.com; s=arc-20160816; b=tUFUkjPaJCRGxHsQo5fW5WO9Ysaz5pMIfAZtnJ8aRv5wJOFLkIV5lIwtnX9QEmVfL0 ixQDKqeMYQsdfv6D11A5Cb9uRUxEYjqXqASJwcMdXpW/vHQ72oBxVDHKQaQq03i8t1nL EjHkVvVWn86dZYHVfk5t0KHFEQjONXC988UxN8PyjpoRXWgVe2oSHISg/7VxBqEkLwQ1 v0XXxqPVaNQcBrlCy7l/DH0bcPrqEVEuu+/eq6qfa1PFy/zWZdSSiNl1jXcM56Y3C7Ca AdG0Sxxt+kH6pfHh/D6pIyFGWUV4Q6zrygWKyHJAuP3RtV2qlOOtRP5WtCYSuTG5GRkp choQ== 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=bN4fpSzo8exezj3x7f+Hv5XSvvEKZvIRblLuzQg15wk=; b=uGLJIHVCO5XQ7JGCGnSnd7F5uMrL5pZLnkz4Xt6rGigN0BfPYef7jFsah0lED3XTii p5nxB+EKhOF7JtxEZpuKXrWNkxiKhzFbqhuYDBh8uACctbQjPw/ZCBAJXoGWZxnf5ERH dBf4ubMyj7rWct/rgvxEkJw838BWC96R/nPvjv6p/Lju2UZv6HKDewEa99zbjw+UwGgb xw3vFTkG9X2LPxmFox7bNoQYCqnI1JGUmcR2XDf4NoM6bQOXjsU2FQWJxIDqOvKCBtXs hRZIVH5/HsbR/suIdli+BR2fY5v/vV2ivH1IHFMb7a+e4B1udpT9JrosD21opYCNIMRR EXIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VkIJrz36; 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:23 -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=VkIJrz36; 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 S229873AbhCQJLw (ORCPT ); Wed, 17 Mar 2021 05:11:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229813AbhCQJLa (ORCPT ); Wed, 17 Mar 2021 05:11:30 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8972FC061760 for ; Wed, 17 Mar 2021 02:11:30 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id j7so1008325wrd.1 for ; Wed, 17 Mar 2021 02:11:30 -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=bN4fpSzo8exezj3x7f+Hv5XSvvEKZvIRblLuzQg15wk=; b=VkIJrz36/HXe6e+FwdGdkS73nKnV9YjVMOH/+Im9wrZJGKMfaBStj8UO2zNOyszrOp Ed2mZ2zpbuY9dhE691tTGxUlMhqhqIT7skBo/1fYeJMmJW2DK3sEAELLkp/LYusolm3f qmZfeXwtXHlClMgZj0QD9srG9K1zDtA0c4OpcnrMWuCaABq1Qe3zprGSzyW3T9HfqgD6 44cy8CqbD9mS+An7QASyBFPFeIjJP43lZxtQ7/HuaaNM32FNB3qvIZiFbpxsZf3+amiX ncJ7V/aBdKh6lDFrfxoYDitOTcj1HNcfYzrYqjLmEVIbkKmmgN40lGxV7OKQkupECLlJ 8EIQ== 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=bN4fpSzo8exezj3x7f+Hv5XSvvEKZvIRblLuzQg15wk=; b=uXv/d4CNKUG8Ona7QDnCsQhrgJLEwziD60IQYKQGrBrMNbwzUlp4o/w9qU3Xn1A0KW QdFnLJBrItVdsHI431BRSc4JceMi3mV2i7C8MjkZx0rRjPv5dDi2u8KqK1LabjhyDdqb CYjxAEDPJudrZq/a44ZjD6Wga0GzTuXjPXncvc9lkwlQyjf9m7KN894xwVX8SlrTOKfH oLjrG79pEuSJ0S5Q9OLpMAb/CwE199qlP+Bt9AG0w5fQZV1lUur75nBrZCLuwDYfrEQD OUW+ZK9zKolUuOW199FZEggG1jJ12jXR63SeRZ8rlMHAcsOvP4TIyBOA0j/RU7M8kBgl UGow== X-Gm-Message-State: AOAM531sC5AjJimfQU9LjTOWW2HTIehMLCYm+6G2oSW60mM5Eq4fAeA+ oavGyIV206h/uSBGeCJMz6JQKQ== X-Received: by 2002:a5d:5906:: with SMTP id v6mr3335177wrd.137.1615972289312; Wed, 17 Mar 2021 02:11:29 -0700 (PDT) Received: from dell.default ([91.110.221.194]) by smtp.gmail.com with ESMTPSA id s83sm1709279wms.16.2021.03.17.02.11.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 02:11:28 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Khalid Aziz , "James E.J. Bottomley" , "Martin K. Petersen" , "Leonard N. Zubkoff" , linux-scsi@vger.kernel.org Subject: [PATCH 1/8] scsi: BusLogic: Supply __printf(x, y) formatting for blogic_msg() Date: Wed, 17 Mar 2021 09:11:18 +0000 Message-Id: <20210317091125.2910058-2-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): In file included from drivers/scsi/BusLogic.c:51: drivers/scsi/BusLogic.c: In function ‘blogic_msg’: drivers/scsi/BusLogic.c:3591:2: warning: function ‘blogic_msg’ might be a candidate for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format] Cc: Khalid Aziz Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: "Leonard N. Zubkoff" Cc: linux-scsi@vger.kernel.org Signed-off-by: Lee Jones --- drivers/scsi/BusLogic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 Acked-by: Khalid Aziz diff --git a/drivers/scsi/BusLogic.c b/drivers/scsi/BusLogic.c index ccb061ab0a0ad..0ac3f713fc212 100644 --- a/drivers/scsi/BusLogic.c +++ b/drivers/scsi/BusLogic.c @@ -3578,7 +3578,7 @@ Target Requested Completed Requested Completed Requested Completed\n\ /* blogic_msg prints Driver Messages. */ - +__printf(2, 4) static void blogic_msg(enum blogic_msglevel msglevel, char *fmt, struct blogic_adapter *adapter, ...) {