Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp3576280yba; Mon, 29 Apr 2019 05:05:26 -0700 (PDT) X-Google-Smtp-Source: APXvYqwN2ZSi7mBndrvrjUnuA2wtAhjGyJBb72iLlzbtns41DblP+skjvGwWHmrMXA3WY5qswfgW X-Received: by 2002:a17:902:b592:: with SMTP id a18mr30040924pls.252.1556539526804; Mon, 29 Apr 2019 05:05:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556539526; cv=none; d=google.com; s=arc-20160816; b=z5NV4RB7AX+y0ZkKH+uED0rfV0Iei0fUtsVa7eWx4wksHfyceRtD2KFXeM5u9M7Sip KrUPyPf4IPKFYyWfO6zRJgbUTLO+0n59yYOeKEyNlGd8bRy9RRi4ICEI6ZPrcmEakIs4 hj0hDzbv+Vn+WaQ2Ker+oDhOYeBtDSpggmHs9+tSqbFxfWCrIsMHVhOAcjyW6rx2VUx7 KtChQOI3N1aFw5yrIAL8UjNpiLu2CSIN9i3deUES19M9IJolFYo8PNxaA9p7cztT6lzV 4O+cMq8b43kVG2VvP7gB3C7XUiEgNXpGYukVApluurLywNkizXK7QjkOcnZ3/onPtELd c36w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:organization:from:subject:cc:to :dkim-signature; bh=AWC+vYweHhB5TtC3w+p9EfylxPjcOCdyfISPubqVHVE=; b=f0VTxpXVQnxJwpvxC2rfupn049Z2PBasA1U+p63POIxCisj08Qty+FNawhOGoSFCPA A+BeEcuJyV/0GwE4WkivZ0I3rqMSvFYkRgVutcQTgMLIEINjk/bmmXQ2/KEcLq/0Lbcx szlTziJZBpxkeEkmu3DL1ZLyMY49emJh1IIIyTvdps3N7z2Mi65VPx4qdAOo704kyMfY VnhkhbG6ExnHfTT/1WDGSAMK7mfCQTRSpd/X8Rw6JHL1sDhJqWfUQTgteSci46A6QE4y WNtcch3SVmRjmO7K/damPiFRAQI16Rfsy9EmhXlkzOGZlcueiye5Gqqy85y3QImTMO6Z SwrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=3b5Pqg12; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m72si33801965pfj.279.2019.04.29.05.05.11; Mon, 29 Apr 2019 05:05:26 -0700 (PDT) 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; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=3b5Pqg12; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728164AbfD2MCj (ORCPT + 99 others); Mon, 29 Apr 2019 08:02:39 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:57394 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728132AbfD2MCi (ORCPT ); Mon, 29 Apr 2019 08:02:38 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3TBxL6g196407; Mon, 29 Apr 2019 12:02:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=to : cc : subject : from : references : date : in-reply-to : message-id : mime-version : content-type; s=corp-2018-07-02; bh=AWC+vYweHhB5TtC3w+p9EfylxPjcOCdyfISPubqVHVE=; b=3b5Pqg12ak73+L2xAMRA9o1vZcf7wnNEH6j3UooKT8txp9YelF1z6EcUJAz5ieOeKePY ufTvfP+AlPqpu2gWWRkFe2EjJHv1xFArL9OxE9isX/oC5RG1qqxmWICKRRWRHFt1ABS8 Kt4vHJSEefdCSt+Nll7T3ut7ZQvFVEO3MevAFzYeT2I+/0jkHOVCjwx0TGjqfQRrTuYk Xvi2V5EXslbFgaIKmC6GZgbnLJUaMGrIwoN/gDIYYg4/ddzky/5n4quufiMT5iThDn7V 8ybwdlliH+ndx8ut4LMa4r0JdvkcisvHFg6LAkWF5BUfPt/d93funz2hiSa17H00F0rS aQ== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by userp2120.oracle.com with ESMTP id 2s4fqpwte9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 29 Apr 2019 12:02:30 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3TC0dkY129818; Mon, 29 Apr 2019 12:02:29 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 2s4d49wdvt-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 29 Apr 2019 12:02:29 +0000 Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id x3TC2S0f016842; Mon, 29 Apr 2019 12:02:28 GMT Received: from ca-mkp.ca.oracle.com (/10.159.214.123) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 29 Apr 2019 05:02:28 -0700 To: Yue Haibing Cc: , , , , Subject: Re: [PATCH -next] scsi: qedf: remove set but not used variables From: "Martin K. Petersen" Organization: Oracle Corporation References: <20190423144138.20428-1-yuehaibing@huawei.com> Date: Mon, 29 Apr 2019 08:02:26 -0400 In-Reply-To: <20190423144138.20428-1-yuehaibing@huawei.com> (Yue Haibing's message of "Tue, 23 Apr 2019 22:41:38 +0800") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9241 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=842 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904290087 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9241 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=873 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904290088 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Yue, > From: YueHaibing > > Fixes gcc '-Wunused-but-set-variable' warnings: > > drivers/scsi/qedf/qedf_els.c: In function 'qedf_process_els_compl': > drivers/scsi/qedf/qedf_els.c:149:20: warning: variable 'sc_cmd' set but not used [-Wunused-but-set-variable] > drivers/scsi/qedf/qedf_els.c:148:28: warning: variable 'task_ctx' set but not used [-Wunused-but-set-variable] > drivers/scsi/qedf/qedf_els.c: In function 'qedf_send_srr': > drivers/scsi/qedf/qedf_els.c:612:6: warning: variable 'sid' set but not used [-Wunused-but-set-variable] Applied to 5.2/scsi-queue, thanks. -- Martin K. Petersen Oracle Linux Engineering