Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp430267rdh; Sat, 23 Sep 2023 17:53:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGCCGMKHLoy30QRg3z0P07B8lmFiaABJpOtq1+mHIJAd4hFuax1ZZNQDvBgbh2Dheb7gNxz X-Received: by 2002:a05:6358:98a2:b0:139:b4c0:94d with SMTP id q34-20020a05635898a200b00139b4c0094dmr4460275rwa.12.1695516837889; Sat, 23 Sep 2023 17:53:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695516837; cv=none; d=google.com; s=arc-20160816; b=HnzUvRSag1TiUVWike/zxY8ODGKLEOvcY85Pgmx4oKaK/z/pJ/NHC81qmd7MWorRA9 AWIP4yDVe+VcrYR5dvZ3qxCLEqe6yqXLwJXUXNviaFAf0/L17sRchjGnvo7bIL9h1EtN Nxqo7mr92Or8Vz8rmr2xn25uQ3yk4dEC1v4g4Ri40VlkoxCDadtM7R/SXJjC1Bdm//Sl w5LZlRb2Ra7vuO9l44p68n0XHvGOm/f1GkD+L01uXAaVyqFiwK9giLAd1pj18jonlUNV JQHWazYXmowI9+gU7NdaqwjlVOwdsUnn24UP8O4xrHdqe9sBr8ZzC6RX9oi6VNDMA7Yq Pg/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:content-disposition:mime-version :message-id:subject:cc:to:from:date:dkim-signature; bh=E077wAdyEkVySS1+LXo/H+AZNFp/cAK0I9hfQH/1Dmc=; fh=8gm/PhwTPk0+K4zvEl8mxa5uyPlHkGuhHeYgwGwu1og=; b=krt8enMs5P115+9Z/U/d+sUd0DNIH0TVGcHne9w+vmaokt5zQqPgP6SwBMttDwKbDA TnmYlvnGYgCySclCN5BAIoJ49ALQRHN3RZ+VwZ/QOtFntpQw7uROFa0/E7wjlZjPDX91 RNcNHlMfSMN5fvRaoSAi3YRvq4WV4ZipIyW/ukWnkMZ6jSQoCGWG1EXFb/uMhJ2pwxau raY5Ke8pP9y5ko4tVXw0sdTlpHFNToXSPVxkOkPkltx598DJjKNIXcRAfw6YaBKrae5C ZRXzl0iUvwTakExbqfSErwQcREDysBePqtRAGQlYVV7NsErEv/uwl8h2/Lnht25qmZAO yK5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@treblig.org header.s=bytemarkmx header.b=bfedigwJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id u1-20020a637901000000b0057414fa789fsi6662128pgc.503.2023.09.23.17.53.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 23 Sep 2023 17:53:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; dkim=fail header.i=@treblig.org header.s=bytemarkmx header.b=bfedigwJ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 9627280EA786; Sat, 23 Sep 2023 17:53:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229600AbjIXAlV (ORCPT + 99 others); Sat, 23 Sep 2023 20:41:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58038 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229450AbjIXAlV (ORCPT ); Sat, 23 Sep 2023 20:41:21 -0400 Received: from mx.treblig.org (mx.treblig.org [IPv6:2a00:1098:5b::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 228F3FA for ; Sat, 23 Sep 2023 17:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=treblig.org ; s=bytemarkmx; h=Content-Type:MIME-Version:Message-ID:Subject:Cc:To:From: Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description :Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=E077wAdyEkVySS1+LXo/H+AZNFp/cAK0I9hfQH/1Dmc=; b=bfedigwJ9dJryvC4sxxFFrruxQ UOiofSrSMVdXPlnjBepLh3H6VOO+KwQglGV/5VOxNXVfH+eWgCJ+kON0tlwvmf7lsaTKJPI0nbbmD Wo/BBRhvWlq9TiEC9e9TZkgdwDNxgCDditCaJ53zTQgfCIoDUvERXrOV3UdkPK1pDQJWMnODNccm+ 7WDwMLtnTdBAr9i7tSlOgIxE0WkSgRrWqTbXgj52Etmjy0JKnkJzY9q3/wq4cOdscVtzSXyRUVngK HiE8TcxifIB5wmGw6pQtu3Q1W4lLHHmNeujcWy9WSChZyZCElKns30wvHxOdPc/wfBsqFEC7vSfvN yR6nmSOg==; Received: from dg by mx.treblig.org with local (Exim 4.96) (envelope-from ) id 1qkDBL-0018ci-19; Sun, 24 Sep 2023 00:41:07 +0000 Date: Sun, 24 Sep 2023 00:41:07 +0000 From: "Dr. David Alan Gilbert" To: matthew.brost@intel.com, mgreer@animalcreek.com, krzysztof.kozlowski@linaro.org Cc: linux-kernel@vger.kernel.org, airlied@gmail.com, intel-gfx@lists.freedesktop.org Subject: ERR_PTR(0) in a couple of places Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline X-Chocolate: 70 percent or better cocoa solids preferably X-Operating-System: Linux/6.1.0-12-amd64 (x86_64) X-Uptime: 00:32:50 up 8 days, 3:31, 1 user, load average: 0.00, 0.00, 0.00 User-Agent: Mutt/2.2.9 (2022-11-12) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Sat, 23 Sep 2023 17:53:55 -0700 (PDT) Hi, I randomly noticed there are a couple of places in the kernel that do ERR_PTR(0); and thought that was odd - shouldn't those just be NULL's ? 1) i915 drivers/gpu/drm/i915/gt/uc/selftest_guc_multi_lrc.c : 47 if (i <= 1) return ERR_PTR(0); from f9d72092cb490 2) trf7970a drivers/nfc/trf7970a.c : 896 trf->ignore_timeout = !cancel_delayed_work(&trf->timeout_work); trf->rx_skb = ERR_PTR(0); trf7970a_send_upstream(trf); from 1961843ceeca0 Dave -- -----Open up your eyes, open up your mind, open up your code ------- / Dr. David Alan Gilbert | Running GNU/Linux | Happy \ \ dave @ treblig.org | | In Hex / \ _________________________|_____ http://www.treblig.org |_______/