From patchwork Thu Jul 9 17:45:33 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235185 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1632795ilg; Thu, 9 Jul 2020 10:47:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnumZossSn1U4lgOI8mbG6ELcHQjQqY8jMVbE4njDwuaRCalFKsMkymLa47Dlmq/MJlenC X-Received: by 2002:a05:6402:21d3:: with SMTP id bi19mr74492482edb.56.1594316877333; Thu, 09 Jul 2020 10:47:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316877; cv=none; d=google.com; s=arc-20160816; b=aQrDaG9Dyc7gME3RE6jp4rb9L+MxToaVMx4IfZitkHT2bHfmiegBu/tGi9V/SV2poR P6Q2gi8ra2VHwLP3HXzq+BDEs30fPjWO/8x4yQiRmEYqUbFAT9QPli0/6l3o0ufUIuu/ mIHkDganrlcW4u8ZmmoixwGXDIkHN4YJ4QdNKhf/1HV5/siNU3Kx5Lr+Wz4yxR9R2OCa BC/lgOW0ClOPoNSlzNtW3s/Jns7AmSFrTjipXfjgb7G9d1J0cxS6Nxen3SGNYIJhIGHq 0hVdwWPwBbI6U9aemzCT8IqyLar9NgYhRfNrXQqnHd1PUGsGcgvyfLYE/B1IkpS/0sgP 97iQ== 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=+HM3pvSE2JuDZ5Kc5EJ0B/qyBhrrEM7iialxYUUhb/4=; b=ZrQJuYYkCUHiwemoPkLWI1B6m07WLLEWvOmfKv6eK/JkiZCodaJc6QWZuS4HYtwRze QBtjL1ZksYLdlFZFaPO0/tn/tg1AnlJlcFjQ48IGpU8YgVfTO2QO4l2acT4zQ+Lf3qWv p8TOvXskG9C0KNqhdxMc9z4kWiRVrLHFd9nH5iURHkJIuFQmOWrJIZZRofwaQBwVp+h7 qyNjrUEkIqeh3UcwAQgyWC8oz4BmbFgm5ZPsAgEMTWzDm2EULwI/ai9EzitRhpapqWtT ygoOWeAirNE0mPSRc66TqXRWpQ3NbdbpXYdhem+Xx4WlQC8n4XaS7K0fO60IjtfR3aKS pa+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="WDb4/2PU"; 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 z13si2228129ejc.295.2020.07.09.10.47.57 for ; Thu, 09 Jul 2020 10:47:57 -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="WDb4/2PU"; 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 S1728268AbgGIRqC (ORCPT ); Thu, 9 Jul 2020 13:46:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728175AbgGIRqB (ORCPT ); Thu, 9 Jul 2020 13:46:01 -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 44C4FC08C5DC for ; Thu, 9 Jul 2020 10:46:01 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id f18so3321339wrs.0 for ; Thu, 09 Jul 2020 10:46:01 -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=+HM3pvSE2JuDZ5Kc5EJ0B/qyBhrrEM7iialxYUUhb/4=; b=WDb4/2PURWwxaGQwRJjnz9i/la25WsNSlHDya20V36viFuVtojjzGqAnvuy7vUEm4t Og6WGYoBpWprPJtHhtHqZrpJyiN389DZlx+34S8P8QHcgvpRgcqdzjVl3q37fH7vQ1zo o2QcgK1KjTxH4bO6jWLvfhx9PW4yvqaPybZdtdi3eVv73ToAQPbmokuHuLPe90Ol62zW NRS2deZWPrxQv1PRENzzix4hwcDUDWbpmXu/vRgxpu8cKRgmfqDrMkcr3zgUoIsTQxzA DZPoREIGPTVOzj4mifN2qm1LVAGPDOwP/Zax1sC4tvlOa1aJf+UKSvEmXTSR66emON4i py3g== 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=+HM3pvSE2JuDZ5Kc5EJ0B/qyBhrrEM7iialxYUUhb/4=; b=rhc2qlCcpTe59EUv8un3p1oR5TcW5+bcmxzxw0MhRZKxri56BRJaz52Q7zsDzbkjxP AnqeVooPGYoD+qXSos8vKShbi53RnhtEOaCbTnkGeqe8Vypa7+DjdmsR6W9aPo7Raecu Y/Sui+KnVKY6Jeixta+JcYDahTgcIYfrF3AgnWJANj+j4m5qBUaOb8Fdcqtn9YG79/d4 mirBB+WQ8BP63KNuqmyzzwfEzULJvv66BRKownZupbtkvk1yxCL1qHmBGDqro0dmcuHA o7jZdlZizKSHMIVpuMoiTQtWbUB5MY7TmLo3jszeZSqMoiDMpcApL5YRPlhs6fQJzG5m u6Zw== X-Gm-Message-State: AOAM532aCwt3xGX4dV0Zd3fpkftvvjUkeP3ju6HgAsONd66O6WNDIleA qdjphPd5uvpDoXj6mDx7nSZsSg== X-Received: by 2002:a05:6000:d0:: with SMTP id q16mr33060169wrx.166.1594316759904; Thu, 09 Jul 2020 10:45:59 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.45.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:45:59 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Adaptec OEM Raid Solutions , "PMC-Sierra, Inc" Subject: [PATCH 01/24] scsi: aacraid: aachba: Repair two kerneldoc headers Date: Thu, 9 Jul 2020 18:45:33 +0100 Message-Id: <20200709174556.7651-2-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org The function headers for aac_get_config_status() and aac_get_containers() have suffered bitrot where the documentation hasn't kept up with the API. Fixes the following W=1 kernel build warning(s): drivers/scsi/aacraid/aachba.c:358: warning: Function parameter or member 'dev' not described in 'aac_get_config_status' drivers/scsi/aacraid/aachba.c:358: warning: Function parameter or member 'commit_flag' not described in 'aac_get_config_status' drivers/scsi/aacraid/aachba.c:358: warning: Excess function parameter 'common' description in 'aac_get_config_status' drivers/scsi/aacraid/aachba.c:450: warning: Function parameter or member 'dev' not described in 'aac_get_containers' drivers/scsi/aacraid/aachba.c:450: warning: Excess function parameter 'common' description in 'aac_get_containers' Cc: Adaptec OEM Raid Solutions Cc: "PMC-Sierra, Inc" Signed-off-by: Lee Jones --- drivers/scsi/aacraid/aachba.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/aacraid/aachba.c b/drivers/scsi/aacraid/aachba.c index 7ae1e545a255c..769af4ca9ca97 100644 --- a/drivers/scsi/aacraid/aachba.c +++ b/drivers/scsi/aacraid/aachba.c @@ -350,7 +350,8 @@ static inline int aac_valid_context(struct scsi_cmnd *scsicmd, /** * aac_get_config_status - check the adapter configuration - * @common: adapter to query + * @dev: aac driver data + * @commit_flag: force sending CT_COMMIT_CONFIG * * Query config status, and commit the configuration if needed. */ @@ -442,7 +443,7 @@ static void aac_expose_phy_device(struct scsi_cmnd *scsicmd) /** * aac_get_containers - list containers - * @common: adapter to probe + * @dev: aac driver data * * Make a list of all containers on this controller */ From patchwork Thu Jul 9 17:45:34 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235162 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1631438ilg; Thu, 9 Jul 2020 10:46:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA1UbMd++MeUMaeUYGmS8lEW91shSpd2K/9pyBlajY8Bxo9599K5O/xi11H6E1dpqOpQwR X-Received: by 2002:a17:906:9408:: with SMTP id q8mr56136698ejx.496.1594316766272; Thu, 09 Jul 2020 10:46:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316766; cv=none; d=google.com; s=arc-20160816; b=XbpmclY/VnuSgkF++KscG4KNAvwnXXMXPk6WdmUqLoEaL/LhnIBsEIlQ2WofIac2iU Gliqf+98zzjCIdatPquo87tgF9/QBUFVf5+Ab5PbFe9+6eqIbzATsKrhvdzz9hobeavP lZVbKqFZgeMRf0jNfl/HUYxAKli2A6dNSkmKFNacIaLOFu+ZQGV8lH7TAiYqdnwEV/uw a/YTNyaEETHn4jivAXrxFIFotASt7wO+m3B7K8MmrKd7/xrBUVySnZhe5FgSxsI/b3Yo u0LZLphATwJnQkx0NqFnx3iuGu92ravQy1yuRU4t+tPXcx/V6gyXzqRhdjPvHrte0ehn hn5w== 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=xTqXVtAy6STm+CsKD82SFXkbTZ9Yyt2OGjfREOk+wxw=; b=Q46rmkUZ2fpZC3Lx18uLlSVVNpgC+0nSSarBCf5tu/NBiYP+8sF8NGmJz71gTwZxkw pAt1kVXL4S7baFOWQG5nMe2MRm/dh5MbBtE5sl9Wj+uiXagW/lJcOISY1j0aEH7dHJQk ZI1DyglcEbEvJYoiuZewhdeB3FWp783e7kTikxrpiblq0LOa0y9hKwzEUle3tbhk1pql PNiDh6WUuSd8aBXzUaiqlOvgD+7pcdnEdJyDW88PixhALt7USXtzDHskT2Qi5V74yxDh l/errMVE0+xQ2uIJkIysGZ+2X9sw6O7XURQG/uaa8SuZlsF3a1iSDx8CE+eOpyNKLv93 Li3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S9JQfJkt; 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 dn22si2359666edb.477.2020.07.09.10.46.06 for ; Thu, 09 Jul 2020 10:46:06 -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=S9JQfJkt; 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 S1728415AbgGIRqD (ORCPT ); Thu, 9 Jul 2020 13:46:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48880 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728371AbgGIRqC (ORCPT ); Thu, 9 Jul 2020 13:46:02 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6B386C08C5DC for ; Thu, 9 Jul 2020 10:46:02 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id a6so3294400wrm.4 for ; Thu, 09 Jul 2020 10:46:02 -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=xTqXVtAy6STm+CsKD82SFXkbTZ9Yyt2OGjfREOk+wxw=; b=S9JQfJkt74EhytPvboT0wPEsWVg4OmCFYcNqHiChFX9Ce69gEUSsHaVYbxBjlOfqzF /Z5WmgD7mCxQg5qL9vEsu+Ok+V/Rsrryoi6l02scA1Hp6owww0VU8y3sEvSqqbaLHtkP p6A5jxcrfRIPw+t5kSrT+MbLgovNOInkeVtQL5FfEA7GEXtlnQSsvBYSvh6mj9QH+MsL 47WOD0IDDYXu9eIBYe1IR1i8tupG8AKOP6Qr5ERENBCFo5mnzFykllrvh1WHaW52QNaR Y9fZjksMUNTw+KXQ8rJtik2x8pxjCka8wpUJCN4CbVDDeCbC+b2mR/Dt9z04/sYrfpu2 doyw== 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=xTqXVtAy6STm+CsKD82SFXkbTZ9Yyt2OGjfREOk+wxw=; b=l1YyvOmXE6c9AM6hPUGuoANxROWCnNr+WNPHY2aL3YG9bHyr2ngdBGaSZF5yn1Opv7 d9CPY0spi0J+n89rALL3mTNA1eR9qt7yo73PGBn9qs52xeDo4R59KAxLHD7vxQYyvIRi rwvn+Psw9M/KNlyYocahV+2qq9BKdu1ele1Y3XgHOy/nAlvXslViaqxLYAfqo0jXPvSt UqMyPEiqTMZER0m3BGwODhAgEGuEvhdWceZGsHEwh8SbjJYSFeWJRsyzSB7+1wbvkmzA 2FsIkzwrWv0hljBhNhby6OzQlSkOOrsCz7NtwM4Mn5kQkXEv9zmP64WMTCyh9M/oJm52 F69w== X-Gm-Message-State: AOAM533vyppM8CIqvZkqUdKrZ9Ct88rV4siE9FXDChqrwiESq2S9vHT3 +FWV9MDIXWAGY/ivR1CiUVmqBw== X-Received: by 2002:a5d:55c9:: with SMTP id i9mr63242054wrw.404.1594316761133; Thu, 09 Jul 2020 10:46:01 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.45.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:00 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Adaptec OEM Raid Solutions , "PMC-Sierra, Inc" Subject: [PATCH 02/24] scsi: aacraid: commctrl: Fix a few kerneldoc issues Date: Thu, 9 Jul 2020 18:45:34 +0100 Message-Id: <20200709174556.7651-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Functions must follow imediately after the header documenting them and all parameters must be present. Fixes the following W=1 kernel build warning(s): drivers/scsi/aacraid/commctrl.c:43: warning: Excess function parameter 'dev' description in 'AAC_DEBUG_PREAMBLE' drivers/scsi/aacraid/commctrl.c:43: warning: Excess function parameter 'arg' description in 'AAC_DEBUG_PREAMBLE' drivers/scsi/aacraid/commctrl.c:167: warning: Function parameter or member 'dev' not described in 'open_getadapter_fib' drivers/scsi/aacraid/commctrl.c:167: warning: Function parameter or member 'arg' not described in 'open_getadapter_fib' drivers/scsi/aacraid/commctrl.c:458: warning: Cannot understand * on line 458 - I thought it was a doc line Cc: Adaptec OEM Raid Solutions Cc: "PMC-Sierra, Inc" Signed-off-by: Lee Jones --- drivers/scsi/aacraid/commctrl.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/aacraid/commctrl.c b/drivers/scsi/aacraid/commctrl.c index 34e65dea992e4..59e82a832042f 100644 --- a/drivers/scsi/aacraid/commctrl.c +++ b/drivers/scsi/aacraid/commctrl.c @@ -32,6 +32,8 @@ #include "aacraid.h" +# define AAC_DEBUG_PREAMBLE KERN_INFO +# define AAC_DEBUG_POSTAMBLE /** * ioctl_send_fib - send a FIB from userspace * @dev: adapter is being processed @@ -40,9 +42,6 @@ * This routine sends a fib to the adapter on behalf of a user level * program. */ -# define AAC_DEBUG_PREAMBLE KERN_INFO -# define AAC_DEBUG_POSTAMBLE - static int ioctl_send_fib(struct aac_dev * dev, void __user *arg) { struct hw_fib * kfib; @@ -158,11 +157,12 @@ static int ioctl_send_fib(struct aac_dev * dev, void __user *arg) /** * open_getadapter_fib - Get the next fib + * @dev: adapter is being processed + * @arg: arguments to the open call * * This routine will get the next Fib, if available, from the AdapterFibContext * passed in from the user. */ - static int open_getadapter_fib(struct aac_dev * dev, void __user *arg) { struct aac_fib_context * fibctx; @@ -234,7 +234,6 @@ static int open_getadapter_fib(struct aac_dev * dev, void __user *arg) * This routine will get the next Fib, if available, from the AdapterFibContext * passed in from the user. */ - static int next_getadapter_fib(struct aac_dev * dev, void __user *arg) { struct fib_ioctl f; @@ -455,11 +454,10 @@ static int check_revision(struct aac_dev *dev, void __user *arg) /** - * * aac_send_raw_scb - * + * @dev: adapter is being processed + * @arg: arguments to the send call */ - static int aac_send_raw_srb(struct aac_dev* dev, void __user * arg) { struct fib* srbfib; From patchwork Thu Jul 9 17:45:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235163 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1631443ilg; Thu, 9 Jul 2020 10:46:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzX622YWU8mXIaBE/xC9yjwCguBnLX8eKnz09lbnSLr5XkfNO2s7uxbrfH0sfPl3z99WY+3 X-Received: by 2002:a17:906:cd2:: with SMTP id l18mr59903196ejh.18.1594316766627; Thu, 09 Jul 2020 10:46:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316766; cv=none; d=google.com; s=arc-20160816; b=BLPyVl+dsA/LGXBVqQGsLKf9pxlbLRq0J5zzlL9EOmDAoZWuSg0COlcHsEPRnNyw5G D39MXRCHsgWsXIxnxlzD5VQisT9RsDzoR5ggcAe7PMhzPeVqjOr/SsAQv8V3X6wHOVds u6/3mVc01M8ECsLqRdu0Tzgqsw8lfqwypmDXqcz56AByY41lAwImIigRHriYM1AvCV9v salZD8wNgLBFRCEFpjr1BLtUVGyFEmgTa5EWFFIU5S5wGsHF+3DVSZNlZ1Xubs2/Udjc 12ElST0yIgEJG2H9kWcHW1ECnbNql5fsnbLnnd+zPfaw+ZFvsA1eFlfCpo+BLPn0CMsy E3KA== 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=z87wYd9sTBTgWM4PfTqIXybXjZhO9Ay2HDdpb30MaC4=; b=eOKPrxL2DJiXj6yijJHOHlcJiq5fjcrNmbYB/bznGqu0kTjaUsnHBNLdpeBhDzmYui G6cloDUTpd9YXMFIbNRV56UtgTan+JnTJK3qid0Fr3CHn0EsBADZWVBfVMhfBPoJ+Evi hsFTp+NWab2/IpbUZ9+EvhojTkNtcjsny9jZBqC3+89zX5Y2WH9j3FpmfM96N/yCuZXb NSQwA474hs6eV5Iub5supGkfQS0YJHMv4ezWE0DA+FYGMu0CRiUscQZhedHmSNBFh3O2 KZz9uXM7Drjvh0P09P+qHGde9yrJvv3NDBL6Hui5OkXLyRwta5YdyBkfsn+XFaiufVr0 CHcg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=jRYy5lBl; 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 dn22si2359666edb.477.2020.07.09.10.46.06 for ; Thu, 09 Jul 2020 10:46:06 -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=jRYy5lBl; 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 S1728459AbgGIRqF (ORCPT ); Thu, 9 Jul 2020 13:46:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48886 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728398AbgGIRqD (ORCPT ); Thu, 9 Jul 2020 13:46:03 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5197BC08C5CE for ; Thu, 9 Jul 2020 10:46:03 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id z13so3293305wrw.5 for ; Thu, 09 Jul 2020 10:46:03 -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=z87wYd9sTBTgWM4PfTqIXybXjZhO9Ay2HDdpb30MaC4=; b=jRYy5lBldTck93hbAO3wZOubSpIDvgxm3p1B5mF4K1ZUKb6VnlFqm/ru/Al4l+4Cp6 OfVsOsS549wwYMyKyt46/ZPKciS+cIHAYULljGRITq61EvjFy3fScyXk8bVuVG3k+h/y uZhg8NaPwvGFFwT3L3XsoExEgiFYFAp71MrF65x1/NttAniy2EUVaGlP0QPsNKl3Z7Td eNndREpoHeiexDIf8YAnVnHJjNu5eZZxycDg0ixlToq/M94/6xP5pJ7xMaDJHiE+6Dq/ r1lXHBi3y26nN2Q7Wg8WF2049yUL9eWi6Ao2dodogn55PmiaLKxuFqltNGNBZLuCBbAS zQdA== 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=z87wYd9sTBTgWM4PfTqIXybXjZhO9Ay2HDdpb30MaC4=; b=enqc3KWe50eeU0eFJHl5J6+Sr++KBnB0cmS6XKsrjKtdqGj1VVDFFrhYDDh1X8XAe/ ZR6FzqGjiq4D7l7SJZCLNE5l23PuSr82HFV5N7FVnW8xKS6rfRP0EFufKdM8c3NYtx6D lz/dpL2JuGFiv15lZyLvMj/kQuIIHGXuchtWLrB1qhkZTajcvv+hVAAblY6wLqYwSp6A io9PpW1cQ/9PWGtN1+nArLC7tr9XkOH1qHFrCFVPt2ucEu6opVEod0W5ONDFrYXLY3mm mMYiHrENAxQo/JbIQph3TQtVzV5Eg4DQNBLTDj4Iu0pTygN+cpmKaMKeAFSwHw15bNij 30ig== X-Gm-Message-State: AOAM531Pk6/TK2t0RukSubcCsKbSrGChGMd0IOlnrJ+NY6ptw5naC4sL Aj9wdtw3WZ3zGfXe7DLYKqpZtA== X-Received: by 2002:adf:ef89:: with SMTP id d9mr68461569wro.124.1594316762040; Thu, 09 Jul 2020 10:46:02 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:01 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Adaptec OEM Raid Solutions , "PMC-Sierra, Inc" Subject: [PATCH 03/24] scsi: aacraid: dpcsup: Fix logical bug when !DBG Date: Thu, 9 Jul 2020 18:45:35 +0100 Message-Id: <20200709174556.7651-4-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org When DBG is not enabled FIB_COUNTER_INCREMENT() results in an empty statement, leaving the contents of if() and else() empty. Fixes the following W=1 kernel build warning(s): drivers/scsi/aacraid/dpcsup.c: In function ‘aac_response_normal’: drivers/scsi/aacraid/dpcsup.c:105:50: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] 105 | FIB_COUNTER_INCREMENT(aac_config.AsyncRecved); | ^ drivers/scsi/aacraid/dpcsup.c: In function ‘aac_intr_normal’: drivers/scsi/aacraid/dpcsup.c:411:30: warning: suggest braces around empty body in an ‘else’ statement [-Wempty-body] 411 | aac_config.AsyncRecved); | ^ Cc: Adaptec OEM Raid Solutions Cc: "PMC-Sierra, Inc" Signed-off-by: Lee Jones --- drivers/scsi/aacraid/dpcsup.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/aacraid/dpcsup.c b/drivers/scsi/aacraid/dpcsup.c index a557aa629827e..25ebb94368f2c 100644 --- a/drivers/scsi/aacraid/dpcsup.c +++ b/drivers/scsi/aacraid/dpcsup.c @@ -99,10 +99,11 @@ unsigned int aac_response_normal(struct aac_queue * q) } if (hwfib->header.XferState & cpu_to_le32(NoResponseExpected | Async)) { - if (hwfib->header.XferState & cpu_to_le32(NoResponseExpected)) + if (hwfib->header.XferState & cpu_to_le32(NoResponseExpected)) { FIB_COUNTER_INCREMENT(aac_config.NoResponseRecved); - else + } else { FIB_COUNTER_INCREMENT(aac_config.AsyncRecved); + } /* * NOTE: we cannot touch the fib after this * call, because it may have been deallocated. @@ -403,12 +404,13 @@ unsigned int aac_intr_normal(struct aac_dev *dev, u32 index, int isAif, if (hwfib->header.XferState & cpu_to_le32(NoResponseExpected | Async)) { if (hwfib->header.XferState & cpu_to_le32( - NoResponseExpected)) + NoResponseExpected)) { FIB_COUNTER_INCREMENT( aac_config.NoResponseRecved); - else + } else { FIB_COUNTER_INCREMENT( aac_config.AsyncRecved); + } start_callback = 1; } else { unsigned long flagv; From patchwork Thu Jul 9 17:45:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235164 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1631459ilg; Thu, 9 Jul 2020 10:46:08 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz6N4X2hRiHTad6W1Mv6UtTV7dSjypoFcgggaGZ+eLDT1YJcJBgLdQYOdenQBvYa8S5dYMn X-Received: by 2002:a50:b065:: with SMTP id i92mr77494057edd.112.1594316768404; Thu, 09 Jul 2020 10:46:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316768; cv=none; d=google.com; s=arc-20160816; b=uR0YXauefZ3Gf9PHmTiw9THe0sr0bDYD/ZjCV+Eadey063Nzi+ZZVsMfY7yL2n/Aw7 KrEozBhiGGg3bLHbcesGtr00UmnpyH3uVaZ/ZFLBfvwenWpYYKiDO2clxANLEE6P0L/8 7aEOm6i+7vqyv8lmifdzv5D7gr7qfkItZn/lZEcvpE81Czvu6m5iZAmOadXWs3MTXOw4 icc+C41Daq6KqLdJ8hf8qc5Y9yy0NALVugcKdeRWb6OWPS9tnJT+4VKi7AhJpDEBTkM0 meeaNrIoUb+fsKCrSDMto65JhWy832CbxOvCtgafxoQyodnBgMGL8kQ3jICm9gbtQ89d 7B9A== 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=pP2tdu8A1HxZVI+uozY0df9nk/Y+k4UvHam72V3AaIk=; b=PTmMWIbPCAVBW0KeAP9OqtTrCdcYHBUAcETbWl8BlmrhT2BXL7oH/uFKF93GH+qFnh qDdxfxiJX4MQTmynTotBsSWRZQwpSXBokfEFAKPAoSUJ7PON5ZxCpLDZseMdDz029uxi wHKaaxHWYjyhlUh6y29WuMbg0f+OvP0oSskm9CEed5ePS/Rrxqppxog1B7xWnRImMLMI EQ5ijS4EfNmTAlMEGDA93v6koe0QcP+2oU79E0Z4/qtwzNwnoSwbY3E8bI/DTLedDZCA BK9SWlt3RHSYudR0LeRM2zikzsEOuMtLA3StkxblML1EKd0OO4HaMxNceSMm8weLExzq 6/mQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HOjBlIQW; 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 dn22si2359666edb.477.2020.07.09.10.46.08 for ; Thu, 09 Jul 2020 10:46:08 -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=HOjBlIQW; 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 S1728485AbgGIRqH (ORCPT ); Thu, 9 Jul 2020 13:46:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728442AbgGIRqE (ORCPT ); Thu, 9 Jul 2020 13:46:04 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 437BDC08C5CE for ; Thu, 9 Jul 2020 10:46:04 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id f2so3272353wrp.7 for ; Thu, 09 Jul 2020 10:46:04 -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=pP2tdu8A1HxZVI+uozY0df9nk/Y+k4UvHam72V3AaIk=; b=HOjBlIQW3V9/ieSrhgXZ2CuZd05AGRfyL5watxTrh18Od1QoPikv6mwTbjESssycgO x89pAqUhtiMUDhC8cAGCD+aYRw17aIKhWv/cvtN/XoQZPfdjHxM2Ob/LhIjLRQeA6nQ6 LPmvd6zFFxlTH5y3sOAv7OY8eYWM2pzmJ7S6RmPCzL/FNL8l5g178cG5f2yy6RhXkNcb /BhzmQgbqlVMhQuC+et0xn4j5vPpMd0+LpaTfr/D+ttZ6OxBxMzQsRNOiHOh9aI1uFQO O7K+1TphYfN+lNgseM0qE12H6Aymd88qTmYK7EuLvusxf+PsSCPxYwB8C9qrmt15SeD4 ImSg== 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=pP2tdu8A1HxZVI+uozY0df9nk/Y+k4UvHam72V3AaIk=; b=PvqDB5aJFLmMUCllIDVXbK6pQJ4ms2TAy59VhTU7NZGMg6qVA6VAZxX9+Rl7rKczvA SEQ1nPWxOeOBfQHSzyocLbdSH+E9tv5MewKv8hKSm27mp65dlcthGUJjlb6lSFMJWBpl q07GrfdobwzMZzJPMopNykvmtG0/muyEMl2Ykbmyx6A4IGjQownqb+9YHgN5R2OWzffy 8/YyfomeqRRX4yCKmUdcULl51+hwoNz9hLcJTClksRkAmibdVKrUPOU4NhHkw+7RepgN RxPIoH2BQE8SrM1eQLCIUJspDAfHJHpVF9ZQqwTqTnzYWbOEtAvU1sd5G7OL5pErTLuP 0jlg== X-Gm-Message-State: AOAM530xOdGUG13kV8UzvCZfV2uHvp2uKUAfW3XzXyfv7yMj3QplZJQ+ iSlUs+OT9cZYfAIQy3eVgznsdw== X-Received: by 2002:adf:f203:: with SMTP id p3mr36428391wro.331.1594316763029; Thu, 09 Jul 2020 10:46:03 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:02 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Adaptec OEM Raid Solutions , "PMC-Sierra, Inc" Subject: [PATCH 04/24] scsi: aacraid: dpcsup: Remove unused variable 'status' Date: Thu, 9 Jul 2020 18:45:36 +0100 Message-Id: <20200709174556.7651-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/scsi/aacraid/dpcsup.c: In function ‘aac_aif_callback’: drivers/scsi/aacraid/dpcsup.c:232:6: warning: variable ‘status’ set but not used [-Wunused-but-set-variable] 232 | int status; | ^~~~~~ Cc: Adaptec OEM Raid Solutions Cc: "PMC-Sierra, Inc" Signed-off-by: Lee Jones --- drivers/scsi/aacraid/dpcsup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/aacraid/dpcsup.c b/drivers/scsi/aacraid/dpcsup.c index 25ebb94368f2c..749f8e740ece1 100644 --- a/drivers/scsi/aacraid/dpcsup.c +++ b/drivers/scsi/aacraid/dpcsup.c @@ -230,7 +230,6 @@ static void aac_aif_callback(void *context, struct fib * fibptr) struct fib *fibctx; struct aac_dev *dev; struct aac_aifcmd *cmd; - int status; fibctx = (struct fib *)context; BUG_ON(fibptr == NULL); @@ -250,7 +249,7 @@ static void aac_aif_callback(void *context, struct fib * fibptr) cmd = (struct aac_aifcmd *) fib_data(fibctx); cmd->command = cpu_to_le32(AifReqEvent); - status = aac_fib_send(AifRequest, + aac_fib_send(AifRequest, fibctx, sizeof(struct hw_fib)-sizeof(struct aac_fibhdr), FsaNormal, From patchwork Thu Jul 9 17:45:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235184 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1632782ilg; Thu, 9 Jul 2020 10:47:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxUCJGiiS2LwTlDpH32jW4hEYx91lTn8vNCqpJBxj+rspICf601ewGVmoWVxmO92EiKYAOh X-Received: by 2002:a17:906:940f:: with SMTP id q15mr58860126ejx.470.1594316876042; Thu, 09 Jul 2020 10:47:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316876; cv=none; d=google.com; s=arc-20160816; b=ttEKTLRcjplJwVq1bhDY6jHP76rsI/ZBfpqsd7Wvi0vufDsy6jMSnyfQelb+aHFTAw 3KRSWgLlsgQh8yzcsPncdywW47SeIbzfzE0A0NIwb5XNBiVAG57aYlsxrZ3nJV9rHBCY DyhvU+yh/ZmlAvgP/p8F9aRO4fv5BD2VHPw0axd17VklXqu+3Phgy5h6+v7UbTniyui/ sKJSwOzH/7XC9a+1ps3E4jzUmVPR3MpmAlspernY5TF7NBi6GSjtIaO+/z9+ST3iKoZ8 X9ucfW6237Co2ALzXDp+2AJEgDh/Jwp0gBawzpj+GyApqzV0lOvF9IyiIh63tzzKFW1D LFSg== 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=Xgee6VNOxowtnDCzKQ+Sz5+2OlEHHNxO9R7xXG9/C34=; b=GwIVMXpPUNpIkdq3KBh25z/kEshkxlWio5FphGocSkX0I3Fk+Y517LnoouZZm4TSZr zfGnHLeAak6LL93SxZ8hEHxV6S5icbDKVr+Amc78V4s09ZI3qBpmao5hem/iBQ2r78mS yVQyXelEyJqxHsxKMxZsuksG4Y9NlpOeXCjYR0PsaryYUSHgBQoDciS2lK+fG0xsnA4P kZfqZM1hvPSXhll185zR5nxrqSCcg5JFNynUsoVqOnp/joJ5R1RcHRfD/xfEBfRfvM7K 1/2QYEDJok6h+yqeQUB/C/30ZpFJX6bgeCdljeG9OYe4zrYxduIjPUxVnXz9O2yt3CXp lnZg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CN0ZbGb9; 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 z13si2228129ejc.295.2020.07.09.10.47.55 for ; Thu, 09 Jul 2020 10:47:56 -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=CN0ZbGb9; 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 S1728523AbgGIRrw (ORCPT ); Thu, 9 Jul 2020 13:47:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728108AbgGIRqH (ORCPT ); Thu, 9 Jul 2020 13:46:07 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6E12DC08E6DC for ; Thu, 9 Jul 2020 10:46:05 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id j4so3274482wrp.10 for ; Thu, 09 Jul 2020 10:46:05 -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=Xgee6VNOxowtnDCzKQ+Sz5+2OlEHHNxO9R7xXG9/C34=; b=CN0ZbGb9MRi59LyH9zB97Z++En4BiFKyZiVJ381/Rg/kN/CRIXsIj5dOBuPWrgWYll GCC4SY1ommscxO/xbHRiJsP9m9mTbUb2zqVnoKobE1zycNVZF9pMLQqAmgqs3iCBMDj4 tDbRDBRq4ZQRPQBorsXefezGStUApK5AxTRyQtAbm85q8fD1uo7odg1823GwPU+gV5yt 0SC9pcojni05hKi+ADI2yzgZxOiIPevQSlW3k4b1/rqwedTXMU50EHrMi83xNzoig7L1 ZybfqqQJhVnLjtajD4lEeBaUZ7Ul7+fvz67bHXfJmT/Z5PkKToKPczVj85D1Ap2DGimO cbFQ== 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=Xgee6VNOxowtnDCzKQ+Sz5+2OlEHHNxO9R7xXG9/C34=; b=fqzHsfWAMmUFLC3lTTL9q1oNcqwTiJMLCiqz46BQLRyQe1gykRBTWhFNTcniI06ex+ kSSrHMXUgZ0ITSkREYMGrwKbYIcQbUXvfdMSU1CaslPywfx5qXwqDEFgYu/sUkSsynhZ 4NqhUoEXShdnkQgB7M9srsnVG+figdoWXNSLgLNbEkot+N/V4tQI9BHpn+p2RuEumv/n pZ5FVAve6z5HbfVV6zpaBwuUYtfwWCeqXaA+R9fsqOhaatwAqfKm0IgRZAvE1Psm6Sx0 tLOYGPp9mpZCCOM0XyDOfqBTq9rIEIszTSzHhqSRXzgn1dhOvyzJlMxvA5ETRtlATVVn tFtg== X-Gm-Message-State: AOAM533CFECu8v0kBA7sQXc4uzCsJpRxj1JiPdZG2Uwnj01jFT8bkbbe dLf2vf/8gK1ZJLFKenim575vYw== X-Received: by 2002:a5d:4687:: with SMTP id u7mr68300611wrq.357.1594316764208; Thu, 09 Jul 2020 10:46:04 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:03 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Adaptec OEM Raid Solutions , "PMC-Sierra, Inc" Subject: [PATCH 05/24] scsi: aacraid: dpcsup: Demote partially documented function header Date: Thu, 9 Jul 2020 18:45:37 +0100 Message-Id: <20200709174556.7651-6-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org This should be populated by someone who knows the meaning of all the params. Fixes the following W=1 kernel build warning(s): drivers/scsi/aacraid/dpcsup.c:272: warning: Function parameter or member 'isAif' not described in 'aac_intr_normal' drivers/scsi/aacraid/dpcsup.c:272: warning: Function parameter or member 'isFastResponse' not described in 'aac_intr_normal' drivers/scsi/aacraid/dpcsup.c:272: warning: Function parameter or member 'aif_fib' not described in 'aac_intr_normal' Cc: Adaptec OEM Raid Solutions Cc: "PMC-Sierra, Inc" Signed-off-by: Lee Jones --- drivers/scsi/aacraid/dpcsup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/scsi/aacraid/dpcsup.c b/drivers/scsi/aacraid/dpcsup.c index 749f8e740ece1..fbe334c59f376 100644 --- a/drivers/scsi/aacraid/dpcsup.c +++ b/drivers/scsi/aacraid/dpcsup.c @@ -258,7 +258,7 @@ static void aac_aif_callback(void *context, struct fib * fibptr) } -/** +/* * aac_intr_normal - Handle command replies * @dev: Device * @index: completion reference From patchwork Thu Jul 9 17:45:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235165 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1631472ilg; Thu, 9 Jul 2020 10:46:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzWlPwJ71S/46Kbdox8Fsw0ojIBsGzhfeWzuxQiNXK+sli4enaPhaHLinkj5DEYM/uB37nA X-Received: by 2002:a17:906:1414:: with SMTP id p20mr56340498ejc.247.1594316769867; Thu, 09 Jul 2020 10:46:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316769; cv=none; d=google.com; s=arc-20160816; b=e3f/XBj/8upMTDZqQLyseFA2LygGWikPKCl8agKp6GlF2VQmQuv6uPAVZWeaePEVYJ RONKK7Bsi1i9R+PZ6xB78GzjCUjLS+CfHBy22U302Q+lwIXF0ILhF2Xkcn29qH/fDHdX IQ4AZGParxF1s2G0FV7t3zm0EbN0B0oOR+XPitj/6wGtJAyLk+LHjp2QK3pX2/rh63/I my511pqJbDEL0COxUE+6wMEutGKi1eCd4+0GaP2kXectR5m1m9Zcv+NhJDDOQ7impECy y5eSplQ8BBp8VTvsIdgjPQZTu04RYgSiSlGlXdZ2rmKZgeiyBTVtpy4QB3bWNypt7SXS ASDw== 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=RfY0NWdcaY2EP3FmoORbq4kbjZDAFhNLFjss0f92Lio=; b=Y6gr46TSgGg2UvjEjAFcsR7eq8NdwW72yUaO5dPgOHAFxPHMKMjKZeKt9rdxh3kG1O 806w7zkKlC1mf7Ss1DfAPI1sUc9we+p6obcxHnSs3tZ2DFtr8gj06V1Ltk4RhgNsFAjR 6pTu1ECcD6jaJg0mrzmnbG5iqeShWAz/xf6jm5GjGaKaqAUGO3varXcdnv0ofoDOeX/c W/YrCHtztMaY82WOtgq69kVBUmQHHPdRiLsThwuQjZqIaJgCUsOQfHjcLlSt7HeRgV7I 8K2cY5MFqSMqHuALGR30K/PklpChRKqOZh+zZIve/PtQEIaHpaaZcnlIJIX3wh4nSL+j hjUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=fxWsWdjx; 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 dn22si2359666edb.477.2020.07.09.10.46.09 for ; Thu, 09 Jul 2020 10:46:09 -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=fxWsWdjx; 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 S1728500AbgGIRqI (ORCPT ); Thu, 9 Jul 2020 13:46:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48890 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728467AbgGIRqH (ORCPT ); Thu, 9 Jul 2020 13:46:07 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 92F8CC08C5DC for ; Thu, 9 Jul 2020 10:46:06 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id a6so3294597wrm.4 for ; Thu, 09 Jul 2020 10:46:06 -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=RfY0NWdcaY2EP3FmoORbq4kbjZDAFhNLFjss0f92Lio=; b=fxWsWdjxXCwYott0gwgsFWwu5RCZefGZ1QnMRJoPwCA+hqDDEzcF8/6f0mKUo1F9/w 9aSvsMy5bvmp0jd9N811D9npGUzRIswp5G7SK53qrJKSLF0UAM+V1q/xC913sG7b8Yp6 XEYnpj0FfTzqoeimcjzOj2zh9hRAEABgNgSgdAn4mulh2p1JNXQAlg4ZDHDrTxNA4Q5x Tjm3aCwmNIijd/mgkXCE0JhiUrp+SIa/AY0vSeB9wxWve8maNPXTM5yogbCn06YxmZyM b5WR984aWLaXU/vO8p2D4knaliVQEuLcxMlDlwbf3EgbjlLXxMTPdIA4QuPU5TqPm1Ko yNoQ== 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=RfY0NWdcaY2EP3FmoORbq4kbjZDAFhNLFjss0f92Lio=; b=pV3zRmzzMnHNdD2/irb28oeZO0D1tpQ9lZaun0/ogmJm+btLUNXJ0MnoijSYY0eb9g FPjzOVMyylrXpmlWEhn+372SLNpvYd3kB7xcoILTSbBBa3MxJkD6AxnAuoO6nsxmpz8h zXB1GcAhm41g9sY85UR2kPA9rLQaaZIibIeT65lsmcAD8b1J6/IEkIIpYR/XrP5+bTNR 9bjQ3hhyqVSx9LsZaDhqJhpf79Cox5HvP5vHtBmXp1m295I0Ii51pVfUf5Qi0iYg+HjZ 6YGWzs93KH2GcGa2KzlN5FnmDE9l7h2AmitHb26VhCsyC01NirHO48JzO/FkuMl5RWAA PSyA== X-Gm-Message-State: AOAM532EkRqGu2tniFvfhnU3SDxwWNlQU2GbADP7rdHUxgV1mZ4Et1mP MX3xI60xTdwsLfqd3strGuQbDQ== X-Received: by 2002:adf:e3c5:: with SMTP id k5mr64956020wrm.121.1594316765343; Thu, 09 Jul 2020 10:46:05 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:04 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Luben Tuikov Subject: [PATCH 06/24] scsi: aic94xx: aic94xx_seq: Document 'lseq' and repair asd_update_port_links() header Date: Thu, 9 Jul 2020 18:45:38 +0100 Message-Id: <20200709174556.7651-7-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/scsi/aic94xx/aic94xx_seq.c:587: warning: Function parameter or member 'lseq' not described in 'asd_init_lseq_mip' drivers/scsi/aic94xx/aic94xx_seq.c:674: warning: Function parameter or member 'lseq' not described in 'asd_init_lseq_mdp' drivers/scsi/aic94xx/aic94xx_seq.c:958: warning: Function parameter or member 'lseq' not described in 'asd_init_lseq_cio' drivers/scsi/aic94xx/aic94xx_seq.c:1364: warning: Function parameter or member 'asd_ha' not described in 'asd_update_port_links' drivers/scsi/aic94xx/aic94xx_seq.c:1364: warning: Function parameter or member 'phy' not described in 'asd_update_port_links' drivers/scsi/aic94xx/aic94xx_seq.c:1364: warning: Excess function parameter 'sas_phy' description in 'asd_update_port_links' Cc: Luben Tuikov Signed-off-by: Lee Jones --- drivers/scsi/aic94xx/aic94xx_seq.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/scsi/aic94xx/aic94xx_seq.c b/drivers/scsi/aic94xx/aic94xx_seq.c index 11853ec29d87a..c0f685c86851b 100644 --- a/drivers/scsi/aic94xx/aic94xx_seq.c +++ b/drivers/scsi/aic94xx/aic94xx_seq.c @@ -582,6 +582,7 @@ static void asd_init_cseq_scratch(struct asd_ha_struct *asd_ha) /** * asd_init_lseq_mip -- initialize LSEQ Mode independent pages 0-3 * @asd_ha: pointer to host adapter structure + * @lseq: link sequencer */ static void asd_init_lseq_mip(struct asd_ha_struct *asd_ha, u8 lseq) { @@ -669,6 +670,7 @@ static void asd_init_lseq_mip(struct asd_ha_struct *asd_ha, u8 lseq) /** * asd_init_lseq_mdp -- initialize LSEQ mode dependent pages. * @asd_ha: pointer to host adapter structure + * @lseq: link sequencer */ static void asd_init_lseq_mdp(struct asd_ha_struct *asd_ha, int lseq) { @@ -953,6 +955,7 @@ static void asd_init_cseq_cio(struct asd_ha_struct *asd_ha) /** * asd_init_lseq_cio -- initialize LmSEQ CIO registers * @asd_ha: pointer to host adapter structure + * @lseq: link sequencer */ static void asd_init_lseq_cio(struct asd_ha_struct *asd_ha, int lseq) { @@ -1345,7 +1348,8 @@ int asd_start_seqs(struct asd_ha_struct *asd_ha) /** * asd_update_port_links -- update port_map_by_links and phy_is_up - * @sas_phy: pointer to the phy which has been added to a port + * @asd_ha: pointer to host adapter structure + * @phy: pointer to the phy which has been added to a port * * 1) When a link reset has completed and we got BYTES DMAED with a * valid frame we call this function for that phy, to indicate that From patchwork Thu Jul 9 17:45:40 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235183 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1632537ilg; Thu, 9 Jul 2020 10:47:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyNrablmGFr4b5jDpYwMPnG+5j0DQncZb4CpNaJ0Maybo2WKOrFbVtrJ/mltF/wxMtAaW18 X-Received: by 2002:a17:906:38da:: with SMTP id r26mr55798405ejd.120.1594316854025; Thu, 09 Jul 2020 10:47:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316854; cv=none; d=google.com; s=arc-20160816; b=sUqzQEE6H647lGF9Jw8jwShedIHrf/DV0asQYs2+aeTaljYh15WYUWmnVChngBQORU du171aWF1MjegKTBdWwd8t2wL5TXiA817J4+COW2Cv7V7MwmvfMyFd+BWwThgJ8gNVkY heNnT7AjvMYYZwrcSNnA88ckbeK/ZgSILDrQjVUpprp1ygIAZAaMHT9bjzC1LSweOcYy 2qG5lE/ls7hTqvMiXVCZVz1XpHPjJZyGFdWmiyo1VO+xECGOLOyTv36cKBWHKe655Vui mJ+Y9BDrkbsyXd7NixveSsAwIw+XXT60g8gxqtGftBcl3hwsyz2aI0KPEFWS5E2GeDXd i/Bw== 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=kZ+k2VRrvfDu4ASYD2+0hveDy1rv8dVhxsnPb7NP+X0=; b=kASn+sIhP8SuZI8//LNKnnNmOBjCQnTcqFD9btJ91q4R+Xijop9ID7G3RPTFW2QT82 uGp3uHw8cHdwXRbYYNyXemeknuASz54p0uKoUZeqojWa4w6aayL+SGGYOZ4dk+PSVCsC ZQW/FD76hWsQZaKMHYSHt+5B5xUVyv/y3+0wr2FLojcX2zx+9tyGHnEzr4z8Gk/HkNih OJBkicX2O80idqR7y6+bA8Kki4H3hL/s2mtF6lSZnxAVS66ulPuZNawhPlElEtynCcyv 8LKDHzbP55uttSjUhsIqtUrpFftYmAlaipM/LUC2mHUlKuhMNsCGCIAGsX32PhHvo+3o Dkrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=V8V9ImnR; 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 h7si2395058ejy.82.2020.07.09.10.47.33 for ; Thu, 09 Jul 2020 10:47:34 -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=V8V9ImnR; 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 S1728824AbgGIRr3 (ORCPT ); Thu, 9 Jul 2020 13:47:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728505AbgGIRqJ (ORCPT ); Thu, 9 Jul 2020 13:46:09 -0400 Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E401DC08E6DC for ; Thu, 9 Jul 2020 10:46:08 -0700 (PDT) Received: by mail-wr1-x442.google.com with SMTP id f7so3317458wrw.1 for ; Thu, 09 Jul 2020 10:46:08 -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=kZ+k2VRrvfDu4ASYD2+0hveDy1rv8dVhxsnPb7NP+X0=; b=V8V9ImnR8xB5UICcA8klK0T3O2TMEGcxT3IeNsvPi2SesI8NXMjPkjfKTzlDixJeCA TQUqVu9VgmdWB+IBVVm0GRFDpp3C7Gk64FNmT42cb45zFIF6tGGGrHhXyzp6hbmv9o+R u8TYWFy6Cr7KgZDkvlKEz8xv7m2tev+Z26lCnfQh3hnc1EebHn1tpGWwp34hZ4n9rDgo kIVsqIXv64xReH0F7tfZIN+biNjWMFRe5z+Ri70+RxymufKT/jhglyDIQQEkuPVjzlAo tBASIAPgtFIRXkLj84Eq/CYZEOVlPaD1UXcI1xLsL+/1SRFCDJaiM0te7MPC2S/VM+u7 7w9A== 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=kZ+k2VRrvfDu4ASYD2+0hveDy1rv8dVhxsnPb7NP+X0=; b=dCpTqEuIFVqnT6jD3OUdqZEXd0JY/ZdTdewfqm9OKP8tSCaKnTu2PDaOewF13x2gsH rzahB8iR/gi6H2fZSI/q1XhGFeVeq65zPygfxNenGyynB7qoauo0acnUAGoIxddHf/IF plG3pRPHH9r7E6tq505kOzr2+nc5146c8Ksyn9C4h9eXhGTb42fzC91oy/CuErGpTwFZ phn4ivXA4EZRFmZ9X9P8GT1dtvL66deH0KwgnPYZ/bjpXX7LAnhKvbIMCyQBz9ivz79C 6svoHWqXaAd3MYIdH6SEyybTzuWM+LItzJR4N8Ijy+mZZUh3azL9URK8ZWfKQtv6heDg ouiQ== X-Gm-Message-State: AOAM530FX2p9zd3IUjhYoMdTw5s5Q6x6nLYl4ajluA+VJSSwAwVC23V7 klV6ret1WZjzq+U0oQfG0sg/Rw== X-Received: by 2002:adf:c44d:: with SMTP id a13mr66244554wrg.205.1594316767535; Thu, 09 Jul 2020 10:46:07 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:07 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Luben Tuikov Subject: [PATCH 08/24] scsi: aic94xx: aic94xx_scb: Fix a couple of formatting and bitrot issues Date: Thu, 9 Jul 2020 18:45:40 +0100 Message-Id: <20200709174556.7651-9-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Kerneldoc format should be '@.*: ', else the checker gets confused. Fixes the following W=1 kernel build warning(s): drivers/scsi/aic94xx/aic94xx_scb.c:137: warning: Function parameter or member 'phy' not described in 'asd_get_attached_sas_addr' drivers/scsi/aic94xx/aic94xx_scb.c:137: warning: Function parameter or member 'sas_addr' not described in 'asd_get_attached_sas_addr' drivers/scsi/aic94xx/aic94xx_scb.c:860: warning: Function parameter or member 't' not described in 'asd_ascb_timedout' drivers/scsi/aic94xx/aic94xx_scb.c:860: warning: Excess function parameter 'data' description in 'asd_ascb_timedout' Cc: Luben Tuikov Signed-off-by: Lee Jones --- drivers/scsi/aic94xx/aic94xx_scb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/aic94xx/aic94xx_scb.c b/drivers/scsi/aic94xx/aic94xx_scb.c index 4a80ec08f0c96..c264b4b56970b 100644 --- a/drivers/scsi/aic94xx/aic94xx_scb.c +++ b/drivers/scsi/aic94xx/aic94xx_scb.c @@ -123,8 +123,8 @@ static unsigned ord_phy(struct asd_ha_struct *asd_ha, struct asd_phy *phy) /** * asd_get_attached_sas_addr -- extract/generate attached SAS address - * phy: pointer to asd_phy - * sas_addr: pointer to buffer where the SAS address is to be written + * @phy: pointer to asd_phy + * @sas_addr: pointer to buffer where the SAS address is to be written * * This function extracts the SAS address from an IDENTIFY frame * received. If OOB is SATA, then a SAS address is generated from the @@ -847,7 +847,7 @@ void asd_build_initiate_link_adm_task(struct asd_ascb *ascb, int phy_id, /** * asd_ascb_timedout -- called when a pending SCB's timer has expired - * @data: unsigned long, a pointer to the ascb in question + * @t: Timer context used to fetch the SCB * * This is the default timeout function which does the most necessary. * Upper layers can implement their own timeout function, say to free From patchwork Thu Jul 9 17:45:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235167 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1631542ilg; Thu, 9 Jul 2020 10:46:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwZtSHoPklr7O8tJt/fw1EZn27F1ybBtjTwhjcQFZWafod9gQjG3EUloYcEEA56Odvh/tyT X-Received: by 2002:a50:bf09:: with SMTP id f9mr13768573edk.249.1594316774742; Thu, 09 Jul 2020 10:46:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316774; cv=none; d=google.com; s=arc-20160816; b=w9m9U9UNfpIoDZwhmvZoj8PDJbOR5PI0ZIuKFCjueM/SSczP1MrBFPJRXkrcE3zYS+ ellWZNDffl7st+E6B1ogTNLPLOwlp4vxTWfJ/X0UlM6u4EvK9W7KIoaSKXkhw06n0eMO jRnGNSqRpWXynE7Typtujv2gtiQip6p69aqdB0yXu7rUfqx4d3MTXLro4uNBgPuPYw7W Ck2f5kD7U6QoIpgoP/hPxShqtW1TYAGba+bqh9vOCIHNKhaCwxNfutH1w+k4jld7i94F ojMDPfSHv3RG4dN6eCB0cmZZnyWHL+siv+YTguljdEwILvKblL24bmvhXMdktyN30TWO GcMA== 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=uh7jTGgLUvWvRRLhz59nl6r+4sZq+HqjUUSpbbMrHCY=; b=cRnEhXCDs14wYpWbi05af3fXDOquJzuZ/8bDTmzB4aGDP9ki+dZ3AAX0flURDdbGmQ N85R+pfYSwLN7s7MplnxZb6v35O9MZkJGOIVd+ZkRAOiQc55ePg8ZY/Yi8p7Dlem5zr4 L4/KXIehYv9L6M9z5v3MWmKC12+UDE/UYcSDy0GwRPGDARZusln2a+86X476amQ7vh1m F2d29oMwLGganM8+ZO2BtXy1vO4qx9f/wXQjD2QYIVmb1ikdT6MENUO8pPZcww/3426u Z9jgGx5THtrjypg275gPAfqB7SgUFsYfnEEdczYLoEdDA3V0M2I2UA5J7Q6QBAZOuwGj xV2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GYXOd0wu; 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 dt12si3231862ejc.46.2020.07.09.10.46.14 for ; Thu, 09 Jul 2020 10:46:14 -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=GYXOd0wu; 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 S1728537AbgGIRqM (ORCPT ); Thu, 9 Jul 2020 13:46:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48924 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728511AbgGIRqK (ORCPT ); Thu, 9 Jul 2020 13:46:10 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E62BBC08E806 for ; Thu, 9 Jul 2020 10:46:09 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id b6so3271616wrs.11 for ; Thu, 09 Jul 2020 10:46: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=uh7jTGgLUvWvRRLhz59nl6r+4sZq+HqjUUSpbbMrHCY=; b=GYXOd0wuBdczRMDN8s4/gPG4FoikNnntxhvE9lW59BFIBaqDL0riZHtrvYndU5j0sb MI2Eo17OXvq3mZsgzVgUpaDeZUmsA1qmK7WYoNNLymEeFc8UiadW0tG9kPub/HdLK9Up FcmkaK6f/9m+tUGl0f05ctArSBCO03IfxgI3Baav58gqtvTkpBPq4MdCn8f6t64Nysok BvTJeWctmB4J1MVBxMatEZaZg7NNOuoQFlhkfaSdEdvWDF38eoUK22acWfs2H0dnTy+8 aKnX049/CB9vBU2RrN7xEg4XbsL98iNbVo1TSCGUcheVpIuhOKz2TX1c96AGIBZQZ/Kc wIPg== 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=uh7jTGgLUvWvRRLhz59nl6r+4sZq+HqjUUSpbbMrHCY=; b=OjgfFhQ4qZURl6kzT9C5P0LKSbbM7R+7q67tFctUxZXtibpLL+66A13W7ovvpLlx3G iAIldTKXtRvL72IvWdB2oi+FIAwTWJxx4jD0wZUNqEkcEQz0sV2i5JO4XFx6NKY/mPGT JoZ2DYQqavUUAbQz4nD+fK5nrga1OkDvvh6pLaJLLAM9oljhuDGiJm0fnCkHuEjJdOiN DEeOaMc/LU1/RijXGsnjZAofFf8pTzXve/yLbfECdblpqz0CN4Rwnw1fV+m6GwIH2QJL uwdKvIwE//IZ6PGwblf3ANDTVrl+1jaDzWltAqrluMeAv+Q4Eubw6s+9VzDCT6F42oD8 BHIQ== X-Gm-Message-State: AOAM5336pLmigq+4FvC0f06Qx58kcvBb7bcmdTSFURwMq2+iIpI3aY6Y 7Y58zvaYj/iSYcwsCgM1ff9oOw== X-Received: by 2002:adf:dd83:: with SMTP id x3mr70095952wrl.292.1594316768677; Thu, 09 Jul 2020 10:46:08 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:07 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Adaptec OEM Raid Solutions , "PMC-Sierra, Inc" Subject: [PATCH 09/24] scsi: aacraid: rx: Fill in the very parameter descriptions for rx_sync_cmd() Date: Thu, 9 Jul 2020 18:45:41 +0100 Message-Id: <20200709174556.7651-10-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org ... and document aac_rx_ioremap() 'dev' param. Fixes the following W=1 kernel build warning(s): drivers/scsi/aacraid/rx.c:156: warning: Function parameter or member 'p2' not described in 'rx_sync_cmd' drivers/scsi/aacraid/rx.c:156: warning: Function parameter or member 'p3' not described in 'rx_sync_cmd' drivers/scsi/aacraid/rx.c:156: warning: Function parameter or member 'p4' not described in 'rx_sync_cmd' drivers/scsi/aacraid/rx.c:156: warning: Function parameter or member 'p5' not described in 'rx_sync_cmd' drivers/scsi/aacraid/rx.c:156: warning: Function parameter or member 'p6' not described in 'rx_sync_cmd' drivers/scsi/aacraid/rx.c:156: warning: Function parameter or member 'status' not described in 'rx_sync_cmd' drivers/scsi/aacraid/rx.c:156: warning: Function parameter or member 'r1' not described in 'rx_sync_cmd' drivers/scsi/aacraid/rx.c:156: warning: Function parameter or member 'r2' not described in 'rx_sync_cmd' drivers/scsi/aacraid/rx.c:156: warning: Function parameter or member 'r3' not described in 'rx_sync_cmd' drivers/scsi/aacraid/rx.c:156: warning: Function parameter or member 'r4' not described in 'rx_sync_cmd' drivers/scsi/aacraid/rx.c:156: warning: Excess function parameter 'ret' description in 'rx_sync_cmd' drivers/scsi/aacraid/rx.c:450: warning: Function parameter or member 'dev' not described in 'aac_rx_ioremap' Cc: Adaptec OEM Raid Solutions Cc: "PMC-Sierra, Inc" Signed-off-by: Lee Jones --- drivers/scsi/aacraid/rx.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/scsi/aacraid/rx.c b/drivers/scsi/aacraid/rx.c index 3dea348bd25d2..cdccf9abcdc40 100644 --- a/drivers/scsi/aacraid/rx.c +++ b/drivers/scsi/aacraid/rx.c @@ -144,7 +144,16 @@ static void aac_rx_enable_interrupt_message(struct aac_dev *dev) * @dev: Adapter * @command: Command to execute * @p1: first parameter - * @ret: adapter status + * @p2: second parameter + * @p3: third parameter + * @p4: forth parameter + * @p5: fifth parameter + * @p6: sixth parameter + * @status: adapter status + * @r1: first return value + * @r2: second return value + * @r3: third return value + * @r4: forth return value * * This routine will send a synchronous command to the adapter and wait * for its completion. @@ -443,6 +452,7 @@ static int aac_rx_deliver_message(struct fib * fib) /** * aac_rx_ioremap + * @dev: adapter * @size: mapping resize request * */ From patchwork Thu Jul 9 17:45:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235180 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1632247ilg; Thu, 9 Jul 2020 10:47:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrVzbhKjs0SnpW7X+GHry1SjRP8zusIWswBeF8XHN1MiKND1SI+8V/heG+a8xGDyGtNkSs X-Received: by 2002:a17:906:1187:: with SMTP id n7mr51481672eja.161.1594316832315; Thu, 09 Jul 2020 10:47:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316832; cv=none; d=google.com; s=arc-20160816; b=oBnQJWhwYsi7jzWMPtmPyEoqi2Rnwwo7nJAYenIFCUbkE+KzYlGRkzCiakwbDT5+UY AhKkfYAAPRTyA9oockVMxkTy57vSZBFjdWykmh2iK+ugVr2wu50G0kMxyQ3Dvm+2U8Mb rivFcv7Deat673J3gpV2ioPLxZvXsxOVNqt5399yWA4RkeAy0ptPlMeu3VVLwP1KmC2m RNobbXY7GMwj+HkC2zUtmZQIuKKjjs5QZRBT96Ism4vdrcLBSPc0eg4DUfm6Ll1MBsqC bu4TMVlWYC1zxcb0zy9Kn/T54SFwdGVvxmu+OwLBY4zJK/2bIbWmn5+FpIQiHUwiSz+t lyFg== 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=9wNqiWDnOoV7Tq3fUIjX7bWnfvj892xNMMafz42JpFQ=; b=v6Y76gaJNyJJzy8r+NVzKrY3KNEw/wKx2bFVHdPipMUl3R53uEKvNnf54EaJ7i8v6c PP3oA+DuYI8W3UXi4ajdeoIZHivaRq251J/aYGxVYXpnjfhluEfjJlV334X2ZOHb+qkd 0oazunoFrUqk2lm6VyRvowM5oKqNM1onv9AxNv2jYpDCYBSLQ5Dzt0qy3uTbpj2eee+G qUHzJ+AThfOWL4/Zx1penOJ3coZbkdn0i/tdZHNygZo5YdctFwMqME7Ui2bZlN8zRpJ5 iIvpbWzPFsdXcF22JW+AK76FLIM285g4cWKkN8uijqvakYMSv9zLLWmEvd1JupTRHjXR Mr6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BJrbKWjh; 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 rp17si2278719ejb.67.2020.07.09.10.47.12 for ; Thu, 09 Jul 2020 10:47:12 -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=BJrbKWjh; 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 S1728555AbgGIRqN (ORCPT ); Thu, 9 Jul 2020 13:46:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48918 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728525AbgGIRqL (ORCPT ); Thu, 9 Jul 2020 13:46:11 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A68BC08E85B for ; Thu, 9 Jul 2020 10:46:11 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id o2so2758718wmh.2 for ; Thu, 09 Jul 2020 10:46:11 -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=9wNqiWDnOoV7Tq3fUIjX7bWnfvj892xNMMafz42JpFQ=; b=BJrbKWjhzBBh3RMZVhYHcaOZZkUTOhhAMuZGWd99TPgvncnZcAR2gQzAJUhbxHvzaT vcDPLIjTG4BsY5JKOHabnqPAt2Tlq7bfhTLjnzZMe90hTRY6Of+nYm4bZ2xnOnfoL9zq P80f+Yfz3QD4K4PmO+myZ3I+siGXxnKFoN6Bm5c0nchOvxQeRyFdvYcPto1Mjzzifhbe Jp7vU+Hse0BH2ZUv+/K3SkD/RH/mg77jH4Yg5PC38+OcX1D6RwEk3AFudbPG/k/mCR6j hP6wGblrlsnEUpLTL/b7jMih86Q03Fbd4TgLEXrDtJ/WOdRqhArvb8EkisYH1ubMMjF4 NAbQ== 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=9wNqiWDnOoV7Tq3fUIjX7bWnfvj892xNMMafz42JpFQ=; b=iHVSJ2b6BvWqZEWpzytD1PJerKo1z7NmZOKJ/9HzTPJTXP9GOiW5SrPFgtITZpMS6l bN2NQYGWzWriYWQbKqFgPqeztQQ+nU8atrJnL+sG9MfsM/F0VNuASXrnxTStqUNmDgAG E1+0X4i6Pfs+kexoCWS69DV+dybRrdjfkqcAkvUAgY+eBVkzCjjh/b3BMRYegRM90I8O mAe09ywIYrXzV2I57UVyvJiYnW261IUvPSp9rJYrmJfM3OPi8NgOqnmzGkzCANRDuMkl aQoNE3QwEjs3C46MDIQquX0djnK9rt3fQbJSyUxJormt9XyGTOXK+4PEjlldZDK5o9zS DWXg== X-Gm-Message-State: AOAM5326aYjCKBB9HTX+pv3DTI2/WeoJ/g1C0KeDoIfu61fGHkwzEYL8 lHmMm/YG8IQ7n5e6YERDeCJNqA== X-Received: by 2002:a7b:ce87:: with SMTP id q7mr1169747wmj.39.1594316769822; Thu, 09 Jul 2020 10:46:09 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:09 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Jack Wang Subject: [PATCH 10/24] scsi: pm8001: pm8001_ctl: Provide descriptions for the many undocumented 'attr's Date: Thu, 9 Jul 2020 18:45:42 +0100 Message-Id: <20200709174556.7651-11-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org ... even if they are completely unused. Fixes the following W=1 kernel build warning(s): drivers/scsi/pm8001/pm8001_ctl.c:56: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_mpi_interface_rev_show' drivers/scsi/pm8001/pm8001_ctl.c:81: warning: Function parameter or member 'attr' not described in 'controller_fatal_error_show' drivers/scsi/pm8001/pm8001_ctl.c:100: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_fw_version_show' drivers/scsi/pm8001/pm8001_ctl.c:130: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_ila_version_show' drivers/scsi/pm8001/pm8001_ctl.c:155: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_inactive_fw_version_show' drivers/scsi/pm8001/pm8001_ctl.c:181: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_max_out_io_show' drivers/scsi/pm8001/pm8001_ctl.c:204: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_max_devices_show' drivers/scsi/pm8001/pm8001_ctl.c:230: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_max_sg_list_show' drivers/scsi/pm8001/pm8001_ctl.c:274: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_sas_spec_support_show' drivers/scsi/pm8001/pm8001_ctl.c:303: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_host_sas_address_show' drivers/scsi/pm8001/pm8001_ctl.c:322: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_logging_level_show' drivers/scsi/pm8001/pm8001_ctl.c:355: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_aap_log_show' drivers/scsi/pm8001/pm8001_ctl.c:390: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_ib_queue_log_show' drivers/scsi/pm8001/pm8001_ctl.c:423: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_ob_queue_log_show' drivers/scsi/pm8001/pm8001_ctl.c:454: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_bios_version_show' drivers/scsi/pm8001/pm8001_ctl.c:492: warning: Function parameter or member 'attr' not described in 'event_log_size_show' drivers/scsi/pm8001/pm8001_ctl.c:510: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_iop_log_show' drivers/scsi/pm8001/pm8001_ctl.c:548: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_fatal_log_show' drivers/scsi/pm8001/pm8001_ctl.c:566: warning: Function parameter or member 'attr' not described in 'non_fatal_log_show' drivers/scsi/pm8001/pm8001_ctl.c:609: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_gsm_log_show' Cc: Jack Wang Signed-off-by: Lee Jones --- drivers/scsi/pm8001/pm8001_ctl.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) -- 2.25.1 diff --git a/drivers/scsi/pm8001/pm8001_ctl.c b/drivers/scsi/pm8001/pm8001_ctl.c index 3c9f42779dd02..a5f3c702ada9f 100644 --- a/drivers/scsi/pm8001/pm8001_ctl.c +++ b/drivers/scsi/pm8001/pm8001_ctl.c @@ -47,6 +47,7 @@ /** * pm8001_ctl_mpi_interface_rev_show - MPI interface revision number * @cdev: pointer to embedded class device + * @attr: device attribute (unused) * @buf: the buffer returned * * A sysfs 'read-only' shost attribute. @@ -72,6 +73,7 @@ DEVICE_ATTR(interface_rev, S_IRUGO, pm8001_ctl_mpi_interface_rev_show, NULL); /** * controller_fatal_error_show - check controller is under fatal err * @cdev: pointer to embedded class device + * @attr: device attribute (unused) * @buf: the buffer returned * * A sysfs 'read only' shost attribute. @@ -121,6 +123,7 @@ static DEVICE_ATTR(fw_version, S_IRUGO, pm8001_ctl_fw_version_show, NULL); /** * pm8001_ctl_ila_version_show - ila version * @cdev: pointer to embedded class device + * @attr: device attribute (unused) * @buf: the buffer returned * * A sysfs 'read-only' shost attribute. @@ -146,6 +149,7 @@ static DEVICE_ATTR(ila_version, 0444, pm8001_ctl_ila_version_show, NULL); /** * pm8001_ctl_inactive_fw_version_show - Inacative firmware version number * @cdev: pointer to embedded class device + * @attr: device attribute (unused) * @buf: the buffer returned * * A sysfs 'read-only' shost attribute. @@ -172,6 +176,7 @@ DEVICE_ATTR(inc_fw_ver, 0444, pm8001_ctl_inactive_fw_version_show, NULL); /** * pm8001_ctl_max_out_io_show - max outstanding io supported * @cdev: pointer to embedded class device + * @attr: device attribute (unused) * @buf: the buffer returned * * A sysfs 'read-only' shost attribute. @@ -195,6 +200,7 @@ static DEVICE_ATTR(max_out_io, S_IRUGO, pm8001_ctl_max_out_io_show, NULL); /** * pm8001_ctl_max_devices_show - max devices support * @cdev: pointer to embedded class device + * @attr: device attribute (unused) * @buf: the buffer returned * * A sysfs 'read-only' shost attribute. @@ -221,6 +227,7 @@ static DEVICE_ATTR(max_devices, S_IRUGO, pm8001_ctl_max_devices_show, NULL); * pm8001_ctl_max_sg_list_show - max sg list supported iff not 0.0 for no * hardware limitation * @cdev: pointer to embedded class device + * @attr: device attribute (unused) * @buf: the buffer returned * * A sysfs 'read-only' shost attribute. @@ -265,6 +272,7 @@ show_sas_spec_support_status(unsigned int mode, char *buf) /** * pm8001_ctl_sas_spec_support_show - sas spec supported * @cdev: pointer to embedded class device + * @attr: device attribute (unused) * @buf: the buffer returned * * A sysfs 'read-only' shost attribute. @@ -292,6 +300,7 @@ static DEVICE_ATTR(sas_spec_support, S_IRUGO, /** * pm8001_ctl_sas_address_show - sas address * @cdev: pointer to embedded class device + * @attr: device attribute (unused) * @buf: the buffer returned * * This is the controller sas address @@ -346,6 +355,7 @@ static DEVICE_ATTR(logging_level, S_IRUGO | S_IWUSR, /** * pm8001_ctl_aap_log_show - aap1 event log * @cdev: pointer to embedded class device + * @attr: device attribute (unused) * @buf: the buffer returned * * A sysfs 'read-only' shost attribute. @@ -483,6 +493,7 @@ static DEVICE_ATTR(bios_version, S_IRUGO, pm8001_ctl_bios_version_show, NULL); /** * event_log_size_show - event log size * @cdev: pointer to embedded class device + * @attr: device attribute (unused) * @buf: the buffer returned * * A sysfs read shost attribute. @@ -501,6 +512,7 @@ static DEVICE_ATTR_RO(event_log_size); /** * pm8001_ctl_aap_log_show - IOP event log * @cdev: pointer to embedded class device + * @attr: device attribute (unused) * @buf: the buffer returned * * A sysfs 'read-only' shost attribute. @@ -538,6 +550,7 @@ static DEVICE_ATTR(iop_log, S_IRUGO, pm8001_ctl_iop_log_show, NULL); /** ** pm8001_ctl_fatal_log_show - fatal error logging ** @cdev:pointer to embedded class device + ** @attr: device attribute ** @buf: the buffer returned ** ** A sysfs 'read-only' shost attribute. @@ -557,6 +570,7 @@ static DEVICE_ATTR(fatal_log, S_IRUGO, pm8001_ctl_fatal_log_show, NULL); /** ** non_fatal_log_show - non fatal error logging ** @cdev:pointer to embedded class device + ** @attr: device attribute ** @buf: the buffer returned ** ** A sysfs 'read-only' shost attribute. From patchwork Thu Jul 9 17:45:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235181 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1632274ilg; Thu, 9 Jul 2020 10:47:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx43kJLi/HUG659wD6GNdA4xVCMdBhghmKQEXCBFlDCENkcW4/C/vg6KUM0A0dFRiSVO+c/ X-Received: by 2002:aa7:cd50:: with SMTP id v16mr66055513edw.252.1594316835190; Thu, 09 Jul 2020 10:47:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316835; cv=none; d=google.com; s=arc-20160816; b=lC+SMQlTUduoiGLITTTaik0xM2L8cNwd7gbIU/3QU0oCgDFutilswySvBYIh0i+wcr UMYstYeAdlLotn6wc6CqXGwzZWhbzimFqjAo/DFJAhvwHnZElnz0f+/rOO/MoyIRLN9y 3NpAvp1Y0KQTFbd6fccWxU799w1+Zv2j9e5RkJHNTC3ullY2sG+Saw4cQNjyp7ZrVKrU h/5AQes+3Np2RnULMXhzBiKjam5TL00ZZoMwtGReYqN1PoIw3xu32n0T7WZI7k6YXITK JlefCnj5S0nJXGDOe9eZotreR17I9m4WPIiSkqHylmzVzmIN7Nu8+Dj4kjJ0iUGh/K6n mlCA== 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=EB1Ee82K4f4wX+Lz3kbrIOyla+XpjuhxPTOuxM4xsjo=; b=DbP+ximVaY0Q5pWHhdlnT8s3FbsfO8TeY6g2zIqRGEdmhMIas5ch2qu5P+/yBvtHMD LkBSTnTEXuh9lvMfXPsGgkIvOOoZLvq1O6JlHXPnZfC+gHAe8Hjq903XrjXRToUPeGye xTdR2FDPz3jSrTU5CKlNCTb+26z12SiI89qzSiSIAXXz42wsUM7x5WbFV/Q0NPr3Zaw+ RbhzrvNApuM2l9f7FCiSo1RUs89otjjGARNehcSfY+ujXDYuJLyaS2mFg/3yzqvjLAjL RKl6V2ov+0sIY+2+RHAezVECvnSb0MvK4RSvfsvKr963SIS9EunBwtGG8GQQPr89KCMI IUfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wlTGqbaY; 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 w11si2644332edq.29.2020.07.09.10.47.15 for ; Thu, 09 Jul 2020 10:47:15 -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=wlTGqbaY; 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 S1728775AbgGIRrM (ORCPT ); Thu, 9 Jul 2020 13:47:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728544AbgGIRqN (ORCPT ); Thu, 9 Jul 2020 13:46:13 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9408BC08C5DC for ; Thu, 9 Jul 2020 10:46:12 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id l2so2758082wmf.0 for ; Thu, 09 Jul 2020 10:46: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=EB1Ee82K4f4wX+Lz3kbrIOyla+XpjuhxPTOuxM4xsjo=; b=wlTGqbaYKKbdbcljkIiscVzW5oCvUGHOy9PkQij41adWFo5Ao+AiY95JgIsZq6F+Xi fiBA0Ph19tkA6hnBX7ZUVPgs2zLLzQAQhofyMFAfQLVcN9XAInBj3Bw8z6NX5Sy29hLy 6mT5440E1R6ECW8PyU4RgxMXSwwaamU6z3Lrg0IQB08cqX1F65YLgf/l/stE6DWjBlKc 6TMoP38JU1vabIZngDJGS2LK+7FAkGX4ZXnhM069E6fkSA6toesvUxMTN+fgTp4c14DU 5aWuBQL+ek/AYBYKXAX1C8Hj0tguuf715AsYSexx70pfqY0C6XyxMFVOtHiHctEp8YVI 6b4g== 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=EB1Ee82K4f4wX+Lz3kbrIOyla+XpjuhxPTOuxM4xsjo=; b=NflKOAm/h92Ws1Zy/8Z3B0c9biunHOqqTe51HLOcI32sGWh4lJgnM94D8YF00Dd/gs 5SZMon4KoKhXvSTZt9q+NQfmZwpddsdSAzRA4t09mTvyA/fGqQ9X+SyAg3E7lroynA1o uC5OLMIdwziC+n9Ddr+AZIIL91rV7aIKElF+Faen6UBOwHI2Q+4o0fpWq3NCSYjZQ2LE TTgZ5auu2DEhfuvC3klpXDx0W7+QlwpJn7egIqPn7Nv1oGpZvU+0B+MqEFBpMxfiOOrw KzfFlsJPyyQkxR4cU+ueDB6OJetprjLJdV8jpMM3rpw+Shodjl6uHPPz/ISnDv28dfBY a/KA== X-Gm-Message-State: AOAM530uzYDvtxHWTvpr2/feuIuqEFb0Gwg7SPx8cnj9s+hE7YevjoYA CLHLkNuft6X8DKvfdGHKZAR7gg== X-Received: by 2002:a05:600c:2295:: with SMTP id 21mr1076145wmf.29.1594316770921; Thu, 09 Jul 2020 10:46:10 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:10 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Brian King Subject: [PATCH 11/24] scsi: ipr: Fix a mountain of kerneldoc misdemeanours Date: Thu, 9 Jul 2020 18:45:43 +0100 Message-Id: <20200709174556.7651-12-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Mainly misspellings and/or missing function parameter descriptions. Fixes the following W=1 kernel build warning(s): drivers/scsi/ipr.c:10100:15: warning: variable ‘int_reg’ set but not used [-Wunused-but-set-variable] drivers/scsi/ipr.c:679: warning: Function parameter or member 'fast_done' not described in 'ipr_init_ipr_cmnd' drivers/scsi/ipr.c:697: warning: Function parameter or member 'hrrq' not described in '__ipr_get_free_ipr_cmnd' drivers/scsi/ipr.c:697: warning: Excess function parameter 'ioa_cfg' description in '__ipr_get_free_ipr_cmnd' drivers/scsi/ipr.c:1297: warning: Function parameter or member 'buffer' not described in '__ipr_format_res_path' drivers/scsi/ipr.c:1297: warning: Excess function parameter 'buf' description in '__ipr_format_res_path' drivers/scsi/ipr.c:1321: warning: Function parameter or member 'buffer' not described in 'ipr_format_res_path' drivers/scsi/ipr.c:1321: warning: Excess function parameter 'buf' description in 'ipr_format_res_path' drivers/scsi/ipr.c:1400: warning: Excess function parameter 'cfgtew' description in 'ipr_clear_res_target' drivers/scsi/ipr.c:2679: warning: Function parameter or member 't' not described in 'ipr_timeout' drivers/scsi/ipr.c:2679: warning: Excess function parameter 'ipr_cmd' description in 'ipr_timeout' drivers/scsi/ipr.c:2712: warning: Function parameter or member 't' not described in 'ipr_oper_timeout' drivers/scsi/ipr.c:2712: warning: Excess function parameter 'ipr_cmd' description in 'ipr_oper_timeout' drivers/scsi/ipr.c:3494: warning: Function parameter or member 'attr' not described in 'ipr_show_fw_version' drivers/scsi/ipr.c:3528: warning: Function parameter or member 'attr' not described in 'ipr_show_log_level' drivers/scsi/ipr.c:3551: warning: Function parameter or member 'attr' not described in 'ipr_store_log_level' drivers/scsi/ipr.c:3551: warning: Function parameter or member 'count' not described in 'ipr_store_log_level' drivers/scsi/ipr.c:3586: warning: Function parameter or member 'attr' not described in 'ipr_store_diagnostics' drivers/scsi/ipr.c:3642: warning: Function parameter or member 'dev' not described in 'ipr_show_adapter_state' drivers/scsi/ipr.c:3642: warning: Function parameter or member 'attr' not described in 'ipr_show_adapter_state' drivers/scsi/ipr.c:3642: warning: Excess function parameter 'class_dev' description in 'ipr_show_adapter_state' drivers/scsi/ipr.c:3671: warning: Function parameter or member 'attr' not described in 'ipr_store_adapter_state' drivers/scsi/ipr.c:3722: warning: Function parameter or member 'attr' not described in 'ipr_store_reset_adapter' drivers/scsi/ipr.c:3783: warning: Function parameter or member 'attr' not described in 'ipr_store_iopoll_weight' drivers/scsi/ipr.c:3783: warning: Function parameter or member 'count' not described in 'ipr_store_iopoll_weight' drivers/scsi/ipr.c:3883: warning: Function parameter or member 'sglist' not described in 'ipr_free_ucode_buffer' drivers/scsi/ipr.c:3883: warning: Excess function parameter 'p_dnld' description in 'ipr_free_ucode_buffer' drivers/scsi/ipr.c:4074: warning: Function parameter or member 'dev' not described in 'ipr_store_update_fw' drivers/scsi/ipr.c:4074: warning: Function parameter or member 'attr' not described in 'ipr_store_update_fw' drivers/scsi/ipr.c:4074: warning: Excess function parameter 'class_dev' description in 'ipr_store_update_fw' drivers/scsi/ipr.c:4149: warning: Function parameter or member 'attr' not described in 'ipr_show_fw_type' drivers/scsi/ipr.c:4489: warning: Excess function parameter 'reason' description in 'ipr_change_queue_depth' drivers/scsi/ipr.c:4660: warning: Function parameter or member 'attr' not described in 'ipr_show_raw_mode' drivers/scsi/ipr.c:4688: warning: Function parameter or member 'attr' not described in 'ipr_store_raw_mode' drivers/scsi/ipr.c:4688: warning: Function parameter or member 'count' not described in 'ipr_store_raw_mode' drivers/scsi/ipr.c:5069: warning: Function parameter or member 'ipr_cmd' not described in 'ipr_cmnd_is_free' drivers/scsi/ipr.c:5108: warning: Function parameter or member 'ioa_cfg' not described in 'ipr_wait_for_ops' drivers/scsi/ipr.c:5108: warning: Excess function parameter 'ipr_cmd' description in 'ipr_wait_for_ops' drivers/scsi/ipr.c:5272: warning: Function parameter or member 'deadline' not described in 'ipr_sata_reset' drivers/scsi/ipr.c:5453: warning: Function parameter or member 't' not described in 'ipr_abort_timeout' drivers/scsi/ipr.c:5453: warning: Excess function parameter 'ipr_cmd' description in 'ipr_abort_timeout' drivers/scsi/ipr.c:5578: warning: Function parameter or member 'shost' not described in 'ipr_scan_finished' drivers/scsi/ipr.c:5578: warning: Function parameter or member 'elapsed_time' not described in 'ipr_scan_finished' drivers/scsi/ipr.c:5578: warning: Excess function parameter 'scsi_cmd' description in 'ipr_scan_finished' drivers/scsi/ipr.c:5704: warning: Function parameter or member 'number' not described in 'ipr_isr_eh' drivers/scsi/ipr.c:6278: warning: Function parameter or member 'ipr_cmd' not described in 'ipr_gen_sense' drivers/scsi/ipr.c:6278: warning: Excess function parameter 'ioasa' description in 'ipr_gen_sense' drivers/scsi/ipr.c:6278: warning: Excess function parameter 'sense_buf' description in 'ipr_gen_sense' drivers/scsi/ipr.c:6711: warning: Function parameter or member 'host' not described in 'ipr_ioa_info' drivers/scsi/ipr.c:6711: warning: Excess function parameter 'scsi_host' description in 'ipr_ioa_info' drivers/scsi/ipr.c:7606: warning: Function parameter or member 'res_handle' not described in 'ipr_build_mode_sense' drivers/scsi/ipr.c:7606: warning: Excess function parameter 'res' description in 'ipr_build_mode_sense' drivers/scsi/ipr.c:7947: warning: Function parameter or member 'ipr_cmd' not described in 'ipr_ioafp_set_caching_parameters' drivers/scsi/ipr.c:7986: warning: Function parameter or member 'flags' not described in 'ipr_ioafp_inquiry' drivers/scsi/ipr.c:7986: warning: Function parameter or member 'page' not described in 'ipr_ioafp_inquiry' drivers/scsi/ipr.c:7986: warning: Function parameter or member 'dma_addr' not described in 'ipr_ioafp_inquiry' drivers/scsi/ipr.c:7986: warning: Function parameter or member 'xfer_len' not described in 'ipr_ioafp_inquiry' drivers/scsi/ipr.c:8280: warning: Function parameter or member 't' not described in 'ipr_reset_timer_done' drivers/scsi/ipr.c:8280: warning: Excess function parameter 'ipr_cmd' description in 'ipr_reset_timer_done' drivers/scsi/ipr.c:9486: warning: bad line: drivers/scsi/ipr.c:9609: warning: Function parameter or member 'ioa_cfg' not described in 'ipr_free_all_resources' drivers/scsi/ipr.c:9609: warning: Excess function parameter 'ipr_cmd' description in 'ipr_free_all_resources' drivers/scsi/ipr.c:10071: warning: Function parameter or member 'irq' not described in 'ipr_test_intr' drivers/scsi/ipr.c:10071: warning: Function parameter or member 'devp' not described in 'ipr_test_intr' drivers/scsi/ipr.c:10071: warning: Excess function parameter 'pdev' description in 'ipr_test_intr' drivers/scsi/ipr.c:10098: warning: Function parameter or member 'ioa_cfg' not described in 'ipr_test_msi' drivers/scsi/ipr.c:10538: warning: Function parameter or member 'pdev' not described in 'ipr_probe' drivers/scsi/ipr.c:10538: warning: Function parameter or member 'dev_id' not described in 'ipr_probe' drivers/scsi/ipr.c:10794: warning: Function parameter or member 'ipr_cmd' not described in 'ipr_halt_done' drivers/scsi/ipr.c:10805: warning: Function parameter or member 'nb' not described in 'ipr_halt' drivers/scsi/ipr.c:10805: warning: Function parameter or member 'event' not described in 'ipr_halt' drivers/scsi/ipr.c:10805: warning: Function parameter or member 'buf' not described in 'ipr_halt' Cc: Brian King Signed-off-by: Lee Jones --- drivers/scsi/ipr.c | 73 ++++++++++++++++++++++++++++++++-------------- 1 file changed, 51 insertions(+), 22 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index 7d86f4ca266c8..f85020904099e 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c @@ -670,6 +670,7 @@ static void ipr_reinit_ipr_cmnd(struct ipr_cmnd *ipr_cmd) /** * ipr_init_ipr_cmnd - Initialize an IPR Cmnd block * @ipr_cmd: ipr command struct + * @fast_done: fast done function call-back * * Return value: * none @@ -687,7 +688,7 @@ static void ipr_init_ipr_cmnd(struct ipr_cmnd *ipr_cmd, /** * __ipr_get_free_ipr_cmnd - Get a free IPR Cmnd block - * @ioa_cfg: ioa config struct + * @hrrq: hrr queue * * Return value: * pointer to ipr command struct @@ -1287,7 +1288,7 @@ static int ipr_is_same_device(struct ipr_resource_entry *res, /** * __ipr_format_res_path - Format the resource path for printing. * @res_path: resource path - * @buf: buffer + * @buffer: buffer * @len: length of buffer provided * * Return value: @@ -1310,7 +1311,7 @@ static char *__ipr_format_res_path(u8 *res_path, char *buffer, int len) * ipr_format_res_path - Format the resource path for printing. * @ioa_cfg: ioa config struct * @res_path: resource path - * @buf: buffer + * @buffer: buffer * @len: length of buffer provided * * Return value: @@ -1391,7 +1392,6 @@ static void ipr_update_res_entry(struct ipr_resource_entry *res, * ipr_clear_res_target - Clear the bit in the bit map representing the target * for the resource. * @res: resource entry struct - * @cfgtew: config table entry wrapper struct * * Return value: * none @@ -2667,7 +2667,7 @@ static void ipr_process_error(struct ipr_cmnd *ipr_cmd) /** * ipr_timeout - An internally generated op has timed out. - * @ipr_cmd: ipr command struct + * @t: Timer context used to fetch ipr command struct * * This function blocks host requests and initiates an * adapter reset. @@ -2700,7 +2700,7 @@ static void ipr_timeout(struct timer_list *t) /** * ipr_oper_timeout - Adapter timed out transitioning to operational - * @ipr_cmd: ipr command struct + * @t: Timer context used to fetch ipr command struct * * This function blocks host requests and initiates an * adapter reset. @@ -3484,6 +3484,7 @@ static struct bin_attribute ipr_trace_attr = { /** * ipr_show_fw_version - Show the firmware version * @dev: class device struct + * @attr: device attribute (unused) * @buf: buffer * * Return value: @@ -3518,6 +3519,7 @@ static struct device_attribute ipr_fw_version_attr = { /** * ipr_show_log_level - Show the adapter's error logging level * @dev: class device struct + * @attr: device attribute (unused) * @buf: buffer * * Return value: @@ -3540,7 +3542,9 @@ static ssize_t ipr_show_log_level(struct device *dev, /** * ipr_store_log_level - Change the adapter's error logging level * @dev: class device struct + * @attr: device attribute (unused) * @buf: buffer + * @count: buffer size * * Return value: * number of bytes printed to buffer @@ -3571,6 +3575,7 @@ static struct device_attribute ipr_log_level_attr = { /** * ipr_store_diagnostics - IOA Diagnostics interface * @dev: device struct + * @attr: device attribute (unused) * @buf: buffer * @count: buffer size * @@ -3631,7 +3636,8 @@ static struct device_attribute ipr_diagnostics_attr = { /** * ipr_show_adapter_state - Show the adapter's state - * @class_dev: device struct + * @dev: device struct + * @attr: device attribute (unused) * @buf: buffer * * Return value: @@ -3657,6 +3663,7 @@ static ssize_t ipr_show_adapter_state(struct device *dev, /** * ipr_store_adapter_state - Change adapter state * @dev: device struct + * @attr: device attribute (unused) * @buf: buffer * @count: buffer size * @@ -3708,6 +3715,7 @@ static struct device_attribute ipr_ioa_state_attr = { /** * ipr_store_reset_adapter - Reset the adapter * @dev: device struct + * @attr: device attribute (unused) * @buf: buffer * @count: buffer size * @@ -3749,6 +3757,7 @@ static int ipr_iopoll(struct irq_poll *iop, int budget); /** * ipr_show_iopoll_weight - Show ipr polling mode * @dev: class device struct + * @attr: device attribute (unused) * @buf: buffer * * Return value: @@ -3772,7 +3781,9 @@ static ssize_t ipr_show_iopoll_weight(struct device *dev, /** * ipr_store_iopoll_weight - Change the adapter's polling mode * @dev: class device struct + * @attr: device attribute (unused) * @buf: buffer + * @count: buffer size * * Return value: * number of bytes printed to buffer @@ -3871,7 +3882,7 @@ static struct ipr_sglist *ipr_alloc_ucode_buffer(int buf_len) /** * ipr_free_ucode_buffer - Frees a microcode download buffer - * @p_dnld: scatter/gather list pointer + * @sglist: scatter/gather list pointer * * Free a DMA'able ucode download buffer previously allocated with * ipr_alloc_ucode_buffer @@ -4059,7 +4070,8 @@ static int ipr_update_ioa_ucode(struct ipr_ioa_cfg *ioa_cfg, /** * ipr_store_update_fw - Update the firmware on the adapter - * @class_dev: device struct + * @dev: device struct + * @attr: device attribute (unused) * @buf: buffer * @count: buffer size * @@ -4139,6 +4151,7 @@ static struct device_attribute ipr_update_fw_attr = { /** * ipr_show_fw_type - Show the adapter's firmware type. * @dev: class device struct + * @attr: device attribute (unused) * @buf: buffer * * Return value: @@ -4480,7 +4493,6 @@ static int ipr_free_dump(struct ipr_ioa_cfg *ioa_cfg) { return 0; }; * ipr_change_queue_depth - Change the device's queue depth * @sdev: scsi device struct * @qdepth: depth to set - * @reason: calling context * * Return value: * actual depth set @@ -4650,6 +4662,7 @@ static struct device_attribute ipr_resource_type_attr = { /** * ipr_show_raw_mode - Show the adapter's raw mode * @dev: class device struct + * @attr: device attribute (unused) * @buf: buffer * * Return value: @@ -4677,7 +4690,9 @@ static ssize_t ipr_show_raw_mode(struct device *dev, /** * ipr_store_raw_mode - Change the adapter's raw mode * @dev: class device struct + * @attr: device attribute (unused) * @buf: buffer + * @count: buffer size * * Return value: * number of bytes printed to buffer @@ -5060,7 +5075,7 @@ static int ipr_match_lun(struct ipr_cmnd *ipr_cmd, void *device) /** * ipr_cmnd_is_free - Check if a command is free or not - * @ipr_cmd ipr command struct + * @ipr_cmd: ipr command struct * * Returns: * true / false @@ -5096,7 +5111,7 @@ static int ipr_match_res(struct ipr_cmnd *ipr_cmd, void *resource) /** * ipr_wait_for_ops - Wait for matching commands to complete - * @ipr_cmd: ipr command struct + * @ioa_cfg: ioa config struct * @device: device to match (sdev) * @match: match function to use * @@ -5261,6 +5276,7 @@ static int ipr_device_reset(struct ipr_ioa_cfg *ioa_cfg, * ipr_sata_reset - Reset the SATA port * @link: SATA link to reset * @classes: class of the attached device + * @deadline: unused * * This function issues a SATA phy reset to the affected ATA link. * @@ -5440,7 +5456,7 @@ static void ipr_bus_reset_done(struct ipr_cmnd *ipr_cmd) /** * ipr_abort_timeout - An abort task has timed out - * @ipr_cmd: ipr command struct + * @t: Timer context used to fetch ipr command struct * * This function handles when an abort task times out. If this * happens we issue a bus reset since we have resources tied @@ -5569,7 +5585,8 @@ static int ipr_cancel_op(struct scsi_cmnd *scsi_cmd) /** * ipr_eh_abort - Abort a single op - * @scsi_cmd: scsi command struct + * @shost: scsi host struct + * @elapsed_time: elapsed time * * Return value: * 0 if scan in progress / 1 if scan is complete @@ -5696,6 +5713,7 @@ static irqreturn_t ipr_handle_other_interrupt(struct ipr_ioa_cfg *ioa_cfg, * ipr_isr_eh - Interrupt service routine error handler * @ioa_cfg: ioa config struct * @msg: message to log + * @number: various meanings depending on the caller/message * * Return value: * none @@ -6268,8 +6286,7 @@ static void ipr_dump_ioasa(struct ipr_ioa_cfg *ioa_cfg, /** * ipr_gen_sense - Generate SCSI sense data from an IOASA - * @ioasa: IOASA - * @sense_buf: sense data buffer + * @ipr_cmd: ipr command struct * * Return value: * none @@ -6702,7 +6719,7 @@ static int ipr_ioctl(struct scsi_device *sdev, unsigned int cmd, /** * ipr_info - Get information about the card/driver - * @scsi_host: scsi host struct + * @host: scsi host struct * * Return value: * pointer to buffer with description string @@ -7592,7 +7609,7 @@ static int ipr_ioafp_mode_select_page28(struct ipr_cmnd *ipr_cmd) /** * ipr_build_mode_sense - Builds a mode sense command * @ipr_cmd: ipr command struct - * @res: resource entry struct + * @res_handle: resource entry struct * @parm: Byte 2 of mode sense command * @dma_addr: DMA address of mode sense buffer * @xfer_len: Size of DMA buffer @@ -7939,6 +7956,7 @@ static void ipr_build_ioa_service_action(struct ipr_cmnd *ipr_cmd, /** * ipr_ioafp_set_caching_parameters - Issue Set Cache parameters service * action + * @ipr_cmd: ipr command struct * * Return value: * none @@ -7975,6 +7993,10 @@ static int ipr_ioafp_set_caching_parameters(struct ipr_cmnd *ipr_cmd) /** * ipr_ioafp_inquiry - Send an Inquiry to the adapter. * @ipr_cmd: ipr command struct + * @flags: flags to send + * @page: page to inquire + * @dma_addr: DMA address + * @xfer_len: transfer data length * * This utility function sends an inquiry to the adapter. * @@ -8265,7 +8287,7 @@ static int ipr_ioafp_identify_hrrq(struct ipr_cmnd *ipr_cmd) /** * ipr_reset_timer_done - Adapter reset timer function - * @ipr_cmd: ipr command struct + * @t: Timer context used to fetch ipr command struct * * Description: This function is used in adapter reset processing * for timing events. If the reset_cmd pointer in the IOA @@ -9483,7 +9505,6 @@ static pci_ers_result_t ipr_pci_error_detected(struct pci_dev *pdev, * Description: This is the second phase of adapter initialization * This function takes care of initilizing the adapter to the point * where it can accept new commands. - * Return value: * 0 on success / -EIO on failure **/ @@ -9597,7 +9618,7 @@ static void ipr_free_irqs(struct ipr_ioa_cfg *ioa_cfg) /** * ipr_free_all_resources - Free all allocated resources for an adapter. - * @ipr_cmd: ipr command struct + * @ioa_cfg: ioa config struct * * This function frees all allocated resources for the * specified adapter. @@ -10059,7 +10080,8 @@ static int ipr_request_other_msi_irqs(struct ipr_ioa_cfg *ioa_cfg, /** * ipr_test_intr - Handle the interrupt generated in ipr_test_msi(). - * @pdev: PCI device struct + * @devp: PCI device struct + * @irq: IRQ number * * Description: Simply set the msi_received flag to 1 indicating that * Message Signaled Interrupts are supported. @@ -10085,6 +10107,7 @@ static irqreturn_t ipr_test_intr(int irq, void *devp) /** * ipr_test_msi - Test for Message Signaled Interrupt (MSI) support. + * @ioa_cfg: ioa config struct * @pdev: PCI device struct * * Description: This routine sets up and initiates a test interrupt to determine @@ -10530,6 +10553,8 @@ static void ipr_remove(struct pci_dev *pdev) /** * ipr_probe - Adapter hot plug add entry point + * @pdev: pci device struct + * @dev_id: pci device ID * * Return value: * 0 on success / non-zero on failure @@ -10786,6 +10811,7 @@ static struct pci_driver ipr_driver = { /** * ipr_halt_done - Shutdown prepare completion + * @ipr_cmd: ipr command struct * * Return value: * none @@ -10797,6 +10823,9 @@ static void ipr_halt_done(struct ipr_cmnd *ipr_cmd) /** * ipr_halt - Issue shutdown prepare to all adapters + * @nb: Notifier block + * @event: Notifier event + * @buf: Notifier data (unused) * * Return value: * NOTIFY_OK on success / NOTIFY_DONE on failure From patchwork Thu Jul 9 17:45:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235182 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1632351ilg; Thu, 9 Jul 2020 10:47:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzE/PaOX0ENQxcvMNxUK318JIIhEDYCba5dykz6iR8YxNHzCgMH2d1Xe5X8aR0gm5kCT0co X-Received: by 2002:a17:906:c30b:: with SMTP id s11mr59507806ejz.263.1594316840979; Thu, 09 Jul 2020 10:47:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316840; cv=none; d=google.com; s=arc-20160816; b=HSvFDHOSL2bQaoyOloFhgOnRIj8kdpoUh3x3tsK/wRTB2+jZnplLNvKXszePt+LWL2 jbiUwIsHo9CyDzknN3AVbvghQ9gRdobOmAuDE35TrQdWwG6ovjEH0kcu4k8DK1cO/L7L YXhpqELWCLeryWa6aCFKDLSSIq4sJ0fYe7m+XiGfzRSwRftgrWv8eHn+W8H/2bWEooAP p+E2ewyuBjkTuJa1EqvsnZjtgxiBBrsqFqehutg861ZXDRU+REXWi/dTTS1696j5l0lN HVxCV3PELsnOngkBWShNHXxTXQ1BqmrRrzjL7DCCZlhKi3l5tU3drP8JkwA5bECi413F OV5A== 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=0WOUOFAj8gaRXgS5sweCsL/cD71WeCkTEB0KFrBJobo=; b=BsXNMf2GSG/LT8I0nqOzUBichVqCCwBIN+i9sKuw644DCxArW7U1b3JpYWKFy3nCKo ilitY2X/H/SttG1Xnb2dkex+FjF2pZf9TU/V01ZdzSEV/ZvSz8486LhTPatRcIeEY3Cm Qm7GcyMgN/096UezCyNM1tGZygXKrU0vZS6Yz0GHFNexNm0+yOHSZMvMXkKEQYvAsMje sMZWgdpF7V04PUzfS1OB5TSfKqhDo/S/Ks+9ciRCFoeB0gIzopma+g+VsWd9Sb3GD8a0 7QBi6LDYKE1Gw6B0z6XItZAf1ItUqzqmQ8bcWLJOn3LA5rjs4csR/2D2qb7kULNOHpd/ A1mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CvSWq06V; 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 bg25si2189358ejb.230.2020.07.09.10.47.20 for ; Thu, 09 Jul 2020 10:47:20 -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=CvSWq06V; 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 S1728769AbgGIRrM (ORCPT ); Thu, 9 Jul 2020 13:47:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48940 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728556AbgGIRqN (ORCPT ); Thu, 9 Jul 2020 13:46:13 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3F701C08C5DD for ; Thu, 9 Jul 2020 10:46:13 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id a6so6738467wmm.0 for ; Thu, 09 Jul 2020 10:46:13 -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=0WOUOFAj8gaRXgS5sweCsL/cD71WeCkTEB0KFrBJobo=; b=CvSWq06VbUcXSRnwGyqDxlPEPhqHonrMdhFqWh5wU+7F2EYTLjHQmon8jTG/Er9Oga K9zUwv08GqGI/dj1oPeifOcYIJUghMnSKcrS62TjwBLdO1k87bxM6GqW44Lajy21s/2+ jjgGm/VwZJohS57A+4L2J3n/28TOKy3ZZR+Df+H/y8p8nTeiLTKTW//YvdAc5Xpx793E Wc0sELO/g+ZCdC9NNbDx7kILpoBIOilGSVjBay+WBHB87FJrNLDzIE3Y4R2uae1Q360+ zQmlM8Co6yVmfzXPDgcv+cWm3jlTn46fOJtRqf+/VD1MQQmbBkp4gZWa4SQiTSwFolS+ Wbcg== 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=0WOUOFAj8gaRXgS5sweCsL/cD71WeCkTEB0KFrBJobo=; b=i0yZGw+Vuddtq8DUP0jlcNOTctBXenFUa2W0O+MHWTL9Xo/eHyBzp08t50itU8NzVr qftDJtGw537j12JVoqYAjoqRqLPQGE/KyQm+4h5p0gYwIqeUrASoNDEwd3qUL0OYqAmL MrAUKC8BqaW09KCg1dZvjn03m+O9Uk1EEf8i5ZRsGqhIQDOwa+NE5qPRazOE6geP5jd0 ibIs0ooh+NK7wwpcjGrx3m33XBpCiDKLcJfyd7W/avp2wsHY8tRMrW6PMomM20AqIFZj cYn5rTyVdd3/X/AgBYTR78Xziewj5+GR28QBPTb+uDkFy9c8w7qU7/agc0K1vas0UNnp ULLQ== X-Gm-Message-State: AOAM533hGRpCApjf4/tELl4p2XH99VrX4ouSjBpzlkcACZzb+V14zaYp 4q4/0AXunHzvO5kMi9uJS+22ow== X-Received: by 2002:a7b:cd10:: with SMTP id f16mr1169293wmj.86.1594316771965; Thu, 09 Jul 2020 10:46:11 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:11 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , "Michael S. Tsirkin" , Jason Wang , Paolo Bonzini , Stefan Hajnoczi , virtualization@lists.linux-foundation.org Subject: [PATCH 12/24] scsi: virtio_scsi: Demote seemingly unintentional kerneldoc header Date: Thu, 9 Jul 2020 18:45:44 +0100 Message-Id: <20200709174556.7651-13-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org This is the only use of kerneldoc in the sourcefile and no descriptions are provided. Fixes the following W=1 kernel build warning(s): drivers/scsi/virtio_scsi.c:109: warning: Function parameter or member 'vscsi' not described in 'virtscsi_complete_cmd' drivers/scsi/virtio_scsi.c:109: warning: Function parameter or member 'buf' not described in 'virtscsi_complete_cmd' Cc: "Michael S. Tsirkin" Cc: Jason Wang Cc: Paolo Bonzini Cc: Stefan Hajnoczi Cc: virtualization@lists.linux-foundation.org Signed-off-by: Lee Jones --- drivers/scsi/virtio_scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.25.1 Acked-by: Paolo Bonzini diff --git a/drivers/scsi/virtio_scsi.c b/drivers/scsi/virtio_scsi.c index 0e0910c5b9424..56875467e4984 100644 --- a/drivers/scsi/virtio_scsi.c +++ b/drivers/scsi/virtio_scsi.c @@ -100,7 +100,7 @@ static void virtscsi_compute_resid(struct scsi_cmnd *sc, u32 resid) scsi_set_resid(sc, resid); } -/** +/* * virtscsi_complete_cmd - finish a scsi_cmd and invoke scsi_done * * Called with vq_lock held. From patchwork Thu Jul 9 17:45:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235179 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1632174ilg; Thu, 9 Jul 2020 10:47:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxnCuQhNd7WGvVZJwsYWh6g77YSvrl8O0mJ9i2x40QjKoZTJI5kMIaUcZjEM80ZomQ2IdUw X-Received: by 2002:a17:906:2b12:: with SMTP id a18mr56594876ejg.186.1594316826786; Thu, 09 Jul 2020 10:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316826; cv=none; d=google.com; s=arc-20160816; b=01JwLZcA4CkINYind3BbwH7nHmv1VpOVIQ8N7zPr3LxEsxtRpdvqlhVK9ZqW/BhGsS cdNfpoKfSOKizeKLWpELgFsitumkO808su72O3tmwegA2KQRW7Yq7n9Quk/n4/4k4rWu JrJ9lF960KatwoKHXcrocSOk+LH1OpoTOw2yKPKGWPIW+sTjAeMKOmrlVDX3b5hIkIqP EYO/gRqE4dUK3tcnrqb+Z85s8UpY0RAxSY7L/tnLBYTLqN0wFtuV2jPn6IyQmb6iEDtW jTtSLk6D37ySgn9cI/gzrdraWwikL16wSXvN+15kdy4exLmBaGel/hMRzwdcndQT1Xbl /1tw== 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=C5nB3Mt8dSammYcSx/DeGO6fJUxNEtSbs7LNv2ZUITw=; b=lbqk8R6EnfvGggSQJeypXyiTHniwi84QQIdJNQDizjgBI/rFRuJYMJri9JTco0wf4F enERIeHpV0CU3KQToSaF4yOca4biqor7AcxL1zIEjRzkepGpSxCydZYK7R2LPphQCgGL TyH8cXuDaJ0tmv3QXOWoDl8ax4775HLT8xhj+Swpf+f3GLLJXC1ZHhk0u0TAsSABWqYl SduCMEyYLtDn8jf/w2rQjAvEyUxIcXuTB9dZ565wz2xs2x8dPMLJjD26P/SJBDk7CWjW tA1YwTwPn8UHa88Rg4Z/G7W9azFNorpdi2BQS0Y4QdI/zNre6CC11pBgcIsYQJDZWYFK Eazw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=B5REFPxq; 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 dk28si2277934edb.425.2020.07.09.10.47.06 for ; Thu, 09 Jul 2020 10:47:06 -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=B5REFPxq; 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 S1728595AbgGIRqR (ORCPT ); Thu, 9 Jul 2020 13:46:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48952 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728573AbgGIRqP (ORCPT ); Thu, 9 Jul 2020 13:46:15 -0400 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BA151C08E806 for ; Thu, 9 Jul 2020 10:46:14 -0700 (PDT) Received: by mail-wm1-x341.google.com with SMTP id w3so2745920wmi.4 for ; Thu, 09 Jul 2020 10:46:14 -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=C5nB3Mt8dSammYcSx/DeGO6fJUxNEtSbs7LNv2ZUITw=; b=B5REFPxqpY4U9h1UcdynMeECke2ws22Q/RqEx5NCXEI70dB2JA2/r2vn7gTFrZIFw8 Ca7m0trxTRP9F03C1wWbOvUxHMMC6ghF7ruBqHISwidgCyAmIWFKzUQGSgH8eoJcGIJF +zPACneU93P30lrxLCM1/PORQCSPKFPP+zdUdR+/GlQZnwtumCJtVmMsXRwCH7hoSmL+ tqO+VOjY6fl7O/0oERhX/CWuH6ISC1E++R3J+ICwgTrdKEZ5YkVzwRRUbhkAmzBYl3X/ gp8RnGX+hznsSXdFuIsnBLrxhvfMhpyJNOS2V3FBq97kxgA3kmCu+9ckid11QOELqR4v KnGQ== 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=C5nB3Mt8dSammYcSx/DeGO6fJUxNEtSbs7LNv2ZUITw=; b=CIdI5OCtDM9kb/WtUqbLKCJduMMBl36zr8pMli5FuqkudE2fyfprWvs/Uuu/vcy5PC WeqSVMQ0lKcjScsu9NZfD3/JarBJ4ZjPXZgXu7cjbo4AomBn56dCTvrcnksA8t9VVURL ffxUWHE9W98A6OmYcx3XByTdGap7TVIoAd8f9sKay7noNjYKxtuRcuis/0VrtecdbPaE zmIei8WH9OGhy0UPeuonnxUhxn0ShQFS990Ox2T7tRRONvETEhlqPq2Zu8wL3NhwGhQC 5Hhx/S/Ux3ujI9t4xOV5KxogiOK8HscglX06cKXCwuGvA774Yg5WJ9uMd3JmIc/rGpWA vz0A== X-Gm-Message-State: AOAM530WCWIKfjtv580E6WEbPM4FnaZOBz6g4w5WDosOOwnqTWJHs/vu G27yqjRusmj5BZSYlWLh141hQg== X-Received: by 2002:a7b:ce14:: with SMTP id m20mr1167778wmc.129.1594316773435; Thu, 09 Jul 2020 10:46:13 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:12 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Brian King Subject: [PATCH 13/24] scsi: ipr: Remove a bunch of set but checked variables Date: Thu, 9 Jul 2020 18:45:45 +0100 Message-Id: <20200709174556.7651-14-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org 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/ipr.c:73: drivers/scsi/ipr.c: In function ‘ipr_mask_and_clear_interrupts’: drivers/scsi/ipr.c:740:15: warning: variable ‘int_reg’ set but not used [-Wunused-but-set-variable] drivers/scsi/ipr.c: In function ‘ipr_cancel_op’: drivers/scsi/ipr.c:5497:13: warning: variable ‘int_reg’ set but not used [-Wunused-but-set-variable] drivers/scsi/ipr.c: In function ‘ipr_iopoll’: drivers/scsi/ipr.c:5765:22: warning: variable ‘ioa_cfg’ set but not used [-Wunused-but-set-variable] drivers/scsi/ipr.c: In function ‘ipr_reset_restore_cfg_space’: drivers/scsi/ipr.c:8662:6: warning: variable ‘int_reg’ set but not used [-Wunused-but-set-variable] drivers/scsi/ipr.c: In function ‘ipr_test_msi’: Cc: Brian King Signed-off-by: Lee Jones --- drivers/scsi/ipr.c | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index f85020904099e..b0aa58d117cc9 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c @@ -738,7 +738,6 @@ struct ipr_cmnd *ipr_get_free_ipr_cmnd(struct ipr_ioa_cfg *ioa_cfg) static void ipr_mask_and_clear_interrupts(struct ipr_ioa_cfg *ioa_cfg, u32 clr_ints) { - volatile u32 int_reg; int i; /* Stop new interrupts */ @@ -758,7 +757,7 @@ static void ipr_mask_and_clear_interrupts(struct ipr_ioa_cfg *ioa_cfg, if (ioa_cfg->sis64) writel(~0, ioa_cfg->regs.clr_interrupt_reg); writel(clr_ints, ioa_cfg->regs.clr_interrupt_reg32); - int_reg = readl(ioa_cfg->regs.sense_interrupt_reg); + readl(ioa_cfg->regs.sense_interrupt_reg); } /** @@ -5510,7 +5509,7 @@ static int ipr_cancel_op(struct scsi_cmnd *scsi_cmd) struct ipr_ioa_cfg *ioa_cfg; struct ipr_resource_entry *res; struct ipr_cmd_pkt *cmd_pkt; - u32 ioasc, int_reg; + u32 ioasc; int i, op_found = 0; struct ipr_hrr_queue *hrrq; @@ -5533,7 +5532,7 @@ static int ipr_cancel_op(struct scsi_cmnd *scsi_cmd) * by a still not detected EEH error. In such cases, reading a register will * trigger the EEH recovery infrastructure. */ - int_reg = readl(ioa_cfg->regs.sense_interrupt_reg); + readl(ioa_cfg->regs.sense_interrupt_reg); if (!ipr_is_gscsi(res)) return FAILED; @@ -5780,7 +5779,6 @@ static int ipr_process_hrrq(struct ipr_hrr_queue *hrr_queue, int budget, static int ipr_iopoll(struct irq_poll *iop, int budget) { - struct ipr_ioa_cfg *ioa_cfg; struct ipr_hrr_queue *hrrq; struct ipr_cmnd *ipr_cmd, *temp; unsigned long hrrq_flags; @@ -5788,7 +5786,6 @@ static int ipr_iopoll(struct irq_poll *iop, int budget) LIST_HEAD(doneq); hrrq = container_of(iop, struct ipr_hrr_queue, iopoll); - ioa_cfg = hrrq->ioa_cfg; spin_lock_irqsave(hrrq->lock, hrrq_flags); completed_ops = ipr_process_hrrq(hrrq, budget, &doneq); @@ -8681,7 +8678,6 @@ static int ipr_dump_mailbox_wait(struct ipr_cmnd *ipr_cmd) static int ipr_reset_restore_cfg_space(struct ipr_cmnd *ipr_cmd) { struct ipr_ioa_cfg *ioa_cfg = ipr_cmd->ioa_cfg; - u32 int_reg; ENTER; ioa_cfg->pdev->state_saved = true; @@ -8697,7 +8693,7 @@ static int ipr_reset_restore_cfg_space(struct ipr_cmnd *ipr_cmd) if (ioa_cfg->sis64) { /* Set the adapter to the correct endian mode. */ writel(IPR_ENDIAN_SWAP_KEY, ioa_cfg->regs.endian_swap_reg); - int_reg = readl(ioa_cfg->regs.endian_swap_reg); + readl(ioa_cfg->regs.endian_swap_reg); } if (ioa_cfg->ioa_unit_checked) { @@ -10120,7 +10116,6 @@ static irqreturn_t ipr_test_intr(int irq, void *devp) static int ipr_test_msi(struct ipr_ioa_cfg *ioa_cfg, struct pci_dev *pdev) { int rc; - volatile u32 int_reg; unsigned long lock_flags = 0; int irq = pci_irq_vector(pdev, 0); @@ -10131,7 +10126,7 @@ static int ipr_test_msi(struct ipr_ioa_cfg *ioa_cfg, struct pci_dev *pdev) ioa_cfg->msi_received = 0; ipr_mask_and_clear_interrupts(ioa_cfg, ~IPR_PCII_IOA_TRANS_TO_OPER); writel(IPR_PCII_IO_DEBUG_ACKNOWLEDGE, ioa_cfg->regs.clr_interrupt_mask_reg32); - int_reg = readl(ioa_cfg->regs.sense_interrupt_mask_reg); + readl(ioa_cfg->regs.sense_interrupt_mask_reg); spin_unlock_irqrestore(ioa_cfg->host->host_lock, lock_flags); rc = request_irq(irq, ipr_test_intr, 0, IPR_NAME, ioa_cfg); @@ -10142,7 +10137,7 @@ static int ipr_test_msi(struct ipr_ioa_cfg *ioa_cfg, struct pci_dev *pdev) dev_info(&pdev->dev, "IRQ assigned: %d\n", irq); writel(IPR_PCII_IO_DEBUG_ACKNOWLEDGE, ioa_cfg->regs.sense_interrupt_reg32); - int_reg = readl(ioa_cfg->regs.sense_interrupt_reg); + readl(ioa_cfg->regs.sense_interrupt_reg); wait_event_timeout(ioa_cfg->msi_wait_q, ioa_cfg->msi_received, HZ); spin_lock_irqsave(ioa_cfg->host->host_lock, lock_flags); ipr_mask_and_clear_interrupts(ioa_cfg, ~IPR_PCII_IOA_TRANS_TO_OPER); From patchwork Thu Jul 9 17:45:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235176 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1632113ilg; Thu, 9 Jul 2020 10:47:02 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxMP8dEzXlN7jW8GqfeIV5jJAmTElgaR/MH8r9yerkoBZbDL9XSL8/fNVmNTPywkyhlMsdU X-Received: by 2002:a17:906:8381:: with SMTP id p1mr56623973ejx.280.1594316822700; Thu, 09 Jul 2020 10:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316822; cv=none; d=google.com; s=arc-20160816; b=j/eGP/Y2sE9jeq1lmLtDV6O9TcGSWKE0ixmz84IddKTuQ25TVf/2umlKh/UXM/DVRO TJnvAb2po3ls4SLKp1GA+MO1BGcf6jN+IYR2KJDo9joE1cy7GVOmIzQJGysPSzGL21al zdPvlhhLJA+TpjjEBf25E8vRf/m8/JYzqC5FLmfK46WkghVeYy7/UY8T1MVD64so64JW AfdOc2a4mrDPiUGs3/vssT62Ej9kFlwOwOuHq3AocGoFgq75Rlf4lEpD93Bb3OL/jIqN jhC3Rgi+dlu3WKBF86YoQPnHdJ+iAmqxcerA5pMsPkl2WVOVNX097t4Bwsbt9FhStHyM eL7Q== 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=s1f2VykJlM3ygLpY+EskgDzDL15LmxoT0Iv4BzUdNoA=; b=sCiAWeuyt0Jk1ciE6sGf8RNMDWlE9NJf0thIAORZF0FTbP/A8d91fdW48geoBKRhob 0VWUkPQTS+K8jjuWBDhfTte+zFrx2P/A6XB7oZyhn7DemDy1FTW6EvzSgZ0/FTPG9mwP NaRPZDkaE5kf6VyH3Qz/JJGPwFao2fF+qTNdutTpzDeHzD1Nqk1zEvSsDSBU8h8wkrv/ wcgBjdW+bQrtGVsXVaXDLggK3sh8LeO6XvM0RHyWAviG+CNI0tIRk2SzbouM05JiVnoy tYEyTJs/royvIeeNtInHEQQ3WnvFaZUfgx1pXJWVkDpJFJb9TramRRINFRE3BhFB4d2p +iTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=gwDnoQdj; 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 lz14si2465629ejb.65.2020.07.09.10.47.02 for ; Thu, 09 Jul 2020 10:47:02 -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=gwDnoQdj; 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 S1728753AbgGIRrC (ORCPT ); Thu, 9 Jul 2020 13:47:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48954 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728594AbgGIRqR (ORCPT ); Thu, 9 Jul 2020 13:46:17 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0127C08C5CE for ; Thu, 9 Jul 2020 10:46:15 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id q15so2842914wmj.2 for ; Thu, 09 Jul 2020 10:46:15 -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=s1f2VykJlM3ygLpY+EskgDzDL15LmxoT0Iv4BzUdNoA=; b=gwDnoQdji4kOk1Gx453RYcXY4/p19T4HB3UAOQ9r3rQaWnjsvW0jmbOlA03+LBxTq3 cccf4WtZJ+jFJIgvLBlc0fl05f4XkCMrn/PZjoP0/eB1sReRdbWyhr4PgQUteMSCJQT5 74G/xtJ+G9WQRmREe9OMsS26QhO7p+oQAjCufWAQe2QSW7gt0smOYdfq5SSD1K3GO1Au neGuSaytWS5kVXNk/LVX6oVer891CsdBxti/TKD52US2OTHUnggCtcKhtOL7mXQkfZDx YRQeURxxT3p/+ET+tmL3fpIPL5mLt9Io2nWOgCYOGe88FmGV+/WRJRN4Cv9Gac3dwdn3 iDhg== 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=s1f2VykJlM3ygLpY+EskgDzDL15LmxoT0Iv4BzUdNoA=; b=OY+z9F6jXFouefQFoMDy6GqX/jpnIFyKJnDby0kAyg4LTVoVwJb+79n8QEf4tCO6Nb Aik/lg7IHAzm/HVY0zcQ26w75kOKtRrVwrMwCdMBBEgJOuXLp6NCQtKc5y64r1Ce908O A1lzBG+1IB0obgQLdfQx1SAvxlGGpfUuhTu2IyaBItkI69a0uCm49JbxYb2itvJTjp8l DmlWghj7EBukOCww5LJV0q6vgwmoHPuMrVmxnv9B8O7kK7Z6QhayLypRMzAMaTYdZ5g3 M+Izndk1ljXVXS/5/DLif7k3U0ForQg8TBEwjARXm5/wxxbUE57lLivqtLUFvsuQH0oQ J4aA== X-Gm-Message-State: AOAM532/Gay2DkktFBAOFoPJpRpX6q49mxBOWA8HxUcmaKikC2LOuZ9r 7Dbt0eN3b5bOZdPwBvRYN4hEvA== X-Received: by 2002:a05:600c:258:: with SMTP id 24mr1143837wmj.70.1594316774530; Thu, 09 Jul 2020 10:46:14 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:13 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Brian King , Alan Cox Subject: [PATCH 14/24] scsi: ipr: Fix struct packed-not-aligned issues Date: Thu, 9 Jul 2020 18:45:46 +0100 Message-Id: <20200709174556.7651-15-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/scsi/ipr.h:1687:1: warning: alignment 1 of ‘struct ipr_dump_location_entry’ is less than 4 [-Wpacked-not-aligned] 1687 | }__attribute__((packed)); | ^ drivers/scsi/ipr.h:1711:1: warning: alignment 1 of ‘struct ipr_driver_dump’ is less than 4 [-Wpacked-not-aligned] 1711 | }__attribute__((packed)); | ^ Cc: Brian King Cc: Alan Cox Signed-off-by: Lee Jones --- drivers/scsi/ipr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h index 9a0d3d7293206..783ee03ad9ea2 100644 --- a/drivers/scsi/ipr.h +++ b/drivers/scsi/ipr.h @@ -1684,7 +1684,7 @@ struct ipr_dump_entry_header { struct ipr_dump_location_entry { struct ipr_dump_entry_header hdr; u8 location[20]; -}__attribute__((packed)); +}__attribute__((packed, aligned (4))); struct ipr_dump_trace_entry { struct ipr_dump_entry_header hdr; @@ -1708,7 +1708,7 @@ struct ipr_driver_dump { struct ipr_dump_location_entry location_entry; struct ipr_dump_ioa_type_entry ioa_type_entry; struct ipr_dump_trace_entry trace_entry; -}__attribute__((packed)); +}__attribute__((packed, aligned (4))); struct ipr_ioa_dump { struct ipr_dump_entry_header hdr; From patchwork Thu Jul 9 17:45:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235177 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1632146ilg; Thu, 9 Jul 2020 10:47:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwNth1RyyAnx3H1VTspGn/agKDFrRfkyTVMOpaWj9xUIqRJJc92jWj9yjeyJ++pQuvxAEQQ X-Received: by 2002:aa7:d692:: with SMTP id d18mr72590517edr.73.1594316825363; Thu, 09 Jul 2020 10:47:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316825; cv=none; d=google.com; s=arc-20160816; b=YoDdbrz1QStGkSIK1pqeQ4bHSPPYlZwRDmpFMnOIdOtNF0Bn+fNplLWuqU+kg31pTx JpNSpM0InSduQ018m5QsARzGKqVvomqeO4imH8RFhZG/0we0CysB2afQUKHlt3D4ckRO O/HPShwmZ6gmCECvHBzYhSM7YOhzBencgsylBGZUiBSP/UbXI6GgyBUsJ/AMlhvy839n nnnn+0xveiCDHPv82PaHgkVfClo6LlVBhdGyUuPbZK09MPi7WEpKHTHgCkV6DcA1oAxt COCBWfivAbCL3BX57CRjuJyloOPNy8Rh5CBe0+qZfE6sJhbR6FtnLBeAQrImqThWM6/v ZdCg== 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=SJ5riagb5ylGMgLFLpVaPq4YYsW+h0AJ68wtr1RKdm4=; b=mkZiE2LtgjU+vsffBv6s6ZAp1ZDjlyd60X9dr9mxNpStX6cRA3p5JZlymhTefa+JQy nkxE5OWosI7/tKvFUtwmw3OebvZWnTuYKYdStcCtDE5+JRrEi6qKl/bbWA00y1mWCQs2 vPM55/Pih0b1cCrDAxlIuSHfktEFIFPv1MMDs9j3QsEkm8pBhrOCUMzqtQ4l3aay2SMN KKB2UdfaJs85d/JczcrXPjg+wl9EgIDzzYhGRggFJdcqF21zrj7qFA4YgnZcp1j/k5hp 17z3QkFKxF6+mPPxPgqcghto528+MaffizWEgxOEi0gmGSBCy2u/HG57JRZ5yZpHYYXy EgRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ea0ucSY+; 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 dk28si2277934edb.425.2020.07.09.10.47.05 for ; Thu, 09 Jul 2020 10:47:05 -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=ea0ucSY+; 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 S1728750AbgGIRrB (ORCPT ); Thu, 9 Jul 2020 13:47:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728597AbgGIRqR (ORCPT ); Thu, 9 Jul 2020 13:46:17 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4918EC08E6DC for ; Thu, 9 Jul 2020 10:46:17 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id l2so2758323wmf.0 for ; Thu, 09 Jul 2020 10:46:17 -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=SJ5riagb5ylGMgLFLpVaPq4YYsW+h0AJ68wtr1RKdm4=; b=ea0ucSY+Vq0Zi7i16gO1xXUSw5rmujrM3nKQwkbbgB1jWlmJTMsPaXxxXncGKdpbAq FQ0Vb8hL5vW8RID+GfNhv0fnKloeI8fPNECt6mDR95xCWli44zx2o/RS37NilezG4lA9 yHp/X74DcN2N1+Iz//f8diYi4caEx9zFkkkVGKFiOY9vUxM2jpK9lnIf0KYcbrx7fVS/ v1EqlkUK08P9e0YR7VT6Ucrkr93tGgta2Oqtqi7rTgeqUOfd73eNt9Ep83wKFB0S0lp5 sgq4MZVUuIpeVPqIxK/AQ98tTIYK/RasFP3EvtPZjY/YODbbU83hbl+PErH1nHEN9H4N RECg== 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=SJ5riagb5ylGMgLFLpVaPq4YYsW+h0AJ68wtr1RKdm4=; b=fBIamp3CU425NM1hZC7sZS6kn2tTTYyfXExVB/Uw/6k6xWuVPf+KPOJMaOSv4+puYr LOzcOqEL/3Mgl5SGYyaWncbjyiEPv7hgXI+RJwm7YTjSSh9qUehoTous1RNZJg3Rh7AQ 8utVc+kPk7lwMR4UGBr8HuIUf6NNTqXZf9WYG8dg1guVlRgMz8kj3GwGNxkKo90lTsrc DWEUsjQkdqa/j78+Gr+1ni0WtZz8pQkqUx1lQrsDw583OfvipJDfrRpZ7Z/Xew6Noery XKnGNTcNafq8+t22EEy3p3wa7SWzbmS4NjYaw1pt14vs95U0X6MI2Hnn0Re7dB09jWiz IlTw== X-Gm-Message-State: AOAM5315IQJ8oiDfmhwYo1O/93UTFueDwJKzK8ZJHs1atutrEWQRkV4j 49b5DNlWbwVJu0ig8aSO1cjp5A== X-Received: by 2002:a05:600c:2241:: with SMTP id a1mr1100629wmm.168.1594316775933; Thu, 09 Jul 2020 10:46:15 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:15 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Hannes Reinecke , Linux GmbH , "Leonard N. Zubkoff" Subject: [PATCH 15/24] scsi: myrs: Demote obvious misuse of kerneldoc to standard comment blocks Date: Thu, 9 Jul 2020 18:45:47 +0100 Message-Id: <20200709174556.7651-16-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org No attempt has been made to document any of the demoted functions here. Fixes the following W=1 kernel build warning(s): drivers/scsi/myrs.c:94: warning: Function parameter or member 'cmd_blk' not described in 'myrs_reset_cmd' drivers/scsi/myrs.c:105: warning: Function parameter or member 'cs' not described in 'myrs_qcmd' drivers/scsi/myrs.c:105: warning: Function parameter or member 'cmd_blk' not described in 'myrs_qcmd' drivers/scsi/myrs.c:130: warning: Function parameter or member 'cs' not described in 'myrs_exec_cmd' drivers/scsi/myrs.c:130: warning: Function parameter or member 'cmd_blk' not described in 'myrs_exec_cmd' drivers/scsi/myrs.c:149: warning: Function parameter or member 'cs' not described in 'myrs_report_progress' drivers/scsi/myrs.c:149: warning: Function parameter or member 'ldev_num' not described in 'myrs_report_progress' drivers/scsi/myrs.c:149: warning: Function parameter or member 'msg' not described in 'myrs_report_progress' drivers/scsi/myrs.c:149: warning: Function parameter or member 'blocks' not described in 'myrs_report_progress' drivers/scsi/myrs.c:149: warning: Function parameter or member 'size' not described in 'myrs_report_progress' drivers/scsi/myrs.c:160: warning: Function parameter or member 'cs' not described in 'myrs_get_ctlr_info' drivers/scsi/myrs.c:222: warning: Function parameter or member 'cs' not described in 'myrs_get_ldev_info' drivers/scsi/myrs.c:222: warning: Function parameter or member 'ldev_num' not described in 'myrs_get_ldev_info' drivers/scsi/myrs.c:222: warning: Function parameter or member 'ldev_info' not described in 'myrs_get_ldev_info' drivers/scsi/myrs.c:310: warning: Function parameter or member 'cs' not described in 'myrs_get_pdev_info' drivers/scsi/myrs.c:310: warning: Function parameter or member 'channel' not described in 'myrs_get_pdev_info' drivers/scsi/myrs.c:310: warning: Function parameter or member 'target' not described in 'myrs_get_pdev_info' drivers/scsi/myrs.c:310: warning: Function parameter or member 'lun' not described in 'myrs_get_pdev_info' drivers/scsi/myrs.c:310: warning: Function parameter or member 'pdev_info' not described in 'myrs_get_pdev_info' drivers/scsi/myrs.c:353: warning: Function parameter or member 'cs' not described in 'myrs_dev_op' drivers/scsi/myrs.c:353: warning: Function parameter or member 'opcode' not described in 'myrs_dev_op' drivers/scsi/myrs.c:353: warning: Function parameter or member 'opdev' not described in 'myrs_dev_op' drivers/scsi/myrs.c:379: warning: Function parameter or member 'cs' not described in 'myrs_translate_pdev' drivers/scsi/myrs.c:379: warning: Function parameter or member 'channel' not described in 'myrs_translate_pdev' drivers/scsi/myrs.c:379: warning: Function parameter or member 'target' not described in 'myrs_translate_pdev' drivers/scsi/myrs.c:379: warning: Function parameter or member 'lun' not described in 'myrs_translate_pdev' drivers/scsi/myrs.c:379: warning: Function parameter or member 'devmap' not described in 'myrs_translate_pdev' drivers/scsi/myrs.c:422: warning: Function parameter or member 'cs' not described in 'myrs_get_event' drivers/scsi/myrs.c:422: warning: Function parameter or member 'event_num' not described in 'myrs_get_event' drivers/scsi/myrs.c:422: warning: Function parameter or member 'event_buf' not described in 'myrs_get_event' drivers/scsi/myrs.c:484: warning: Function parameter or member 'cs' not described in 'myrs_enable_mmio_mbox' drivers/scsi/myrs.c:484: warning: Function parameter or member 'enable_mbox_fn' not described in 'myrs_enable_mmio_mbox' drivers/scsi/myrs.c:584: warning: Function parameter or member 'cs' not described in 'myrs_get_config' drivers/scsi/myrs.c:688: warning: cannot understand function prototype: 'struct ' drivers/scsi/myrs.c:1967: warning: Function parameter or member 'dev' not described in 'myrs_is_raid' drivers/scsi/myrs.c:1980: warning: Function parameter or member 'dev' not described in 'myrs_get_resync' drivers/scsi/myrs.c:2005: warning: Function parameter or member 'dev' not described in 'myrs_get_state' drivers/scsi/myrs.c:2343: warning: bad line: the Error Status Register when the driver performs the BIOS handshaking. drivers/scsi/myrs.c:2344: warning: bad line: It returns true for fatal errors and false otherwise. drivers/scsi/myrs.c:2349: warning: Function parameter or member 'cs' not described in 'myrs_err_status' drivers/scsi/myrs.c:2349: warning: Function parameter or member 'status' not described in 'myrs_err_status' drivers/scsi/myrs.c:2349: warning: Function parameter or member 'parm0' not described in 'myrs_err_status' drivers/scsi/myrs.c:2349: warning: Function parameter or member 'parm1' not described in 'myrs_err_status' Cc: Hannes Reinecke Cc: Linux GmbH Cc: "Leonard N. Zubkoff" Signed-off-by: Lee Jones --- drivers/scsi/myrs.c | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/myrs.c b/drivers/scsi/myrs.c index 5c5666491c2ee..103803e779f2d 100644 --- a/drivers/scsi/myrs.c +++ b/drivers/scsi/myrs.c @@ -87,7 +87,7 @@ static char *myrs_raid_level_name(enum myrs_raid_level level) return NULL; } -/** +/* * myrs_reset_cmd - clears critical fields in struct myrs_cmdblk */ static inline void myrs_reset_cmd(struct myrs_cmdblk *cmd_blk) @@ -98,7 +98,7 @@ static inline void myrs_reset_cmd(struct myrs_cmdblk *cmd_blk) cmd_blk->status = 0; } -/** +/* * myrs_qcmd - queues Command for DAC960 V2 Series Controllers. */ static void myrs_qcmd(struct myrs_hba *cs, struct myrs_cmdblk *cmd_blk) @@ -122,7 +122,7 @@ static void myrs_qcmd(struct myrs_hba *cs, struct myrs_cmdblk *cmd_blk) cs->next_cmd_mbox = next_mbox; } -/** +/* * myrs_exec_cmd - executes V2 Command and waits for completion. */ static void myrs_exec_cmd(struct myrs_hba *cs, @@ -140,7 +140,7 @@ static void myrs_exec_cmd(struct myrs_hba *cs, wait_for_completion(&complete); } -/** +/* * myrs_report_progress - prints progress message */ static void myrs_report_progress(struct myrs_hba *cs, unsigned short ldev_num, @@ -153,7 +153,7 @@ static void myrs_report_progress(struct myrs_hba *cs, unsigned short ldev_num, (100 * (int)(blocks >> 7)) / (int)(size >> 7)); } -/** +/* * myrs_get_ctlr_info - executes a Controller Information IOCTL Command */ static unsigned char myrs_get_ctlr_info(struct myrs_hba *cs) @@ -214,7 +214,7 @@ static unsigned char myrs_get_ctlr_info(struct myrs_hba *cs) return status; } -/** +/* * myrs_get_ldev_info - executes a Logical Device Information IOCTL Command */ static unsigned char myrs_get_ldev_info(struct myrs_hba *cs, @@ -301,7 +301,7 @@ static unsigned char myrs_get_ldev_info(struct myrs_hba *cs, return status; } -/** +/* * myrs_get_pdev_info - executes a "Read Physical Device Information" Command */ static unsigned char myrs_get_pdev_info(struct myrs_hba *cs, @@ -345,7 +345,7 @@ static unsigned char myrs_get_pdev_info(struct myrs_hba *cs, return status; } -/** +/* * myrs_dev_op - executes a "Device Operation" Command */ static unsigned char myrs_dev_op(struct myrs_hba *cs, @@ -369,7 +369,7 @@ static unsigned char myrs_dev_op(struct myrs_hba *cs, return status; } -/** +/* * myrs_translate_pdev - translates a Physical Device Channel and * TargetID into a Logical Device. */ @@ -414,7 +414,7 @@ static unsigned char myrs_translate_pdev(struct myrs_hba *cs, return status; } -/** +/* * myrs_get_event - executes a Get Event Command */ static unsigned char myrs_get_event(struct myrs_hba *cs, @@ -476,7 +476,7 @@ static unsigned char myrs_get_fwstatus(struct myrs_hba *cs) return status; } -/** +/* * myrs_enable_mmio_mbox - enables the Memory Mailbox Interface */ static bool myrs_enable_mmio_mbox(struct myrs_hba *cs, @@ -577,7 +577,7 @@ static bool myrs_enable_mmio_mbox(struct myrs_hba *cs, return (status == MYRS_STATUS_SUCCESS); } -/** +/* * myrs_get_config - reads the Configuration Information */ static int myrs_get_config(struct myrs_hba *cs) @@ -682,7 +682,7 @@ static int myrs_get_config(struct myrs_hba *cs) return 0; } -/** +/* * myrs_log_event - prints a Controller Event message */ static struct { @@ -2338,11 +2338,11 @@ static struct myrs_hba *myrs_detect(struct pci_dev *pdev, return NULL; } -/** +/* * myrs_err_status reports Controller BIOS Messages passed through - the Error Status Register when the driver performs the BIOS handshaking. - It returns true for fatal errors and false otherwise. -*/ + * the Error Status Register when the driver performs the BIOS handshaking. + * It returns true for fatal errors and false otherwise. + */ static bool myrs_err_status(struct myrs_hba *cs, unsigned char status, unsigned char parm0, unsigned char parm1) From patchwork Thu Jul 9 17:45:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235178 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1632163ilg; Thu, 9 Jul 2020 10:47:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKhP8yKecrmanCoGQkaOCf2EVMT3RseTQtib4PI8RK9Kh8NBl7Tcpfcek5pPfGYTHHODax X-Received: by 2002:a17:907:1114:: with SMTP id qu20mr59663408ejb.41.1594316826380; Thu, 09 Jul 2020 10:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316826; cv=none; d=google.com; s=arc-20160816; b=j1874aJayesazvoMadgCm1j+k5P2wGBqCAOZ4kEXFBLHQwvW3pTOufs05AJLBckeFg XgFtsLEIQgFFpvDfdAUdCrvhJ4b/6O5Nq56EJkZqaYVgtQnyFU9dgLzcWN3AVKd+J4Eb LBTSdccnuf3iBzRByGR1J0DnkEUlEC0W7Lxa0SbpcufwqCCoRT9yNYLPKACMvcbw7Dkd Rj+Xcqh92h/LjZqysDLH/BzAOLFDWgJJHzX60iR1JRw4IcjGtiGTnrvmiOM0EnvzuLa0 PaUzLHDkq7i0RWyiPBknvtrhh15xQpqKURig24WFtgy5RKUJwdORe6vlhpTaUIJQr+0a KGOw== 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=Sg8dC1PqQ5ZLNgANJj8CFd/WU9c7Mby6GC87AahLWX8=; b=G4CFqoxdernVpfHeY3L7oH3ciWKuYjUmygXQpS4PGBrt0wQX6IHj0kIGPvNFRN6K6m b8f0fOUkgJSqVg0WYrv3FQdCtZaT4JruvzdszITUIMdUT5NtLjDJS583u6xVdsuC2QWe 5eC811/LClrYUNJBhq2TpijAc08hWPaubK9Ts7uew4vTJU9OLfUm9+Esf6iSTz7MK9Zs 9SZ3nelA9C3y3ejXlzjqcmP5cf0spTNtkTWBtNuK22mgAtjaoWX5+lvjVJwD+nQOeONv zlURdTIPmJ+FuX4ksfU61EprJU1nCuWuRahdtodceSlrxSqYFF40Scb3M/zcxflVWTgV 1g2w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xIll18Oh; 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 dk28si2277934edb.425.2020.07.09.10.47.05 for ; Thu, 09 Jul 2020 10:47:06 -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=xIll18Oh; 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 S1728747AbgGIRrA (ORCPT ); Thu, 9 Jul 2020 13:47:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48972 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728575AbgGIRqT (ORCPT ); Thu, 9 Jul 2020 13:46:19 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8364C08E763 for ; Thu, 9 Jul 2020 10:46:18 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id w3so2746129wmi.4 for ; Thu, 09 Jul 2020 10:46:18 -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=Sg8dC1PqQ5ZLNgANJj8CFd/WU9c7Mby6GC87AahLWX8=; b=xIll18OhkjzHZuQidzTISpBaXG+WZBh3JRnVO8i3NXIo1g2Xi89ZygPD+hP7PF1bn7 HeDvrLsMrhKlkgzAqRL/DkNmNOgNIOhanWfYeAotvr6CLwt4x3y9L3XimSLCMb/fsyg8 4qUG7w/mjqrZemL1qXicM16ERq8FnXQpDFWwDbXUoNxvhPnrvJI2yaNfkoxc5CAzaxPd k0rapa6+Eons96Zn2Il+G5a+RNbzRI8FtcDoOGmWFinSkpKv0QT8kizzLMciebLU/P2k /pwI5WBDKQ7MumCTtEiCQO+UjZhXLngt7/rnR8NlrDr/c0ths5+lorQUp7Oq1xcmZFxi CEBw== 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=Sg8dC1PqQ5ZLNgANJj8CFd/WU9c7Mby6GC87AahLWX8=; b=D0ExbaDKI+dcKPj4S8mOE/dG2m1ngYchMPVaYGXH/a3MK5pVCNRfbg90gfcdRX0NUV heRoQ076obFkIEQ5p43dAAAi8OET7qsuNpSrvWaEHLP2i7HZVStELeJ4aoNqIioSdgTo 2i4dSnbWUAgPFylrMvz0Rnz7ujrmp8ydzZBv0RDVZe0Ay+qH29gJUNpWsPjyepVwzBks Kt/Wl8YmRgK+YBmLEmbC/muCCijfBDUDcROLQ/SadEfABTfIgGdHL0tIEBZ5BIXjLYrw OloKSpf1+IklSp2TP87P+HzhVSs9Bo8Nt6+5IeAB4ry9iRA1CbZS0ll4E4hn+qYXr2Az fa6w== X-Gm-Message-State: AOAM531aSv7HTPki4J08ffbm5EjTeDgbG5hEJTusRVRMlcWMwi4+YT/1 rg23CRjR6mHH00Zq7ciIjnyNkOh6zgo= X-Received: by 2002:a1c:7402:: with SMTP id p2mr1101961wmc.117.1594316777278; Thu, 09 Jul 2020 10:46:17 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:16 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Kashyap Desai , Sumit Saxena , Shivasharan S , Christoph Hellwig , Seokmann.Ju@lsil.com, sju@lsil.com, megaraidlinux.pdl@broadcom.com Subject: [PATCH 16/24] scsi: megaraid: Fix a whole bunch of function header formatting issues Date: Thu, 9 Jul 2020 18:45:48 +0100 Message-Id: <20200709174556.7651-17-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Plus a couple of API catch-ups. Fixes the following W=1 kernel build warning(s): drivers/scsi/megaraid.c:133: warning: Function parameter or member 'adapter' not described in 'mega_setup_mailbox' drivers/scsi/megaraid.c:356: warning: Function parameter or member 'adapter' not described in 'mega_runpendq' drivers/scsi/megaraid.c:424: warning: Function parameter or member 'adapter' not described in 'mega_allocate_scb' drivers/scsi/megaraid.c:424: warning: Function parameter or member 'cmd' not described in 'mega_allocate_scb' drivers/scsi/megaraid.c:456: warning: Function parameter or member 'adapter' not described in 'mega_get_ldrv_num' drivers/scsi/megaraid.c:456: warning: Function parameter or member 'cmd' not described in 'mega_get_ldrv_num' drivers/scsi/megaraid.c:456: warning: Function parameter or member 'channel' not described in 'mega_get_ldrv_num' drivers/scsi/megaraid.c:519: warning: Function parameter or member 'adapter' not described in 'mega_build_cmd' drivers/scsi/megaraid.c:519: warning: Function parameter or member 'cmd' not described in 'mega_build_cmd' drivers/scsi/megaraid.c:519: warning: Function parameter or member 'busy' not described in 'mega_build_cmd' drivers/scsi/megaraid.c:951: warning: Function parameter or member 'adapter' not described in 'mega_prepare_passthru' drivers/scsi/megaraid.c:951: warning: Function parameter or member 'scb' not described in 'mega_prepare_passthru' drivers/scsi/megaraid.c:951: warning: Function parameter or member 'cmd' not described in 'mega_prepare_passthru' drivers/scsi/megaraid.c:951: warning: Function parameter or member 'channel' not described in 'mega_prepare_passthru' drivers/scsi/megaraid.c:951: warning: Function parameter or member 'target' not described in 'mega_prepare_passthru' drivers/scsi/megaraid.c:1016: warning: Function parameter or member 'adapter' not described in 'mega_prepare_extpassthru' drivers/scsi/megaraid.c:1016: warning: Function parameter or member 'scb' not described in 'mega_prepare_extpassthru' drivers/scsi/megaraid.c:1016: warning: Function parameter or member 'cmd' not described in 'mega_prepare_extpassthru' drivers/scsi/megaraid.c:1016: warning: Function parameter or member 'channel' not described in 'mega_prepare_extpassthru' drivers/scsi/megaraid.c:1016: warning: Function parameter or member 'target' not described in 'mega_prepare_extpassthru' drivers/scsi/megaraid.c:1097: warning: Function parameter or member 'adapter' not described in 'issue_scb' drivers/scsi/megaraid.c:1097: warning: Function parameter or member 'scb' not described in 'issue_scb' drivers/scsi/megaraid.c:1176: warning: Function parameter or member 'adapter' not described in 'issue_scb_block' drivers/scsi/megaraid.c:1176: warning: Function parameter or member 'raw_mbox' not described in 'issue_scb_block' drivers/scsi/megaraid.c:1259: warning: Function parameter or member 'irq' not described in 'megaraid_isr_iomapped' drivers/scsi/megaraid.c:1259: warning: Function parameter or member 'devp' not described in 'megaraid_isr_iomapped' drivers/scsi/megaraid.c:1335: warning: Function parameter or member 'irq' not described in 'megaraid_isr_memmapped' drivers/scsi/megaraid.c:1335: warning: Function parameter or member 'devp' not described in 'megaraid_isr_memmapped' drivers/scsi/megaraid.c:1413: warning: Function parameter or member 'adapter' not described in 'mega_cmd_done' drivers/scsi/megaraid.c:1413: warning: Function parameter or member 'completed' not described in 'mega_cmd_done' drivers/scsi/megaraid.c:1413: warning: Function parameter or member 'nstatus' not described in 'mega_cmd_done' drivers/scsi/megaraid.c:1413: warning: Function parameter or member 'status' not described in 'mega_cmd_done' drivers/scsi/megaraid.c:1933: warning: Function parameter or member 'adapter' not described in 'megaraid_abort_and_reset' drivers/scsi/megaraid.c:1933: warning: Function parameter or member 'cmd' not described in 'megaraid_abort_and_reset' drivers/scsi/megaraid.c:1933: warning: Function parameter or member 'aor' not described in 'megaraid_abort_and_reset' drivers/scsi/megaraid.c:2031: warning: Function parameter or member 'dma_handle' not described in 'mega_allocate_inquiry' drivers/scsi/megaraid.c:2031: warning: Function parameter or member 'pdev' not described in 'mega_allocate_inquiry' drivers/scsi/megaraid.c:2055: warning: Function parameter or member 'm' not described in 'proc_show_config' drivers/scsi/megaraid.c:2055: warning: Function parameter or member 'v' not described in 'proc_show_config' drivers/scsi/megaraid.c:2119: warning: Function parameter or member 'm' not described in 'proc_show_stat' drivers/scsi/megaraid.c:2119: warning: Function parameter or member 'v' not described in 'proc_show_stat' drivers/scsi/megaraid.c:2154: warning: Function parameter or member 'm' not described in 'proc_show_mbox' drivers/scsi/megaraid.c:2154: warning: Function parameter or member 'v' not described in 'proc_show_mbox' drivers/scsi/megaraid.c:2181: warning: Function parameter or member 'm' not described in 'proc_show_rebuild_rate' drivers/scsi/megaraid.c:2181: warning: Function parameter or member 'v' not described in 'proc_show_rebuild_rate' drivers/scsi/megaraid.c:2224: warning: Function parameter or member 'm' not described in 'proc_show_battery' drivers/scsi/megaraid.c:2224: warning: Function parameter or member 'v' not described in 'proc_show_battery' drivers/scsi/megaraid.c:2328: warning: Function parameter or member 'm' not described in 'proc_show_pdrv' drivers/scsi/megaraid.c:2328: warning: Function parameter or member 'adapter' not described in 'proc_show_pdrv' drivers/scsi/megaraid.c:2328: warning: Function parameter or member 'channel' not described in 'proc_show_pdrv' drivers/scsi/megaraid.c:2443: warning: Function parameter or member 'm' not described in 'proc_show_pdrv_ch0' drivers/scsi/megaraid.c:2443: warning: Function parameter or member 'v' not described in 'proc_show_pdrv_ch0' drivers/scsi/megaraid.c:2457: warning: Function parameter or member 'm' not described in 'proc_show_pdrv_ch1' drivers/scsi/megaraid.c:2457: warning: Function parameter or member 'v' not described in 'proc_show_pdrv_ch1' drivers/scsi/megaraid.c:2471: warning: Function parameter or member 'm' not described in 'proc_show_pdrv_ch2' drivers/scsi/megaraid.c:2471: warning: Function parameter or member 'v' not described in 'proc_show_pdrv_ch2' drivers/scsi/megaraid.c:2485: warning: Function parameter or member 'm' not described in 'proc_show_pdrv_ch3' drivers/scsi/megaraid.c:2485: warning: Function parameter or member 'v' not described in 'proc_show_pdrv_ch3' drivers/scsi/megaraid.c:2502: warning: Function parameter or member 'm' not described in 'proc_show_rdrv' drivers/scsi/megaraid.c:2502: warning: Function parameter or member 'adapter' not described in 'proc_show_rdrv' drivers/scsi/megaraid.c:2502: warning: Function parameter or member 'start' not described in 'proc_show_rdrv' drivers/scsi/megaraid.c:2502: warning: Function parameter or member 'end' not described in 'proc_show_rdrv' drivers/scsi/megaraid.c:2684: warning: Function parameter or member 'm' not described in 'proc_show_rdrv_10' drivers/scsi/megaraid.c:2684: warning: Function parameter or member 'v' not described in 'proc_show_rdrv_10' drivers/scsi/megaraid.c:2698: warning: Function parameter or member 'm' not described in 'proc_show_rdrv_20' drivers/scsi/megaraid.c:2698: warning: Function parameter or member 'v' not described in 'proc_show_rdrv_20' drivers/scsi/megaraid.c:2712: warning: Function parameter or member 'm' not described in 'proc_show_rdrv_30' drivers/scsi/megaraid.c:2712: warning: Function parameter or member 'v' not described in 'proc_show_rdrv_30' drivers/scsi/megaraid.c:2726: warning: Function parameter or member 'm' not described in 'proc_show_rdrv_40' drivers/scsi/megaraid.c:2726: warning: Function parameter or member 'v' not described in 'proc_show_rdrv_40' drivers/scsi/megaraid.c:2739: warning: Function parameter or member 'index' not described in 'mega_create_proc_entry' drivers/scsi/megaraid.c:2739: warning: Function parameter or member 'parent' not described in 'mega_create_proc_entry' drivers/scsi/megaraid.c:2796: warning: Function parameter or member 'sdev' not described in 'megaraid_biosparam' drivers/scsi/megaraid.c:2796: warning: Function parameter or member 'bdev' not described in 'megaraid_biosparam' drivers/scsi/megaraid.c:2796: warning: Function parameter or member 'capacity' not described in 'megaraid_biosparam' drivers/scsi/megaraid.c:2796: warning: Function parameter or member 'geom' not described in 'megaraid_biosparam' drivers/scsi/megaraid.c:2865: warning: Function parameter or member 'adapter' not described in 'mega_init_scb' drivers/scsi/megaraid.c:2945: warning: Function parameter or member 'inode' not described in 'megadev_open' drivers/scsi/megaraid.c:2945: warning: Function parameter or member 'filep' not described in 'megadev_open' drivers/scsi/megaraid.c:2969: warning: Function parameter or member 'filep' not described in 'megadev_ioctl' drivers/scsi/megaraid.c:2969: warning: Function parameter or member 'cmd' not described in 'megadev_ioctl' drivers/scsi/megaraid.c:2969: warning: Function parameter or member 'arg' not described in 'megadev_ioctl' drivers/scsi/megaraid.c:3383: warning: Function parameter or member 'arg' not described in 'mega_m_to_n' drivers/scsi/megaraid.c:3383: warning: Function parameter or member 'uioc' not described in 'mega_m_to_n' drivers/scsi/megaraid.c:3574: warning: Function parameter or member 'adapter' not described in 'mega_is_bios_enabled' drivers/scsi/megaraid.c:3607: warning: Function parameter or member 'adapter' not described in 'mega_enum_raid_scsi' drivers/scsi/megaraid.c:3661: warning: Function parameter or member 'adapter' not described in 'mega_get_boot_drv' drivers/scsi/megaraid.c:3728: warning: Function parameter or member 'adapter' not described in 'mega_support_random_del' drivers/scsi/megaraid.c:3757: warning: Function parameter or member 'adapter' not described in 'mega_support_ext_cdb' drivers/scsi/megaraid.c:3787: warning: Function parameter or member 'adapter' not described in 'mega_del_logdrv' drivers/scsi/megaraid.c:3787: warning: Function parameter or member 'logdrv' not described in 'mega_del_logdrv' drivers/scsi/megaraid.c:3872: warning: Function parameter or member 'adapter' not described in 'mega_get_max_sgl' drivers/scsi/megaraid.c:3917: warning: Function parameter or member 'adapter' not described in 'mega_support_cluster' drivers/scsi/megaraid.c:3962: warning: Function parameter or member 'adapter' not described in 'mega_adapinq' drivers/scsi/megaraid.c:3962: warning: Function parameter or member 'dma_handle' not described in 'mega_adapinq' drivers/scsi/megaraid.c:4071: warning: Function parameter or member 'adapter' not described in 'mega_internal_command' drivers/scsi/megaraid.c:4071: warning: Function parameter or member 'mc' not described in 'mega_internal_command' drivers/scsi/megaraid.c:4071: warning: Function parameter or member 'pthru' not described in 'mega_internal_command' Cc: Kashyap Desai Cc: Sumit Saxena Cc: Shivasharan S Cc: Christoph Hellwig Cc: Seokmann.Ju@lsil.com Cc: sju@lsil.com Cc: megaraidlinux.pdl@broadcom.com Signed-off-by: Lee Jones --- drivers/scsi/megaraid.c | 218 ++++++++++++++++++++-------------------- 1 file changed, 109 insertions(+), 109 deletions(-) -- 2.25.1 Acked-by: Chandrakanth Patil Signed-off-by: Lee Jones diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c index f27ffd088c8ae..2d57836d1607f 100644 --- a/drivers/scsi/megaraid.c +++ b/drivers/scsi/megaraid.c @@ -124,7 +124,7 @@ static int trace_level; /** * mega_setup_mailbox() - * @adapter - pointer to our soft state + * @adapter: pointer to our soft state * * Allocates a 8 byte aligned memory for the handshake mailbox. */ @@ -178,9 +178,9 @@ mega_setup_mailbox(adapter_t *adapter) } -/* +/** * mega_query_adapter() - * @adapter - pointer to our soft state + * @adapter: pointer to our soft state * * Issue the adapter inquiry commands to the controller and find out * information and parameter about the devices attached @@ -347,7 +347,7 @@ mega_query_adapter(adapter_t *adapter) /** * mega_runpendq() - * @adapter - pointer to our soft state + * @adapter: pointer to our soft state * * Runs through the list of pending requests. */ @@ -358,10 +358,10 @@ mega_runpendq(adapter_t *adapter) __mega_runpendq(adapter); } -/* +/** * megaraid_queue() - * @scmd - Issue this scsi command - * @done - the callback hook into the scsi mid-layer + * @scmd: Issue this scsi command + * @done: the callback hook into the scsi mid-layer * * The command queuing entry point for the mid-layer. */ @@ -413,8 +413,8 @@ static DEF_SCSI_QCMD(megaraid_queue) /** * mega_allocate_scb() - * @adapter - pointer to our soft state - * @cmd - scsi command from the mid-layer + * @adapter: pointer to our soft state + * @cmd: scsi command from the mid-layer * * Allocate a SCB structure. This is the central structure for controller * commands. @@ -444,9 +444,9 @@ mega_allocate_scb(adapter_t *adapter, struct scsi_cmnd *cmd) /** * mega_get_ldrv_num() - * @adapter - pointer to our soft state - * @cmd - scsi mid layer command - * @channel - channel on the controller + * @adapter: pointer to our soft state + * @cmd: scsi mid layer command + * @channel: channel on the controller * * Calculate the logical drive number based on the information in scsi command * and the channel number. @@ -503,9 +503,9 @@ mega_get_ldrv_num(adapter_t *adapter, struct scsi_cmnd *cmd, int channel) /** * mega_build_cmd() - * @adapter - pointer to our soft state - * @cmd - Prepare using this scsi command - * @busy - busy flag if no resources + * @adapter: pointer to our soft state + * @cmd: Prepare using this scsi command + * @busy: busy flag if no resources * * Prepares a command and scatter gather list for the controller. This routine * also finds out if the commands is intended for a logical drive or a @@ -937,11 +937,11 @@ mega_build_cmd(adapter_t *adapter, struct scsi_cmnd *cmd, int *busy) /** * mega_prepare_passthru() - * @adapter - pointer to our soft state - * @scb - our scsi control block - * @cmd - scsi command from the mid-layer - * @channel - actual channel on the controller - * @target - actual id on the controller. + * @adapter: pointer to our soft state + * @scb: our scsi control block + * @cmd: scsi command from the mid-layer + * @channel: actual channel on the controller + * @target: actual id on the controller. * * prepare a command for the scsi physical devices. */ @@ -1000,11 +1000,11 @@ mega_prepare_passthru(adapter_t *adapter, scb_t *scb, struct scsi_cmnd *cmd, /** * mega_prepare_extpassthru() - * @adapter - pointer to our soft state - * @scb - our scsi control block - * @cmd - scsi command from the mid-layer - * @channel - actual channel on the controller - * @target - actual id on the controller. + * @adapter: pointer to our soft state + * @scb: our scsi control block + * @cmd: scsi command from the mid-layer + * @channel: actual channel on the controller + * @target: actual id on the controller. * * prepare a command for the scsi physical devices. This rountine prepares * commands for devices which can take extended CDBs (>10 bytes) @@ -1085,8 +1085,8 @@ __mega_runpendq(adapter_t *adapter) /** * issue_scb() - * @adapter - pointer to our soft state - * @scb - scsi control block + * @adapter: pointer to our soft state + * @scb: scsi control block * * Post a command to the card if the mailbox is available, otherwise return * busy. We also take the scb from the pending list if the mailbox is @@ -1166,8 +1166,8 @@ mega_busywait_mbox (adapter_t *adapter) /** * issue_scb_block() - * @adapter - pointer to our soft state - * @raw_mbox - the mailbox + * @adapter: pointer to our soft state + * @raw_mbox: the mailbox * * Issue a scb in synchronous and non-interrupt mode */ @@ -1247,8 +1247,8 @@ issue_scb_block(adapter_t *adapter, u_char *raw_mbox) /** * megaraid_isr_iomapped() - * @irq - irq - * @devp - pointer to our soft state + * @irq: irq + * @devp: pointer to our soft state * * Interrupt service routine for io-mapped controllers. * Find out if our device is interrupting. If yes, acknowledge the interrupt @@ -1323,8 +1323,8 @@ megaraid_isr_iomapped(int irq, void *devp) /** * megaraid_isr_memmapped() - * @irq - irq - * @devp - pointer to our soft state + * @irq: irq + * @devp: pointer to our soft state * * Interrupt service routine for memory-mapped controllers. * Find out if our device is interrupting. If yes, acknowledge the interrupt @@ -1401,10 +1401,10 @@ megaraid_isr_memmapped(int irq, void *devp) } /** * mega_cmd_done() - * @adapter - pointer to our soft state - * @completed - array of ids of completed commands - * @nstatus - number of completed commands - * @status - status of the last command completed + * @adapter: pointer to our soft state + * @completed: array of ids of completed commands + * @nstatus: number of completed commands + * @status: status of the last command completed * * Complete the commands and call the scsi mid-layer callback hooks. */ @@ -1921,9 +1921,9 @@ megaraid_reset(struct scsi_cmnd *cmd) /** * megaraid_abort_and_reset() - * @adapter - megaraid soft state - * @cmd - scsi command to be aborted or reset - * @aor - abort or reset flag + * @adapter: megaraid soft state + * @cmd: scsi command to be aborted or reset + * @aor: abort or reset flag * * Try to locate the scsi command in the pending queue. If found and is not * issued to the controller, abort/reset it. Otherwise return failure @@ -2021,8 +2021,8 @@ free_local_pdev(struct pci_dev *pdev) /** * mega_allocate_inquiry() - * @dma_handle - handle returned for dma address - * @pdev - handle to pci device + * @dma_handle: handle returned for dma address + * @pdev: handle to pci device * * allocates memory for inquiry structure */ @@ -2045,8 +2045,8 @@ mega_free_inquiry(void *inquiry, dma_addr_t dma_handle, struct pci_dev *pdev) /** * proc_show_config() - * @m - Synthetic file construction data - * @v - File iterator + * @m: Synthetic file construction data + * @v: File iterator * * Display configuration information about the controller. */ @@ -2109,8 +2109,8 @@ proc_show_config(struct seq_file *m, void *v) /** * proc_show_stat() - * @m - Synthetic file construction data - * @v - File iterator + * @m: Synthetic file construction data + * @v: File iterator * * Display statistical information about the I/O activity. */ @@ -2143,8 +2143,8 @@ proc_show_stat(struct seq_file *m, void *v) /** * proc_show_mbox() - * @m - Synthetic file construction data - * @v - File iterator + * @m: Synthetic file construction data + * @v: File iterator * * Display mailbox information for the last command issued. This information * is good for debugging. @@ -2171,8 +2171,8 @@ proc_show_mbox(struct seq_file *m, void *v) /** * proc_show_rebuild_rate() - * @m - Synthetic file construction data - * @v - File iterator + * @m: Synthetic file construction data + * @v: File iterator * * Display current rebuild rate */ @@ -2214,8 +2214,8 @@ proc_show_rebuild_rate(struct seq_file *m, void *v) /** * proc_show_battery() - * @m - Synthetic file construction data - * @v - File iterator + * @m: Synthetic file construction data + * @v: File iterator * * Display information about the battery module on the controller. */ @@ -2317,9 +2317,9 @@ mega_print_inquiry(struct seq_file *m, char *scsi_inq) /** * proc_show_pdrv() - * @m - Synthetic file construction data - * @page - buffer to write the data in - * @adapter - pointer to our soft state + * @m: Synthetic file construction data + * @adapter: pointer to our soft state + * @channel: channel on the controller * * Display information about the physical drives. */ @@ -2433,8 +2433,8 @@ proc_show_pdrv(struct seq_file *m, adapter_t *adapter, int channel) /** * proc_show_pdrv_ch0() - * @m - Synthetic file construction data - * @v - File iterator + * @m: Synthetic file construction data + * @v: File iterator * * Display information about the physical drives on physical channel 0. */ @@ -2447,8 +2447,8 @@ proc_show_pdrv_ch0(struct seq_file *m, void *v) /** * proc_show_pdrv_ch1() - * @m - Synthetic file construction data - * @v - File iterator + * @m: Synthetic file construction data + * @v: File iterator * * Display information about the physical drives on physical channel 1. */ @@ -2461,8 +2461,8 @@ proc_show_pdrv_ch1(struct seq_file *m, void *v) /** * proc_show_pdrv_ch2() - * @m - Synthetic file construction data - * @v - File iterator + * @m: Synthetic file construction data + * @v: File iterator * * Display information about the physical drives on physical channel 2. */ @@ -2475,8 +2475,8 @@ proc_show_pdrv_ch2(struct seq_file *m, void *v) /** * proc_show_pdrv_ch3() - * @m - Synthetic file construction data - * @v - File iterator + * @m: Synthetic file construction data + * @v: File iterator * * Display information about the physical drives on physical channel 3. */ @@ -2489,10 +2489,10 @@ proc_show_pdrv_ch3(struct seq_file *m, void *v) /** * proc_show_rdrv() - * @m - Synthetic file construction data - * @adapter - pointer to our soft state - * @start - starting logical drive to display - * @end - ending logical drive to display + * @m: Synthetic file construction data + * @adapter: pointer to our soft state + * @start: starting logical drive to display + * @end: ending logical drive to display * * We do not print the inquiry information since its already available through * /proc/scsi/scsi interface @@ -2674,8 +2674,8 @@ proc_show_rdrv(struct seq_file *m, adapter_t *adapter, int start, int end ) /** * proc_show_rdrv_10() - * @m - Synthetic file construction data - * @v - File iterator + * @m: Synthetic file construction data + * @v: File iterator * * Display real time information about the logical drives 0 through 9. */ @@ -2688,8 +2688,8 @@ proc_show_rdrv_10(struct seq_file *m, void *v) /** * proc_show_rdrv_20() - * @m - Synthetic file construction data - * @v - File iterator + * @m: Synthetic file construction data + * @v: File iterator * * Display real time information about the logical drives 0 through 9. */ @@ -2702,8 +2702,8 @@ proc_show_rdrv_20(struct seq_file *m, void *v) /** * proc_show_rdrv_30() - * @m - Synthetic file construction data - * @v - File iterator + * @m: Synthetic file construction data + * @v: File iterator * * Display real time information about the logical drives 0 through 9. */ @@ -2716,8 +2716,8 @@ proc_show_rdrv_30(struct seq_file *m, void *v) /** * proc_show_rdrv_40() - * @m - Synthetic file construction data - * @v - File iterator + * @m: Synthetic file construction data + * @v: File iterator * * Display real time information about the logical drives 0 through 9. */ @@ -2729,8 +2729,8 @@ proc_show_rdrv_40(struct seq_file *m, void *v) /** * mega_create_proc_entry() - * @index - index in soft state array - * @parent - parent node for this /proc entry + * @index: index in soft state array + * @parent: parent node for this /proc entry * * Creates /proc entries for our controllers. */ @@ -2785,7 +2785,7 @@ static inline void mega_create_proc_entry(int index, struct proc_dir_entry *pare #endif -/** +/* * megaraid_biosparam() * * Return the disk geometry for a particular disk @@ -2854,7 +2854,7 @@ megaraid_biosparam(struct scsi_device *sdev, struct block_device *bdev, /** * mega_init_scb() - * @adapter - pointer to our soft state + * @adapter: pointer to our soft state * * Allocate memory for the various pointers in the scb structures: * scatter-gather list pointer, passthru and extended passthru structure @@ -2934,8 +2934,8 @@ mega_init_scb(adapter_t *adapter) /** * megadev_open() - * @inode - unused - * @filep - unused + * @inode: unused + * @filep: unused * * Routines for the character/ioctl interface to the driver. Find out if this * is a valid open. @@ -2954,10 +2954,9 @@ megadev_open (struct inode *inode, struct file *filep) /** * megadev_ioctl() - * @inode - Our device inode - * @filep - unused - * @cmd - ioctl command - * @arg - user buffer + * @filep: unused + * @cmd: ioctl command + * @arg: user buffer * * ioctl entry point for our private ioctl interface. We move the data in from * the user space, prepare the command (if necessary, convert the old MIMD @@ -3370,8 +3369,8 @@ megadev_unlocked_ioctl(struct file *filep, unsigned int cmd, unsigned long arg) /** * mega_m_to_n() - * @arg - user address - * @uioc - new ioctl structure + * @arg: user address + * @uioc: new ioctl structure * * A thin layer to convert older mimd interface ioctl structure to NIT ioctl * structure @@ -3496,10 +3495,10 @@ mega_m_to_n(void __user *arg, nitioctl_t *uioc) return 0; } -/* +/** * mega_n_to_m() - * @arg - user address - * @mc - mailbox command + * @arg: user address + * @mc: mailbox command * * Updates the status information to the application, depending on application * conforms to older mimd ioctl interface or newer NIT ioctl interface @@ -3565,7 +3564,7 @@ mega_n_to_m(void __user *arg, megacmd_t *mc) /** * mega_is_bios_enabled() - * @adapter - pointer to our soft state + * @adapter: pointer to our soft state * * issue command to find out if the BIOS is enabled for this controller */ @@ -3596,7 +3595,7 @@ mega_is_bios_enabled(adapter_t *adapter) /** * mega_enum_raid_scsi() - * @adapter - pointer to our soft state + * @adapter: pointer to our soft state * * Find out what channels are RAID/SCSI. This information is used to * differentiate the virtual channels and physical channels and to support @@ -3651,7 +3650,7 @@ mega_enum_raid_scsi(adapter_t *adapter) /** * mega_get_boot_drv() - * @adapter - pointer to our soft state + * @adapter: pointer to our soft state * * Find out which device is the boot device. Note, any logical drive or any * phyical device (e.g., a CDROM) can be designated as a boot device. @@ -3718,7 +3717,7 @@ mega_get_boot_drv(adapter_t *adapter) /** * mega_support_random_del() - * @adapter - pointer to our soft state + * @adapter: pointer to our soft state * * Find out if this controller supports random deletion and addition of * logical drives @@ -3748,7 +3747,7 @@ mega_support_random_del(adapter_t *adapter) /** * mega_support_ext_cdb() - * @adapter - pointer to our soft state + * @adapter: pointer to our soft state * * Find out if this firmware support cdblen > 10 */ @@ -3776,8 +3775,8 @@ mega_support_ext_cdb(adapter_t *adapter) /** * mega_del_logdrv() - * @adapter - pointer to our soft state - * @logdrv - logical drive to be deleted + * @adapter: pointer to our soft state + * @logdrv: logical drive to be deleted * * Delete the specified logical drive. It is the responsibility of the user * app to let the OS know about this operation. @@ -3862,7 +3861,7 @@ mega_do_del_logdrv(adapter_t *adapter, int logdrv) /** * mega_get_max_sgl() - * @adapter - pointer to our soft state + * @adapter: pointer to our soft state * * Find out the maximum number of scatter-gather elements supported by this * version of the firmware @@ -3908,7 +3907,7 @@ mega_get_max_sgl(adapter_t *adapter) /** * mega_support_cluster() - * @adapter - pointer to our soft state + * @adapter: pointer to our soft state * * Find out if this firmware support cluster calls. */ @@ -3950,8 +3949,8 @@ mega_support_cluster(adapter_t *adapter) #ifdef CONFIG_PROC_FS /** * mega_adapinq() - * @adapter - pointer to our soft state - * @dma_handle - DMA address of the buffer + * @adapter: pointer to our soft state + * @dma_handle: DMA address of the buffer * * Issue internal commands while interrupts are available. * We only issue direct mailbox commands from within the driver. ioctl() @@ -3983,11 +3982,12 @@ mega_adapinq(adapter_t *adapter, dma_addr_t dma_handle) } -/** mega_internal_dev_inquiry() - * @adapter - pointer to our soft state - * @ch - channel for this device - * @tgt - ID of this device - * @buf_dma_handle - DMA address of the buffer +/** + * mega_internal_dev_inquiry() + * @adapter: pointer to our soft state + * @ch: channel for this device + * @tgt: ID of this device + * @buf_dma_handle: DMA address of the buffer * * Issue the scsi inquiry for the specified device. */ @@ -4056,9 +4056,9 @@ mega_internal_dev_inquiry(adapter_t *adapter, u8 ch, u8 tgt, /** * mega_internal_command() - * @adapter - pointer to our soft state - * @mc - the mailbox command - * @pthru - Passthru structure for DCDB commands + * @adapter: pointer to our soft state + * @mc: the mailbox command + * @pthru: Passthru structure for DCDB commands * * Issue the internal commands in interrupt mode. * The last argument is the address of the passthru structure if the command From patchwork Thu Jul 9 17:45:49 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235175 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1632071ilg; Thu, 9 Jul 2020 10:46:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzuSsJ+Ct75jQRobMwfYFWJc46pvASniJC8NCnbS+Xg1Npk9MElYFtWf48QOGBpu6VP4Pkw X-Received: by 2002:a50:d49e:: with SMTP id s30mr178584edi.228.1594316819621; Thu, 09 Jul 2020 10:46:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316819; cv=none; d=google.com; s=arc-20160816; b=aqn9pCamMS4+ow8LArkWriYi+KY9nzVFvDrpTQuyw6fgOd3qumq4CzXbA4gaStOTsT h+B9DrDWqyczgMLAaKFPI+iCAM/XtpfB++cm9JzB6PHRXgNgnceUF4Plp8skpfA4kUdj ihJgnQrNw5777q28vXWihkwbVKk/QZ1fcSR9i9dqjuqNJ1MA5SBqy4ua5bLLc+XFzY8B VqO0+w+e7MgHaHHqbTK9Xg9jGT/178Bxdu1XdRm1dFK14QYTF8UJOS27MaTvBE7aMLZF f71FQpi4uBkm2s2oUyXJIQ5SMRUZnPH0FupRzXAXdkyBSWxciVrRxpYvzOVMSVrOq0nM wSog== 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=bOkk/AOE4a1rIKIblem9cC9W1YA+YYErwB4kADkbA6U=; b=JuB7dugOcqJONm8WMhYNn748S8Jy0UFbi8FhUsauqJ05neXRzvfcULr01SJDBUfFey Hy7yHTf+jt9GnkRR40CrORx0RZPgbK0qaQ7vvxDVKYFDaOYJOEiiDPuX2tGqfrvQOvR7 3csUV9xd3s6xa9ev9be/YFZi8SxBwe7o51T0/ZRHyVozm+nrAzu/V8hR3Pb7DoMZTLqF SQFk2j9gakeUSl3PzBKDQSu5JwQXiad5zSLsJyRwGQ2uwthUlp4xye7wflhxvCJvW1NZ WGcFhO/WhJajQGsEQckv7L8ITEMe26d1Pg5Tul6tsPSUpJxguG1IeMGNpCKcCQuE1h3r i+9w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MWd5ju4J; 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 lz14si2465629ejb.65.2020.07.09.10.46.59 for ; Thu, 09 Jul 2020 10:46:59 -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=MWd5ju4J; 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 S1728733AbgGIRqy (ORCPT ); Thu, 9 Jul 2020 13:46:54 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728626AbgGIRqU (ORCPT ); Thu, 9 Jul 2020 13:46:20 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C841DC08C5DC for ; Thu, 9 Jul 2020 10:46:19 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id f18so2758572wml.3 for ; Thu, 09 Jul 2020 10:46:19 -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=bOkk/AOE4a1rIKIblem9cC9W1YA+YYErwB4kADkbA6U=; b=MWd5ju4JbdHMiJUX5GcVnX00rN3Hc3hTaDiVr7AuBgNidF2+dd4GO9vqUV1Qh46wyy 6KEyEo8a2wrrsboXdmxrShxWKCO00TCzZfMh548C3SPpvGr2YZBdtP1Ria0ltI6PaUbJ A8X0QIzFq/GapHaUwFRvoweJ/fwptLu+HspTiL4q0k7W5KRaER1SwytpXR3UFxJVz15T xHcejeaN3b+kVJMloB9uHu+wZP+G0tLsMeSOK0OZVTvXQPf/GYp3LUdiL2v1RwY/4VMh Vl+ZWXughSux3xb5Y4EeAAUBv+uU6xLGI3+CNWu8pXlcuT1HJ1+Sq0NiJR2jr9km1aZW rItA== 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=bOkk/AOE4a1rIKIblem9cC9W1YA+YYErwB4kADkbA6U=; b=RVDRSswjgEbPx6xP2rg0kzfIZ0SIvR8+qPncwOxm9SQkZltZDIR7ZVp0aCgMnYFyOc QTXr0NS1+dcmRXOmOsyMM1l+BkN42Afe3ZG9mxoqpA1jXHP7RmqpfTiugiQ7DRhVsOow E7263uCjySIaY3qFcX/+ZPGUmvz2a+LmBpHKBrpch6aGPW3vB2v344T4R1Yo9hxBeuGP J/YZ4akumaY2BBS1/zipqCMVrZnUFXETrJ0VKs0612K29IICE/jHTKTem5BTj1L5bwkv 3AO0czfskciL94DNUmY7c863w0B9n+QZA8ZuLrrhkfzQfyxYpZXjnrCx14qNBPOZMNVP 7cCw== X-Gm-Message-State: AOAM532tWBM0N+PhxosBEuD6CeqgEgAZ78c/D+/zE2sYH2whZkCtla2i wgU3iEfhwXMWJDFmUfKRKme5jA== X-Received: by 2002:a1c:7f82:: with SMTP id a124mr1054657wmd.132.1594316778528; Thu, 09 Jul 2020 10:46:18 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:17 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Subbu Seetharaman , Ketan Mukadam , Jitendra Bhivare , linux-drivers@broadcom.com Subject: [PATCH 17/24] scsi: be2iscsi: be_iscsi: Fix API/documentation slip Date: Thu, 9 Jul 2020 18:45:49 +0100 Message-Id: <20200709174556.7651-18-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org And add descriptions for a couple of missing function parameters. Fixes the following W=1 kernel build warning(s): drivers/scsi/be2iscsi/be_iscsi.c:38: warning: Function parameter or member 'ep' not described in 'beiscsi_session_create' drivers/scsi/be2iscsi/be_iscsi.c:173: warning: Function parameter or member 'is_leading' not described in 'beiscsi_conn_bind' drivers/scsi/be2iscsi/be_iscsi.c:998: warning: Function parameter or member 'beiscsi_ep' not described in 'beiscsi_free_ep' drivers/scsi/be2iscsi/be_iscsi.c:998: warning: Excess function parameter 'ep' description in 'beiscsi_free_ep' drivers/scsi/be2iscsi/be_iscsi.c:1039: warning: Function parameter or member 'non_blocking' not described in 'beiscsi_open_conn' drivers/scsi/be2iscsi/be_iscsi.c:1135: warning: Function parameter or member 'shost' not described in 'beiscsi_ep_connect' drivers/scsi/be2iscsi/be_iscsi.c:1135: warning: Excess function parameter 'scsi_host' description in 'beiscsi_ep_connect' drivers/scsi/be2iscsi/be_iscsi.c:1236: warning: Function parameter or member 'beiscsi_ep' not described in 'beiscsi_conn_close' drivers/scsi/be2iscsi/be_iscsi.c:1236: warning: Excess function parameter 'ep' description in 'beiscsi_conn_close' Cc: Subbu Seetharaman Cc: Ketan Mukadam Cc: Jitendra Bhivare Cc: linux-drivers@broadcom.com Signed-off-by: Lee Jones --- drivers/scsi/be2iscsi/be_iscsi.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/be2iscsi/be_iscsi.c b/drivers/scsi/be2iscsi/be_iscsi.c index 2058d50d62e12..fe10575bce7f0 100644 --- a/drivers/scsi/be2iscsi/be_iscsi.c +++ b/drivers/scsi/be2iscsi/be_iscsi.c @@ -27,6 +27,7 @@ extern struct iscsi_transport beiscsi_iscsi_transport; /** * beiscsi_session_create - creates a new iscsi session + * @ep: pointer to iscsi ep * @cmds_max: max commands supported * @qdepth: max queue depth supported * @initial_cmdsn: initial iscsi CMDSN @@ -164,6 +165,7 @@ beiscsi_conn_create(struct iscsi_cls_session *cls_session, u32 cid) * @cls_session: pointer to iscsi cls session * @cls_conn: pointer to iscsi cls conn * @transport_fd: EP handle(64 bit) + * @is_leading: indicate if this is the session leading connection (MCS) * * This function binds the TCP Conn with iSCSI Connection and Session. */ @@ -992,7 +994,7 @@ static void beiscsi_put_cid(struct beiscsi_hba *phba, unsigned short cid) /** * beiscsi_free_ep - free endpoint - * @ep: pointer to iscsi endpoint structure + * @beiscsi_ep: pointer to device endpoint struct */ static void beiscsi_free_ep(struct beiscsi_endpoint *beiscsi_ep) { @@ -1027,9 +1029,10 @@ static void beiscsi_free_ep(struct beiscsi_endpoint *beiscsi_ep) /** * beiscsi_open_conn - Ask FW to open a TCP connection - * @ep: endpoint to be used + * @beiscsi_ep: pointer to device endpoint struct * @src_addr: The source IP address * @dst_addr: The Destination IP address + * @non_blocking: blocking or non-blocking call * * Asks the FW to open a TCP connection */ @@ -1123,7 +1126,7 @@ static int beiscsi_open_conn(struct iscsi_endpoint *ep, /** * beiscsi_ep_connect - Ask chip to create TCP Conn - * @scsi_host: Pointer to scsi_host structure + * @shost: Pointer to scsi_host structure * @dst_addr: The IP address of Target * @non_blocking: blocking or non-blocking call * @@ -1228,7 +1231,7 @@ static void beiscsi_flush_cq(struct beiscsi_hba *phba) /** * beiscsi_conn_close - Invalidate and upload connection - * @ep: The iscsi endpoint + * @beiscsi_ep: pointer to device endpoint struct * * Returns 0 on success, -1 on failure. */ From patchwork Thu Jul 9 17:45:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235174 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1631999ilg; Thu, 9 Jul 2020 10:46:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzSUQK5NehUao0sNbdnjnzJ5PzJip9TyJbuClmBYP/7zt4Pih4FYuh3Xw/OY6gXRWHlt4sl X-Received: by 2002:a17:906:3958:: with SMTP id g24mr55465987eje.26.1594316813580; Thu, 09 Jul 2020 10:46:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316813; cv=none; d=google.com; s=arc-20160816; b=IgmcSUCwg6gTBP9+HEnOYe8ruPmJpNAxZDu1/Ya3G9XMFaLZjxrgSP2GtNAOsJLE2l maQMp7xRa2zrdpmz9ktZQnkQGBzHNn2St7PL94k4BjKDNTSKrX6a8v4yC2NnLNvOiEV5 /GjPlCesgxUQJwc8Cc12Uk/urhcEyWVH/LgDUjFTZ5De2XIaS3Wumb/IaV67F7YYUQSF umLIC0TTP+6XqWzgCl9dZwvNFAAR1dPKCtijJSZWfnq+6o3VnvoTsvO7XvwnZL0YlvgQ xiCjBpn4y0L95m50Wy1zuzooMbjC5AKa3s+bkQR1+ECeqsU8zX+7B0JFij8m16DQln9F vTHg== 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=9ZgkQ7bdc1wuAXRYHhS8n4ys9/FLwMulTL97bGrK6Pg=; b=gGZKrakSutJBMkbadDVzer/mSNxEm0zgaYiDkor83bjQF6rwjaK7KhRcMeMKAG51qD qA06a5ghxri1pZ4W0swB5Q4kusaMdGfl9j+S0jCN2IhO28p3tV8apQ0feuTkIsMzYWH7 LbJSP0jdfTfharUgDp6TuLNMaMcPg2X7bYPt3Q07ux712d7cOzEozqOZ/wHbEBOm6V8s rVlYLZtX+WCqjdPgAOGrNTyf3gIsOr6Icu0HrutooMOIqDwyJeu7nxbjqX/A8Vv0cIDK /aYWLEtE9Faer809lohZuKLc1bSjjlPVOQ1U6LRMJbrRXoVSdp34Igdm5lO5eCSVR4Lu 6tsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=THHFlyDN; 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 d23si2400256ejz.145.2020.07.09.10.46.53 for ; Thu, 09 Jul 2020 10:46:53 -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=THHFlyDN; 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 S1728724AbgGIRqt (ORCPT ); Thu, 9 Jul 2020 13:46:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728645AbgGIRqW (ORCPT ); Thu, 9 Jul 2020 13:46:22 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01E1BC08C5DC for ; Thu, 9 Jul 2020 10:46:21 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id f18so2758627wml.3 for ; Thu, 09 Jul 2020 10:46:20 -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=9ZgkQ7bdc1wuAXRYHhS8n4ys9/FLwMulTL97bGrK6Pg=; b=THHFlyDNfbGhREe2Mth1t3vCdRUQD4ki7iIZalNoQuNJfu8+DSo3uQh/JnGFL1A7pB r6my4q+nRSD/YT8Kj7W7qiyUu4sCcRaeitRb9gqIgzTzXOrEgeNR5c2j7v0DiGPCTj/r GZ+R+hesfOrz8Xx88SDf0a9ZLtrXI9KyTVwM0Fc7itFpMLeGE/H4H7vnS5jdMQ1PSsm4 XwPKiJQJdEbzq0enhc1XJN7KBC/Y8fJ6m1pTP34kg0vZIfkB5QtC1DGJoSUpWzHqjYHW KJevbzy75tsf6JdnjP+mG/Zt1RE5Ad862YUbB6B6NXn3g7lsp51hDsB9mOCnx+t38PoO 1poQ== 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=9ZgkQ7bdc1wuAXRYHhS8n4ys9/FLwMulTL97bGrK6Pg=; b=VQv5cm4f5T1JaqZwoYYBCKSUMtAK8zm/2YxF6Q28nXwZPmnQD4pYjl27EtK2yGdYLL VHAQNo2gwNbtq25foPEsPrXw8qqE4c1Czb/iDoAwJXPqwZkCWKZtNi98JxR8LM3tj1Ij LZfH2OwPId4K+bjmhIti4zZTbb9kKMnWj5gVqP/FAcfZiWVOpujxpKkTZaJcIA2EjO/f li0JI79/NSukCZ11EAP22DIgkcxImZ8aHVooULyEOytXo/tn3n8MtykIgKTwRNndYMsu 2DWtUkahbY4h67tnZxDk9USDn1Xhpihkb8FkTcqlixYD5eNAHWSmowV7zVxd7rlwf27n e/Sg== X-Gm-Message-State: AOAM531ZxwGySVcqaRmUZ7lsl+Ltoly6TYChk3+tvr/BZZ/dKC/m33ZB go1S5Iwc1rcHwRC6IE1iddSx1Q== X-Received: by 2002:a1c:49d4:: with SMTP id w203mr1191513wma.13.1594316779758; Thu, 09 Jul 2020 10:46:19 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:19 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Subbu Seetharaman , Ketan Mukadam , Jitendra Bhivare , linux-drivers@broadcom.com Subject: [PATCH 18/24] scsi: be2iscsi: be_main: Fix misdocumentation of 'pcontext' Date: Thu, 9 Jul 2020 18:45:50 +0100 Message-Id: <20200709174556.7651-19-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Also demote unintentional kerneldoc header. Fixes the following W=1 kernel build warning(s): drivers/scsi/be2iscsi/be_main.c:986: warning: Function parameter or member 'pcontext' not described in 'alloc_wrb_handle' drivers/scsi/be2iscsi/be_main.c:986: warning: Excess function parameter 'pwrb_context' description in 'alloc_wrb_handle' drivers/scsi/be2iscsi/be_main.c:1409: warning: Function parameter or member 'beiscsi_conn' not described in 'beiscsi_complete_pdu' drivers/scsi/be2iscsi/be_main.c:1409: warning: Function parameter or member 'phdr' not described in 'beiscsi_complete_pdu' drivers/scsi/be2iscsi/be_main.c:1409: warning: Function parameter or member 'pdata' not described in 'beiscsi_complete_pdu' drivers/scsi/be2iscsi/be_main.c:1409: warning: Function parameter or member 'dlen' not described in 'beiscsi_complete_pdu' Cc: Subbu Seetharaman Cc: Ketan Mukadam Cc: Jitendra Bhivare Cc: linux-drivers@broadcom.com Signed-off-by: Lee Jones --- drivers/scsi/be2iscsi/be_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 9b81cfbbc5c53..8dc2e0824ad78 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c @@ -977,7 +977,7 @@ beiscsi_get_wrb_handle(struct hwi_wrb_context *pwrb_context, * alloc_wrb_handle - To allocate a wrb handle * @phba: The hba pointer * @cid: The cid to use for allocation - * @pwrb_context: ptr to ptr to wrb context + * @pcontext: ptr to ptr to wrb context * * This happens under session_lock until submission to chip */ @@ -1394,7 +1394,7 @@ static void hwi_complete_cmd(struct beiscsi_conn *beiscsi_conn, spin_unlock_bh(&session->back_lock); } -/** +/* * ASYNC PDUs include * a. Unsolicited NOP-In (target initiated NOP-In) * b. ASYNC Messages From patchwork Thu Jul 9 17:45:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235173 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1631951ilg; Thu, 9 Jul 2020 10:46:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz9xbz0G1vmmn9C2Y/MNovwFAugn7cHvsNrhcQN7jeU3bUBfC2jHFX2xCS36id+89zEM5ua X-Received: by 2002:a50:b065:: with SMTP id i92mr77497503edd.112.1594316809686; Thu, 09 Jul 2020 10:46:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316809; cv=none; d=google.com; s=arc-20160816; b=rGn76GI7hqRPa4ipwrfzaH4mqQ3wSKxQS0zauDgD6YUQnpWajkAHRZZJExp3ygXizE rK98HYzfJcLglkTO29cQeM1ZT0jo1qVevp4FabicQCYtTeuz4zo6YW7ZpQrFyYSDRo5i lZs329PF7ADPqhKkEOxhVJVSGfUcWBJNSgOXoezad3krrokGNYsVbq28GNmVnVe6v/TQ CJLpGdR46VwfFSp4sRcTK48Kv7wBZ3VzC8twLEgTn+uWd9TCGLn1V54OpXkpgPP+LXQ7 /vQbhb5i+4IHK7l9lyT5/+V4foOufBVFBJphzEI829z27rialDnp+9S6SVm+ld9Zvaxr HB0A== 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=XHlEfo3tdu7fpK4dx4b1MtHnaLwguM9Twh58pG6oyd8=; b=oi8JwyK8u4S5PzLbfSTmxDGnnfIXFJYkp8/13XutsKmcoWEzMSLI4e7yGFhhZw8U+I CBCI03vAv6l0ANuMv7WGmA5VyB8J5d1MacVwp7yp1xzG47S3efu0AuEzcEjjT5XQSCt0 cZxWeVtBnXsRMiBmdHTKqHv5uEcOolZSxe/6pTsj6qSACdOmpMxrxqfxsbudDqN8OB7q ySRhDz8m23qmhPv7YOJVynW4V8osADvBcdcQh7EIBjll3KrNfesVPdkicwTpfl1HHywu fwDuOB583Tdl2wA840wzlu7RRdI7zoD4FhK6bVJMCpHT6GfYCU82SvuDvL58gpT45l2j JuAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=VesfxsaF; 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 s19si2393977ejq.719.2020.07.09.10.46.49 for ; Thu, 09 Jul 2020 10:46:49 -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=VesfxsaF; 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 S1728459AbgGIRqt (ORCPT ); Thu, 9 Jul 2020 13:46:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728648AbgGIRqW (ORCPT ); Thu, 9 Jul 2020 13:46:22 -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 17651C08E6DC for ; Thu, 9 Jul 2020 10:46:22 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id f7so3318060wrw.1 for ; Thu, 09 Jul 2020 10:46:22 -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=XHlEfo3tdu7fpK4dx4b1MtHnaLwguM9Twh58pG6oyd8=; b=VesfxsaFFBKFlk9a9thYrVO38tZFUIsXefQpeuQaw8W8zrnsJ6vUqOtgK2Ak4YziVP SAMUUQZT8+evcb3M8m1ZVqmUtNYL8Rnkub3E3tFQUMxT+MJd1UFZrrynIrBhOJC/OCUR iif8eqkIRWByhR4s1B2m/awq1KuBDP5E9pjlGmzfhv3hq78ZpFA6jmfuJxb1Xowjx8qC /f4Z+MhPjjAI7u2iGyboKKcpmTG5YzMnYT1OSWxNGuOg2y5YfkUo9eOK+x2fEmeaPSxQ onsYPfz7Ong2fnJtK8U0qd6zZddcDgvw9vgobA377uZw6ps0DoKK21yIP3eA5NXb3iuO sPZA== 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=XHlEfo3tdu7fpK4dx4b1MtHnaLwguM9Twh58pG6oyd8=; b=V9ZGRiNSrIIPlRBf6KhFN+5gRGKw9myFePAJvRMwcdCX43Z1iLrApsG4XfVr2a9NQh +LuttL5RhK0ji7gqyyPlP/7K0ZgoJK+FYSab+F7iLnCTnCpf9NU8Qc47qgI57zxx38wQ Mlupz7SIOzYY2uaGiLjTrt1dvYj2XWCQWcY3ZDdKFICllBV3vf5EI2NwlMD5Z+6dxTrO Lp9D/Ut8hU9pfUvbxzVaIjdY7hPuEExdn5lq1ObZPD2Gu6p0XT0qZRGX70qxHMfZPs7a tAsIOPI+MWKdg8R/K8d4mEbYDOyev0MZY2OPMEmwnYpA6rPv/7IGkYceVjLRzFBT9pFO 9AOA== X-Gm-Message-State: AOAM530shCNH4MwNOHBf4+YzOlvsyyuW7RoOZEXSPM666wVBUVoaXZqj 1f52ZgSVEuv+scVa3nK5KyxThQ== X-Received: by 2002:a5d:6987:: with SMTP id g7mr63785648wru.79.1594316780854; Thu, 09 Jul 2020 10:46:20 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:20 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Subbu Seetharaman , Ketan Mukadam , Jitendra Bhivare , linux-drivers@broadcom.com Subject: [PATCH 19/24] scsi: be2iscsi: be_mgmt: Add missing function parameter description Date: Thu, 9 Jul 2020 18:45:51 +0100 Message-Id: <20200709174556.7651-20-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Also promote fully documented function header to kerneldoc. Fixes the following W=1 kernel build warning(s): drivers/scsi/be2iscsi/be_mgmt.c:112: warning: Function parameter or member 'phba' not described in 'mgmt_open_connection' Cc: Subbu Seetharaman Cc: Ketan Mukadam Cc: Jitendra Bhivare Cc: linux-drivers@broadcom.com Signed-off-by: Lee Jones --- drivers/scsi/be2iscsi/be_mgmt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/scsi/be2iscsi/be_mgmt.c b/drivers/scsi/be2iscsi/be_mgmt.c index a2d69b287c7bb..96d6e384b2b25 100644 --- a/drivers/scsi/be2iscsi/be_mgmt.c +++ b/drivers/scsi/be2iscsi/be_mgmt.c @@ -97,6 +97,7 @@ unsigned int mgmt_vendor_specific_fw_cmd(struct be_ctrl_info *ctrl, /** * mgmt_open_connection()- Establish a TCP CXN + * @phba: driver priv structure * @dst_addr: Destination Address * @beiscsi_ep: ptr to device endpoint struct * @nonemb_cmd: ptr to memory allocated for command @@ -209,7 +210,7 @@ int mgmt_open_connection(struct beiscsi_hba *phba, return tag; } -/* +/** * beiscsi_exec_nemb_cmd()- execute non-embedded MBX cmd * @phba: driver priv structure * @nonemb_cmd: DMA address of the MBX command to be issued From patchwork Thu Jul 9 17:45:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235171 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1631863ilg; Thu, 9 Jul 2020 10:46:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyCvd2weAllx9Intt0Cjxj4OCXsLJFQTCnZRK22iQAzJ4nn6Tz8s588PfRtLCQ8uQJOYvox X-Received: by 2002:a50:afa2:: with SMTP id h31mr20469637edd.303.1594316802110; Thu, 09 Jul 2020 10:46:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316802; cv=none; d=google.com; s=arc-20160816; b=wCF3BqkhiB66dMVMf/5XA34xGQLWNEpRweqVLll7/UFNYGxz15eWzpnqAKPmEJ1MJO oy5rue9VLVO19sMDV7ya4ePUw5jRQ+8UTetDPpGTDMXjAK0DgAQKi+FeuRhcgv7jnJCH rC1ji5MCxcvSut1KVLfhr2cHWKwX55uncSEUzCg73M+xm8zG8HDy7QKQsjzKWDuaunla yGp5Jip3RuJigGFCK0bPTnVgsrAobaUX5ccjid951cXsj/QtRRUqzUgbzZQlYyGNsQh2 CHv8OpIYFMR7CSCyCIKQTQ4OM1Oftkgb8QZX3S1ZHz03Hl012hxNMwTozvIP16m11+Rh S1Rg== 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=+pfHqz62aOBK6PBea5QXT7uvBZ9qWm4NsoFX/E3qCoE=; b=yx7tY8ocHsUaY1n7ZGoNxSPCbsqycGXU+5a0LPbdYl4zfQyLXluOAACB5qbSOI7AhE kUN79jCLom8mojbonoGmNRBS2qQZGlyHY28GFXSovTX3/+gGaA6pNbi7zOpDJpm62PyF LaAOcYWdJnhOG2KSHXipUi/9xDEiEWOziSTXJfynLoxyt+X8Ooh0TiZVTkO4tLt4DPEF ZMyrlpLHMolT+fGZe/OCZ0roTZWJ3Qt2fONYMotvsWXtNMdOHiGLFqZMsFkz8mT3HtVx 7xWNN/SLnuNYCvRXOt30jyNiw18f1Ah4x9hrRgsCIkm1uMWqAXhXEt3AuORs6I5huf4m 9Ukg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ZI3QoqNz; 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 s19si2393977ejq.719.2020.07.09.10.46.41 for ; Thu, 09 Jul 2020 10:46:42 -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=ZI3QoqNz; 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 S1728664AbgGIRqZ (ORCPT ); Thu, 9 Jul 2020 13:46:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48998 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728653AbgGIRqY (ORCPT ); Thu, 9 Jul 2020 13:46:24 -0400 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3916C08C5DC for ; Thu, 9 Jul 2020 10:46:23 -0700 (PDT) Received: by mail-wm1-x344.google.com with SMTP id l2so2758651wmf.0 for ; Thu, 09 Jul 2020 10:46:23 -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=+pfHqz62aOBK6PBea5QXT7uvBZ9qWm4NsoFX/E3qCoE=; b=ZI3QoqNz9orLSt6V862HwCKiM/cBnCKp9Rvr/uW/DsBAGBN3vfdkBYBLvo/zd89LDB jiuOPC57djAuSaW34tQMv3Hj9TUItaRafT+7eO/1r94LKluWhYZ4IlsiP5bT9GteFcxU IZzNMa1TtRDJoIFzjtrrL6iTiYaDg1ykYGJm4Rmit1Loy52KIMVk4ahC+kUxXVoeslOd AhbetjvXIhDnwHNaVccuaDxXspuadvgKGlxf5DdQ1p2W8GoYzQgverK5fKDGlvGg/YQh bgo/RTkfqQzG7s+0P8B3kt08MHfDKMBp9VHAaKsycLbXElAi1t/sr+e3tRA7KiUCuzfS 1IZQ== 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=+pfHqz62aOBK6PBea5QXT7uvBZ9qWm4NsoFX/E3qCoE=; b=pZQb4OWmoAucmdbJK8Pyl6XFuYoyylJG47r58NOOK1vBF61qIsp8v2CmoB5NJbGnzA c8QKxzmsOV3WW7xipbtg74w7KSA25mQHvmMTtUNbzNLkxTYSGOAd67GMTSRUW6IvCRhy zwP7DW3tes2HDEsyhiYZS+MYNmlSysJC5UIx83DW72/kxQKTECHgMMT2SsRaydK5/10A KH13pIBzns62V8R+cBWqhwSTW0uOkwESuxqcfpCsJpvYOmy4gflABiC7omu2aPzlEx7L yr9x50OROaqYr6tnAdRvQqfZ2imnbngkJZ5qyiTC1yWjOYleZN8V2un8YJ3C6lp6EvwT PKDg== X-Gm-Message-State: AOAM5302ky30abFxvuB6XsFNbiyBgLhf8kz2YfmvUYD9E1DfqQ4uh3w3 eeDCBMyVx7IJ2tlWHDl61AIk3ddg+/g= X-Received: by 2002:a1c:9a02:: with SMTP id c2mr1281588wme.16.1594316782230; Thu, 09 Jul 2020 10:46:22 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:21 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , James Smart , Dick Kennedy Subject: [PATCH 20/24] scsi: lpfc: lpfc_nvme: Correct some pretty obvious misdocumentation Date: Thu, 9 Jul 2020 18:45:52 +0100 Message-Id: <20200709174556.7651-21-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Either due to API slippage before the driver was mainlined or copy/paste errors. Fixes the following W=1 kernel build warning(s): drivers/scsi/lpfc/lpfc_nvme.c:254: warning: Function parameter or member 'pnvme_lport' not described in 'lpfc_nvme_create_queue' drivers/scsi/lpfc/lpfc_nvme.c:254: warning: Function parameter or member 'qsize' not described in 'lpfc_nvme_create_queue' drivers/scsi/lpfc/lpfc_nvme.c:254: warning: Excess function parameter 'lpfc_pnvme' description in 'lpfc_nvme_create_queue' drivers/scsi/lpfc/lpfc_nvme.c:311: warning: Function parameter or member 'pnvme_lport' not described in 'lpfc_nvme_delete_queue' drivers/scsi/lpfc/lpfc_nvme.c:311: warning: Excess function parameter 'lpfc_pnvme' description in 'lpfc_nvme_delete_queue' drivers/scsi/lpfc/lpfc_nvme.c:689: warning: Function parameter or member 'gen_req_cmp' not described in '__lpfc_nvme_ls_req' drivers/scsi/lpfc/lpfc_nvme.c:801: warning: Function parameter or member 'pnvme_lport' not described in 'lpfc_nvme_ls_req' drivers/scsi/lpfc/lpfc_nvme.c:801: warning: Function parameter or member 'pnvme_rport' not described in 'lpfc_nvme_ls_req' drivers/scsi/lpfc/lpfc_nvme.c:801: warning: Function parameter or member 'pnvme_lsreq' not described in 'lpfc_nvme_ls_req' drivers/scsi/lpfc/lpfc_nvme.c:801: warning: Excess function parameter 'lpfc_nvme_lport' description in 'lpfc_nvme_ls_req' drivers/scsi/lpfc/lpfc_nvme.c:801: warning: Excess function parameter 'lpfc_nvme_rport' description in 'lpfc_nvme_ls_req' drivers/scsi/lpfc/lpfc_nvme.c:937: warning: Function parameter or member 'pnvme_lport' not described in 'lpfc_nvme_ls_abort' drivers/scsi/lpfc/lpfc_nvme.c:937: warning: Function parameter or member 'pnvme_rport' not described in 'lpfc_nvme_ls_abort' drivers/scsi/lpfc/lpfc_nvme.c:937: warning: Function parameter or member 'pnvme_lsreq' not described in 'lpfc_nvme_ls_abort' drivers/scsi/lpfc/lpfc_nvme.c:937: warning: Excess function parameter 'lpfc_nvme_lport' description in 'lpfc_nvme_ls_abort' drivers/scsi/lpfc/lpfc_nvme.c:937: warning: Excess function parameter 'lpfc_nvme_rport' description in 'lpfc_nvme_ls_abort' drivers/scsi/lpfc/lpfc_nvme.c:1075: warning: Function parameter or member 'phba' not described in 'lpfc_nvme_io_cmd_wqe_cmpl' drivers/scsi/lpfc/lpfc_nvme.c:1075: warning: Function parameter or member 'pwqeIn' not described in 'lpfc_nvme_io_cmd_wqe_cmpl' drivers/scsi/lpfc/lpfc_nvme.c:1075: warning: Function parameter or member 'wcqe' not described in 'lpfc_nvme_io_cmd_wqe_cmpl' drivers/scsi/lpfc/lpfc_nvme.c:1075: warning: Excess function parameter 'lpfc_pnvme' description in 'lpfc_nvme_io_cmd_wqe_cmpl' drivers/scsi/lpfc/lpfc_nvme.c:1075: warning: Excess function parameter 'lpfc_nvme_lport' description in 'lpfc_nvme_io_cmd_wqe_cmpl' drivers/scsi/lpfc/lpfc_nvme.c:1075: warning: Excess function parameter 'lpfc_nvme_rport' description in 'lpfc_nvme_io_cmd_wqe_cmpl' drivers/scsi/lpfc/lpfc_nvme.c:1313: warning: Function parameter or member 'vport' not described in 'lpfc_nvme_prep_io_cmd' drivers/scsi/lpfc/lpfc_nvme.c:1313: warning: Function parameter or member 'lpfc_ncmd' not described in 'lpfc_nvme_prep_io_cmd' drivers/scsi/lpfc/lpfc_nvme.c:1313: warning: Function parameter or member 'pnode' not described in 'lpfc_nvme_prep_io_cmd' drivers/scsi/lpfc/lpfc_nvme.c:1313: warning: Function parameter or member 'cstat' not described in 'lpfc_nvme_prep_io_cmd' drivers/scsi/lpfc/lpfc_nvme.c:1313: warning: Excess function parameter 'lpfc_pnvme' description in 'lpfc_nvme_prep_io_cmd' drivers/scsi/lpfc/lpfc_nvme.c:1313: warning: Excess function parameter 'lpfc_nvme_lport' description in 'lpfc_nvme_prep_io_cmd' drivers/scsi/lpfc/lpfc_nvme.c:1313: warning: Excess function parameter 'lpfc_nvme_rport' description in 'lpfc_nvme_prep_io_cmd' drivers/scsi/lpfc/lpfc_nvme.c:1313: warning: Excess function parameter 'lpfc_nvme_fcreq' description in 'lpfc_nvme_prep_io_cmd' drivers/scsi/lpfc/lpfc_nvme.c:1313: warning: Excess function parameter 'hw_queue_handle' description in 'lpfc_nvme_prep_io_cmd' drivers/scsi/lpfc/lpfc_nvme.c:1420: warning: Function parameter or member 'vport' not described in 'lpfc_nvme_prep_io_dma' drivers/scsi/lpfc/lpfc_nvme.c:1420: warning: Function parameter or member 'lpfc_ncmd' not described in 'lpfc_nvme_prep_io_dma' drivers/scsi/lpfc/lpfc_nvme.c:1420: warning: Excess function parameter 'lpfc_pnvme' description in 'lpfc_nvme_prep_io_dma' drivers/scsi/lpfc/lpfc_nvme.c:1420: warning: Excess function parameter 'lpfc_nvme_lport' description in 'lpfc_nvme_prep_io_dma' drivers/scsi/lpfc/lpfc_nvme.c:1420: warning: Excess function parameter 'lpfc_nvme_rport' description in 'lpfc_nvme_prep_io_dma' drivers/scsi/lpfc/lpfc_nvme.c:1420: warning: Excess function parameter 'lpfc_nvme_fcreq' description in 'lpfc_nvme_prep_io_dma' drivers/scsi/lpfc/lpfc_nvme.c:1420: warning: Excess function parameter 'hw_queue_handle' description in 'lpfc_nvme_prep_io_dma' drivers/scsi/lpfc/lpfc_nvme.c:1598: warning: bad line: indicated in @lpfc_nvme_rport. drivers/scsi/lpfc/lpfc_nvme.c:1609: warning: Function parameter or member 'pnvme_lport' not described in 'lpfc_nvme_fcp_io_submit' drivers/scsi/lpfc/lpfc_nvme.c:1609: warning: Function parameter or member 'pnvme_rport' not described in 'lpfc_nvme_fcp_io_submit' drivers/scsi/lpfc/lpfc_nvme.c:1609: warning: Function parameter or member 'pnvme_fcreq' not described in 'lpfc_nvme_fcp_io_submit' drivers/scsi/lpfc/lpfc_nvme.c:1609: warning: Excess function parameter 'lpfc_pnvme' description in 'lpfc_nvme_fcp_io_submit' drivers/scsi/lpfc/lpfc_nvme.c:1609: warning: Excess function parameter 'lpfc_nvme_lport' description in 'lpfc_nvme_fcp_io_submit' drivers/scsi/lpfc/lpfc_nvme.c:1609: warning: Excess function parameter 'lpfc_nvme_rport' description in 'lpfc_nvme_fcp_io_submit' drivers/scsi/lpfc/lpfc_nvme.c:1609: warning: Excess function parameter 'lpfc_nvme_fcreq' description in 'lpfc_nvme_fcp_io_submit' drivers/scsi/lpfc/lpfc_nvme.c:1856: warning: Function parameter or member 'abts_cmpl' not described in 'lpfc_nvme_abort_fcreq_cmpl' drivers/scsi/lpfc/lpfc_nvme.c:1856: warning: Excess function parameter 'rspiocb' description in 'lpfc_nvme_abort_fcreq_cmpl' drivers/scsi/lpfc/lpfc_nvme.c:1892: warning: Function parameter or member 'pnvme_lport' not described in 'lpfc_nvme_fcp_abort' drivers/scsi/lpfc/lpfc_nvme.c:1892: warning: Function parameter or member 'pnvme_rport' not described in 'lpfc_nvme_fcp_abort' drivers/scsi/lpfc/lpfc_nvme.c:1892: warning: Function parameter or member 'pnvme_fcreq' not described in 'lpfc_nvme_fcp_abort' drivers/scsi/lpfc/lpfc_nvme.c:1892: warning: Excess function parameter 'lpfc_pnvme' description in 'lpfc_nvme_fcp_abort' drivers/scsi/lpfc/lpfc_nvme.c:1892: warning: Excess function parameter 'lpfc_nvme_lport' description in 'lpfc_nvme_fcp_abort' drivers/scsi/lpfc/lpfc_nvme.c:1892: warning: Excess function parameter 'lpfc_nvme_rport' description in 'lpfc_nvme_fcp_abort' drivers/scsi/lpfc/lpfc_nvme.c:1892: warning: Excess function parameter 'lpfc_nvme_fcreq' description in 'lpfc_nvme_fcp_abort' drivers/scsi/lpfc/lpfc_nvme.c:2093: warning: Function parameter or member 'ndlp' not described in 'lpfc_get_nvme_buf' drivers/scsi/lpfc/lpfc_nvme.c:2093: warning: Function parameter or member 'idx' not described in 'lpfc_get_nvme_buf' drivers/scsi/lpfc/lpfc_nvme.c:2093: warning: Function parameter or member 'expedite' not described in 'lpfc_get_nvme_buf' drivers/scsi/lpfc/lpfc_nvme.c:2197: warning: Function parameter or member 'vport' not described in 'lpfc_nvme_create_localport' drivers/scsi/lpfc/lpfc_nvme.c:2330: warning: Function parameter or member 'vport' not described in 'lpfc_nvme_destroy_localport' drivers/scsi/lpfc/lpfc_nvme.c:2330: warning: Excess function parameter 'pnvme' description in 'lpfc_nvme_destroy_localport' drivers/scsi/lpfc/lpfc_nvme.c:2543: warning: Function parameter or member 'vport' not described in 'lpfc_nvme_rescan_port' drivers/scsi/lpfc/lpfc_nvme.c:2543: warning: Function parameter or member 'ndlp' not described in 'lpfc_nvme_rescan_port' Cc: James Smart Cc: Dick Kennedy Signed-off-by: Lee Jones --- drivers/scsi/lpfc/lpfc_nvme.c | 38 ++++++++++++++++------------------- 1 file changed, 17 insertions(+), 21 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/lpfc/lpfc_nvme.c b/drivers/scsi/lpfc/lpfc_nvme.c index fdfca02704dc0..91696814174eb 100644 --- a/drivers/scsi/lpfc/lpfc_nvme.c +++ b/drivers/scsi/lpfc/lpfc_nvme.c @@ -234,8 +234,10 @@ lpfc_nvme_prep_abort_wqe(struct lpfc_iocbq *pwqeq, u16 xritag, u8 opt) /** * lpfc_nvme_create_queue - + * @pnvme_lport: Transport localport that LS is to be issued from * @lpfc_pnvme: Pointer to the driver's nvme instance data * @qidx: An cpu index used to affinitize IO queues and MSIX vectors. + * @qsize: Size of the queue in bytes * @handle: An opaque driver handle used in follow-up calls. * * Driver registers this routine to preallocate and initialize any @@ -292,7 +294,7 @@ lpfc_nvme_create_queue(struct nvme_fc_local_port *pnvme_lport, /** * lpfc_nvme_delete_queue - - * @lpfc_pnvme: Pointer to the driver's nvme instance data + * @pnvme_lport: Transport localport that LS is to be issued from * @qidx: An cpu index used to affinitize IO queues and MSIX vectors. * @handle: An opaque driver handle from lpfc_nvme_create_queue * @@ -672,6 +674,7 @@ lpfc_nvme_gen_req(struct lpfc_vport *vport, struct lpfc_dmabuf *bmp, * @vport: The local port issuing the LS * @ndlp: The remote port to send the LS to * @pnvme_lsreq: Pointer to LS request structure from the transport + * @gen_req_cmp: Completion call-back * * Routine validates the ndlp, builds buffers and sends a GEN_REQUEST * WQE to perform the LS operation. @@ -783,9 +786,9 @@ __lpfc_nvme_ls_req(struct lpfc_vport *vport, struct lpfc_nodelist *ndlp, /** * lpfc_nvme_ls_req - Issue an NVME Link Service request - * @lpfc_nvme_lport: Transport localport that LS is to be issued from. - * @lpfc_nvme_rport: Transport remoteport that LS is to be sent to. - * @pnvme_lsreq - the transport nvme_ls_req structure for the LS + * @pnvme_lport: Transport localport that LS is to be issued from. + * @nvme_rport: Transport remoteport that LS is to be sent to. + * @pnvme_lsreq: the transport nvme_ls_req structure for the LS * * Driver registers this routine to handle any link service request * from the nvme_fc transport to a remote nvme-aware port. @@ -923,9 +926,9 @@ lpfc_nvme_xmt_ls_rsp(struct nvme_fc_local_port *localport, /** * lpfc_nvme_ls_abort - Abort a prior NVME LS request - * @lpfc_nvme_lport: Transport localport that LS is to be issued from. - * @lpfc_nvme_rport: Transport remoteport that LS is to be sent to. - * @pnvme_lsreq - the transport nvme_ls_req structure for the LS + * @pnvme_lport: Transport localport that LS is to be issued from. + * @pnvme_rport: Transport remoteport that LS is to be sent to. + * @pnvme_lsreq: the transport nvme_ls_req structure for the LS * * Driver registers this routine to abort a NVME LS request that is * in progress (from the transports perspective). @@ -1055,11 +1058,8 @@ lpfc_nvme_adj_fcp_sgls(struct lpfc_vport *vport, } -/** +/* * lpfc_nvme_io_cmd_wqe_cmpl - Complete an NVME-over-FCP IO - * @lpfc_pnvme: Pointer to the driver's nvme instance data - * @lpfc_nvme_lport: Pointer to the driver's local port data - * @lpfc_nvme_rport: Pointer to the rport getting the @lpfc_nvme_ereq * * Driver registers this routine as it io request handler. This * routine issues an fcp WQE with data from the @lpfc_nvme_fcpreq @@ -1291,11 +1291,10 @@ lpfc_nvme_io_cmd_wqe_cmpl(struct lpfc_hba *phba, struct lpfc_iocbq *pwqeIn, /** * lpfc_nvme_prep_io_cmd - Issue an NVME-over-FCP IO - * @lpfc_pnvme: Pointer to the driver's nvme instance data - * @lpfc_nvme_lport: Pointer to the driver's local port data - * @lpfc_nvme_rport: Pointer to the rport getting the @lpfc_nvme_ereq - * @lpfc_nvme_fcreq: IO request from nvme fc to driver. - * @hw_queue_handle: Driver-returned handle in lpfc_nvme_create_queue + * @vport: pointer to a host virtual N_Port data structure + * @lpfcn_cmd: Pointer to lpfc scsi command + * @pnode: pointer to a node-list data structure + * @cstat: pointer to the control status structure * * Driver registers this routine as it io request handler. This * routine issues an fcp WQE with data from the @lpfc_nvme_fcpreq @@ -1400,11 +1399,8 @@ lpfc_nvme_prep_io_cmd(struct lpfc_vport *vport, /** * lpfc_nvme_prep_io_dma - Issue an NVME-over-FCP IO - * @lpfc_pnvme: Pointer to the driver's nvme instance data - * @lpfc_nvme_lport: Pointer to the driver's local port data - * @lpfc_nvme_rport: Pointer to the rport getting the @lpfc_nvme_ereq - * @lpfc_nvme_fcreq: IO request from nvme fc to driver. - * @hw_queue_handle: Driver-returned handle in lpfc_nvme_create_queue + * @vport: pointer to a host virtual N_Port data structure + * @lpfcn_cmd: Pointer to lpfc scsi command * * Driver registers this routine as it io request handler. This * routine issues an fcp WQE with data from the @lpfc_nvme_fcpreq From patchwork Thu Jul 9 17:45:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235168 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1631702ilg; Thu, 9 Jul 2020 10:46:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzDOjkrctgUIBquiMm5MOVi+7wOzu07u2ZUSAVszwbYAg87yHH/Jy1gtaco3ecJdNMponmN X-Received: by 2002:a17:906:c0da:: with SMTP id bn26mr56868963ejb.359.1594316787161; Thu, 09 Jul 2020 10:46:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316787; cv=none; d=google.com; s=arc-20160816; b=YI0udklZxnkTdDKGSkwCyHI+OC47qcOQeR5j/WZ2FX5QM+qmoL8FxkBjcnobl/1ue0 kHXprkcXE/M5op8u+/kIJ2MEqwEHeHAxk7gA8gR3AeiYCQsDTOGvNeRpzvweL61Lw6hG huql3sYVGtjsOzRjwjPpHyg5bg6MZ+P872yQ9QG55np7tXLnyi2hBIUtLUOGyQ9dxi5M 4wFqVBDdKOVI0JcO8/AYEu+5DWqGTIFizvHqhVDL+DXAz38jaU3xnSKdoh8vmU5AZKyC nK5dfczDsdunxZrsPeTS10ax0nBsNWw2E4lSTM3G2uQr7t05bNyd96N7idQwHcQYmJvI /vjg== 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=LaCRoLNPh8rfOtJymwBCMA+9wwfzZ0YZT8hDB5cEPf8=; b=NWi/fHN83pKKiy8DdBL69QrjNKQIB8Dhy/TRnrFpxBTLM1u08cFPCoN2Boq+Miaejc Y3+uanbE+kD8NfeLDEUNVuZ1Th+8oNehdl9Wx/sQRW+9mSrRUSG/0+ZKcLUCqYmLMX99 KFnuZw7ugqUZWs5sO3VRyD5R67Ce0M4eUcXQ6xWrXkui4hIbcUU9cOWV6HqfZE12+SBN Lrn8yVoBcdGlN9AmQX0mu3wt9iQpcce1AFjiO8UNPZAClxoljnhantPlRLeTn5r+f7Vj DACdwbYUErfFPZgi4STMtY0E5gkevlW2IMih4Q4Ep+worDLCkkV3u5y6RfsXX3iujr56 vwXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=MHzyKOxt; 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 f9si2372177edy.84.2020.07.09.10.46.27 for ; Thu, 09 Jul 2020 10:46: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=MHzyKOxt; 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 S1728667AbgGIRq0 (ORCPT ); Thu, 9 Jul 2020 13:46:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49000 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728658AbgGIRqY (ORCPT ); Thu, 9 Jul 2020 13:46:24 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 782C4C08C5CE for ; Thu, 9 Jul 2020 10:46:24 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id j4so3275405wrp.10 for ; Thu, 09 Jul 2020 10:46:24 -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=LaCRoLNPh8rfOtJymwBCMA+9wwfzZ0YZT8hDB5cEPf8=; b=MHzyKOxtOXPmABYls8bZGdJ0/FFwgWKEjJZ2uNXDNi+1EhQXcbBGozwD1qdFSzqyHI lHQK2aOSSA5ysnbzPIGEPrfDdt2pLdpRiRPeXLudDa0ShJrmZ45aQ3Tn76aMKUtFPVVS 7OPeyC+yoTPgPCvRt+9+oD1lWbV9xf2zuZT5Hj3VeCX/7G+N3iY23K+0kej9+5k4s2EW 8qKVvOJ5yKAN1RB6D0wFoTHoIkEY14bC/uhokXf4t6GTkml0v6QzRDpvIGSOfWscP03H 7rv0njww555uSJdnwzLb3XdBGLYsDN90x9vcFunzyMgSnCEAyTAB/uO88v/jgpb9qVc7 9j2g== 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=LaCRoLNPh8rfOtJymwBCMA+9wwfzZ0YZT8hDB5cEPf8=; b=C3kSIPuhFvWtaLT1eNRv9IWwYZ1mIuZcVqqnpIY+eRYLPsbvVHJ0eX+VSDqv44FgXV jZMGuU98o18Pctnu+sE4LVs/MXK7llrjvWLpPsk0KoHrV8TC2duNk59+W597Q/2onUDg A1TvXVQtZMe4GT7wt9FzZEYMiSBS5xzDKV91x5gpZNVnDCe1AnomGCmbm3y7sP8N58l/ zFjVxWW+q7p7mOMxtQvWlDCGPRxw7Kz7Dy/No2atKbt4p5poL8UApTw1MFOs1/R/VB/3 XqNw5z3sHY8tnLQbu1R6dHanHEuebW0EfzwIjGTc8FKDMh1DvnXL1xTSJSR6bDHMJar3 4Hrw== X-Gm-Message-State: AOAM533lXt1a2R8GUL9vy1DXfpnGySyDmk72f2ieV1NGLeVwViChFjcO qvjg5EqWLnW5/chLCCZhLWQyfbectFQ= X-Received: by 2002:a05:6000:6:: with SMTP id h6mr63120313wrx.26.1594316783189; Thu, 09 Jul 2020 10:46:23 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:22 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Hannes Reinecke Subject: [PATCH 21/24] scsi: aic7xxx: aic79xx_osm: Remove unused variable 'ahd' Date: Thu, 9 Jul 2020 18:45:53 +0100 Message-Id: <20200709174556.7651-22-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Hasn't been used since 2005. Fixes the following W=1 kernel build warning(s): drivers/scsi/aic7xxx/aic79xx_osm.c: In function ‘ahd_linux_slave_configure’: drivers/scsi/aic7xxx/aic79xx_osm.c:703:20: warning: variable ‘ahd’ set but not used [-Wunused-but-set-variable] Cc: Hannes Reinecke Signed-off-by: Lee Jones --- drivers/scsi/aic7xxx/aic79xx_osm.c | 3 --- 1 file changed, 3 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/aic7xxx/aic79xx_osm.c b/drivers/scsi/aic7xxx/aic79xx_osm.c index dc4fe334efd01..9235b6283c0b3 100644 --- a/drivers/scsi/aic7xxx/aic79xx_osm.c +++ b/drivers/scsi/aic7xxx/aic79xx_osm.c @@ -700,9 +700,6 @@ ahd_linux_slave_alloc(struct scsi_device *sdev) static int ahd_linux_slave_configure(struct scsi_device *sdev) { - struct ahd_softc *ahd; - - ahd = *((struct ahd_softc **)sdev->host->hostdata); if (bootverbose) sdev_printk(KERN_INFO, sdev, "Slave Configure\n"); From patchwork Thu Jul 9 17:45:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235172 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1631888ilg; Thu, 9 Jul 2020 10:46:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzq60t2ivaHAytNWfRFF2zAlwQHjHrqeqaw1ulJwPvuL0xMCzYbr4ORReXLNr7UKDmS/W/t X-Received: by 2002:a50:e689:: with SMTP id z9mr25966535edm.131.1594316803693; Thu, 09 Jul 2020 10:46:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316803; cv=none; d=google.com; s=arc-20160816; b=Sac094rNxNuyb4+lRxX4LPb0OPT1LQetdVVyNGWCjJZiDRxIAP3vY7IbVTM5bWyyWM BKhkh6UufJF1eHNdnUrTH8unHZIRKU9yytzHdHy2WA8izRnhWsBonA3EpsfIZ6YXF7ng 3PjYYopAb99thlv5Sl/onL4AQjmUiwS1rQ2fftJgd24Kxk7oloOTUVfb6d/ETJ0+CXP/ 6DqE1oHOzvni8YqITo+2HSv5nE0wdCjRNGMuGt3EpEYL5cZnFSB1vd2ffjfD1ef8/3JX WFtj9TSmmrkNp8H6yE/zw28jJTn9kl9zs9ilvEaG+QMb+rRTY3fdFu5H1rf1GAw3qisf AzfA== 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=npmbMmGwXmpaLu61Oedwmcs3qT0N7Ml8rtlLxMj9sy4=; b=o5R5VYqu3cJ3YHWimfZV3j86qDP03lCkVkkTJqdPG/hUE3IzSfRdgXE0vAXP5PnGMZ oDLBZxZkHhT59CB/Gtob2W6LDoYrtbivbuLDTWsO4aGObWiK1c+Te8BMt5YJ7V+aiAYX PtZZ6NL1l4TZJ3OTAOYeBcX5pD1bSK2wjke19dHjrNstfLKdmjriHcXONi1ZlnAODUKb 6J2za0bBdqvc1cw8tfYcdHAt672zj9p9x0D/gTm2osr4GOyq2ynqtfkH93esQRXX7COJ Fbu2nmgCEUgI72vJtB2LgrJ/VBOTk/ayju0xRbCWqkQGed+K6xChQY4XkrXkn+g5BPE9 o6PQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="F/1o22f0"; 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 s19si2393977ejq.719.2020.07.09.10.46.43 for ; Thu, 09 Jul 2020 10:46:43 -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="F/1o22f0"; 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 S1728709AbgGIRqj (ORCPT ); Thu, 9 Jul 2020 13:46:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728663AbgGIRqZ (ORCPT ); Thu, 9 Jul 2020 13:46:25 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5967DC08E6DC for ; Thu, 9 Jul 2020 10:46:25 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id l2so2758710wmf.0 for ; Thu, 09 Jul 2020 10:46:25 -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=npmbMmGwXmpaLu61Oedwmcs3qT0N7Ml8rtlLxMj9sy4=; b=F/1o22f0o/hLVmprlDU9Qr//sGwjrN5uBf5VsCAcjtijVd/dT2CI6MVzsvcskMRGpZ +7cVcba0uHIIcgEY9PEBnLie35L9sAdxl1kb5OP4V/14j6/iSyuyPkpHNPh6umlOFV5P JAcC8hsTvn+aAiUw9vEP7h1rTfAOwi1xSxFifbmG7f+W9zEmx/J1szmQPv5cF9isaQz2 11rRmpTP/QRS6mWFSA1OvmVkmlXzipShH9+vRqUKXADfPgY9EtY61uynWcnPhndfAzSS jEiICGMcO0EtQPWeUAviR025+ZT/97yCIFkrUBkeDpLOoWW52ZX0T/yiI18fZit3cQkl dbqg== 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=npmbMmGwXmpaLu61Oedwmcs3qT0N7Ml8rtlLxMj9sy4=; b=IWMNL2hElfLeiXsuOb84ANA88M63Ct7gvMJ+ZxYdGS1ubWMWTMeAlf2dMYJnPwwIzW jy3SbLNJBAdvfB7PU7Rs2QpD8fBtiNxrJVsrKDySfU1gkl+eHDmBpTcjq/fCKPGVDAtM XGx5Ubiiyo6JxPnXwm66SEeiQI9v71fjpI05vQe/sg9N7jyG4EIfeec2mzsjhgN6Bw2z rSDROlTWJu4GNjHZJE0DrnYqrjCKKC61CG68J1DpXfzQ8XO3FtqANM3Qsj4tIBX3VcD3 nIDa83J+VaSCTJ/hhfgd/bngmON846Mv28dKltQcdcmBGWwJHmNyVtSWAYEOHDJRjRWF sRaA== X-Gm-Message-State: AOAM530xXkyytSvQj0vy3IkmnWzzVle2Grf7jtoNfZBlc4SIxgN5Qw+Z //oYmhTz+EU9hZ8liEJhsTb6Tg== X-Received: by 2002:a7b:ce87:: with SMTP id q7mr1170635wmj.39.1594316784135; Thu, 09 Jul 2020 10:46:24 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:23 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Hannes Reinecke Subject: [PATCH 22/24] scsi: aic7xxx: aic79xx_osm: Remove unused variables 'wait' and 'paused' Date: Thu, 9 Jul 2020 18:45:54 +0100 Message-Id: <20200709174556.7651-23-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org It looks like they have never actually been used. Fixes the following W=1 kernel build warning(s): drivers/scsi/aic7xxx/aic79xx_osm.c: In function ‘ahd_linux_dev_reset’: drivers/scsi/aic7xxx/aic79xx_osm.c:782:9: warning: variable ‘wait’ set but not used [-Wunused-but-set-variable] drivers/scsi/aic7xxx/aic79xx_osm.c:781:9: warning: variable ‘paused’ set but not used [-Wunused-but-set-variable] Cc: Hannes Reinecke Signed-off-by: Lee Jones --- drivers/scsi/aic7xxx/aic79xx_osm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/aic7xxx/aic79xx_osm.c b/drivers/scsi/aic7xxx/aic79xx_osm.c index 9235b6283c0b3..8e43ff86e0a60 100644 --- a/drivers/scsi/aic7xxx/aic79xx_osm.c +++ b/drivers/scsi/aic7xxx/aic79xx_osm.c @@ -775,16 +775,13 @@ ahd_linux_dev_reset(struct scsi_cmnd *cmd) struct scb *reset_scb; u_int cdb_byte; int retval = SUCCESS; - int paused; - int wait; struct ahd_initiator_tinfo *tinfo; struct ahd_tmode_tstate *tstate; unsigned long flags; DECLARE_COMPLETION_ONSTACK(done); reset_scb = NULL; - paused = FALSE; - wait = FALSE; + ahd = *(struct ahd_softc **)cmd->device->host->hostdata; scmd_printk(KERN_INFO, cmd, From patchwork Thu Jul 9 17:45:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235169 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1631713ilg; Thu, 9 Jul 2020 10:46:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycOiVel64XzBC8Xffuk+S2TA0coeB9PcMonGSOWhRXpdJehgxsiSmgqiiCAvxhtuyDis34 X-Received: by 2002:a17:906:b0d5:: with SMTP id bk21mr18742294ejb.93.1594316788635; Thu, 09 Jul 2020 10:46:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316788; cv=none; d=google.com; s=arc-20160816; b=gWkNFm7UYzVesVVs4pNqiKmh/JJVFRzZrwxaQVHXe8jQX2SyjAE4E+5880VUAH7HqK 9htPAdTm9ZOb3f45XQAIlOaJ8HGo2FEHxfqYMOCFpze/ApnH0dVIONWcM9kZU+VrspsA 3gWejtodOeJsmDywXMK4ygWxN1C5UrEo6Vrg70xQ0QmysenGurKsPFMEWxMA/NIHgJDg 0RD6boU/HXMyERpr7sIEMbH9Oa7HpEPb3qBLUwxBfrjClzclmMHjuMrGtIpOCNeO5W4s 9VrdqC06kHU3iQyArBAQd3fBQfcf9ToWlSwBkQpQHInwpmpy9zcrJeOi6PV2u/1F37YV CbsA== 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=XXWcsoi+xGgOcFmbeWP75diSxyhw0hWfzUHSepxSy6k=; b=HJ8FMjecNyFLyCwv/NqlMIbdNHOvhonlHlYLL3Q39sl48RPhBGuDy5IDbRgCGq+Jg/ J/uMKveyOy8AWt+6aUpiybGjfGV3QYorKH8qd3tQ0zLMZFmanxYS9dqqEh/knj5MI0Qx H+EthMLw7InVLDgSTUKwfGJSFoKOu7oL+7NkDt7pDYcRgy9JHV8BzrNhrLLG26Eyriei PtRYj/b8JrEn/2fAUGFiqLNIsr9PoEZajrexxEVN3MMNE3tCOpl5uJddphQo3UTUtZNv 5NsilPRN6XYAkk6MO8g9MNmdROeCxkfBFr31Op5jAMxiwTz6VGGOigo1si7S3Koz8aKy yFxQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=wDr3kLbs; 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 f9si2372177edy.84.2020.07.09.10.46.28 for ; Thu, 09 Jul 2020 10:46: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=wDr3kLbs; 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 S1728679AbgGIRq2 (ORCPT ); Thu, 9 Jul 2020 13:46:28 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728670AbgGIRq1 (ORCPT ); Thu, 9 Jul 2020 13:46:27 -0400 Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 928BDC08C5DC for ; Thu, 9 Jul 2020 10:46:26 -0700 (PDT) Received: by mail-wm1-x342.google.com with SMTP id g10so6731226wmc.1 for ; Thu, 09 Jul 2020 10:46:26 -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=XXWcsoi+xGgOcFmbeWP75diSxyhw0hWfzUHSepxSy6k=; b=wDr3kLbsMlSQP8EqutTozrPjOoRfxz5PEnYOYYWvcXRrI8a5KqDDTCU3WMEGYfdgJ0 5Iv8QeDtcrccOVwVUgkgxN0ALNJ/bjH0lnQR94pxVMiPyNJOGTvkbYgwsNJGyW638YTg NfISb7/cCrla8la77CfL1/K1/vwVTFviyWjYH7injCTwF2Ij4VWdXhOTB0ZkmTR/DZ7F jhrdgceBGakpaJoDqbTR/QGjiBkHRaxAAUHQ+vgnVV7DHjiioTP0RK+kLNf87FENOCuD rwof33dAqHwBO6HyrILWgvtJ8xu9tYIAGUek2gLPUKDKp/VscUeKrykiv6W1QTzVbG1y 77PQ== 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=XXWcsoi+xGgOcFmbeWP75diSxyhw0hWfzUHSepxSy6k=; b=hMAs5wBSC90vlN8OpmGGwv0VIo934wpzzyZUZKJv7XcuDi7yUewgjHEp6IpkkkaRD1 bqmYz5468MF7lW7WXvFWg0NJv1l5ZLfUff1ZVNvzOrC9aPDOBlOjwJmhT7xwi55WELJo 7zKOPaSlKTxtxTcgwALew331XPSmYImZuH0bn8BKybKfWnx4rKgxCWuxW2UFj+RW6tU0 QppffLTFcuUKTlE8wfjfp7aJTZ2uYBIs3HZj4VNqGnKN4GuK7T6s2BCH1bT1Xubm6E8e JeVsZ7LG8OojbpuGGf0OdOA//6hl8i6/cx8g/LMgb4tl7tN7/GFoAAFS+FNTz+5Z0u/+ 6MQQ== X-Gm-Message-State: AOAM53383/xHXKFBiP/QoffjxFOssiTkkCLoFbd29mDIMyMmpAlxRtmx G6lTVJBxj2VPrKtnG17b/aRWrA== X-Received: by 2002:a05:600c:2295:: with SMTP id 21mr1076958wmf.29.1594316785279; Thu, 09 Jul 2020 10:46:25 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:24 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Hannes Reinecke Subject: [PATCH 23/24] scsi: aic7xxx: aic79xx_osm: Fix 'amount_xferred' set but not used issue Date: Thu, 9 Jul 2020 18:45:55 +0100 Message-Id: <20200709174556.7651-24-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org 'amount_xferred' is used, but only in certain circumstances. Place the same stipulations on the defining/allocating of 'amount_xferred' as is placed when using it. We've been careful not to change any of the ordering semantics here. Fixes the following W=1 kernel build warning(s): drivers/scsi/aic7xxx/aic79xx_osm.c: In function ‘ahd_done’: drivers/scsi/aic7xxx/aic79xx_osm.c:1796:12: warning: variable ‘amount_xferred’ set but not used [-Wunused-but-set-variable] Cc: Hannes Reinecke Signed-off-by: Lee Jones --- drivers/scsi/aic7xxx/aic79xx_osm.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.25.1 diff --git a/drivers/scsi/aic7xxx/aic79xx_osm.c b/drivers/scsi/aic7xxx/aic79xx_osm.c index 8e43ff86e0a60..3782a20d58885 100644 --- a/drivers/scsi/aic7xxx/aic79xx_osm.c +++ b/drivers/scsi/aic7xxx/aic79xx_osm.c @@ -1787,10 +1787,12 @@ ahd_done(struct ahd_softc *ahd, struct scb *scb) */ cmd->sense_buffer[0] = 0; if (ahd_get_transaction_status(scb) == CAM_REQ_INPROG) { +#ifdef AHD_REPORT_UNDERFLOWS uint32_t amount_xferred; amount_xferred = ahd_get_transfer_length(scb) - ahd_get_residual(scb); +#endif if ((scb->flags & SCB_TRANSMISSION_ERROR) != 0) { #ifdef AHD_DEBUG if ((ahd_debug & AHD_SHOW_MISC) != 0) { From patchwork Thu Jul 9 17:45:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 235170 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1631821ilg; Thu, 9 Jul 2020 10:46:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxd1aEHWStI5fmdDwAfT78gv3saSlHFFb2Y5MxtA4hJC1UM+gb80JrFPCph0oE66vCRsP6d X-Received: by 2002:a17:906:2c53:: with SMTP id f19mr57041858ejh.523.1594316797567; Thu, 09 Jul 2020 10:46:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594316797; cv=none; d=google.com; s=arc-20160816; b=i0tbHo4ZZREqp7Q8NPDt0TkYL03HceLrycQSgTXkumRehXARgEDQ+VlN6qAohdrfpY NblsBgxGpknPGYuO1yfySJGLoX6PwK+2xptx8XYERlV6VqIpXIeLwMmGKBaTPNEan/Iy Plyyly9XdxQkEjjWHvMi0+TYywOdkYkKYRwvXweNL2ugL6VP87jN35V+2rbjC4+camGk gdqESqTKllphfCK2o6CaLstk3Ch7jXfJgk3soBZH583H1BmnPVu8kSsxta8YRWY+6Ird pP4+ysOUBHioD5gJ2nYZms0+LDohZOdMIaMolRqVYAUh/izH2xw41IpRLZj8toDoRZe6 aW4A== 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=fm6ETESXIB5CrW3r789w0mlqtcsT6pJud5uFiJPthig=; b=WuvuPy2IcxowwPTo6rXzPtE9vl/lrBjsDRr0LdH7TuxA5yJgIzAiYasOfdRtbL0ANL e4VqdKirJCp1u8eLtaz61ZxPPIrhwE5GMbu/cYIoCjBwvQdg1+RDowRWK9ktraHt17jr Aj+PhOSqKKAkpwSQldcyYKzHbA0tJF8ZOjsNlmgkEwnt+bodtsuxJymMISb299m8AZYU 0flhK8QuWZtGMHpg9w+JAY8XJYlS1IL+6stulMhPtKk/GaG3fXz4PQChZmG0saTh2E3+ khVZjb8Atv24CXmBDFbf3AsBxnKn0mj3lV9auo8nvUHgA+Tjb3LaxCHqMVWzWpa6VHxE jWQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=oeuXKq7H; 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 t2si2231357eje.689.2020.07.09.10.46.37 for ; Thu, 09 Jul 2020 10:46:37 -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=oeuXKq7H; 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 S1728706AbgGIRqd (ORCPT ); Thu, 9 Jul 2020 13:46:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49022 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728698AbgGIRqb (ORCPT ); Thu, 9 Jul 2020 13:46:31 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F03ADC08C5DC for ; Thu, 9 Jul 2020 10:46:27 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id o2so2759563wmh.2 for ; Thu, 09 Jul 2020 10:46:27 -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=fm6ETESXIB5CrW3r789w0mlqtcsT6pJud5uFiJPthig=; b=oeuXKq7HqPRnLj58gfRQ92ze1bM1Z3F9QjlMoXsNrjDPb5+LgZjLmHMGMg9nlXeSSL AQGJCce4MIKurfddPFWOI/N/XA6ap7w4N1SwjBbDxlW02uNnVolEOoAMvlU56F/tBFQX 5tahbBo0hpUw2O55vC147HvoBSwOXZ81MtUjMbWCWCc/wHZs6uaviinNlAWipv0W6ZSA 1TVTKnneRLOojR2tkRBYWO9vLojr+ajMw3IS90LOwy8fkYpy/ULuIX/68/P8yjqV3I66 KenUeJR74DsbeUMWcDEZJSEgNl9Sb3EXYEJBXg53i7cLvkcZJ6mrqEnUJ5ZXcBnUm45V OOvw== 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=fm6ETESXIB5CrW3r789w0mlqtcsT6pJud5uFiJPthig=; b=U203ipIE5B/kfMzV0Ocv+oxcELfc8hlcMyFKCfVEaPN/RTVrnxk04E62l6sycr+Zrs YEhF3VTytlkOY8Tbo+ay5qcrs8TFkPOzU+Zk76LKHiwWZCcrS7YllppSS/OKqQVvo3D7 adrXojHdcvzHRDB3r9I9vYuQj3rvo7oSGEfo26h3lbhd3wv4DOlo0cPPYELGzTpKDkMJ NwrLPVd1CjYQLzK5IEalkDX9JDMki1jrnOa+HACpPo5dIk54ZXppeV0SBWTdew+KdjUd PpDyfqOtaVTUiMS+Qkh8rLPNNYvTPCLGnnXmUCK7WcMc/nr64TQ42vWtNgKaJIp4Uy1Z 0Lpg== X-Gm-Message-State: AOAM533oQujmaEEnHQC2VamRe1pHVrzLW+/dExeGX87fgmXBYYErevR2 Jp5Fe8jBJalk0szoaDStfJ0TiA== X-Received: by 2002:a7b:c8c2:: with SMTP id f2mr1057654wml.57.1594316786678; Thu, 09 Jul 2020 10:46:26 -0700 (PDT) Received: from localhost.localdomain ([2.27.35.206]) by smtp.gmail.com with ESMTPSA id f15sm6063854wrx.91.2020.07.09.10.46.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 10:46:25 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com, linux-scsi@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Lee Jones , Hannes Reinecke Subject: [PATCH 24/24] scsi: aic7xxx: aic79xx_osm: Remove set but unused variabes 'saved_scsiid' and 'saved_modes' Date: Thu, 9 Jul 2020 18:45:56 +0100 Message-Id: <20200709174556.7651-25-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200709174556.7651-1-lee.jones@linaro.org> References: <20200709174556.7651-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Haven't been used since 2006. Fixes the following W=1 kernel build warning(s): drivers/scsi/aic7xxx/aic79xx_osm.c: In function ‘ahd_linux_queue_abort_cmd’: drivers/scsi/aic7xxx/aic79xx_osm.c:2155:17: warning: variable ‘saved_modes’ set but not used [-Wunused-but-set-variable] drivers/scsi/aic7xxx/aic79xx_osm.c:2148:9: warning: variable ‘saved_scsiid’ set but not used [-Wunused-but-set-variable] Cc: Hannes Reinecke Signed-off-by: Lee Jones --- drivers/scsi/aic7xxx/aic79xx_osm.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/aic7xxx/aic79xx_osm.c b/drivers/scsi/aic7xxx/aic79xx_osm.c index 3782a20d58885..b0c6701f64a83 100644 --- a/drivers/scsi/aic7xxx/aic79xx_osm.c +++ b/drivers/scsi/aic7xxx/aic79xx_osm.c @@ -2141,14 +2141,12 @@ ahd_linux_queue_abort_cmd(struct scsi_cmnd *cmd) u_int saved_scbptr; u_int active_scbptr; u_int last_phase; - u_int saved_scsiid; u_int cdb_byte; int retval; int was_paused; int paused; int wait; int disconnected; - ahd_mode_state saved_modes; unsigned long flags; pending_scb = NULL; @@ -2239,7 +2237,7 @@ ahd_linux_queue_abort_cmd(struct scsi_cmnd *cmd) goto done; } - saved_modes = ahd_save_modes(ahd); + ahd_save_modes(ahd); ahd_set_modes(ahd, AHD_MODE_SCSI, AHD_MODE_SCSI); last_phase = ahd_inb(ahd, LASTPHASE); saved_scbptr = ahd_get_scbptr(ahd); @@ -2257,7 +2255,7 @@ ahd_linux_queue_abort_cmd(struct scsi_cmnd *cmd) * passed in command. That command is currently active on the * bus or is in the disconnected state. */ - saved_scsiid = ahd_inb(ahd, SAVED_SCSIID); + ahd_inb(ahd, SAVED_SCSIID); if (last_phase != P_BUSFREE && SCB_GET_TAG(pending_scb) == active_scbptr) {