Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7962758rwi; Tue, 25 Oct 2022 00:07:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4UIU1DwM7bvRQHfaVw6ElgaNx7IxsUJjsuyD2oY/TCSPG0ST6Lf6o21U3ldzbb24Cno7xL X-Received: by 2002:a05:6402:410:b0:451:ea13:4ed7 with SMTP id q16-20020a056402041000b00451ea134ed7mr35762316edv.262.1666681642121; Tue, 25 Oct 2022 00:07:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666681642; cv=none; d=google.com; s=arc-20160816; b=q8zSxqYVt4cMG+Yy5RJEiilrmT+lg5AeJzGdsOUzGmDqINztWTlaYdjJktg3HCGDzA ETl/wscjPBjs0x+vWwd5aSmCk7KNJ5CmWS8x/iROZB5ddZj6BsFf+25ok2vbhX8h/2QJ lRIRo4GMHWzYjuucxH1QYZzzB+WlP8ockfupRmplRLH6Mpy8wMWqUp+y1SByUGtnr+E7 CPT4H9pAr90tJSQxP3itvFDKuYn5DOqsOM5DZgTssHxYX8QmaAso1YjF2ft7U/PI2M0R PM0aBDv84kQizq42KaoYwBsAOgQl5PS+bPN3arwtkW+x8LFYBlu7A4ejC+rrnhcu4102 qYmQ== 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=SMUD0HGiK3OL9m7c9OiUC44lg0O00LzZHQLiH4opMMs=; b=vEJMX2wJRRNrsI3ahpxeFgX4AY2J/Jamaa+gh2o/8OgxxdrwJFfqFafSiEC4G/8Ax2 Qylwl/su2P4eU5GPyOXlIF2kQpc4EOuE9MoNCWyZG9zq9l6aCvV+i2j8ucBEwa/ShZgG 8RMeTzjAKqwxa0EkiDQhECn8gKJFnnKurSobqssFUxBr/tYV0/n77QAEdh11Wq2qSjKS JZMPObHtxm7J16dKAe0OIEyEw+xQ+RrORptKVXL35Vz8zN0ztxJ1y+3T0V1VED3d2azE ifPWAqm1A+kVfiv+Sr1+V5ff7ahMglbZP8Fn6+CP//d1q9xFDxdcPoIVm9RBQdhoz6M+ gG9A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=tu28yF99; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=UnjQnMkK; 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 qo14-20020a170907874e00b0073d8f141e76si1942456ejc.130.2022.10.25.00.06.55; Tue, 25 Oct 2022 00:07:22 -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=tu28yF99; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=UnjQnMkK; 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 S229949AbiJYGWC (ORCPT + 99 others); Tue, 25 Oct 2022 02:22:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51458 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229781AbiJYGV7 (ORCPT ); Tue, 25 Oct 2022 02:21:59 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA6C53A4B8 for ; Mon, 24 Oct 2022 23:21:57 -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 2E38D22091; Tue, 25 Oct 2022 06:21:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1666678916; 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=SMUD0HGiK3OL9m7c9OiUC44lg0O00LzZHQLiH4opMMs=; b=tu28yF99nXVTYnHshig2l1k/1Xf355D4Mv7wt9q2bU1lTzInj4U8eLvSj/NUZ3XyxqXmty NXv1mDiC4ziLG2glh0i3fUO1S0I1OTm+oLsyDap8RrmaU+XzddzHFJvivSSUFE2tFzpHmw qg4pEhW5bYDQ3LZeKh/1/9d+483qqnc= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1666678916; 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=SMUD0HGiK3OL9m7c9OiUC44lg0O00LzZHQLiH4opMMs=; b=UnjQnMkK3Q3mTrAjUhjpD8740VS04C/61Q/mxe4n/hDKm5BvM3iY1vDaRrezebeyJsjIzN N50x6FIZ0MDwMHCQ== 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 103B3134CA; Tue, 25 Oct 2022 06:21:56 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id qTkwA4SAV2PqXgAAMHmgww (envelope-from ); Tue, 25 Oct 2022 06:21:56 +0000 Date: Tue, 25 Oct 2022 08:21:55 +0200 Message-ID: <87bkq0s9rw.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: <20221025000313.546261-1-Jason@zx2c4.com> References: <202210250456.vKv5zoLb-lkp@intel.com> <20221025000313.546261-1-Jason@zx2c4.com> 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=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 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! Takashi