Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp2877827lqp; Mon, 25 Mar 2024 11:45:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWmQ9LUqXagPsSl3QE+E9ApZA+1kn2cslos7XGinnT3axoQL5tGZZCWvObbulgrDpBGE2QBHTkQZ8pFQjGBU4c+Cg7MGIFGMg49vkXHCg== X-Google-Smtp-Source: AGHT+IFShkmiexWgNGAeaYxNibyi/pWRAzH8qWkUJ0O5n1HtP7frQKizcz4+0LQkosBixqgEr0cP X-Received: by 2002:a17:906:2b15:b0:a4d:d87b:e04e with SMTP id a21-20020a1709062b1500b00a4dd87be04emr529966ejg.56.1711392313155; Mon, 25 Mar 2024 11:45:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711392313; cv=pass; d=google.com; s=arc-20160816; b=fH5Twd8wbFrWQkLwMHjgQVydn0Ge2DLqScmgQ+A7susnD7PeezvN/P5k+p2AgSIiG8 PHMixsJm6usAJtFpFZYpI/nYMB6cKBsbOPNJJ80J/5Fwfot12HFOKDFScKP2Qqy8Mach M9QFaf2bX4lqKvxQS5qpJ724p+kkuvQyxj84w/9Dn1hEQ3DoAHZK2IioALjyThS3rt15 4azeEn2/awizxd9E6n4rswDW0PX1JtR1dQknQg0PeLN1FjJgdSMPYHQ0pp3KsZ2Kje6d 9GUyspexhSzJosHy+zkwGdZ946imQxKvncSpWOQ13CMAa4zr9Q8r7EcOyEQ439KvW194 Dh/A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=kiunE8pTzAniAwJdofUTsPhWLKKG+ApktTjbMuShmFk=; fh=w5CeUxySxsjN0qpt85let3nMCpxpn4qszuePuvbSnf8=; b=GdcaLgv1e1O1ykfY8oQ3PG0DAkqfCQxWmFYrh9Lg9S7VmasQNUhn2mlrHWeHRfuXJq Kd7qNbw3Y40Kftpz0fvkW6KPEjo5jwGjWslBbjAuUDnTCUAisf19q3CPo6LXUfLml7wN e+ay7fDHMruTqMiuJkUKynKgjRAgkzh5WL4KeB1e/SQ9zG1ph/020sD+HW83PuLb35Vm bWGCO8pYQut69VCEEAJGyScTuq7Atsi1VqhfV0Ob9LuDmu8/yp0CFINK0HfoUN8/4f+3 /AxRtAZYJd9tB3/4T/63XMFueOI+Y5yHK4RUcMU7vA42tWtRKP9ZUjcdZnlYkCyavzSV B9XQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qi2sAHgg; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-117707-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117707-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id me13-20020a170906aecd00b00a46f569aab3si2692916ejb.686.2024.03.25.11.45.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 11:45:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-117707-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Qi2sAHgg; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-117707-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-117707-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.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 am.mirrors.kernel.org (Postfix) with ESMTPS id 3973B1FA0E70 for ; Mon, 25 Mar 2024 18:42:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E9E4454747; Mon, 25 Mar 2024 18:28:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Qi2sAHgg" Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) (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 6F2F35676A for ; Mon, 25 Mar 2024 18:28:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.51 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711391321; cv=none; b=IXx4JmFMlUXh9R9pcJvrqyuPUgKBvnVh6jxlc6V4sdijw+EkoF1XOZwafI5+3oHfJAmBQrd85gHyIS8c3ohCCNYz7DMYV9MkGPSw5/xbEf4DUjPEfyTzB+v9EfPatV3Px19n216FHZlbRVeaK1JDWTlB3nm9t16VnG5QpYv6iRY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711391321; c=relaxed/simple; bh=0HOnkjXWwiDTZizF5waT1rnlf2JjeQP7eZRutOD0bT8=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=gGt/ylk1OEwNtrUN9q7nN/TBzTMT1fgJlVo90/tjftxKiB+Ao0r3Cn8j/OjqoqjHk781F04lkqPh01rbWnQzSnEIwermWDpHo94CClmzNxLVDdPYkV4JOzn7ayIs+46PS/DClDbfdGDnYX8nIb/VxK/frRU0oq48dsjpK16W2SQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Qi2sAHgg; arc=none smtp.client-ip=209.85.167.51 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-lf1-f51.google.com with SMTP id 2adb3069b0e04-513d599dbabso6116775e87.1 for ; Mon, 25 Mar 2024 11:28:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711391317; x=1711996117; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=kiunE8pTzAniAwJdofUTsPhWLKKG+ApktTjbMuShmFk=; b=Qi2sAHgg3apWcmsNi08xOLdfTGZLDR+uH30vv+aCrp+ybMhCsiMCvIrTyoNc0lARTa +3Xf3dhEJUtflFpdAvNa7Ut5PK0nFSMoyMg2sXhSlXrKPxlQDSWSv8ASTE0+RbKT+SJi qxWyEPjhvs16mxncaY8r4X9QfxNgpQZx+VqgZNIyOs6RQpn/4sMiMxTrx22VvBUFlbmD SA11FVYky/5ZEs2RkEWrJN7R2Ox6+fOIswzbSBTgAUZL2C3LuhxCx6MaDSQUkqpwBI01 FinWwR7CVubRyk+x28kV2xMzj/+VpGscxdScn3qvwmIjQlm2DSXQW0jDqJhl8QUKxoZq EKgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711391317; x=1711996117; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kiunE8pTzAniAwJdofUTsPhWLKKG+ApktTjbMuShmFk=; b=VGnjSKwTQnRoQRfTffT/U9vraVyjWa5K3zocSdd2+ZPMPokcPyCKADUVtMWjix1RUU KJLve4gdAKxYVg4JAmaW4I2XNVwbw1G3bDMtp44eZfU9kL6LPXq9ohTVj6zZKWtlOhpE TjGrnuUeSuy7/WCmrV2xVMQo/mj+oteN/gVxQVB3vITkiUiCavVP3UCe1x6HEiQdchS8 eBoa0Hy9YEazeQsAJ1lujpNlE1CggCSq5lvLwJ3d0gUl8VrECn4osjSVIRYzg3Bu4arZ Y/gxj5QGaOK4szOm/m2rsM6+FBDWaP5rmKRd3Rmeu9HYuIpSRcqMVjFvi8sBGFTii7by qlQg== X-Forwarded-Encrypted: i=1; AJvYcCWqL51hHKpytBeF7xZMpi3/OFqbnm+IEVYlp6V4tLlSNCqMsVv2TyUEutVnbmnLW4+AufbW9gATo4kH+EQNHTprFkYYMCr3Z8irCpIB X-Gm-Message-State: AOJu0YwHA5cE/mKaNQOkoGF53l7gfel38Os+T98cobBgQNU7J8LdsIBO FQgiOhTsFvtgz2th3JeqCRzjj364oFHX81YjkqCQZPO4gX+BZ+/FWa0MIz3wKNc= X-Received: by 2002:a05:6512:e86:b0:515:aa18:4b0a with SMTP id bi6-20020a0565120e8600b00515aa184b0amr4057714lfb.25.1711391317300; Mon, 25 Mar 2024 11:28:37 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id a10-20020a170906244a00b00a46ab5aaffcsm3320007ejb.178.2024.03.25.11.28.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 11:28:37 -0700 (PDT) Date: Mon, 25 Mar 2024 21:28:32 +0300 From: Dan Carpenter To: Johannes Berg Cc: Boqun Feng , rcu@vger.kernel.org, linux-kernel@vger.kernel.org, "Paul E. McKenney" , Frederic Weisbecker , Josh Triplett , Peter Zijlstra Subject: Re: [PATCH] rcu: mollify sparse with RCU guard Message-ID: <35355d02-3eef-4860-847b-b7bbf05f4a31@moroto.mountain> References: <20240325101626.41584-2-johannes@sipsolutions.net> <055111792727869a98c1fa693014e0b6f5d256ea.camel@sipsolutions.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <055111792727869a98c1fa693014e0b6f5d256ea.camel@sipsolutions.net> On Mon, Mar 25, 2024 at 05:41:22PM +0100, Johannes Berg wrote: > Also __acquire()/__release() are just empty macros without __CHECKER__. > So not sure the indirection really is warranted for this special case. > > I can add a comment in there, I guess, something like > > /* sparse doesn't actually "call" cleanup functions */ > > perhaps. That reminds me I forgot to CC Dan ... > These are Sparse warnings, not Smatch warning... Smatch doesn't use any of the Sparse locking annotations. Smatch handles cleanup basically correctly at this point. regards, dan carpenter