Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp8447744rwi; Tue, 25 Oct 2022 06:53:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM64snlMZcEyCfKR4CQ9l6Pd5YeSNJTe5L43Wrb7XjT0hG+sjs22MACAlyZaJDt9ud+6qN/d X-Received: by 2002:a05:6402:5288:b0:457:22e5:8022 with SMTP id en8-20020a056402528800b0045722e58022mr35538634edb.244.1666706032139; Tue, 25 Oct 2022 06:53:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666706032; cv=none; d=google.com; s=arc-20160816; b=DCFm7QVkjen3LIiemHZ+VLBkskdt5TWaT4mqVMh50CbyZcXFqilHCZc8XeNoBxYr4x hHTST1QSOrRhAebC+0SxeZW1vA+zH+8jB2QlH2h651FcRGd9gj9osf1mXyLS+3SUKv3D qt+splqoWBLCCP+MzbR4q2nzR9OoHKDq8tQx6D8wvvyWsVdN9bSRECmlZxkAtOLCHCkc 3QMrpN/wus8Qp1uIgjzMP9m94sXK8LiCeHcCjpgVt98ydJVcfehkPRbf33zqKJiIQGfz WTCewI9/0NezBIiHwenG70MtYyxgvG8KbbTS7IypCTPfpA/SacHRxO9xb160HfbvJ0gl ODfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=CpyH1D/2XK23AKm0sBvO8GEEBnx0Ia1hn6gpjNKkRH0=; b=enMPIu3LGjV8syYftU7rmZiNUq4/NVAqZkr7tEjrFV1L4Ao4wvHTOSU2CxHPddepsD Cm356KsWpKz2gFu4QtR/lrZjl8ZWzKhd/y/o5cdcU6IdzZJAgWPjfMbtwvRtq1rTdAR8 BCWosYDPUQEWgtFtvn8b9vSzP8MrVhvGrUocKLVnEMmu66q9lj6so3AVzHIG7sIk5ath D8PpHypx9+dejvVSF+6g8DGRy8pOeuLMhs0/ZtKbzi++uRSo29NncuXD61iY6pVAPQWL sXzqre+hVyO+WEK4l5I84JRBhFcMr6UqAZGbT8Qftq+x5Lit9xNY+QkhSbTm+fkSe+pB jGZA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=mdZvmCoI; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qf29-20020a1709077f1d00b0078dec48d439si2960921ejc.590.2022.10.25.06.53.26; Tue, 25 Oct 2022 06:53:52 -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=@zx2c4.com header.s=20210105 header.b=mdZvmCoI; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=zx2c4.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232564AbiJYNAO (ORCPT + 99 others); Tue, 25 Oct 2022 09:00:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232821AbiJYM7Z (ORCPT ); Tue, 25 Oct 2022 08:59:25 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 155C72715F for ; Tue, 25 Oct 2022 05:55:12 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id F071CB81A9C for ; Tue, 25 Oct 2022 12:55:10 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5F583C433C1 for ; Tue, 25 Oct 2022 12:55:09 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="mdZvmCoI" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1666702507; h=from:from:reply-to:subject:subject: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=CpyH1D/2XK23AKm0sBvO8GEEBnx0Ia1hn6gpjNKkRH0=; b=mdZvmCoI7sTcb6SLTN0bP54admX73iDo3rQwL6tUg1bBk9vzeE95gShW1kMLECnN9v71u0 qbNAvMCooQsC4n6SKuNKn7rf2TB1DtUeT52+jU8q12C235/mzydrzLBOB+gXOvlWvh0dtW +FVkJCDhNLF8kgQTpcZWzgXOVcHFIJY= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id e9d2a8f3 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Tue, 25 Oct 2022 12:55:07 +0000 (UTC) Received: by mail-vs1-f53.google.com with SMTP id 189so9563647vsi.9 for ; Tue, 25 Oct 2022 05:55:06 -0700 (PDT) X-Gm-Message-State: ACrzQf07GSj+SZS2a1BSCiO4TmL+VWEPg62wSeEqKgJ2Es0mrLH8NxX+ 9WsmMYpo0t7lW2biC3xPFQ+vuds+GfB1GWmuExI= X-Received: by 2002:a67:c297:0:b0:3aa:3cac:97b6 with SMTP id k23-20020a67c297000000b003aa3cac97b6mr535993vsj.76.1666702505606; Tue, 25 Oct 2022 05:55:05 -0700 (PDT) MIME-Version: 1.0 References: <202210250456.vKv5zoLb-lkp@intel.com> <20221025000313.546261-1-Jason@zx2c4.com> <87bkq0s9rw.wl-tiwai@suse.de> <87fsfcqdbx.wl-tiwai@suse.de> In-Reply-To: <87fsfcqdbx.wl-tiwai@suse.de> From: "Jason A. Donenfeld" Date: Tue, 25 Oct 2022 14:54:54 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] ALSA: rme9652: use explicitly signed char To: Takashi Iwai Cc: linux-kernel@vger.kernel.org, Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_HI,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, 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. (And if you're in fact not going to take it for 6.1, I'm supposed to take it through my unsigned-char tree for 6.2.) Jason