Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp253638imj; Fri, 15 Feb 2019 23:06:57 -0800 (PST) X-Google-Smtp-Source: AHgI3IYFMwvRC8Xzwu2+2CMaWpdEmQOXTmXBgwEz4TkDfwI02/whETpmQQVVGKKiz2Qz3h8vRTqD X-Received: by 2002:a63:61d8:: with SMTP id v207mr8973972pgb.308.1550300817863; Fri, 15 Feb 2019 23:06:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550300817; cv=none; d=google.com; s=arc-20160816; b=KlMEDXDZMaU0oFvtxWtPB7uTcZvJXHKnGkoQpJWmw3L8TNyhfVdtjM9JOtYAisUxVq pVdNY8Zy8SSrOINWUaql1iDlFWiX+5x3N9JEImOw/0+p9QxPB3oVaT3w/QrdMsHOH5PC OZLCAqsIOkEXM8gu1LmP41JiKSishEg/SX6HTo8lxYCS0NZcK2u5pLXJCNzWJ15wt3uI B7DPyPWss6AnY7auiUWS9r1z+b+L6MKStLZ2OdOFUkMle8I7HXRbnEs9gRofW8WnCyns Mpm4NzcnHeYsrghWNhiAA4lpbeZksv5BJDJfObOaMP/Z0dxrXYxrbKAGDH7L/ZwJ7QZm baig== 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 :user-agent:references:in-reply-to:message-id:date:cc:to:from :subject; bh=ZU6ULcZtsvxxqETX8Q/AwQjYZTbcdJHfCJVpAxx/N1w=; b=iGj3qlKZrzyTF3zrh1Nz6EAQRJSNuQRygJR8Lw2Gm7BSZWYPG6mkryAijNN2tfPBKc 4z8A4pkQgJDicm5hEP47gFGsEf4cPQNXBpbO7NHATwN/7BZpS0iepZSupKTAa9R0py7u avE90XD3eYWQDTbfota7xxdI82x3qvH517TuKaeHObkEKJiNjke9SBNWz9F2n9xx9aOY Q112nwdLUeQC5/BOtmC3J/vxfLxuLVSFT6hIDMRLrcMV45uHS4ZkKacLSXWJ+TV+ocXo zoNY71FZKHNlXF+RFrYzmsbWiVcJNdjsMLoyUDljVXQKG0seUKXwBWU5BT2ufZq4sm/3 bqFQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bf3si7501842plb.407.2019.02.15.23.06.42; Fri, 15 Feb 2019 23:06:57 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387420AbfBOT4m (ORCPT + 99 others); Fri, 15 Feb 2019 14:56:42 -0500 Received: from mga07.intel.com ([134.134.136.100]:29120 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732893AbfBOT4l (ORCPT ); Fri, 15 Feb 2019 14:56:41 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga105.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 15 Feb 2019 11:56:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,373,1544515200"; d="scan'208";a="275404803" Received: from dwillia2-desk3.jf.intel.com (HELO dwillia2-desk3.amr.corp.intel.com) ([10.54.39.16]) by orsmga004.jf.intel.com with ESMTP; 15 Feb 2019 11:56:40 -0800 Subject: [PATCH v2 3/6] nfit/ars: Remove ars_start_flags From: Dan Williams To: linux-nvdimm@lists.01.org Cc: Toshi Kani , vishal.l.verma@intel.com, linux-kernel@vger.kernel.org Date: Fri, 15 Feb 2019 11:44:02 -0800 Message-ID: <155025984267.1043225.13642468395161111076.stgit@dwillia2-desk3.amr.corp.intel.com> In-Reply-To: <155025982726.1043225.15436410616433285475.stgit@dwillia2-desk3.amr.corp.intel.com> References: <155025982726.1043225.15436410616433285475.stgit@dwillia2-desk3.amr.corp.intel.com> User-Agent: StGit/0.18-2-gc94f MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ars_start_flags property of 'struct acpi_nfit_desc' is no longer used since ARS_REQ_SHORT and ARS_REQ_LONG were added. Cc: Toshi Kani Signed-off-by: Dan Williams --- drivers/acpi/nfit/core.c | 10 +++++----- drivers/acpi/nfit/nfit.h | 1 - 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c index 934be96dc149..9a23ae74e82b 100644 --- a/drivers/acpi/nfit/core.c +++ b/drivers/acpi/nfit/core.c @@ -2651,11 +2651,11 @@ static int ars_continue(struct acpi_nfit_desc *acpi_desc) struct nvdimm_bus_descriptor *nd_desc = &acpi_desc->nd_desc; struct nd_cmd_ars_status *ars_status = acpi_desc->ars_status; - memset(&ars_start, 0, sizeof(ars_start)); - ars_start.address = ars_status->restart_address; - ars_start.length = ars_status->restart_length; - ars_start.type = ars_status->type; - ars_start.flags = acpi_desc->ars_start_flags; + ars_start = (struct nd_cmd_ars_start) { + .address = ars_status->restart_address, + .length = ars_status->restart_length, + .type = ars_status->type, + }; rc = nd_desc->ndctl(nd_desc, NULL, ND_CMD_ARS_START, &ars_start, sizeof(ars_start), &cmd_rc); if (rc < 0) diff --git a/drivers/acpi/nfit/nfit.h b/drivers/acpi/nfit/nfit.h index 33691aecfcee..871fb3de3b30 100644 --- a/drivers/acpi/nfit/nfit.h +++ b/drivers/acpi/nfit/nfit.h @@ -223,7 +223,6 @@ struct acpi_nfit_desc { struct list_head idts; struct nvdimm_bus *nvdimm_bus; struct device *dev; - u8 ars_start_flags; struct nd_cmd_ars_status *ars_status; struct nfit_spa *scrub_spa; struct delayed_work dwork;