Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp221602pxb; Mon, 8 Nov 2021 12:31:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJzwOYJe2Iv3PV89rw/JIchWIcgVMknjRRe1fL7vsRg5bTMiylicbi27DoT2zAANbNvm8rTL X-Received: by 2002:a05:6402:d0a:: with SMTP id eb10mr2397651edb.187.1636403460990; Mon, 08 Nov 2021 12:31:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636403460; cv=none; d=google.com; s=arc-20160816; b=dVt/PSv/uBT8ayfJ6pyw8gH3yUMWrtITrgZ/DyqxbK8yg8M0CJCWjc/FFJyJJDSDEc RX80dCvF8g0sjaLNm1MVg8Wxi9OQqa9Gne/IHfRnGsYokGRqiG9UICMoy0GutpxpbrKb 1OIfgjaTUwtK1vMn/e8DWfvqsca3STc+h+3BC5Q3z1nM3D8sCmhg0DBVYBYnB76kY/P4 /vMLXizEsOE6mc1D1UXVc1t9bU5KAYm/cKzY2bcu3K6gnU5xD6D+H1FwawJzLSNBioJe Vb+WM/LX9r5qxTMSscSq98zWK/oUroQzj0zhhJUxZdoC/6FfVGk91AHO2PwGGU6odZXW gClw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=heTz3WWopQdlyeyTbiv4HofbaOffgi7t27UZJPDGQ1E=; b=AuLw5K2gVC8zEC0EgvBLhb/3rLtixnKTfwSCZHm9SemhYZ9QPv4Z+fDlpqrHrCid1y SPY0hzhTCYVPsNQOobMSgPxaMyC4pgH0fC/vxfwEaQ03Vwi8FFj95bbBidqDT7A8ahRt FFAinJUF3YxP6b7gA3YtrZIWVuP7Dz2naiPydLXtlabXB3pQbZ1+TCAVB0Sy46EPuClW 9dxxsg2iYeu+7eMS5MdgmRanC4JDeabSHPkHdFfe3STXNacUKHE0j1PfVX21iBjpg1VO wywr0bBTF67t1xVlvobKFRHWw4lM74lM4U8/XypYfxJqdCmwZvSJUNatM5C++bOB1tTD 5cDw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z7si37671194edd.108.2021.11.08.12.30.20; Mon, 08 Nov 2021 12:31:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239772AbhKHQ0G (ORCPT + 99 others); Mon, 8 Nov 2021 11:26:06 -0500 Received: from mail.kernel.org ([198.145.29.99]:59728 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237287AbhKHQ0D (ORCPT ); Mon, 8 Nov 2021 11:26:03 -0500 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E868D61284; Mon, 8 Nov 2021 16:23:14 +0000 (UTC) Date: Mon, 8 Nov 2021 11:23:13 -0500 From: Steven Rostedt To: Borislav Petkov Cc: Alan Stern , Geert Uytterhoeven , LKML , Arnd Bergmann , Ayush Sawal , Greg Kroah-Hartman , Rohit Maheshwari , Vinay Kumar Yadav , alsa-devel@alsa-project.org, bcm-kernel-feedback-list@broadcom.com, intel-gfx@lists.freedesktop.org, intel-gvt-dev@lists.freedesktop.org, linux-alpha@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-clk@vger.kernel.org, linux-crypto@vger.kernel.org, linux-edac@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-hyperv@vger.kernel.org, linux-iio@vger.kernel.org, linux-leds@vger.kernel.org, linux-mips@vger.kernel.org, linux-parisc@vger.kernel.org, linux-pm@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-remoteproc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-s390@vger.kernel.org, linux-scsi@vger.kernel.org, linux-sh@vger.kernel.org, linux-staging@lists.linux.dev, linux-tegra@vger.kernel.org, linux-um@lists.infradead.org, linux-usb@vger.kernel.org, linux-xtensa@linux-xtensa.org, netdev@vger.kernel.org, openipmi-developer@lists.sourceforge.net, rcu@vger.kernel.org, sparclinux@vger.kernel.org, x86@kernel.org, xen-devel@lists.xenproject.org Subject: Re: [PATCH v0 00/42] notifiers: Return an error when callback is already registered Message-ID: <20211108112313.73d0727e@gandalf.local.home> In-Reply-To: References: <20211108101157.15189-1-bp@alien8.de> <20211108101924.15759-1-bp@alien8.de> <20211108141703.GB1666297@rowland.harvard.edu> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Mon, 8 Nov 2021 15:35:50 +0100 Borislav Petkov wrote: > On Mon, Nov 08, 2021 at 03:24:39PM +0100, Borislav Petkov wrote: > > I guess I can add another indirection to notifier_chain_register() and > > avoid touching all the call sites. > > IOW, something like this below. > > This way I won't have to touch all the callsites and the registration > routines would still return a proper value instead of returning 0 > unconditionally. I prefer this method. Question, how often does this warning trigger? Is it common to see in development? -- Steve