Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp6361323pxb; Mon, 8 Nov 2021 07:23:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgfTeJSUxysWr19b0V5U9Ij/vg5UAG0wNL/wqsfQuvtWQnmlnf1it7cfVOFonuaNQHTFJY X-Received: by 2002:a05:6402:27cd:: with SMTP id c13mr415251ede.365.1636385030687; Mon, 08 Nov 2021 07:23:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636385030; cv=none; d=google.com; s=arc-20160816; b=XXf8HZdC4erBL7f46G0wl9JJdgOE0NDwwSKSjNOKrwu1JwNGodS7GFOObtWDChU2s3 UYx0PAgNg3F2iwC59Qrb8U/KmdzxxAmjcedpPb+2FRySdRNrojp9DB6Memy0s/GiVtUs sqsMEEhLCzhliOraD80FJpd8p61h4CPbhJdbEzrBrcjvFLTNLsTqrQ2rj5s073wa9yrZ onSY3HwLdh4UhMVW8BOsxEE7eOJIaXddX7+NWpH1jHjlr9GNMZa4/hn19eWdsDe3NPAe BeQmkocmUSgOXwF71uO7whyeqRsMcMyAe3m6QFdyZWnu8xTpPlfIR7WX5MgNdpnHetsN KhRA== 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:date:subject:cc:to:from :dkim-signature; bh=0YFBkgqdyQLeiLHHptUCQ5vO3EksAALAsAlozqYl3To=; b=bbBfSKyEyXNYvNErUVvyvORcWjXWghsG5eJxowABjvjRKe8sDThtFul4A8+a67GFi2 PdD/xKEIOjLXjEIL4FPi/u+/r0EEOtsuW2HPt7nQtTa+MECl2cCQxOUosKl+l0hTOvvl o92fbY11AsAYvL0s/O9v5pJaTIyxDCogp5QyII0dEkaNrg59UZWVN/3uYSpdXoM1D5mn QOX3huZvVMb2RFLOJDX1a0rpvIkznVdvTB9wzKkhTgo/+lyZAS8lOZdIhmpSate+uQNP xK8oeZl1J2cCSOGWcag9MBDDPMkj/j0cuDShEZgNVlT5C2EzlQTZLOjY+Ri3FzpaeS3t ubmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Tqhuf+E9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zh8si9846121ejb.248.2021.11.08.07.23.26; Mon, 08 Nov 2021 07:23:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Tqhuf+E9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235860AbhKHKSq (ORCPT + 99 others); Mon, 8 Nov 2021 05:18:46 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238627AbhKHKPf (ORCPT ); Mon, 8 Nov 2021 05:15:35 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 126E6C06120A; Mon, 8 Nov 2021 02:12:30 -0800 (PST) Received: from zn.tnic (p200300ec2f33110088892b77bd117736.dip0.t-ipconnect.de [IPv6:2003:ec:2f33:1100:8889:2b77:bd11:7736]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 9ECB41EC0516; Mon, 8 Nov 2021 11:12:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1636366348; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=0YFBkgqdyQLeiLHHptUCQ5vO3EksAALAsAlozqYl3To=; b=Tqhuf+E9i6F9aPsu5EzSDHAVP0zIH9DC9Xgq7vOLzlAdtscjDgLgDqNd8ckEkEVPt1CuW0 oOFQRNgz1Xg1tUzPRwEsfv6+p7YaULts8Bf0xfNOLHI2VOGQUb4nyxukiZu/z5elSbJATk yCaX/8WtCnKs5iqX5Xsy8846UHOpUHA= From: Borislav Petkov To: LKML Cc: linux-alpha@vger.kernel.org Subject: [PATCH v0 26/42] alpha: Check notifier registration return value Date: Mon, 8 Nov 2021 11:11:41 +0100 Message-Id: <20211108101157.15189-27-bp@alien8.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20211108101157.15189-1-bp@alien8.de> References: <20211108101157.15189-1-bp@alien8.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Borislav Petkov Avoid homegrown notifier registration checks. No functional changes. Signed-off-by: Borislav Petkov Cc: linux-alpha@vger.kernel.org --- arch/alpha/kernel/setup.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/alpha/kernel/setup.c b/arch/alpha/kernel/setup.c index b4fbbba30aa2..520c08031137 100644 --- a/arch/alpha/kernel/setup.c +++ b/arch/alpha/kernel/setup.c @@ -465,8 +465,9 @@ setup_arch(char **cmdline_p) } /* Register a call for panic conditions. */ - atomic_notifier_chain_register(&panic_notifier_list, - &alpha_panic_block); + if (atomic_notifier_chain_register(&panic_notifier_list, + &alpha_panic_block)) + pr_warn("Panic notifier already registered\n"); #ifndef alpha_using_srm /* Assume that we've booted from SRM if we haven't booted from MILO. -- 2.29.2