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, ...) { 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; From patchwork Wed Mar 17 09:11:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 403062 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp293701jai; Wed, 17 Mar 2021 02:12:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYVwes3VYeM6DJTdaqnkHcQedFPRxtQGFSLqfVkBX8vLq70cwGpestOfn2w6jGF8MMeoSK X-Received: by 2002:a05:6402:11c9:: with SMTP id j9mr40777991edw.348.1615972342704; Wed, 17 Mar 2021 02:12:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615972342; cv=none; d=google.com; s=arc-20160816; b=uzqbIZQW2hiH0VxUfgRh5Wp+QD0p5XaFSgBppQblSaz+q6rMmGRpHv8g7jFssJ0O2l WFqRPMiSC4+4/WNs4eDYt0qVjKB6YaqynCtzDK9AjW0wNKwMIBGoVDGGkO4JO/iUUREY tbm1+xBBH+z9apnyP24r6QW88Df43REn1c7E/iDG/ZKp28n2tmvJ6TugPi9bP/odLfUp 8qRLuMu0C5ISRiufA5qd8VpUXaZyFENif9S3kcendgqUZmwBlU+zs3J5g+db1RKrUHFk xyxCWliC6UQO9Pw/Ea2kX0rUU2h/5QKJi1xfSS5IzeN3M42zeZvDFgQ8LgUjIamNbrCu dnSQ== 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=Yq9LdtQSeW2MqRbyRwlDutR9JIDqTpE5NVbsv5LbNbg=; b=1FPicigBQvE8Hyk0nM2bk77i3mVtx+ihH/WlAi5IA7BETdTIoeUZEoGgwuiGxHLntZ BxvZVHayd9b5xO8207FUnp5xD6NGHcWcGROdOWScxRGU6TwyBgGEQh/O/JX2gHh2nQlo UAFNH/030VqY8AvnsIJXVyWBadxtH99y+0dLNXt4bbap69myrdazHzLx+EejcbfC9ZaG eNdlna5UMymCqbw15k9OaesLV/jPeULT8M//9GZy7CQKPpRXgWqB67wgXCwePgaEeR2P YZEmfOJuUBWNyAteXCK7xZNfT1GFK/Os2DD8jMfOB29AlNnIXC/C4fMqNOiZZFiQhOya MuOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="tpXmr/3C"; 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.22 for ; Wed, 17 Mar 2021 02:12: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="tpXmr/3C"; 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 S229878AbhCQJLx (ORCPT ); Wed, 17 Mar 2021 05:11:53 -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 S229824AbhCQJLc (ORCPT ); Wed, 17 Mar 2021 05:11:32 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61A00C061760 for ; Wed, 17 Mar 2021 02:11:32 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id e9so991890wrw.10 for ; Wed, 17 Mar 2021 02:11:32 -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=Yq9LdtQSeW2MqRbyRwlDutR9JIDqTpE5NVbsv5LbNbg=; b=tpXmr/3C3OcqQCVeq61T0tdQB5GGsCi1oEXXqsBAHnj1+8fWfYQ3PnETf0ZT0/Wwc3 FYgaiWmZdQW7HwXia9kpjpa3xGpM4zOxqAH5iraA9ZzjIfnS+mBosrDEfQTlonv83DoM jcFR93qm3o4tD7sWSCWizMLul9CH0tkp3hSUO822Q+Rn2YsAsWF7pdHyOz/RIutRMkSu hbam9GlxyOV34SBHXze1iGCQcyn1z2eAEtPANih19rc7lKHWmCpy9IqSjpZB0/btrrCL RfdydvVYMCG2CCl4clrCbv7c6haoLrVpQsFrTU7bpptlqKCz2SBvOF/m11j86/Iysviu wf1g== 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=Yq9LdtQSeW2MqRbyRwlDutR9JIDqTpE5NVbsv5LbNbg=; b=RCKpBEZW9J9BNT9GO5pmPXTyq1+JTl2ZuREO7rPmZFMHmUo4gdDWaPTX6bItZSGcir O/Lc7QU0X754c4/N6HpWn8Pv3fIzpz40LN4+vhLzuJSZbPKSSrR0A7cXdvcAtC7r9cfr yh6psZX9GFRWl7q7p/liMXia8HpsUqCJXIQnFb1QzLcbY3tHWnJt+VC3SkSHF6b7T4g3 +feQ0PevvNaY7HisMRG/dnCf0dUUItZrWBKgj0S2wdDFXC/r0YEXWueGrpUQ7sARIxxp GuuWo5CiMIeItcYFQHSf/33kPFfv1+7g6LOq/45i9cSa+/2a56oCRCRfh7M2Gqsp4jPz z9eg== X-Gm-Message-State: AOAM530sB94r/N4VLcrq8A/JeZ4z0Ev3aQ+5S7hh8N2VvblI+CF/WydT 0jBKHwZ84vQYzoaTY8XBH7zAoQ== X-Received: by 2002:a5d:5250:: with SMTP id k16mr3311603wrc.309.1615972291167; Wed, 17 Mar 2021 02:11:31 -0700 (PDT) Received: from dell.default ([91.110.221.194]) by smtp.gmail.com with ESMTPSA id s83sm1709279wms.16.2021.03.17.02.11.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 02:11:30 -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 3/8] scsi: nsp32: Remove or exclude unused variables Date: Wed, 17 Mar 2021 09:11:20 +0000 Message-Id: <20210317091125.2910058-4-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_selection_autoscsi’: drivers/scsi/nsp32.c:584:17: warning: variable ‘execph’ set but not used [-Wunused-but-set-variable] drivers/scsi/nsp32.c: In function ‘nsp32_msgout_occur’: drivers/scsi/nsp32.c:1785:7: warning: variable ‘new_sgtp’ set but not used [-Wunused-but-set-variable] drivers/scsi/nsp32.c: In function ‘nsp32_analyze_sdtr’: drivers/scsi/nsp32.c:2227:20: warning: variable ‘syncnum’ set but not used [-Wunused-but-set-variable] drivers/scsi/nsp32.c:2223:20: warning: variable ‘synct’ set but not used [-Wunused-but-set-variable] drivers/scsi/nsp32.c: In function ‘nsp32_do_bus_reset’: drivers/scsi/nsp32.c:2841:17: warning: variable ‘intrdat’ set but not used [-Wunused-but-set-variable] drivers/scsi/nsp32.c: In function ‘nsp32_getprom_param’: drivers/scsi/nsp32.c:2912:11: warning: variable ‘val’ set but not used [-Wunused-but-set-variable] 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 | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) -- 2.27.0 diff --git a/drivers/scsi/nsp32.c b/drivers/scsi/nsp32.c index d5aa96f05bce4..54abda4d07c64 100644 --- a/drivers/scsi/nsp32.c +++ b/drivers/scsi/nsp32.c @@ -581,7 +581,6 @@ static int nsp32_selection_autoscsi(struct scsi_cmnd *SCpnt) int status; unsigned short command = 0; unsigned int msgout = 0; - unsigned short execph; int i; nsp32_dbg(NSP32_DEBUG_AUTOSCSI, "in"); @@ -605,7 +604,7 @@ static int nsp32_selection_autoscsi(struct scsi_cmnd *SCpnt) /* * clear execph */ - execph = nsp32_read2(base, SCSI_EXECUTE_PHASE); + nsp32_read2(base, SCSI_EXECUTE_PHASE); /* * clear FIFO counter to set CDBs @@ -1781,8 +1780,6 @@ static void nsp32_msgout_occur(struct scsi_cmnd *SCpnt) { nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; unsigned int base = SCpnt->device->host->io_port; - //unsigned short command; - long new_sgtp; int i; nsp32_dbg(NSP32_DEBUG_MSGOUTOCCUR, @@ -1796,14 +1793,6 @@ static void nsp32_msgout_occur(struct scsi_cmnd *SCpnt) nsp32_build_nop(SCpnt); } - /* - * Set SGTP ADDR current entry for restarting AUTOSCSI, - * because SGTP is incremented next point. - * There is few statement in the specification... - */ - new_sgtp = data->cur_lunt->sglun_paddr + - (data->cur_lunt->cur_entry * sizeof(nsp32_sgtable)); - /* * send messages */ @@ -2220,17 +2209,12 @@ static void nsp32_analyze_sdtr(struct scsi_cmnd *SCpnt) { nsp32_hw_data *data = (nsp32_hw_data *)SCpnt->device->host->hostdata; nsp32_target *target = data->cur_target; - nsp32_sync_table *synct; unsigned char get_period = data->msginbuf[3]; unsigned char get_offset = data->msginbuf[4]; int entry; - int syncnum; nsp32_dbg(NSP32_DEBUG_MSGINOCCUR, "enter"); - synct = data->synct; - syncnum = data->syncnum; - /* * If this inititor sent the SDTR message, then target responds SDTR, * initiator SYNCREG, ACKWIDTH from SDTR parameter. @@ -2838,8 +2822,8 @@ static int nsp32_eh_abort(struct scsi_cmnd *SCpnt) static void nsp32_do_bus_reset(nsp32_hw_data *data) { unsigned int base = data->BaseAddress; - unsigned short intrdat; int i; + unsigned short __maybe_unused intrdat; nsp32_dbg(NSP32_DEBUG_BUSRESET, "in"); @@ -2909,7 +2893,8 @@ static int nsp32_getprom_param(nsp32_hw_data *data) { int vendor = data->pci_devid->vendor; int device = data->pci_devid->device; - int ret, val, i; + int ret, i; + int __maybe_unused val; /* * EEPROM checking. From patchwork Wed Mar 17 09:11:21 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 403065 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp293737jai; Wed, 17 Mar 2021 02:12:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxTXBH8GbGVeqMycMq0vVXraxBXnVFN/B2puRmEIN8DvtJ7iQxGGRhqXhRtrjQgZuhEgDjI X-Received: by 2002:a17:906:39cf:: with SMTP id i15mr34400125eje.534.1615972345184; Wed, 17 Mar 2021 02:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615972345; cv=none; d=google.com; s=arc-20160816; b=ksWvd1zA2MvuqJTGtcQLM1NKNJm4Mh0Hlt3Lt8vs3ofpts7LaJjnftq7IqaF+YrG4f 2yfSOqnNLc9UWzw9nl36hsADZGAvIRU0Nt0Vx/nkdxEwwasvvFDuYBePT+EBdQ3yRnMb 8V3jGtNwGNUP3Kav9uchckzyZuXePq2xIc4PWwHoLtyaFre1l1oqX9QWgYayvCdNyMkP Ko3jlIB3j20Cq8AVOc2NJK5HjKU/kStODgchMG7pcvCUMhPm3rnLgFsgLhwrCeex8mJi HPXoBeWZEeMyhm6j/TmFjBfIyL27vMVQ7/mu3K6SMVd5missHr0swTlnnfilPKfGNMMI SCdQ== 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=RHS0YjWdwFJSN1VWVbYNsptYDs5Fwc3UmjtJJxuBnoI=; b=XJoBBsawT92A4dlx5ULH0ulC1pMnFYWsCG46ntXHTQn/Uh1MbUCJoad7Kd2piMI/xI ZkQvVheeu+NtyzwYxljWc2M3S5ZgByaEjk0agxjnJ3k4xXlxstF0cIDrNpSFOVbcUttu o0/5o38LnuNG3elj4/uj24B47kYFk8kvNj6fuc4mv+8wUDWXFYICGtF6Sf0p57z9T1wY HzFc5H1lmuRoU4GfbBdAERHaBY++rLKBNsMGARHlUBjX71ZeIFVlgS1e06bajym0LVkP MCFQyJidStI+IrOb5avK/DQQ1hitVemPQCZFqeOAyMu/ZJKTKx+hYXNjNVdEancTvFar xxRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MjWxRv6k; 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.25 for ; Wed, 17 Mar 2021 02:12:25 -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=MjWxRv6k; 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 S229889AbhCQJLy (ORCPT ); Wed, 17 Mar 2021 05:11:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229831AbhCQJLe (ORCPT ); Wed, 17 Mar 2021 05:11:34 -0400 Received: from mail-wm1-x32e.google.com (mail-wm1-x32e.google.com [IPv6:2a00:1450:4864:20::32e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B14AAC061762 for ; Wed, 17 Mar 2021 02:11:33 -0700 (PDT) Received: by mail-wm1-x32e.google.com with SMTP id r15-20020a05600c35cfb029010e639ca09eso2949310wmq.1 for ; Wed, 17 Mar 2021 02:11:33 -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=RHS0YjWdwFJSN1VWVbYNsptYDs5Fwc3UmjtJJxuBnoI=; b=MjWxRv6k5hwZ7z+yy2GEto8m0k1ZTUoQHP4n+U62lGEzb55ZY8hmVQdepdlLI8bOCS vqOfFQpyywjCJk49Dt2+D0lFqtkpSvO44Po84uDduEu2INKSYC9hkniJsmSObBtinMi8 IHtWrXlK0LGbg+hDra/UnyBbhh9yCHwF4V133NENV0Tvi9xY5OKTeE6wrlP1bHtfuKGX 7P3LRKNeAkzJzpthui5wmwBWpLuKauVWmtg291gSkziJMTbFUah+20zXjeZXsgpazPAS oSjVRW59brJkF13KhMcfNg1qiIDNad4hl2belSbdcRhrs8H1pMFq2/pE9CHFw+kh2+Aq TxEA== 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=RHS0YjWdwFJSN1VWVbYNsptYDs5Fwc3UmjtJJxuBnoI=; b=LUVdaw200G8+ULCTk2ytuPhT71oB6hCPoGRoiHRtCZL30nwZz/hr44Ib26SFIVbY2l yvEL30ZD5y6tpOoEfvnMFCSZDf0r7PsG25TPvk2Gdg0NULiajBiCOFwGSIvOOFBmwHRu 54LjXBEDSyYVM9wTdZlJEXRMZbH18i/r4912Mv1NLueczGvnqQjj3gmTGzUWshT/MgsQ E3VKhoGlPbYVAmNR+uwJpNRDjWtLaI3WmFc2aa6kPlN30aZwPg8W5+i9Q6U/bOPRxmRZ Cg0IMQ27GlC02PbzidhPvIMFOzta7QBZikDz0VWYF/w5FJOXa0RjBvaEjkd6vm1UlFML ubmA== X-Gm-Message-State: AOAM533wxzwb8jOjJEV8s3C057y2+RJsYS7FKUT0U72NixcvnELpoqnv Kn+EFxIGk5U2SERrJ+jxKCsKtg== X-Received: by 2002:a1c:2857:: with SMTP id o84mr2675735wmo.181.1615972292529; Wed, 17 Mar 2021 02:11:32 -0700 (PDT) Received: from dell.default ([91.110.221.194]) by smtp.gmail.com with ESMTPSA id s83sm1709279wms.16.2021.03.17.02.11.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 02:11:31 -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" , linux-scsi@vger.kernel.org Subject: [PATCH 4/8] scsi: FlashPoint: Remove unused variable 'TID' from 'FlashPoint_AbortCCB()' Date: Wed, 17 Mar 2021 09:11:21 +0000 Message-Id: <20210317091125.2910058-5-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/FlashPoint.c: In function ‘FlashPoint_AbortCCB’: drivers/scsi/FlashPoint.c:1618:16: warning: variable ‘TID’ set but not used [-Wunused-but-set-variable] Cc: Khalid Aziz Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: linux-scsi@vger.kernel.org Signed-off-by: Lee Jones --- drivers/scsi/FlashPoint.c | 4 ---- 1 file changed, 4 deletions(-) -- 2.27.0 Acked-by: Khalid Aziz diff --git a/drivers/scsi/FlashPoint.c b/drivers/scsi/FlashPoint.c index f479c542e787c..0464e37c806a4 100644 --- a/drivers/scsi/FlashPoint.c +++ b/drivers/scsi/FlashPoint.c @@ -1615,7 +1615,6 @@ static int FlashPoint_AbortCCB(void *pCurrCard, struct sccb *p_Sccb) unsigned char thisCard; CALL_BK_FN callback; - unsigned char TID; struct sccb *pSaveSCCB; struct sccb_mgr_tar_info *currTar_Info; @@ -1652,9 +1651,6 @@ static int FlashPoint_AbortCCB(void *pCurrCard, struct sccb *p_Sccb) } else { - - TID = p_Sccb->TargID; - if (p_Sccb->Sccb_tag) { MDISABLE_INT(ioport); if (((struct sccb_card *)pCurrCard)-> From patchwork Wed Mar 17 09:11:22 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 403069 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp293769jai; Wed, 17 Mar 2021 02:12:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzd8trkCbVrKKDZ3B2TvGt8XoCetbVF88LGHoVkodCx2kq0Qp6ayMitDX4lfBV3lHlNV58H X-Received: by 2002:a17:906:340d:: with SMTP id c13mr24226303ejb.29.1615972348225; Wed, 17 Mar 2021 02:12:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615972348; cv=none; d=google.com; s=arc-20160816; b=RyjMWMINrpY7eJte6stViGYeNQS9K33A0zy00+pmuDwf333iRnJuFdeeDHYHJvn9IN pODoX7v5Pt0ojom8BFCxnSyMWuOVC0rOj0fpDM5VLSQqLXYv5ZAMQx/dyPYI3c0R+Sqy dBo394IjXjD0TKnHs5bi2vjK6rHNSIsPVOpv89XPHbGqK6LdGLdHJHdHzDZ4toGzVPZQ JovQjNkf2JQ3GIoxhIMsSSoVmQgyqm2OWyL1GMCR2blIdnWS+jCfm7jECoyFK0oS/aJF 8/cgHPTBX/3ps8wOiXevD0UzoWKwObUW1iSf5DAwicTbfeSQuCdC6JNb37qO+FI88yAB coUQ== 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=uknjZgyKbyTHbovaIRwNwS9vIyXMZbr0zBj7lwglxO0=; b=U4VOhlPPFEzbECHEz9Z01MIhY+ohCNva+dxM585OwQDBNMdYlfmhVOJz6Eu/hEiLGG cOmMfGyqq7qTWvuYu8O7OTVaHMeDfODg4aY0zYRY2cFFsJ0wTU8PQ53OGGW6nU+u0tvz JE6HASAL2t6ZKgAbjtfGaHOKQFYV/MwEjZq0NvD6vSWJgIij/RR+5A9jfvJPVVYFrzTR xPRWbG/uky0gjMJ6aic8E1v1GK/EOAljzW+m8lydI3LhDcw9ePCjUEHAHqUs43VcB3vT 0c9qhnCfkzFuk6QxKUg9v8LbF6T8Yp8b6vpPehWKyBUs0/2wFDgeaTDMy70aVucN8Rx5 RiKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xFn8GvAU; 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.28 for ; Wed, 17 Mar 2021 02:12:28 -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=xFn8GvAU; 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 S229926AbhCQJL6 (ORCPT ); Wed, 17 Mar 2021 05:11:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229863AbhCQJLq (ORCPT ); Wed, 17 Mar 2021 05:11:46 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A09CAC061762 for ; Wed, 17 Mar 2021 02:11:34 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id e18so999522wrt.6 for ; Wed, 17 Mar 2021 02:11:34 -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=uknjZgyKbyTHbovaIRwNwS9vIyXMZbr0zBj7lwglxO0=; b=xFn8GvAUxi6WQSIWeNqixwpfKw+XBtKnS8kgljV6CdV2A2sdS7J9yWgXRgTFOKy09Y vETvO9WEHu1Zid6vcWuhSQBKIuIPNhbOlHXpm9EG5tw/oqKyGigGAlRvzX+rMIeq7Bbk qvKL84UQudO+SoX856yKs8+nAR8KeYl2AERaO8NnfJUezD3x/6yVOMXYoDmt/Vtcbec7 4nD0n0mzZit+6NSh3Hn7C9t1Cf2qvx3mZMYf1ptDutayOnL5I+4rG/H9TacCu7SnQYwg R9NdzaY5S6rjzkBfwSjfWEkP0K5zv2WYnlpQB2hGnmV1wvoDMPJvXCgNjfeazitgEOWh bILQ== 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=uknjZgyKbyTHbovaIRwNwS9vIyXMZbr0zBj7lwglxO0=; b=ILYkJio4OQ8/rBTWENtF0C4oAQ+oZTOIB9adT3Rnk8oeLgSJTNFvtlOy7QkxHFOer1 lTJ7g2xALJ5U1CA57fDykXmHBl4KVmzNOl3eFH22OPQKSbLCPWqZw3rRRhK9q91X/0Uv /ZRH1icMehd/tr+iuFS13o1pIt6hyGOeLOjgUU3LHeETswdM9XlbqlhOGZ4bJTw/iTNd TDs3wnlhvvH16Vy5nDm6SvVnNr4z0HZZiZ55CzpZxDY3R8yXfOOUQ4YDRLUgHQtDypEb ZT3mAs4BCLVWOGOkW5UQrXb+Gl9VOkZb9LWAK1zMuvp/OiK19UhjEqueypo4qWZ3SFEi t8qg== X-Gm-Message-State: AOAM533xTStTBAUqtBuWVSZ8FZFnGw8yZ8RXWYOJzvV+Klkhw05kAulE 23nxY4cbrFPWaAn/q/eZnQTMnw== X-Received: by 2002:adf:ec46:: with SMTP id w6mr3237005wrn.213.1615972293434; Wed, 17 Mar 2021 02:11:33 -0700 (PDT) Received: from dell.default ([91.110.221.194]) by smtp.gmail.com with ESMTPSA id s83sm1709279wms.16.2021.03.17.02.11.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 02:11:33 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, "James E.J. Bottomley" , "Martin K. Petersen" , Richard Hirst , c by , linux-scsi@vger.kernel.org Subject: [PATCH 5/8] scsi: sim710: Remove unused variable 'err' from sim710_init() Date: Wed, 17 Mar 2021 09:11:22 +0000 Message-Id: <20210317091125.2910058-6-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 Take the opportunity to rework the comment a little. Fixes the following W=1 kernel build warning(s): drivers/scsi/sim710.c: In function ‘sim710_init’: drivers/scsi/sim710.c:216:6: warning: variable ‘err’ set but not used [-Wunused-but-set-variable] Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: Richard Hirst Cc: c by Cc: linux-scsi@vger.kernel.org Signed-off-by: Lee Jones --- drivers/scsi/sim710.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) -- 2.27.0 diff --git a/drivers/scsi/sim710.c b/drivers/scsi/sim710.c index 22302612e032b..e519df68d603d 100644 --- a/drivers/scsi/sim710.c +++ b/drivers/scsi/sim710.c @@ -213,21 +213,19 @@ static struct eisa_driver sim710_eisa_driver = { static int __init sim710_init(void) { - int err = -ENODEV; - #ifdef MODULE if (sim710) param_setup(sim710); #endif #ifdef CONFIG_EISA - err = eisa_driver_register(&sim710_eisa_driver); + /* + * FIXME: We'd really like to return -ENODEV if no devices have actually + * been found. However eisa_driver_register() only reports problems + * with kobject_register() so simply return success for now. + */ + eisa_driver_register(&sim710_eisa_driver); #endif - /* FIXME: what we'd really like to return here is -ENODEV if - * no devices have actually been found. Instead, the err - * above actually only reports problems with kobject_register, - * so for the moment return success */ - return 0; } From patchwork Wed Mar 17 09:11:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 403068 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp293756jai; Wed, 17 Mar 2021 02:12:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxrROGgoiAELFJLQURSPXD+aChySpzLc5livxzrBRsuLZVCz/MXCIP4ufRFA7m25aJcpn7c X-Received: by 2002:aa7:dd97:: with SMTP id g23mr40413612edv.154.1615972347531; Wed, 17 Mar 2021 02:12:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615972347; cv=none; d=google.com; s=arc-20160816; b=n8ksFk6idgLx7jVaYLmnO06l9YUmZsLS+ERoG4XpfL8/N6c1P0xMzGqfT5BNlujWX+ JvoRDEgwMoIuAyvWOrgbX6uTyYOsdndKwPEEkCEMNTs/jKFbR7k2/3VNsl8FlbybvQO0 VdJp6uWlsHPjNN/aGT32liCJKjOqlxXnjQwPv0S6hE197Uh/YsExtfxttuBXNKhayIwK 1HLVizwdjGwkDDmvv7O8V5x0qJ7oME9OyAXuF4iDWoi7kTS34TG3e0eoaWqp8TQwXNAx rlcmzC9pK5mT4xr+u/sfs39eMYAL85jyaWXlZdwf8VLUXdbhsVdpJ00Yx5zDIFxXoN4K gIWA== 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=omHoCGEAHHfzGsCXWaSPZZFL53Kydw/eMLAhlkpH1KI=; b=qrczIWbc3+Znd+ytJFelAPkFr9F5uXv3TGTXg3CJmUe0xq1QRec5buLZflZ2KciL4g svW07z7ND2oZFrk/aBUS+6CxgpCCUgNUEZ8KeiYGqDzwdSSdqOkf4+D4RxalTa/dzriv du/K5tQiJ7wCjuNKDKP7N4O9xn2vl+vdc+jdIDdDCmX97hOOW/sK212JZ0vBMuBKacH6 pv/u5dFUO9RCSsMiVaWTMdpuGeMMrIlikL91w3JPpj79m2BLHeffF9RCPsgV6EXpeCwO vEyohvbxvQmnZQChtZF71JHVSKEi9GltgPL2Ye9nWr6AJbw7/ms07sy9fFAvS1lQg9av lyFg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=NOs1xeXi; 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.27 for ; Wed, 17 Mar 2021 02:12: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=NOs1xeXi; 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 S229908AbhCQJL4 (ORCPT ); Wed, 17 Mar 2021 05:11:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229840AbhCQJLg (ORCPT ); Wed, 17 Mar 2021 05:11:36 -0400 Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9EC61C061760 for ; Wed, 17 Mar 2021 02:11:35 -0700 (PDT) Received: by mail-wr1-x42a.google.com with SMTP id 61so987415wrm.12 for ; Wed, 17 Mar 2021 02:11:35 -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=omHoCGEAHHfzGsCXWaSPZZFL53Kydw/eMLAhlkpH1KI=; b=NOs1xeXimZT1FQY+Ocg69tjJxLZq/xMp3D5060fTK4rW+F/DEsGLmdmyXIHTzt1f9Z 7ak1G7Rbtp8ULeiqAZxM4ipL7uGSXIrNT4wrhcDHpFI2ZMZObqN9JtH68SFyhmVxA+yP hBKqtQ8L0Vize5FdnfU8pGnTAVqtvVctIWXtdoXhSrlJkZrKF5QCg3z3rZZke50toe6v Gv3ya0UhriLKS8776/30epLokDBbALSBn3k9DyHz+V/G78qxPkOJCMzGXR0kFryI/Ybb QFR9AH4sJrHIBG7xnKQObLDfnfd8zx6Vw2x5moOnzUa/336kofXchmRKpDt5SVn4/oRM U6+A== 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=omHoCGEAHHfzGsCXWaSPZZFL53Kydw/eMLAhlkpH1KI=; b=t9S0AWvsSsK1MURl2Yaq3ZYv8HEbf5BG4kBrefTatLfH6b3Quls54LQDOYcFFUMSKF ESm5Sic8XIGnJrWjrg1AzDw8rlI5pm2GAK8zVXR7oNW8H1QGUeYG0CekBNsXl15pKn7Z YAHZe5vFH4z9m0UNc1oGxUjSpxrBEpD4CelayrjXy9g5XVBeFUSd2YMl9CSnFTR+5zxQ 9knsTIMnmVmpyf1Vnvkk/46FG2tPPJn6u/0VgJEp1zDf5pZj57NpwoXVvlwBtzqQ1J07 vNjCJGnWcw9HixKWf1mkbjpfbemHTGWXFDXdv8lNO1Duy5/dvcIjB9PSxI8r1K4a76CJ LJlA== X-Gm-Message-State: AOAM533UG7ze5XuJ07yJ9gFwj55Sns+CjgHWtbDBWcZSwZMkf3FY9H9z 92Le2K6zVLYSVf5zkWwN1BGpqQ== X-Received: by 2002:a5d:6290:: with SMTP id k16mr3161670wru.177.1615972294389; Wed, 17 Mar 2021 02:11:34 -0700 (PDT) Received: from dell.default ([91.110.221.194]) by smtp.gmail.com with ESMTPSA id s83sm1709279wms.16.2021.03.17.02.11.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 02:11:33 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Artur Paszkiewicz , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org Subject: [PATCH 6/8] scsi: isci: remote_device: Make local function isci_remote_device_wait_for_resume_from_abort() static Date: Wed, 17 Mar 2021 09:11:23 +0000 Message-Id: <20210317091125.2910058-7-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/isci/remote_device.c:1387:6: warning: no previous prototype for ‘isci_remote_device_wait_for_resume_from_abort’ [-Wmissing-prototypes] Cc: Artur Paszkiewicz Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: linux-scsi@vger.kernel.org Signed-off-by: Lee Jones --- drivers/scsi/isci/remote_device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 diff --git a/drivers/scsi/isci/remote_device.c b/drivers/scsi/isci/remote_device.c index c3f540b556895..b1276f7e49c89 100644 --- a/drivers/scsi/isci/remote_device.c +++ b/drivers/scsi/isci/remote_device.c @@ -1384,7 +1384,7 @@ static bool isci_remote_device_test_resume_done( return done; } -void isci_remote_device_wait_for_resume_from_abort( +static void isci_remote_device_wait_for_resume_from_abort( struct isci_host *ihost, struct isci_remote_device *idev) { From patchwork Wed Mar 17 09:11:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 403066 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp293742jai; Wed, 17 Mar 2021 02:12:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwq3HTjQ3X5IYkDzF74ENte9BsVfveXcQO1VkTGIm78oskf3XMZ9hJW+3H4Cr0RCd9EV2R X-Received: by 2002:a17:907:629e:: with SMTP id nd30mr24071592ejc.407.1615972345506; Wed, 17 Mar 2021 02:12:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615972345; cv=none; d=google.com; s=arc-20160816; b=wByu5VprCVVx9M2GZDl4fExLRlMrepZRDFIL8/TB7kd12rlF1DE3SU7rsNbg1J158F XozLWMe44hKW6L15cD+rQEqqhycBXsGtDoSPfVe1RbzrRNSDCEYsfmmI0ArbyxwLVte3 lmXiwqWRn8An7G7T+MPZ/tx5QbYK5EEv9RpAc+PJRg/G46fQPSMrApk0WjnjaBVVVjpT 7XC4USaNztooBJ2nbYU6x+zsjJObIlOWNphobBTy3cN1AYP406lnfPCjyeTvjNlTF7UG H0KiHtF4C3TuWHyR1eQCgDiCOFoSLkPiAdBOLIoyq020FnkXh98HN2JAkPJt1T8neKp/ GksA== 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=tIEkLMKAtbUUByHxgsDytjqimEjUNe0j+Mn0l5iX50M=; b=fxh+4JKdtxX2xRuob1X0NI/8eI8paFigfClNzMdVfcVtSc93FduZOfTfzN+bltZaBw CgOq14RlfBVOkBr/oAexeUUDoFewQkxOpV8KLFnJ6XCJVUl5sPCfgyqOx+vLrs7eRH9x tWVqcMA9mDaz5Kd1PkUN4ka54T29Plq5YBNgkk47kkgd9F1ACLmS9LbbOOQn+MqC8Ocj 3R+guSXq4HeMYU5b4Q5tiGSvIFl64Bxi/OpSOpAYiuiPj4tRXs0EHGfkifzFlMCDwlvP Z8MnyERkdpw632608fyEIHIaeKfLJnNpcmRozqif9ulrAx4gUu18W89e3jUpTezSwjlV sxGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=beT5usMG; 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.25 for ; Wed, 17 Mar 2021 02:12:25 -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=beT5usMG; 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 S229900AbhCQJLz (ORCPT ); Wed, 17 Mar 2021 05:11:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42374 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229845AbhCQJLg (ORCPT ); Wed, 17 Mar 2021 05:11:36 -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 70095C061763 for ; Wed, 17 Mar 2021 02:11:36 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id g8so1011102wmd.4 for ; Wed, 17 Mar 2021 02:11:36 -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=tIEkLMKAtbUUByHxgsDytjqimEjUNe0j+Mn0l5iX50M=; b=beT5usMG3If2KF1utJqGVevHtxdNjcQepVLaxWYxU1o3CpqNnj4tOgQTOQbx9uvuLX XAhIUvVibTUp+QlH5m+orjgjE/+qs/LKGKnd2ek1DXKyzpkUCLq1FAU8PhKV38RtXpqb P6uU8D4hoC+FnIoDIvHhFK5CN/uF9UneLa7ytP9q77xdL6XbiQCKM437reUVhm4Iud5p +kIQ2VSGGI6U9A7m/wjWyEcD5WBQ49pNr7Jays6D6HECETN3wCNkcaEVg8177PEFoJvO pWkHO/n/Quxy+54eNEpA5SnYpHALHwveSqjT8auzMH+onsAsK5jRKETYKNXix+ZJfFU3 ZrWg== 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=tIEkLMKAtbUUByHxgsDytjqimEjUNe0j+Mn0l5iX50M=; b=L9EM3wC28blBzSHPAPhilWEdZHoz2GPY7o985g60QUM/LR6WH47Sg9EjEs5PR7UBUf ajsQH0ygx9/ZAG1EjSU6z5Pel0lWNq7WqwOxV6SNkLxT2NIJahoTLwSns3n6OkHHq9pY nsa8/crBGI5whlzM6UaRS3iCtlpBLnTVc0xmO9awhaTHMU/tDwAJnwnWtFkCdwruiGn1 Urx7cmtKmOz/52WFULg8vnZmq4413RN+5IX1BJc3suZOtST9A/hVcSjg2IHkK2TcixR/ Te4Oey2EGtwy2nh0mtKu9iGkzIBqfP6qZQBp+OTyFAf2KiqfY6gh/2TDFYPb2EqQjNkH eCsA== X-Gm-Message-State: AOAM53347BxvysJQYkqyVNeX2dgbD7LUDDKcHUZXXgB99jdiJ0dpiOfE 4tqYOFfRg1ScekykkwM1KdLbGw== X-Received: by 2002:a1c:318b:: with SMTP id x133mr2752054wmx.154.1615972295255; Wed, 17 Mar 2021 02:11:35 -0700 (PDT) Received: from dell.default ([91.110.221.194]) by smtp.gmail.com with ESMTPSA id s83sm1709279wms.16.2021.03.17.02.11.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 02:11:34 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Artur Paszkiewicz , "James E.J. Bottomley" , "Martin K. Petersen" , linux-scsi@vger.kernel.org Subject: [PATCH 7/8] scsi: isci: port: Make local function 'port_state_name()' static Date: Wed, 17 Mar 2021 09:11:24 +0000 Message-Id: <20210317091125.2910058-8-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/isci/port.c:65:13: warning: no previous prototype for ‘port_state_name’ [-Wmissing-prototypes] Cc: Artur Paszkiewicz Cc: "James E.J. Bottomley" Cc: "Martin K. Petersen" Cc: linux-scsi@vger.kernel.org Signed-off-by: Lee Jones --- drivers/scsi/isci/port.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.27.0 diff --git a/drivers/scsi/isci/port.c b/drivers/scsi/isci/port.c index 448a8c31ba359..5a362ba76d63f 100644 --- a/drivers/scsi/isci/port.c +++ b/drivers/scsi/isci/port.c @@ -62,7 +62,7 @@ #undef C #define C(a) (#a) -const char *port_state_name(enum sci_port_states state) +static const char *port_state_name(enum sci_port_states state) { static const char * const strings[] = PORT_STATES; From patchwork Wed Mar 17 09:11:25 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 403067 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp293753jai; Wed, 17 Mar 2021 02:12:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1JcCbTsOPPvh/afmSKz7idkt3Vd+BkwsTuCLIylWciFHb9INFQjQmgOoJpQxIUXh5rokd X-Received: by 2002:aa7:cb0a:: with SMTP id s10mr40515902edt.36.1615972347221; Wed, 17 Mar 2021 02:12:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615972347; cv=none; d=google.com; s=arc-20160816; b=CCrGpSKecCTLD2E9LVG7476fYumE5B8G313LRodRSuFYzA98BW/3FUhfXwx9bAp4pA /l9/HerwS4TGLvxx9bXM6kBlcWzBj9VDBZ/sLUdS2txvZsHo/YAY6KLD/1BjuAjbBmV1 QAYvSq4R2V7/Aw48nXTZrNz7l5FcvturT8o63pT8UG/wbk+9YuJuyc0Ian94i+cRgFpK 3ZePQTcRET1uBaIRLMZsw8zqKR07vghG21l11hVx/vlC29RzKyUmqP0RMXUVP5jtm+uT Bg4rUHucrVl56RbB3N1sPQ8ESnnRzdACkPqdDdXqLgT/CZQOjKuKwnhqRZbaS1UtIsnK fHTQ== 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=PdNAYGEf3HErZd1qMy9Fio2Q6mTHXUXt55dWtvm2uqs=; b=NY/V2EmMHDsPt0+k74HCdLrYK/wuOlnWLLwuX2sqpJResjhcG2Oqtr3j3px+JF0sYJ MXDciMLTXFms0H5uTGkA/RZl0FYO1dwBgy9+NxbJC1XxLQpkFaVDSH3B39+J4Qz/dQPV cGs06N6s/sICgqicM059UVMRtE+NL7jEj/Lg8UYoG409BPid/gGtYKC2BgzrxvAq9oeE dviFTnCVaq+kty54mkHjbGcP/E0mnaxE05PRRYeWXwRiICrNzj7yDdG7rDdzKrw5VbFj SCRaVHoKCWfPnEVHSG8GJIKN28Jk/cI59XnsYujrApdSh0TfzGei/l3OW/wnZp6PJfaQ hwvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=KoI4pQgL; 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.27 for ; Wed, 17 Mar 2021 02:12: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=KoI4pQgL; 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 S229914AbhCQJL5 (ORCPT ); Wed, 17 Mar 2021 05:11:57 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229847AbhCQJLh (ORCPT ); Wed, 17 Mar 2021 05:11:37 -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 6F14BC061763 for ; Wed, 17 Mar 2021 02:11:37 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id r10-20020a05600c35cab029010c946c95easo829872wmq.4 for ; Wed, 17 Mar 2021 02:11:37 -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=PdNAYGEf3HErZd1qMy9Fio2Q6mTHXUXt55dWtvm2uqs=; b=KoI4pQgLlCN8e9y0ULjwArxZGVHgE65tgmu+pIBdoAfjkPAL3ETIwM5PA8C8HqEj5i OmAmH+Cja8knY9rm+oohq/XjrAyFZ+P1xuNAvAvSKdzq5v+J3O8q0+oj5wxMb1/vtC52 b7p4uHR6Ba3P7Kg9KGScByrPQh/Hph7zja8aQvLMGzs5ddXwZ2deqKiHCrOGPd/m/6Fp KfS1/9KbSe9sH7DaL7l64Vsbx0vsrKX01XDy5vT0eHLLwUPGYI/2wRPHxPehm8RF4l5R 15LzwLhmvGUw3qQ+FV7JDEJUhJQnfbupA2HA+ivw8zt4lFm83z45Kdw/nrCliL/iMTX2 6tNA== 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=PdNAYGEf3HErZd1qMy9Fio2Q6mTHXUXt55dWtvm2uqs=; b=C23d1RaIP61yomueOz3e6V5og2sp01/u0eBvcKq3mek03PxDMA4bq8/TZhpjhssffS 0wbCkGEP5UqLz5URDjGOEbvU8PyvMalwHrQQxPZIwyqIivxunXB/NaJ39TUgoEcKv2ls ndcsSFgnawiCH02EMung3ycQ5dKR4DiFcvFcLJ7niRQQ8OU2K8gRUQcZpYraKG+YmuMR GGZ6u8/EwACPfJ7P07yakOAVGG7rCRfjvpW2cI6GXI3fXFN1obffZTO5BBeB7YEp9dm+ V6sre4KM23W1dsrS3fZjskseUSvLEwutHMl4UAdiIXuYwlfMQYn0unbFd6XXPRNLEqbf xA9Q== X-Gm-Message-State: AOAM531O1t+tqs2AVR3rHXn611e11LlOZYjr8N5n3FAudm0pXj8NyGqa Dzv+lDl347nZFE4pqtoOSr2s4Q== X-Received: by 2002:a05:600c:3546:: with SMTP id i6mr2682279wmq.104.1615972296229; Wed, 17 Mar 2021 02:11:36 -0700 (PDT) Received: from dell.default ([91.110.221.194]) by smtp.gmail.com with ESMTPSA id s83sm1709279wms.16.2021.03.17.02.11.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Mar 2021 02:11:35 -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 8/8] scsi: nsp32: Correct expected types in debug print formatting Date: Wed, 17 Mar 2021 09:11:25 +0000 Message-Id: <20210317091125.2910058-9-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_setup_sg_table’: drivers/scsi/nsp32.c:879:6: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘unsigned int’ [-Wformat=] drivers/scsi/nsp32.c:280:69: note: in definition of macro ‘nsp32_msg’ drivers/scsi/nsp32.c:879:52: note: format string is defined here drivers/scsi/nsp32.c: In function ‘nsp32_detect’: drivers/scsi/nsp32.c:2719:6: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 5 has type ‘int’ [-Wformat=] drivers/scsi/nsp32.c:280:69: note: in definition of macro ‘nsp32_msg’ drivers/scsi/nsp32.c:2719:22: note: format string is defined here drivers/scsi/nsp32.c:2719:6: warning: format ‘%lx’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘int’ [-Wformat=] drivers/scsi/nsp32.c:280:69: note: in definition of macro ‘nsp32_msg’ drivers/scsi/nsp32.c:2719:28: note: format string is defined here drivers/scsi/nsp32.c: In function ‘nsp32_suspend’: drivers/scsi/nsp32.c:3267:23: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 6 has type ‘pm_message_t’ {aka ‘struct pm_message’} [-Wformat=] drivers/scsi/nsp32.c:280:69: note: in definition of macro ‘nsp32_msg’ drivers/scsi/nsp32.c:3267:56: note: format string is defined here 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 | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 2.27.0 diff --git a/drivers/scsi/nsp32.c b/drivers/scsi/nsp32.c index 54abda4d07c64..134bbd2d8b667 100644 --- a/drivers/scsi/nsp32.c +++ b/drivers/scsi/nsp32.c @@ -876,7 +876,7 @@ static int nsp32_setup_sg_table(struct scsi_cmnd *SCpnt) if (le32_to_cpu(sgt[i].len) > 0x10000) { nsp32_msg(KERN_ERR, - "can't transfer over 64KB at a time, size=0x%lx", le32_to_cpu(sgt[i].len)); + "can't transfer over 64KB at a time, size=0x%x", le32_to_cpu(sgt[i].len)); return FALSE; } nsp32_dbg(NSP32_DEBUG_SGLIST, @@ -2716,7 +2716,7 @@ static int nsp32_detect(struct pci_dev *pdev) res = request_region(host->io_port, host->n_io_port, "nsp32"); if (res == NULL) { nsp32_msg(KERN_ERR, - "I/O region 0x%lx+0x%lx is already used", + "I/O region 0x%x+0x%x is already used", data->BaseAddress, data->NumAddress); goto free_irq; } @@ -3264,7 +3264,8 @@ static int nsp32_suspend(struct pci_dev *pdev, pm_message_t state) { struct Scsi_Host *host = pci_get_drvdata(pdev); - nsp32_msg(KERN_INFO, "pci-suspend: pdev=0x%p, state=%ld, slot=%s, host=0x%p", pdev, state, pci_name(pdev), host); + nsp32_msg(KERN_INFO, "pci-suspend: pdev=0x%p, state.event=%x, slot=%s, host=0x%p", + pdev, state.event, pci_name(pdev), host); pci_save_state (pdev); pci_disable_device (pdev);