Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8495717rwi; Tue, 25 Oct 2022 07:23:10 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7B0oiVOPjNZu8n+BlSkXAURysovbYb3huKaCsyjTZ0ZEoRigd3l8JlT3UyezKaGjAPnazr X-Received: by 2002:a50:bb06:0:b0:461:4acc:4540 with SMTP id y6-20020a50bb06000000b004614acc4540mr21981634ede.307.1666707790543; Tue, 25 Oct 2022 07:23:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666707790; cv=none; d=google.com; s=arc-20160816; b=A5DL9KfLozHK3YqSLpGGKm0kzLpg4ev2jyGAq/HqV/zfdTFJd8Wj54rum8RbQxKfVa anfVw2TuxUTPN3fP43PIrKkRWKziTitMGqDt3emuQiJ8VLps8j+hjHX7CuYlazVs5Ahc hAqbYS+WBKQVypGK6hFCoywuJRmYQdCbFITfDjU7UZBfCxnGVSPfXYeDUBcDdFOI4EoA EXvlm4pLxpDZXkkBx8R3J0P+G8r/Pfi4hF4tGmdKrwrc+Xp96orpDEQ8XJvl1857Lqb/ +ShnzvMmZlbU2GQm2lpMn09DvZIJCTPBTVfw53dXHX020y7wKxOglpTN6/ty+/kmj5IP 60ZA== 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=GPCeDr3zN77GUXlOPmWIRm9sfVL8tVALNBUEaIMcJ+k=; b=uT5MZM3pAp9DXUVJ6fqK5/JmVwjIF9+8QSAzA3rtww03slmQS/ZXEEyseK+i8QZsMW oYGU1hJplCHbB71hWaVXk4b+oySuLDBRpXnaXIwd36rsDOa5WrxXvhjw2Da8n7fAz4Ec njwMp5cVLwpVn/1AxAcnrR4W488E4hSIid14t8cjIoiMHmniANhJKf1ge/TnP5jkR8ym gqsj52BWCNV+V6uiiAbrf8U9on9N3qh2trsMP/4hOxW1LhcHg3mOm9vln0MDFK5dGld3 wxcUGirber7DubXY2WOdjoiXASukyu6SNtN040cbDMD5jXg2QCCW7Xvwz3Q/ORwtn+3U gVXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=Anj73dL4; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=8XVBImK+; 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 c4-20020a170906154400b0078ddff4b3absi2550216ejd.423.2022.10.25.07.22.44; Tue, 25 Oct 2022 07:23:10 -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=Anj73dL4; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=8XVBImK+; 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 S232102AbiJYNMI (ORCPT + 99 others); Tue, 25 Oct 2022 09:12:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232764AbiJYNLt (ORCPT ); Tue, 25 Oct 2022 09:11:49 -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 AC88B7B287 for ; Tue, 25 Oct 2022 06:11:41 -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 645A022005; Tue, 25 Oct 2022 13:11:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1666703500; 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=GPCeDr3zN77GUXlOPmWIRm9sfVL8tVALNBUEaIMcJ+k=; b=Anj73dL4o0B4PyIteq8IJ/7PMqO4Gl8bUVIAUELGJoOjZ97ppFzHBAiob+ABgFLhUv0Lat TcC4wNTiCb7ZhisiXF8HGYUXFcR2YbMEIDhYgvVedYJtSCRY1JRp5QKNC7xKot/RcUSJC0 TpnlYKvhtL7CjTQhPcw7egLN5y+7rGo= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1666703500; 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=GPCeDr3zN77GUXlOPmWIRm9sfVL8tVALNBUEaIMcJ+k=; b=8XVBImK+1R5pRsTfqYRHrMr8qjA3k9FKbp3VA+gKAlMfgHwb1dNMvQnDZIXoMOjVg6qGzN Bu/heJglm8eIZTDw== 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 42A90134CA; Tue, 25 Oct 2022 13:11:40 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 5K6TD4zgV2OkMwAAMHmgww (envelope-from ); Tue, 25 Oct 2022 13:11:40 +0000 Date: Tue, 25 Oct 2022 15:11:39 +0200 Message-ID: <87czagqc8k.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: References: <202210250456.vKv5zoLb-lkp@intel.com> <20221025000313.546261-1-Jason@zx2c4.com> <87bkq0s9rw.wl-tiwai@suse.de> <87fsfcqdbx.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 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. Takashi