Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp6365674pxb; Mon, 8 Nov 2021 07:28:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOZ3PQW+MUFHJPhRHtYwpMnv81mgpAM21b3EXwkOdnq7mR56qlT0oQNvCQRs6CxgfDF9rd X-Received: by 2002:a05:6638:238b:: with SMTP id q11mr311912jat.43.1636385288386; Mon, 08 Nov 2021 07:28:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636385288; cv=none; d=google.com; s=arc-20160816; b=kzdTkT21b9ZHvwMzrYtFOqptNOgrvMZaj7MuZ6y56hK8AJL0d8BTen8faSglod70P6 CHRSUEER0fIuvj6sWxDNJgOnvjeMweoO0o5m1lYJjegW42ZuKDJCuZtoJBayoqF2JSC7 +/P2aAX6ejdnbzolxkEoLXnvBO0rO15p4KialF3EZzrXKLwFBg4gMIOG+X1VsmHALoVk RjnmraMLJbn2qOVKHn9TGRHYb0OKxdHWjtckIFFIoJuNtghUxanppX43pDy/3KxPnRU5 9rEnZQBU7fM7KSlyJtEJGLMWNo3EbXFnKNKcNVLfRyJM9sxvae6spXXmXL/LijyoeQPP sVJA== 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=I5C5KaPMNkId+WvkDE2ITw4GnQtUUojtBVUD4mzClAg=; b=roiB/5zF8vhKDLHFm/T5mMzIQkROoK2LJ53c122EqzUSiQiql4e1pDg97paeJEl5MI C5/9F8cQuvK5oliXyA/H2boLvWlpfFJo5IzJcJ9OJbdSTC44n66RrZoctvB/z9RM0IgL 8HiP550h/8hlDDF9PU+CjHbGUd3npuo5nGgHcPGbX4gKavXOCi3OKpVtWP/xfK6N+cMW Bi1N2uR6PTV1LBF442IT3ZILs9P357QAktRpYcvUK1xYZDMK/F0DB5ki+hDQJv58MH6d XvaqOcyAXRvNqb0bET43aRDXup8McQVHuF7T0a4Iis9W9AfuvGoUn8474COM3x0geXiz YeJg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=EN2uwZY9; 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 t34si32874538jal.104.2021.11.08.07.27.55; Mon, 08 Nov 2021 07:28:08 -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=EN2uwZY9; 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 S238670AbhKHKTl (ORCPT + 99 others); Mon, 8 Nov 2021 05:19:41 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38556 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238642AbhKHKPj (ORCPT ); Mon, 8 Nov 2021 05:15:39 -0500 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7926C061220 for ; Mon, 8 Nov 2021 02:12:39 -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 79C881EC052A; Mon, 8 Nov 2021 11:12:38 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1636366358; 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=I5C5KaPMNkId+WvkDE2ITw4GnQtUUojtBVUD4mzClAg=; b=EN2uwZY90FbtAenrLusETZ3c0OEaf5+STGYUDETB+fuklFOUEFa7DeVXNq62rkLLcGVNQb fPItqHAzoGFy6tn5apT2TCpeseVK37U5/jxs/CYJZlUjdAxSFdWi+REUqOL054G1vt4UXc oaLrEH5Y7zyf/Ts1UqhrFVPA971QQCw= From: Borislav Petkov To: LKML Cc: linux-xtensa@linux-xtensa.org Subject: [PATCH v0 38/42] xtensa: Check notifier registration return value Date: Mon, 8 Nov 2021 11:11:53 +0100 Message-Id: <20211108101157.15189-39-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-xtensa@linux-xtensa.org --- arch/xtensa/platforms/iss/setup.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/xtensa/platforms/iss/setup.c b/arch/xtensa/platforms/iss/setup.c index d3433e1bb94e..00b847e3cb76 100644 --- a/arch/xtensa/platforms/iss/setup.c +++ b/arch/xtensa/platforms/iss/setup.c @@ -81,5 +81,6 @@ void __init platform_setup(char **p_cmdline) } } - atomic_notifier_chain_register(&panic_notifier_list, &iss_panic_block); + if (atomic_notifier_chain_register(&panic_notifier_list, &iss_panic_block)) + pr_warn("Panic notifier already registered\n"); } -- 2.29.2