Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8442835rwi; Tue, 25 Oct 2022 06:49:56 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6y0NlBzT4Vi+uQLgCAj+1Ya0Z7AHLUCnSQLAQoODjJr3x2xR9d4HDtcVcMptIQgFvah8Sq X-Received: by 2002:a17:907:2daa:b0:78d:4dca:43e with SMTP id gt42-20020a1709072daa00b0078d4dca043emr32592768ejc.134.1666705795922; Tue, 25 Oct 2022 06:49:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666705795; cv=none; d=google.com; s=arc-20160816; b=fSZ5EECPzqaOvuMBnIWK0dz1aI456SMMETk33iYrclBy9kNkpP+1gX3BIfKIlKemwF O5wps/wDg5t9/ouBGi0ulGOWfAVa/m/ZZ4KrgdXsj/ufvM0Nd6eI0mLgpkkHehju7nE/ skZ+OIGJFSa2I233E6rYFYjFTqWSIjacnIbemJd+oA/7pXBl5JhZ4PTKGxXIEeAlIeGq c22RqTpUcxtH3i741aL01xctfHFiPhQO7aEQQZCL+mcDyqXY4iDKIgQNuxlQCtnOvdz4 /bUdf7v+HSYiV/eMp/kB0gASDmPPNNtm1NAfJ046oDcEM59KekagCfPKzXBb8WiI8C+2 1SAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=I89ZYsz5EVeFhVBn2Y6TA4wWyu6K+IzSxYus/5qLa+4=; b=mLcPLBYsvcmpZtEX4YAlhBDJtQp4TD9dn13owgYiMEMj39H7Op466JzPfGNtW0AVSL JirwIdaxNXeJM0Pm7gCwwYDPDAIpgnqMZbAsnA/g9JjrZPxE58Gzu9lwEqTvJQ3Qfrfd xAJVY8Y8o8xmMms0oYENd5hYRmef5TEJs3sxE3oh/SpT7TW3+WAvMG4xJhBv+Ic+o0la vH+jAGI8+EPTXWwwmJzpQYewEw9scAm/QJGl478b5rsNV9SopGyqXpsm3MrpQc2roWGh XUAS/hPTtCgcvGKNK9kVx0BVs6q5vAPYdyf66ggtjXGf8dNvQ1n7F8rkaheZgP+nKogq 6Ekg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=prAQuulk; dkim=neutral (no key) header.i=@suse.de header.b=Hl25gK6O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id wu13-20020a170906eecd00b0078dcc87b1c4si3172004ejb.923.2022.10.25.06.49.29; Tue, 25 Oct 2022 06:49:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=prAQuulk; dkim=neutral (no key) header.i=@suse.de header.b=Hl25gK6O; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231800AbiJYNOO (ORCPT + 99 others); Tue, 25 Oct 2022 09:14:14 -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 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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