Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7968180rwi; Tue, 25 Oct 2022 00:13:15 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5N3JYySrebKhlZOyeBorUTAdt/e5Zgwecrn9wghlhG5COnaiOlm0YqIpe3Wdqn20jrxAO1 X-Received: by 2002:a63:5950:0:b0:459:35df:3014 with SMTP id j16-20020a635950000000b0045935df3014mr31233271pgm.325.1666681994711; Tue, 25 Oct 2022 00:13:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666681994; cv=none; d=google.com; s=arc-20160816; b=zsy1yLCOjUUTyZvDbyaFMih8qKWcokKctg5Ve2KHrNA4+BrwvMla1iLh7V6KGAENQ0 jT+bbpGarHlj5Ftr8YowwAtokkqn8ZmlGh19+cfCY25qsSBWE0lDNQHFReTjk8ynzYdi V60PEX1/VVj1s4T7CbXhAe+5raMI3ZKpkT5+YZmanNnG0DaNgs5ilvVtbQ2/zSwilIp5 d8zCeyHp6wlhH+2tKjk30QCKEqfGvDwRxp99HnCTduApraTDMtAg4MZAvwpw9dGzUQHW zwy+W6fphs1EGW06qngZv2ECFZahiAV/YdSBxGg/iiTMQ1C394t/EghTdNslXRv0JFKU LnNA== 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=0KODU7N4U0VmRJ1kzbKr5/bp6nSUrehDMXfrT6cssK8=; b=o6AIfXn6b72DqQlwGepCtvLAhbPaXq2dhamOGn7JqAFlPczzGKEvljttzejzhuNsjs kN6B08ELRrZlpB8ja63TxttkPn/hy7yuabD/dAMvVWnPR12nSvTodhN3wnm/pdlEfvBP A6hvAffbjMzC8IlOPif2nddL0En6eFPaUvmaZ6f0U1rgdgsljknHLifzSenrLTkikq40 +Xt9r5XT6+ILujbHW9Ud5sUVfS164FMbnjjGOm0SndOghgm8bYujyxORR1VGZc7o497+ 7yxfYkThU5yhtRE8r7+KO4tWkUEQT4n6Rr+7vG0URrJZDerrgaLc3jFC9o36b0qKrGGk yz8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=nlVRVJUy; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=+mNlM+Wv; 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 e15-20020a17090301cf00b0018699a9ea71si2296485plh.18.2022.10.25.00.13.01; Tue, 25 Oct 2022 00:13:14 -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=nlVRVJUy; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519 header.b=+mNlM+Wv; 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 S230281AbiJYGVV (ORCPT + 99 others); Tue, 25 Oct 2022 02:21:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47724 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231232AbiJYGVR (ORCPT ); Tue, 25 Oct 2022 02:21:17 -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 929E01BE92 for ; Mon, 24 Oct 2022 23:21:12 -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 990EB22092; Tue, 25 Oct 2022 06:21:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1666678871; 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=0KODU7N4U0VmRJ1kzbKr5/bp6nSUrehDMXfrT6cssK8=; b=nlVRVJUybDiViDUpxvLDvKrM+wVDnDZ1bL5dNdrqI2rjRyhTn91HZSflJ7kHehM8aAqMlY JAltsfcxvbIKISy7qVKe9wJkif0nHdTzM7GEYz2AVP9l1AivjQz0sJaj2p+UoFWuxbg+Mt +iK8lsnrMcZc8chIZHQM5SX84VOpXRI= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1666678871; 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=0KODU7N4U0VmRJ1kzbKr5/bp6nSUrehDMXfrT6cssK8=; b=+mNlM+WvE1nlJpiBvxfj7PTka3/d3TVNBEZ6l89SvhFt1EbchlPPoL+tAdCZB4lgSHfhhi 6u6+VENWzrOQgIAw== 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 70FF3134CA; Tue, 25 Oct 2022 06:21:11 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id p1HDGleAV2OjXgAAMHmgww (envelope-from ); Tue, 25 Oct 2022 06:21:11 +0000 Date: Tue, 25 Oct 2022 08:21:10 +0200 Message-ID: <87czags9t5.wl-tiwai@suse.de> From: Takashi Iwai To: "Jason A. Donenfeld" Cc: Al Viro , linux-kernel@vger.kernel.org, Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org Subject: Re: [PATCH] ALSA: au88x0: use explicitly signed char In-Reply-To: References: <20221024162929.536004-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=-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 01:59:50 +0200, Jason A. Donenfeld wrote: > > Hi Al, > > On Mon, Oct 24, 2022 at 11:11 PM Al Viro wrote: > > > > On Mon, Oct 24, 2022 at 06:29:29PM +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: > > > > It might make sparse to STFU, but it does *not* resolve the underlying > > issue: > > > > vortex_adb_checkinout() returns a number in range of 0..31 on success > > and -ENOMEM on failure. Quite a few callers don't bother to check... > > Yea, I saw that. I assume that the places that don't check don't > *need* to check. But maybe this driver is junk and other bugs lurk. > I'm not sure. Either way, I think this change is certainly an > improvement on the status quo. I don't intend to develop further on > it, but feel free to send patches atop once this lands. Yes, the driver is likely broken in some other way, too. Such a corner case doesn't hit usually, and it's unlikely worth to spend too much time on it. In anyway, I applied the patch now to for-next branch. Thanks! Takashi