Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2163217rbb; Tue, 27 Feb 2024 12:41:18 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXIxNjnRMCmfHN8t2liT6D0XDSVFP7UogMJqbNVOB1L9/KrFVu0hvNeLVxLTSX7LvcXyMxy0vVoI5pEa2aFvG3Yv5jV3FehvYLb4CggPA== X-Google-Smtp-Source: AGHT+IEiS5WcCK5LrJ+OLR5fAZU76F2fPkhDAHQNmL4LN70lD6IOtW0kP6KwaVFZUTd4v3HcnaXq X-Received: by 2002:a0d:df57:0:b0:608:b68a:3317 with SMTP id i84-20020a0ddf57000000b00608b68a3317mr3212276ywe.14.1709066478408; Tue, 27 Feb 2024 12:41:18 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709066478; cv=pass; d=google.com; s=arc-20160816; b=FIKEr8/2T1/CBglupvhh//MC99aDnvAtpQsBmja6obcPaLT5RSFeyi2SezC3Mfcegu BWTIr8cPitj+cKzGRW+yMWiGvUfRGwTe/Lcm2Evfl+IC1VSlJ3Kw4orOMa2rGuydylJU thshmcMm3mRB6O3hF3nttWEmjovE/ytHxepCuZ6gjrE7rPutieovDN3fCG9BFCR2iNRh jvix2yAdKVD1BOHG1Suqq2P6NqjVHsrplqdU9wl+EnDouos1ZRDEWGwdaGFP8/LcYOqZ XvCahrnAmJLhhAW2ZVbTTyYnqELzTqDoEPe7cLinMcy7E8YhN+Okd30dkY61xC1BpEkd aSGw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=juAeacRch3k681Zfd2bjBuM8kFMkd14jsXtMgJ5fuGM=; fh=R3ZrsPs7Lq/WHIiYxDcNrf+w7k5/XyTleFxw91baR9s=; b=X+rqW9X/RUgUdkKs4EWHKkfiNPyqSk0pf0UrZkoo+BZApDU8bBCX0pviy9X3RxUN1X RjwHzJgvQTPwiiarpXGM7n9tCGNqfuDQYOFrqfInNoBXEB1ERqflCcUHZZZEOHrP/RF8 8IzIki5uw59KDDJ5F7Kv6NUk7CZYG+yuU/Qwr/EA9kscY+IM/gYV/vh0RJVyN9MQFXWE vsQNMxG/+WE2oq9t8UjgpUh3+ZKAY//CPdvUZcLH11jsnjCZX2SuCbwblIqwchjo5n6y +figE86tm6AV67ACs+4evctykozdqce6ceI0RfONOiF8WAc0ngYMm/TYXA2elSsZ7He1 wS9A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=PlRbB+Co; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-83983-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83983-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id q16-20020ac84510000000b0042e5c1b4f78si8147121qtn.762.2024.02.27.12.41.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 12:41:18 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-83983-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=PlRbB+Co; arc=pass (i=1 spf=pass spfdomain=linuxfoundation.org dkim=pass dkdomain=linux-foundation.org); spf=pass (google.com: domain of linux-kernel+bounces-83983-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-83983-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 25E051C24498 for ; Tue, 27 Feb 2024 20:41:18 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 605FF14DFEF; Tue, 27 Feb 2024 20:41:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="PlRbB+Co" Received: from mail-ej1-f53.google.com (mail-ej1-f53.google.com [209.85.218.53]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6E7F851C4C for ; Tue, 27 Feb 2024 20:41:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.53 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709066471; cv=none; b=IqSq5owhv21lIWmUBXsldqLCYa69wrowDrNvfgqHxdzRjAgC2PfccLGNaK1NGjxbKC0BZPi4MIUGGD9kqCSnYTEKBnrGf/uQXw20pDDVitXQS8ra3oCHr+QZ6lPMqXEeeRFefSfEhUiF4iSjZUwc0sUdKVX4ivxXZ0rxJSvMc4Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709066471; c=relaxed/simple; bh=Kc8/DnEIqj9ihyvhHXZRL9D2xQyaeIUiwEE9a//D3/I=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=GHtNmjJ7p5jpnV+kOH4z/5z96tHS3EFwsoSaB9AgMjSWBEP3dYOEbDfG8R6fdfmiVYwZaxrD9/kqIwtNjK0hmTUEu9ZWvEseoHDOAcCslDRssEG4Xn9FoW+cQQKnzwxZq3CjMUx3oftEY8scHb0ySz9S/mQ5G7wujYPAzhKQOG8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org; spf=pass smtp.mailfrom=linuxfoundation.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=PlRbB+Co; arc=none smtp.client-ip=209.85.218.53 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linux-foundation.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linuxfoundation.org Received: by mail-ej1-f53.google.com with SMTP id a640c23a62f3a-a3122b70439so593681766b.3 for ; Tue, 27 Feb 2024 12:41:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; t=1709066467; x=1709671267; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=juAeacRch3k681Zfd2bjBuM8kFMkd14jsXtMgJ5fuGM=; b=PlRbB+CoW7stIw9cye5TOSecpRUaGisFcwm3tEa6Pik5IoTBEh+3IzDopQhTLHKkNw Pexm7VxxFYMASzhPoM3KvT6yyul0FUpNlJUgNjsfal2e1AxqDfObyLiCPgcCYnHTN8Wg nHgwMVEr0ZrD+yGrZ8G0c8FWFDdRbizKV5hKw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709066467; x=1709671267; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=juAeacRch3k681Zfd2bjBuM8kFMkd14jsXtMgJ5fuGM=; b=d7dLUMpOob1o4k/8ytj8sENhOpZNuah4IDnOE17QdEvDBdSMjtIxiIl2fSuQE5AbnW GiLKgcQUnm+hN9w7FiZAw0LtdUtax7dR85v7D9UoP6QOOCCrTA6dKFRW20j2tDp6ENxb jyy+FfOpkr/OF1an/B8ZH5n42THzRWEoejJdnoOJMwBaptH8W11MsCNVkTQeKpSaAA6F 94WrAoe+AahA6y0SfBypgFU3yxvpYhjYq/MNrKqT0sgAY7nNgI6XHpSyHsjD0HgrEc03 znOCHsFpWGiIjO/lrw2PBTjRDxDhk7AamwtFoax2EomtD0923G31nXeW28B27Xg1emom TZFA== X-Forwarded-Encrypted: i=1; AJvYcCUDllMKe61oH/hWAFK3JOdlgwjhjs9G4l/2Y0/fyMI9Cm8CFZvecw1fYKN4fhQPdW/YTE/M5vGCzaSmgFq5tFnOTQCT6dJqZIHvCTsn X-Gm-Message-State: AOJu0YzV7swlNgUUwTFsfHS0HPNNBS3JXR17XYGx2XCjzLNEGSo0WHe7 Jk5A5mY7Rw4Dpd3mR7rA40jU0Zc7slTbpTgPZeBSy64nALMijy53c1SqjYmvjSGidX7GVbmOEBq m6RDZNA== X-Received: by 2002:a17:907:20ee:b0:a3f:8925:50bb with SMTP id rh14-20020a17090720ee00b00a3f892550bbmr7258022ejb.76.1709066467614; Tue, 27 Feb 2024 12:41:07 -0800 (PST) Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com. [209.85.218.45]) by smtp.gmail.com with ESMTPSA id q11-20020a17090622cb00b00a431e4d5deasm1099034eja.155.2024.02.27.12.41.06 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 27 Feb 2024 12:41:06 -0800 (PST) Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-a3122b70439so593679366b.3 for ; Tue, 27 Feb 2024 12:41:06 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCV2Rd6xgwjbL7u410jh9qLZdCva3l5hAo3uPMcX7aKLNQpm8POk6q/EmQ4CZ+cGJMk6wWFBiKwJolgtAC5TBRlUerVSjvmL+F0W/hqF X-Received: by 2002:a17:906:b349:b0:a3e:fce7:9393 with SMTP id cd9-20020a170906b34900b00a3efce79393mr6662120ejb.10.1709066466422; Tue, 27 Feb 2024 12:41:06 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <170905252721.2268463.6714121678946763402.stgit@dwillia2-xfh.jf.intel.com> <170905253897.2268463.13371523233762430828.stgit@dwillia2-xfh.jf.intel.com> In-Reply-To: <170905253897.2268463.13371523233762430828.stgit@dwillia2-xfh.jf.intel.com> From: Linus Torvalds Date: Tue, 27 Feb 2024 12:40:49 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/3] cleanup: Introduce cond_no_free_ptr() To: Dan Williams Cc: peterz@infradead.org, gregkh@linuxfoundation.org, Jonathan Cameron , linux-kernel@vger.kernel.org, linux-cxl@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Tue, 27 Feb 2024 at 08:49, Dan Williams wrote: > > 5/ cond_no_free_ptr(rc == 0, return rc, res, name); Ugh. Honestly, this is all too ugly for words. The whole - and only - point for the cond_guard() is to make mistakes less likely. This is not it. This makes mistakes unreadable and undebuggable. Linus