Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp1822197pxy; Mon, 2 Aug 2021 11:04:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVCoHGa/ezSKTU4jwirVKC4NBkWuD6ov1X4MtbQoQI6ljFoMEXfjwMvCbuZa0WLGB7lVSS X-Received: by 2002:a17:906:40e:: with SMTP id d14mr16879702eja.338.1627927467472; Mon, 02 Aug 2021 11:04:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1627927467; cv=none; d=google.com; s=arc-20160816; b=sENCjwDdJ+XXfpUTFjctOsUL1uX0dKPdJiP8i7faPZMXFgxNwRqTPvcdewXN/gZYL5 Ob7r49z5bnYWI5e3fQkqJFGLL82vTDJpP3MueTnS0JfQjrYMnKoUiEz8nxSQzQuUhZmw iMIhID6x00msP9uizdn/cFFGu7FTLgzryPtL6GcBF1J2I8FpyhwkvSAXSUkSNRF8LVRS Ia1myOd3aLkmSYNJFBgx198vOrzhDywrHDzLu/LOScdM4GKAX0w1R00OOQQfjYxWK053 cSPwSmQr8TS835WLP0czWxxc+3OQ/QkDygHQnj5/9vu09Jt7G1DYllZhPQPgq4kPKo8N h4GQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-language:content-transfer-encoding :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=M9WZpFiSys876aQM43bA8SlMbsxCwz1EKjNYJvJW0+0=; b=oXknZ1P6ZnQn0BXGlnmUZw1iJYKS1PU8FQcgGqfbB7cxQfHQbMwxN48QYm55b+gtce hod2Yezr5LmkaEc6dnt8OZNxhPg4wxwM2hkdVHN4HNW3Cdq2mwEia37QpHfsMb4yHOjY hrvALm/JC4e/o7oX98RBHNu74FbhW/XWJxni6628LSir8FzfdAvgYJePCZSun1eUwqcP GA2bl+MVOqYBkjPm1Jka+IZySw8lmCMFZKlK2R8upfL9k8ghOVLhOail0t5iz6SzI7cQ Oal8biEifUIwGvduB6YlhOFJuVNBlRM4HScpLUGI/lpyMTYciiQTPeicknYDahqAiuTl RKOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id cx5si10489516edb.163.2021.08.02.11.03.51; Mon, 02 Aug 2021 11:04:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S229612AbhHBSCa (ORCPT + 99 others); Mon, 2 Aug 2021 14:02:30 -0400 Received: from mga04.intel.com ([192.55.52.120]:55556 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbhHBSC3 (ORCPT ); Mon, 2 Aug 2021 14:02:29 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10064"; a="211636374" X-IronPort-AV: E=Sophos;i="5.84,289,1620716400"; d="scan'208";a="211636374" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2021 11:02:19 -0700 X-IronPort-AV: E=Sophos;i="5.84,289,1620716400"; d="scan'208";a="419388191" Received: from djiang5-mobl1.amr.corp.intel.com (HELO [10.212.45.122]) ([10.212.45.122]) by orsmga003-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Aug 2021 11:02:19 -0700 Subject: Re: [PATCH] dmaengine: idxd: Remove unused status variable in irq_process_work_list() To: Nathan Chancellor , Vinod Koul Cc: dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org References: <20210802175820.3153920-1-nathan@kernel.org> From: Dave Jiang Message-ID: Date: Mon, 2 Aug 2021 11:02:17 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 MIME-Version: 1.0 In-Reply-To: <20210802175820.3153920-1-nathan@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 8/2/2021 10:58 AM, Nathan Chancellor wrote: > status is no longer used within this block: > > drivers/dma/idxd/irq.c:255:6: warning: unused variable 'status' > [-Wunused-variable] > u8 status = desc->completion->status & DSA_COMP_STATUS_MASK; > ^ > 1 warning generated. > > Fixes: b60bb6e2bfc1 ("dmaengine: idxd: fix abort status check") > Signed-off-by: Nathan Chancellor Acked-by: Dave Jiang Thanks. > --- > drivers/dma/idxd/irq.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/dma/idxd/irq.c b/drivers/dma/idxd/irq.c > index 65dc7bbb0a13..91e46ca3a0ad 100644 > --- a/drivers/dma/idxd/irq.c > +++ b/drivers/dma/idxd/irq.c > @@ -252,8 +252,6 @@ static int irq_process_work_list(struct idxd_irq_entry *irq_entry, > spin_unlock_irqrestore(&irq_entry->list_lock, flags); > > list_for_each_entry(desc, &flist, list) { > - u8 status = desc->completion->status & DSA_COMP_STATUS_MASK; > - > /* > * Check against the original status as ABORT is software defined > * and 0xff, which DSA_COMP_STATUS_MASK can mask out. > > base-commit: e9c5b0b53ccca81dd0a35c62309e243a57c7959d