Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7515823rwi; Mon, 24 Oct 2022 16:05:42 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6aXv+k+g19dIArTd1fmVJ8FDJ8pnjQB7elDsxwKuPfgK2wSiMG2XvU6xPLzsEi4uU96z9k X-Received: by 2002:a05:6402:448b:b0:43b:5ec6:8863 with SMTP id er11-20020a056402448b00b0043b5ec68863mr32492357edb.377.1666652741833; Mon, 24 Oct 2022 16:05:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666652741; cv=none; d=google.com; s=arc-20160816; b=Em4Q+s+TKXSNeZnGYTqBRMcf0fnWuxNMnK3tKBDobSVNBGQIuS8bc1vKEoKQo0hLAg Q4tb4mNdQu1O5prY7I9Cr8dipnRRWgtlndhoAUph91j5YBtSBi1BSURHKxk1FeKWLVdh GCNN18kSCADR4+7sx1v7yYsk2hzgsb7Fp1PNKAlKPU+B6nJyr5QDQ+GfzsGvX7rugv22 sWtkflNLNeNV2q1q0xE908pGOKJCSvDEKxVS4MIEn+NhveKWfxyRykpP3eh8Rfks7Zxh gAuMx1V+/O+GUoYSmCdh25hBuj8GPqmgz+nrwIDCjvdgAnjo4/ttIRolJVgJlVw2xTpX /axw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=1ZSbC1IVWiIAbIJCUCGttQ9weksvxLPKZ/m64zctsts=; b=QlEdomrjJoCDgI6LDPVkeZ4lbMz3UN+QTmJ8tSJbtRc/spF0ZiH2llY5qss561wMzY 4QvWc/le7QD91vF6t6P7jA1o0aLbIaZUIiWrfDvTb8UHA1RVh+wI3pa3d538C0B0103f 1QtFVU2+0XQFnicYmtUoBAkqzhkK6sqsBn66tmXDaQQ76toZqtuk9eyGB2C54W9SqGnW HMht1ioMFhXEerSAqtrb2T83giWovT/mbgIVmAqKeKGx6YBmmnjB7cfrh9Ae+K6TmJAG O5orlQI4ggPN0RDbg+XvUWkVXiZjnwkkIX5e2MaktIc/bXC8+6yPhcWUjqL65IdWVL04 Rscg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux.org.uk header.s=zeniv-20220401 header.b=ju4fAjHQ; 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=zeniv.linux.org.uk Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 11-20020a170906310b00b0078dad42f75dsi802221ejx.475.2022.10.24.16.05.16; Mon, 24 Oct 2022 16:05:41 -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=@linux.org.uk header.s=zeniv-20220401 header.b=ju4fAjHQ; 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=zeniv.linux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229874AbiJXWvF (ORCPT + 99 others); Mon, 24 Oct 2022 18:51:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35518 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232054AbiJXWuc (ORCPT ); Mon, 24 Oct 2022 18:50:32 -0400 Received: from zeniv.linux.org.uk (zeniv.linux.org.uk [IPv6:2a03:a000:7:0:5054:ff:fe1c:15ff]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 12F0731FBFE for ; Mon, 24 Oct 2022 14:12:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=linux.org.uk; s=zeniv-20220401; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=1ZSbC1IVWiIAbIJCUCGttQ9weksvxLPKZ/m64zctsts=; b=ju4fAjHQPvtRj0VSkVMoxApNoB 1wijSIHHMCXnuPu+LDpyBemfdp+fekCYc4yQ9VtUZMkhpP7uvfzl9UBXIByKtz71RAqUC2rZhGeGh 4c0dX+ZxvbLL1wOW3rySXt7YfjkNKXoh4VngVdC4bnF7dvSCViFzuV8/1CQsWdn5xTT9aaikWgryQ d3quMb82+Oa6f6iMum8dmR7E5sC6lUYK6Iq4rOlrdaOzfi7VaQoqW71NlW2jy/TeMu6B3VrDCKqv5 Zk3d4YUE7pHyw8C+5W5w2KHAvYBZbM45jsxy3c2zLf8HQRcLR6GrT8Zv0kMDBva2txm89spfFQ8EU /Vh9PocA==; Received: from viro by zeniv.linux.org.uk with local (Exim 4.96 #2 (Red Hat Linux)) id 1on4jQ-00DaDF-0m; Mon, 24 Oct 2022 21:11:36 +0000 Date: Mon, 24 Oct 2022 22:11:36 +0100 From: Al Viro To: "Jason A. Donenfeld" Cc: linux-kernel@vger.kernel.org, Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org Subject: Re: [PATCH] ALSA: au88x0: use explicitly signed char Message-ID: References: <20221024162929.536004-1-Jason@zx2c4.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221024162929.536004-1-Jason@zx2c4.com> Sender: Al Viro X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,SPF_HELO_NONE,SPF_NONE 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 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...