Received: by 2002:a25:31c3:0:0:0:0:0 with SMTP id x186csp4486690ybx; Mon, 4 Nov 2019 14:13:56 -0800 (PST) X-Google-Smtp-Source: APXvYqxTwffGcgEy/os1XTjvO6bYiHWBbsJ3fWsBI1rnO8hFjrXKdXkQqmodQxIm/H6wxnZsPqa8 X-Received: by 2002:a17:907:2070:: with SMTP id qp16mr8591285ejb.115.1572905636286; Mon, 04 Nov 2019 14:13:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1572905636; cv=none; d=google.com; s=arc-20160816; b=n4QwTU528b4xfdoFtKgd9HcAYTcoogiDt6nwuutOIHg/a0GgoKPUGeQr237R83bPyC AbYQivVHdiRvouL6QtajU/UGz/rFBUEJBfVrj6/NXxIK4+OWkIWKoT4uzzHLWf2+/ct3 s82b30gPNBGtWHEylL8vGTtUEHOhwUMVb39MEiTMM/yE4aChWCTAujkdhl/RCM5fw9DZ 18wnexhUbD1HXnocYi4vvDMLu9Dff8BE81etOo3IhApmRaXltkhXktbzopYzUCW2WwA1 bfCs2D5hP+si6Xnaufnpq9qmP4tEJ7b6zZAcRd2ZI6elvRO1rYM2ft+AfloKwOoAQv3+ bFJg== 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=PDL5R9Vp58lqfCeNVtVCGDmTVj/KmUBu327LY5K418A=; b=cQw6cvW/zh640XPqQz9jkEASZgNCVkHqoF1gsrAMeYS7lhIXvW3sKO+Marclipgn+1 FmEkpLCSqXf7y7nQA+Xbx9pvr9YK79uVV81jUExTC7al85yAW8NDuWaN4ShTLA0tCbju BSE7SpFLa/xv/T7XqHNst58emVhDVuWD/VbR1piukSwnzQteLlKmqE80aKy4n72t3FkC pHB1/pmkVL5ZmSYDD6cCfZNLERkivv4HyJebz3gOrKoRDr0d9/d5VZLC9uNCqEgfdl6t Fbd+AN+JBPkhbrSi6OrVVVDaoIVr3wXYyExsUhTq7qNBiX6AIQmL/CtafoqbbJrSybuO +kYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=dVh8mZly; 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 n20si7409047edr.357.2019.11.04.14.13.33; Mon, 04 Nov 2019 14:13:56 -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=dVh8mZly; 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 S2390028AbfKDWNC (ORCPT + 99 others); Mon, 4 Nov 2019 17:13:02 -0500 Received: from mail.kernel.org ([198.145.29.99]:43560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388431AbfKDWKW (ORCPT ); Mon, 4 Nov 2019 17:10:22 -0500 Received: from localhost (6.204-14-84.ripe.coltfrance.com [84.14.204.6]) (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 5D6EA20650; Mon, 4 Nov 2019 22:10:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1572905421; bh=kiqSDfakghTbJOA43TAye7jS9c+JcWR0lr5s80yto1E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=dVh8mZlyXtZgNPzygQ+Qn/Dxx05cqad2JdOCq3ZdrpDpGzhGtsKLmiQRR68GwDmx5 CdsoX414MGZTj43idQbuW61cKXxso63yV+QinwbSploneYiboeuF0VyFQULta0atVr mveDUO2rCVh0soibbTiOpI41OMjQmlvyI7v0rH3Q= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Sakamoto , Takashi Iwai Subject: [PATCH 5.3 097/163] ALSA: bebob: Fix prototype of helper function to return negative value Date: Mon, 4 Nov 2019 22:44:47 +0100 Message-Id: <20191104212147.127226477@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191104212140.046021995@linuxfoundation.org> References: <20191104212140.046021995@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: Takashi Sakamoto commit f2bbdbcb075f3977a53da3bdcb7cd460bc8ae5f2 upstream. A helper function of ALSA bebob driver returns negative value in a function which has a prototype to return unsigned value. This commit fixes it by changing the prototype. Fixes: eb7b3a056cd8 ("ALSA: bebob: Add commands and connections/streams management") Cc: # v3.16+ Signed-off-by: Takashi Sakamoto Link: https://lore.kernel.org/r/20191026030620.12077-1-o-takashi@sakamocchi.jp Signed-off-by: Takashi Iwai Signed-off-by: Greg Kroah-Hartman --- sound/firewire/bebob/bebob_stream.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/sound/firewire/bebob/bebob_stream.c +++ b/sound/firewire/bebob/bebob_stream.c @@ -252,8 +252,7 @@ end: return err; } -static unsigned int -map_data_channels(struct snd_bebob *bebob, struct amdtp_stream *s) +static int map_data_channels(struct snd_bebob *bebob, struct amdtp_stream *s) { unsigned int sec, sections, ch, channels; unsigned int pcm, midi, location;