Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4821112ybl; Wed, 22 Jan 2020 05:23:26 -0800 (PST) X-Google-Smtp-Source: APXvYqw5iSOI8OwmH6/wSjtYrQTmph/lu64oj3ClTgXwicYSkzeYOm/nN5bxCksQPWsuBTwzbCYG X-Received: by 2002:aca:c692:: with SMTP id w140mr6952165oif.139.1579699406056; Wed, 22 Jan 2020 05:23:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579699406; cv=none; d=google.com; s=arc-20160816; b=XbwlpTn/Uq0N6OyURMhBkDC99K1UCGxIumWpXsPOIFjOthaP6nkpoRJ4BdRppbmR1U 1I22xg/hocrRe2BHunXDTTCRMLY2z1cvo9ECTZhhGh93R9aedKM1ztSgg4RVVnhuyoWH 4FZN3lVxPfFBR7id1kwCrFfai+9ceD2II/GPKv4+nSGU57PcOrhYRbRZLyoiVEqcAUbH S1BEbmpaAC+w7mDE2Iy1UpCMIX2pc75W4foj0H9TRiTigVXk+oDpSV/rA3/hpFl9SHCy pK/7YmuL73qlTxvNQp5gRWC00JwPi0RyU5ns6/iO3oYrbX0oLG+ULeuIWH8Y34Nn8VT9 Wxvg== 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:subject:cc:to :from:dkim-signature; bh=7VF+XvgPoeXxAdQ4/Zyw6fKObrb21FlQLUS01etkU7Q=; b=SgQCh2v/DIAwb4NGmo6nnNCrq94J4765ZxiVyqxqkLGNM0yIj/sRSUT6HUgj41rkHC guBcmYm0sRxtHyjN/bRdKp6EXgXkCN3vW+/t1JRhwjYKJ5DzAlN7xMPxx4IdWgoZ1gFQ wLbmI690USnDHWplAjv5qmLDNJY1Ab0TRCvslXOSooIdPOJO9CvXFVsFlx3+LcfxTKkS Fym1Ol7yjI1cuA6uUC7JE7ZJ56PJ45hrh2JznYa1kfv9U3NUk79pL8o/a8q6WepPo/dT lib474KRdclhZib4SOkUTiEWeB+yZVFiIBaZ/3LcDMphl9762ktUQ86Ig0PJzlXonBzS jHdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Q4Izd10p; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l16si23038113otj.59.2020.01.22.05.23.14; Wed, 22 Jan 2020 05:23:26 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Q4Izd10p; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730375AbgAVNV4 (ORCPT + 99 others); Wed, 22 Jan 2020 08:21:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:39212 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730350AbgAVNVy (ORCPT ); Wed, 22 Jan 2020 08:21:54 -0500 Received: from localhost (unknown [84.241.205.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 0474C2467C; Wed, 22 Jan 2020 13:21:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1579699313; bh=pLeF0alBcThh37xBzLw7dVki1tgMbE2L/olH00haWf8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q4Izd10p9XjH29Rd+/EhVUavam7sJy5IHilvW84RUr/YHTTUYRhzFIib2xBZ+/eEi BF/77HYx0ODl4a5irPP6BNyKmknnct0inFUxQc2RpVcFVmZq04cXDPG3JRTE6mAlR3 4weAutaEQ1rO4/R1kV35chAeioGH1JGLPaSNj6/U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Martin Wilck , Bart Van Assche , Jens Axboe Subject: [PATCH 5.4 105/222] block: Fix the type of sts in bsg_queue_rq() Date: Wed, 22 Jan 2020 10:28:11 +0100 Message-Id: <20200122092841.257085936@linuxfoundation.org> X-Mailer: git-send-email 2.25.0 In-Reply-To: <20200122092833.339495161@linuxfoundation.org> References: <20200122092833.339495161@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Bart Van Assche commit c44a4edb20938c85b64a256661443039f5bffdea upstream. This patch fixes the following sparse warnings: block/bsg-lib.c:269:19: warning: incorrect type in initializer (different base types) block/bsg-lib.c:269:19: expected int sts block/bsg-lib.c:269:19: got restricted blk_status_t [usertype] block/bsg-lib.c:286:16: warning: incorrect type in return expression (different base types) block/bsg-lib.c:286:16: expected restricted blk_status_t block/bsg-lib.c:286:16: got int [assigned] sts Cc: Martin Wilck Fixes: d46fe2cb2dce ("block: drop device references in bsg_queue_rq()") Signed-off-by: Bart Van Assche Signed-off-by: Jens Axboe Signed-off-by: Greg Kroah-Hartman --- block/bsg-lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/block/bsg-lib.c +++ b/block/bsg-lib.c @@ -266,7 +266,7 @@ static blk_status_t bsg_queue_rq(struct struct request *req = bd->rq; struct bsg_set *bset = container_of(q->tag_set, struct bsg_set, tag_set); - int sts = BLK_STS_IOERR; + blk_status_t sts = BLK_STS_IOERR; int ret; blk_mq_start_request(req);