From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 27364C38A2D for ; Tue, 25 Oct 2022 13:15:10 +0000 (UTC) Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 13D0A52E4; Tue, 25 Oct 2022 15:14:18 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 13D0A52E4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1666703708; bh=expsk1Lc6pk3XKwEw5Bq/xVugw0jOzromRYgMtEuqns=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=tt6RxF2E9iowW3gtA0aYSNQGJCGdh+Pvoud9qWwMKVmp9jAHGQobLqAW5xTNvkJkF tE9aEY5y9txK6Je8hFwoz+BiGcpPZsdPuLV7x3LB1akNFWjnKRk4P0jEmMpoK0FLV0 +GZRp6BW1FCBJwo0//hc7AulCh721lzCt1kGWleE= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id B842AF80100; Tue, 25 Oct 2022 15:14:17 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 609ECF80431; Tue, 25 Oct 2022 15:14:16 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 6B3C7F80100 for ; Tue, 25 Oct 2022 15:14:10 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 6B3C7F80100 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="prAQuulk"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="Hl25gK6O" Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 3BA2221FD9; Tue, 25 Oct 2022 13:14:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1666703650; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=I89ZYsz5EVeFhVBn2Y6TA4wWyu6K+IzSxYus/5qLa+4=; b=prAQuulk6JTdcTqlG/SWci2IThYxK+wXyGs7epkHip2DNrJ9sYwC9ZBkcX3+J0ka45oW2O 53CLDaIE1qvgnl8dRMgtZq9AHo33htsz1tbQujjgLYSlQpoBtu7FRd/NOK5o/JItdz2BuV 1mUAurbpGqULVnd20418hH5hXgNCmPk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1666703650; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=I89ZYsz5EVeFhVBn2Y6TA4wWyu6K+IzSxYus/5qLa+4=; b=Hl25gK6OivZlCIyHf4PgYrF9UgXliIeZnUuEOM85LkPs9tH/2xUxP4UM22I95jT+j/0vUN 6A9FydFtXdArcUAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 17A9A134CA; Tue, 25 Oct 2022 13:14:10 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id P3gOBSLhV2MXNQAAMHmgww (envelope-from ); Tue, 25 Oct 2022 13:14:10 +0000 Date: Tue, 25 Oct 2022 15:14:09 +0200 Message-ID: <87a65kqc4e.wl-tiwai@suse.de> From: Takashi Iwai To: "Jason A. Donenfeld" Subject: Re: [PATCH v2] ALSA: rme9652: use explicitly signed char In-Reply-To: <87czagqc8k.wl-tiwai@suse.de> References: <202210250456.vKv5zoLb-lkp@intel.com> <20221025000313.546261-1-Jason@zx2c4.com> <87bkq0s9rw.wl-tiwai@suse.de> <87fsfcqdbx.wl-tiwai@suse.de> <87czagqc8k.wl-tiwai@suse.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Cc: alsa-devel@alsa-project.org, Takashi Iwai , linux-kernel@vger.kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Tue, 25 Oct 2022 15:11:39 +0200, Takashi Iwai wrote: > > On Tue, 25 Oct 2022 14:54:54 +0200, > Jason A. Donenfeld wrote: > > > > On Tue, Oct 25, 2022 at 2:48 PM Takashi Iwai wrote: > > > > > > On Tue, 25 Oct 2022 14:08:29 +0200, > > > Jason A. Donenfeld wrote: > > > > > > > > On Tue, Oct 25, 2022 at 08:21:55AM +0200, Takashi Iwai wrote: > > > > > On Tue, 25 Oct 2022 02:03:13 +0200, > > > > > Jason A. Donenfeld wrote: > > > > > > > > > > > > With char becoming unsigned by default, and with `char` alone being > > > > > > ambiguous and based on architecture, signed chars need to be marked > > > > > > explicitly as such. This fixes warnings like: > > > > > > > > > > > > sound/pci/rme9652/hdsp.c:3953 hdsp_channel_buffer_location() warn: 'hdsp->channel_map[channel]' is unsigned > > > > > > sound/pci/rme9652/hdsp.c:4153 snd_hdsp_channel_info() warn: impossible condition '(hdsp->channel_map[channel] < 0) => (0-255 < 0)' > > > > > > sound/pci/rme9652/rme9652.c:1833 rme9652_channel_buffer_location() warn: 'rme9652->channel_map[channel]' is unsigned > > > > > > > > > > > > Cc: Jaroslav Kysela > > > > > > Cc: Takashi Iwai > > > > > > Cc: alsa-devel@alsa-project.org > > > > > > Signed-off-by: Jason A. Donenfeld > > > > > > > > > > Applied now. Thanks! > > > > > > > > Thanks. For this and the other patch, applied for 6.1 or 6.2? > > > > > > I applied for 6.2. Was it an action that has to be fixed for 6.1? > > > If so, I still can shuffle. > > > > Well, this is code that's broken currently on ARM platforms, for > > example, where char is already unsigned. So it's arguably a fix for > > 6.1. > > Fair enough, I'll apply for 6.1, then. ... and in that case, it deserves for Cc-to-stable, IMO, as it's a fix to be done for older kernels, too. Then it'd be clearly a 6.1 material. Takashi From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 68C5AC04A95 for ; Tue, 25 Oct 2022 13:14:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232031AbiJYNOP (ORCPT ); Tue, 25 Oct 2022 09:14:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229574AbiJYNOM (ORCPT ); Tue, 25 Oct 2022 09:14:12 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E0DE14DF3A for ; Tue, 25 Oct 2022 06:14:11 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 3BA2221FD9; Tue, 25 Oct 2022 13:14:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1666703650; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=I89ZYsz5EVeFhVBn2Y6TA4wWyu6K+IzSxYus/5qLa+4=; b=prAQuulk6JTdcTqlG/SWci2IThYxK+wXyGs7epkHip2DNrJ9sYwC9ZBkcX3+J0ka45oW2O 53CLDaIE1qvgnl8dRMgtZq9AHo33htsz1tbQujjgLYSlQpoBtu7FRd/NOK5o/JItdz2BuV 1mUAurbpGqULVnd20418hH5hXgNCmPk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1666703650; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=I89ZYsz5EVeFhVBn2Y6TA4wWyu6K+IzSxYus/5qLa+4=; b=Hl25gK6OivZlCIyHf4PgYrF9UgXliIeZnUuEOM85LkPs9tH/2xUxP4UM22I95jT+j/0vUN 6A9FydFtXdArcUAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 17A9A134CA; Tue, 25 Oct 2022 13:14:10 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id P3gOBSLhV2MXNQAAMHmgww (envelope-from ); Tue, 25 Oct 2022 13:14:10 +0000 Date: Tue, 25 Oct 2022 15:14:09 +0200 Message-ID: <87a65kqc4e.wl-tiwai@suse.de> From: Takashi Iwai To: "Jason A. Donenfeld" Cc: linux-kernel@vger.kernel.org, Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org Subject: Re: [PATCH v2] ALSA: rme9652: use explicitly signed char In-Reply-To: <87czagqc8k.wl-tiwai@suse.de> References: <202210250456.vKv5zoLb-lkp@intel.com> <20221025000313.546261-1-Jason@zx2c4.com> <87bkq0s9rw.wl-tiwai@suse.de> <87fsfcqdbx.wl-tiwai@suse.de> <87czagqc8k.wl-tiwai@suse.de> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 25 Oct 2022 15:11:39 +0200, Takashi Iwai wrote: > > On Tue, 25 Oct 2022 14:54:54 +0200, > Jason A. Donenfeld wrote: > > > > On Tue, Oct 25, 2022 at 2:48 PM Takashi Iwai wrote: > > > > > > On Tue, 25 Oct 2022 14:08:29 +0200, > > > Jason A. Donenfeld wrote: > > > > > > > > On Tue, Oct 25, 2022 at 08:21:55AM +0200, Takashi Iwai wrote: > > > > > On Tue, 25 Oct 2022 02:03:13 +0200, > > > > > Jason A. Donenfeld wrote: > > > > > > > > > > > > With char becoming unsigned by default, and with `char` alone being > > > > > > ambiguous and based on architecture, signed chars need to be marked > > > > > > explicitly as such. This fixes warnings like: > > > > > > > > > > > > sound/pci/rme9652/hdsp.c:3953 hdsp_channel_buffer_location() warn: 'hdsp->channel_map[channel]' is unsigned > > > > > > sound/pci/rme9652/hdsp.c:4153 snd_hdsp_channel_info() warn: impossible condition '(hdsp->channel_map[channel] < 0) => (0-255 < 0)' > > > > > > sound/pci/rme9652/rme9652.c:1833 rme9652_channel_buffer_location() warn: 'rme9652->channel_map[channel]' is unsigned > > > > > > > > > > > > Cc: Jaroslav Kysela > > > > > > Cc: Takashi Iwai > > > > > > Cc: alsa-devel@alsa-project.org > > > > > > Signed-off-by: Jason A. Donenfeld > > > > > > > > > > Applied now. Thanks! > > > > > > > > Thanks. For this and the other patch, applied for 6.1 or 6.2? > > > > > > I applied for 6.2. Was it an action that has to be fixed for 6.1? > > > If so, I still can shuffle. > > > > Well, this is code that's broken currently on ARM platforms, for > > example, where char is already unsigned. So it's arguably a fix for > > 6.1. > > Fair enough, I'll apply for 6.1, then. ... and in that case, it deserves for Cc-to-stable, IMO, as it's a fix to be done for older kernels, too. Then it'd be clearly a 6.1 material. Takashi