Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp259819ybi; Fri, 31 May 2019 00:44:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqzTBGO0s8gqrQVrqE4UG8+IZsU9XtWhicejRUJxSWb5IBftRjKihQlzEBIfv0NQN1v/Z8pf X-Received: by 2002:a17:90a:ba81:: with SMTP id t1mr2347003pjr.139.1559288683808; Fri, 31 May 2019 00:44:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1559288683; cv=none; d=google.com; s=arc-20160816; b=vd23ukYouLYqpx92kTt3rd2qQZlSMKBK2ituRPzSZ5+TibTSSVj5PqN9n4CqIKN9x0 ZBnZEehHBYRk8TNwllemLDSiSr8PUQKiomKwMKIgSqiPuxy1Izj/lvlq3N7oIv5/sX0d a3SlEPlygiNIhgKq0NSDLEknBXZ/cpZ5ndvjcWvPAtUxRxOua4GzgHsdGFDNVGELDTwS S7o6GcIQ93JK46SGMNIYdIA2JwgqmQHyT4isGsi2hnGUNb3FC2jUoVkgyTXEaGZFBVrJ AmjFvPUOKL0hNffoyvXAmlreUcIxIZ94TLFdpInNEu5yhvGIJ7hHGqJyYBofHdjr+Juz Ed0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=t6nqIvxpm66obeP6l7OjMPOmzF9Vhnzt9UPlrgmVP/8=; b=wGJKXpYK908XGg9YjsboMmGoxwJ/0Oj7VqGap840oiTiHQ6uzKCqQ59lCWhDdeyR1C jYI/5DmfOb3SEfDsYdNFExkoKab0RU8BuZTkXKkgbTcewlawtHe9Whv6cUoouCgBlR2K YHHp3osgL9PgucLp7GCEg8sPzDl+/XO+p5JxG3NKwq7iXTv7fa1GCWIFtFp+csAysR/z Nlb1pj2PLQgwHq9pGNIA71IJvMr1j4E9ZnyC+00nMm1XNkXXXp/ATRomGtM9rnxconzF TYp021ebEvKDpMJxh59+mDjTlt3zLDuAvzcQpaF+LyOVAIY29Gabtb2GT4bMibPpnuqo gqJQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id az8si5016574plb.219.2019.05.31.00.44.28; Fri, 31 May 2019 00:44:43 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726947AbfEaHmJ (ORCPT + 99 others); Fri, 31 May 2019 03:42:09 -0400 Received: from mx2.suse.de ([195.135.220.15]:41322 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726403AbfEaHmI (ORCPT ); Fri, 31 May 2019 03:42:08 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 822B4AE15; Fri, 31 May 2019 07:42:07 +0000 (UTC) From: Petr Mladek To: Jiri Kosina , Josh Poimboeuf , Miroslav Benes Cc: Joe Lawrence , Kamalesh Babulal , live-patching@vger.kernel.org, linux-kernel@vger.kernel.org, Petr Mladek Subject: [PATCH 1/3] stacktrace: Remove superfluous WARN_ONCE() from save_stack_trace_tsk_reliable() Date: Fri, 31 May 2019 09:41:45 +0200 Message-Id: <20190531074147.27616-2-pmladek@suse.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20190531074147.27616-1-pmladek@suse.com> References: <20190531074147.27616-1-pmladek@suse.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org WARN_ONCE() in the generic save_stack_trace_tsk_reliable() is superfluous. The information is passed also via the return value. The only current user klp_check_stack() writes its own warning when the reliable stack traces are not supported. Other eventual users might want its own error handling as well. Signed-off-by: Petr Mladek Acked-by: Miroslav Benes Reviewed-by: Kamalesh Babulal --- kernel/stacktrace.c | 1 - 1 file changed, 1 deletion(-) diff --git a/kernel/stacktrace.c b/kernel/stacktrace.c index 5667f1da3ede..8d088408928d 100644 --- a/kernel/stacktrace.c +++ b/kernel/stacktrace.c @@ -259,7 +259,6 @@ __weak int save_stack_trace_tsk_reliable(struct task_struct *tsk, struct stack_trace *trace) { - WARN_ONCE(1, KERN_INFO "save_stack_tsk_reliable() not implemented yet.\n"); return -ENOSYS; } -- 2.16.4