From patchwork Tue Jul 21 16:41:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 246900 Delivered-To: patch@linaro.org Received: by 2002:a54:2c11:0:0:0:0:0 with SMTP id g17csp2711196ecp; Tue, 21 Jul 2020 09:42:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzjtnfGxW07QsoL3uDFC9hRyYDrzp3+Kz5aWsCOJq7O1roVgasUC/jJVMcdzUEsn6kHMcBs X-Received: by 2002:a05:6402:6c4:: with SMTP id n4mr27895479edy.353.1595349738208; Tue, 21 Jul 2020 09:42:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595349738; cv=none; d=google.com; s=arc-20160816; b=mzHI1R08Um9VU2G47g5IIO2CMCScOBgmboXiJu+53eVSnOyBwbIyRz8kIooPrjh2Mb di15mfxc+LCO00NuCzcXxFf46xOzWuV3pHhMvvFmzAiNJaJNXT+Tc8oZIiyRn37KLh7n zHt1bM1rFpGXq5RIJ7rKlzNvlQkBC58YIQDHm3k8w8iYceoq5n85jkfeSBSk9Jt03kWg KA7QR0I84c2dsDTMWdJ+EHOc56Vds78XY1IFLR8NGZq09S6TtMVSp0H0f9tpUgzuZAyz RFM3vYfduqGFPaDBWK+4rtdFS4F6IolbOTeofgHg+liEDy1IFB9sibFWgIWuJ5Tv2EDF BMBg== 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=5j6RcNPu58XwWQQgxDOv1ZbcxCrsGooexxZ/gmLrlrM=; b=VOFXG3egtmX2yM3UBmHlo8ZLsa5FwchAeah5srA9jeG/DUu9kowa59ZKrLy3bD7VIN M6HsKxEXo+MfppwnoXNDghjT7IjXZl3ySvrAqnmbl8Qquc9SXU2BgfgtvHKZgDhgMLSG Sjj4WPP/8iA/LM0uME5A28wQyWikQNTk7qmYIa4v8mYxNXEpwtZ3HJxVlwcaxAI/HD1D B0XcZ1M6Vu6smq+6rBv2L+8g0F2iB6AxiKspmoELipocOvia0KmwJ4cnpfJPlGxK1dv6 DQFc6vKpAaeNIbvOx5jZeijT8dDMNjRoTdipxuIgyVCLpuhLpEqKG8FvjMnfP1YBx/s+ Qo5A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xL1cP30E; 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 x15si13006696ejc.115.2020.07.21.09.42.18 for ; Tue, 21 Jul 2020 09:42:18 -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=xL1cP30E; 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 S1730567AbgGUQmP (ORCPT ); Tue, 21 Jul 2020 12:42:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728827AbgGUQmO (ORCPT ); Tue, 21 Jul 2020 12:42:14 -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 0559FC061794 for ; Tue, 21 Jul 2020 09:42:14 -0700 (PDT) Received: by mail-wr1-x444.google.com with SMTP id 88so11571780wrh.3 for ; Tue, 21 Jul 2020 09:42: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=5j6RcNPu58XwWQQgxDOv1ZbcxCrsGooexxZ/gmLrlrM=; b=xL1cP30EALt5ZNjGYk9G+OFcXwArn2GZgrWng0gu+6zPVwjVRoxUrja42IAnVkTwpn XgHDeMJ/PRQwBHuxfsY3yyT69VS8CxkCMgsadN8ErJxzHVsPDPfVb+flOZyFoanJCgXt rX44gEWaqbtAFMVL2PY1WdOn7ilFpaC2JZnVvJ8jvfY3znZ0sCChXTYk0WWE+o41Y97b HonuCXScVeteCYAxZVDplvS3rgNuFfeVELv0gc6by0zNYXcNCdewzbRrT9cvxHMeTVpv Q9KFeQTyT3fB5Roojibh6MsDv+ezIity22XlyGSF6RA2lY2zy0WBgLAY7wGfZ7AJ/jhC MsHg== 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=5j6RcNPu58XwWQQgxDOv1ZbcxCrsGooexxZ/gmLrlrM=; b=pROqVwMf4Jgj81cCbevPH9xoeZEAnVf0MncyKcQffIUiPs4utY5sFX5G6MnP5j/DvL 1l7f77pIfsGHtfEheOUJRw/39KVoTdCGo285BltdP2XLJLT+MUQoE9hLhW8yDA9HGU0M kmDd84raJEc+LiygGtiJ7OLPDmdQZwQpRh00zrBCQ4+MaO102zoqpTkki9VDdH7y438j AlCfZzAbH0yiORLHz49ZXrI8tU2mJQ6oYxKHtx+LKVLsy8unhpJqEVgVVXTH2ra/eJTr DXXOYGGlWnQbJpbYBzki3z0Uxquf91soVJN7PqzIYFWr9EKQUL2C09Ed7b01KlEw7Fyy TqyQ== X-Gm-Message-State: AOAM533ZxLxXT1G2SfIT1LjaKxVUNh2AjN6NMtOC2wGZ672E0Jms6Poy XWfabvEmFT9sDgiVhHNgy6HvHg== X-Received: by 2002:adf:9e8b:: with SMTP id a11mr4950480wrf.309.1595349732713; Tue, 21 Jul 2020 09:42:12 -0700 (PDT) Received: from localhost.localdomain ([2.27.167.94]) by smtp.gmail.com with ESMTPSA id m4sm3933524wmi.48.2020.07.21.09.42.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jul 2020 09:42:12 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Lee Jones , Jack Wang Subject: [PATCH 11/40] scsi: pm8001: pm8001_ctl: Add descriptions for unused 'attr' function parameters Date: Tue, 21 Jul 2020 17:41:19 +0100 Message-Id: <20200721164148.2617584-12-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200721164148.2617584-1-lee.jones@linaro.org> References: <20200721164148.2617584-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 Clean-up some whitespace issues too whilst we're here. Fixes the following W=1 kernel build warning(s): drivers/scsi/pm8001/pm8001_ctl.c:102: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_fw_version_show' drivers/scsi/pm8001/pm8001_ctl.c:331: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_logging_level_show' drivers/scsi/pm8001/pm8001_ctl.c:400: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_ib_queue_log_show' drivers/scsi/pm8001/pm8001_ctl.c:433: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_ob_queue_log_show' drivers/scsi/pm8001/pm8001_ctl.c:464: warning: Function parameter or member 'attr' not described in 'pm8001_ctl_bios_version_show' drivers/scsi/pm8001/pm8001_ctl.c:623: 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 | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -- 2.25.1 diff --git a/drivers/scsi/pm8001/pm8001_ctl.c b/drivers/scsi/pm8001/pm8001_ctl.c index a5f3c702ada9f..77c805db27242 100644 --- a/drivers/scsi/pm8001/pm8001_ctl.c +++ b/drivers/scsi/pm8001/pm8001_ctl.c @@ -93,6 +93,7 @@ static DEVICE_ATTR_RO(controller_fatal_error); /** * pm8001_ctl_fw_version_show - firmware version * @cdev: pointer to embedded class device + * @attr: device attribute (unused) * @buf: the buffer returned * * A sysfs 'read-only' shost attribute. @@ -322,6 +323,7 @@ static DEVICE_ATTR(host_sas_address, S_IRUGO, /** * pm8001_ctl_logging_level_show - logging level * @cdev: pointer to embedded class device + * @attr: device attribute (unused) * @buf: the buffer returned * * A sysfs 'read/write' shost attribute. @@ -335,6 +337,7 @@ static ssize_t pm8001_ctl_logging_level_show(struct device *cdev, return snprintf(buf, PAGE_SIZE, "%08xh\n", pm8001_ha->logging_level); } + static ssize_t pm8001_ctl_logging_level_store(struct device *cdev, struct device_attribute *attr, const char *buf, size_t count) { @@ -392,6 +395,7 @@ static DEVICE_ATTR(aap_log, S_IRUGO, pm8001_ctl_aap_log_show, NULL); /** * pm8001_ctl_ib_queue_log_show - Out bound Queue log * @cdev:pointer to embedded class device + * @attr: device attribute (unused) * @buf: the buffer returned * A sysfs 'read-only' shost attribute. */ @@ -424,6 +428,7 @@ static DEVICE_ATTR(ib_log, S_IRUGO, pm8001_ctl_ib_queue_log_show, NULL); /** * pm8001_ctl_ob_queue_log_show - Out bound Queue log * @cdev:pointer to embedded class device + * @attr: device attribute (unused) * @buf: the buffer returned * A sysfs 'read-only' shost attribute. */ @@ -456,6 +461,7 @@ static DEVICE_ATTR(ob_log, S_IRUGO, pm8001_ctl_ob_queue_log_show, NULL); /** * pm8001_ctl_bios_version_show - Bios version Display * @cdev:pointer to embedded class device + * @attr: device attribute (unused) * @buf:the buffer returned * A sysfs 'read-only' shost attribute. */ @@ -615,8 +621,9 @@ static DEVICE_ATTR_RW(non_fatal_count); /** ** pm8001_ctl_gsm_log_show - gsm dump collection ** @cdev:pointer to embedded class device + ** @attr: device attribute (unused) ** @buf: the buffer returned - **A sysfs 'read-only' shost attribute. + ** A sysfs 'read-only' shost attribute. **/ static ssize_t pm8001_ctl_gsm_log_show(struct device *cdev, struct device_attribute *attr, char *buf)