Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp7642314rwi; Mon, 24 Oct 2022 18:09:00 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5Kax4g1TtcacEuIiNzV49ocijbl1BwM602xUnR69Jq5wQZLJ/Dm/+Yec4/eowvmlCw5GwX X-Received: by 2002:aa7:c648:0:b0:461:d9b4:687e with SMTP id z8-20020aa7c648000000b00461d9b4687emr5497145edr.91.1666660140436; Mon, 24 Oct 2022 18:09:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666660140; cv=none; d=google.com; s=arc-20160816; b=vGCv3a9sfYa7NkJP3vkR7MawSthTdyQW+JRshhjiW8AtrXSRukQfYnJoZuXYtYIy71 I9bJKRUYyuwPmrWAI6PvU3ure1arKVn4mA7VDBD5lgolqdHJE5ru9GtLiX3GUtI/VQsx qayUAhjzKStpVXMHFI/8OicXM7VNijQl0VQSQA8BRQkgMrHYrdLYweuMntJVJzJ6ovhN 7waN9IIwFXhSqJsGcDDJwLXF6s+CYec89XXjmDzJRkVQ6vCrX6ZtqB4riooSVGAU7ty+ AQfsM1KWC63Y/hPpfgWtUdXO4LZIB0zt8vm35zeOjwqegG9QYBjujqDDHMov/ZiCJwpt smbA== 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=e6ouPlU6BGs4kPFwrmXeWjPLmjyMG2MThW4WJxW1s7s=; b=QvsoQ5bENTYYwMg+7/SKXNy9ARldjHNB3TW0UN0ACEH4aF+adrkiveTPsCJ38yJVjG EVB7ggPkkpnYnr0eNzljmemXRrSDgzpmUpk1Dccek4Enpa7nXT40EExrmgJFbjo3o+vF CkEnavYH4w+KYZ3vDdw4ZumgipVik+1KwjDdY/jx9P+Wqo2ViRNN4LMl0Lo991bxNhWx uSRk0KXU8WtI6YQuF3w+eIU705RlnpqH/g+SpSRPDO1u2l7nNsY5XkbxFg9mYUm1CIlE cvtcySpzng6CiMXZcu96oD3otI3CrR8CH0+JRnH/IzskdC0mv3fvtDkcgalb/+rFiB0O Uljw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@zx2c4.com header.s=20210105 header.b=pWW9K8vh; 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 o4-20020a170906974400b007a66031d2dbsi1543748ejy.718.2022.10.24.18.08.35; Mon, 24 Oct 2022 18:09:00 -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=pWW9K8vh; 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 S230064AbiJYBDW (ORCPT + 99 others); Mon, 24 Oct 2022 21:03:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230232AbiJYBCt (ORCPT ); Mon, 24 Oct 2022 21:02:49 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E25176426 for ; Mon, 24 Oct 2022 17:00:08 -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 sin.source.kernel.org (Postfix) with ESMTPS id 532C7CE13CE for ; Tue, 25 Oct 2022 00:00:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 74BB1C43470 for ; Tue, 25 Oct 2022 00:00:05 +0000 (UTC) Authentication-Results: smtp.kernel.org; dkim=pass (1024-bit key) header.d=zx2c4.com header.i=@zx2c4.com header.b="pWW9K8vh" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zx2c4.com; s=20210105; t=1666656002; 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=e6ouPlU6BGs4kPFwrmXeWjPLmjyMG2MThW4WJxW1s7s=; b=pWW9K8vhmx6hLrKIXvek8LsHCDkuswwo10zuOMeGTRGrWVUzvBTZFfdqJt9q4uX6gpGm6O w08+t/qymWPsTJYHo60ToERIBwjsXbDDGyqmOAKfAQvG7NEBx6p//dadLs/rg0Jzbjj113 gRs8RsQki54FTm0Csnarmxo4VAk9V1Y= Received: by mail.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id 81e92919 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for ; Tue, 25 Oct 2022 00:00:02 +0000 (UTC) Received: by mail-vs1-f43.google.com with SMTP id k67so9432139vsk.2 for ; Mon, 24 Oct 2022 17:00:02 -0700 (PDT) X-Gm-Message-State: ACrzQf3AxKarIoqyH3zbAWZmtCPpxXeyBI747otupe/cfqdQRZW4KIpM 29YD2harVZr4s0npxP8fwpnr9zKrpOzWHTdFDhk= X-Received: by 2002:a05:6102:411:b0:3aa:329e:18c8 with SMTP id d17-20020a056102041100b003aa329e18c8mr1060016vsq.70.1666656000860; Mon, 24 Oct 2022 17:00:00 -0700 (PDT) MIME-Version: 1.0 References: <20221024162929.536004-1-Jason@zx2c4.com> In-Reply-To: From: "Jason A. Donenfeld" Date: Tue, 25 Oct 2022 01:59:50 +0200 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] ALSA: au88x0: use explicitly signed char To: Al Viro 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.8 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 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 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. Jason