From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-ej1-f45.google.com (mail-ej1-f45.google.com [209.85.218.45]) (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 54DB32DF3FB for ; Wed, 20 Aug 2025 09:40:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755682840; cv=none; b=g45L0Kvg/tio4yw5cM2yTXUsvO8za8tT0UMTOYOwPXGiVyPmDgZrq8iOWURrrgFMO0lZo1ohTp1usDLLF854cE5G5OCZXDdMiKOT71wMzclxZ10BdexR1DxODOsEs4y1dtAyH8H2By5K4Rs6PwbI50DrBT6xlxiPrZqOoelKndE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755682840; c=relaxed/simple; bh=jseJB8mxRO8twsWpgM50wcB2CH10FcIVLbrukEtfdPI=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=XnMz/3mtM/cxhQxJQ8bF60hxZDJao1tq+jcO3TP4SdpFuPnwK4ZAuzOsHlSgJAWgY0BE3PKhYVNOswliCcuht5KJnRGwGtgZDpFxHH/SteSkYIaekUa/9vHwWttyi+BP8OaQOTZlUHFYazSjCIgNtxJM5Q95yYRuTyYQMrGgPXc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b=HxmXl+/o; arc=none smtp.client-ip=209.85.218.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=suse.com header.i=@suse.com header.b="HxmXl+/o" Received: by mail-ej1-f45.google.com with SMTP id a640c23a62f3a-afcb7a8dd3dso894565666b.3 for ; Wed, 20 Aug 2025 02:40:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1755682834; x=1756287634; darn=lists.linux.dev; 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=NM0fyXJdFVsVnU/yS6K0gQI6XozNG1TCaWkFW+vAlK8=; b=HxmXl+/oG2W0jYIWkszNBuyifXTTWv7RJqkDS8XUTdBcpVOYYRDhOzQmev17PzPMOA 5y/bfOh3xxJpzfaFot98wRVylzivKu6joVadsU/Ae8zemdlS7RTpDHso08yOQ7OGx5Ge vwUdCax1xgSD+nMhEyfFuMqKyhNVtFt+ocjNrwIrVfJHjXaIdr2BXLC289KxhVFe5D2H 7sFg1Wix9ReHuUSjJRq6p8P3DE6CCjSQ3l/JTC2K6iFbZVZ2SA3N6zoyX0X7te8d6Q8W fDxkSHszoTgfct7EOuFFdZ2poodHhnERXTx0rf1VKfKCT6uIBNBGTa9PSBbBXabFD1gL 2xAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1755682834; x=1756287634; 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=NM0fyXJdFVsVnU/yS6K0gQI6XozNG1TCaWkFW+vAlK8=; b=euHCydocbBk65+gDgr1WT1PajyXfLzGHe9Jlj0wzlpafqkgUj5/n19vXzhlrPHJwy5 jpr39SR+FMtsZ2lVVuo58HNSRp3XKy4iem1aM9X1We7jq+jSm0uKxW/0FJSb0alHO5gd vyEFm2n/TYnzZpGARLIBLMD9KI5QO32adTocbFVdOXIr647v86Co+a3kI7H4/UrOx79+ nFLYprTmJlQ5AZDS72Q8hIEuKiacbIkhx+2dB5zD/WgfCNShNd+p0CiXHUzAB2mA2PsH 18t4vf7QrB/aMyDzyEDEljUUQJIkuICAgMt9Ui4v2S804X7Ag/0tDLfZI+h57FQTO6JK X+5w== X-Gm-Message-State: AOJu0YwVWom8DdhfrikWGG8nAKfAIlBfq3RKfRdXWKR03UbQWH3xbhhY lHwM5A0dQWE+eXeZaWb7eCsEKUBcgJY2mSbI4qWlomzp2Ey8pNljAGQ6D/a8lXeVZDM= X-Gm-Gg: ASbGncshO9Zrziy+2pvwmRf/UxU0jWXQieVrQfGecr+/nrfeDUpxAY/1G257rNUUXRG ZTEgVLMaC3cfRb1tqC8fOPPoTRLg4qxIIVRyMEvt0M83JGfuUUkeZhW9mnPxojzjQsM9UhWEMF+ b7vUb8GYvaAMdDNdcHQLmlkpx/ETpTU6JAhLaoES3eo/9e+vEhCmeS6IqY6niRWbOzD+uajsrFL sfNq413ILNchXuEwLAhiu6fBz1kt8S1fA7UrtNuM4MCh4kroJoDh6S67oK6sX6//AGHwFY3uckz 80h2cj7YJCGnzO6mK0PpYoPWmdjJ4/IL67qkVx3TTwgIzWbXMuAI3wCN1jdPWtlF9G3OjpNbwL/ ofis6zVNo1KO67q2ITLnZKYf2nQ== X-Google-Smtp-Source: AGHT+IEL5yizeK4oP3hcKNDpDCbogCgeCUIgrsK+feZZ6+ybN7ZuuNRbKKwxk5Z77sh2bbe8+uaS7Q== X-Received: by 2002:a17:907:3c8b:b0:ad8:9645:798c with SMTP id a640c23a62f3a-afdf0209598mr168513766b.51.1755682834470; Wed, 20 Aug 2025 02:40:34 -0700 (PDT) Received: from pathway.suse.cz ([176.114.240.130]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-afded478a14sm148404966b.76.2025.08.20.02.40.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 20 Aug 2025 02:40:34 -0700 (PDT) Date: Wed, 20 Aug 2025 11:40:32 +0200 From: Petr Mladek To: Lance Yang , Andrew Morton Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, Linux Memory Management List , Steven Rostedt , Jonathan Corbet , linux-kernel@vger.kernel.org, paulmck@kernel.org, john.ogness@linutronix.de, kernel test robot , Feng Tang Subject: [PATCH v2] panic: Clean up message about deprecated 'panic_print' parameter Message-ID: References: <202508200907.PsZ3geub-lkp@intel.com> <33a897b4-7d9a-4641-9c7a-07c19bb9cb6f@linux.dev> <7a34da58-874d-4271-9dbb-7991468d58ff@linux.dev> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Remove duplication of the message about deprecated 'panic_print' parameter. Also make the wording more direct. Make it clear that the new parameters already exist and should be used instead. Signed-off-by: Petr Mladek --- Changes since v1: - fixed compilation with CONFIG_SYSCTL disabled (kernel test robot ) Thanks Lance Yang for debugging the compilation error reported by the test robot. kernel/panic.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/kernel/panic.c b/kernel/panic.c index 12a10e17ab4a..24bca263f896 100644 --- a/kernel/panic.c +++ b/kernel/panic.c @@ -77,6 +77,11 @@ ATOMIC_NOTIFIER_HEAD(panic_notifier_list); EXPORT_SYMBOL(panic_notifier_list); +static void panic_print_deprecated(void) +{ + pr_info_once("Kernel: The 'panic_print' parameter is now deprecated. Please use 'panic_sys_info' and 'panic_console_replay' instead.\n"); +} + #ifdef CONFIG_SYSCTL /* @@ -125,7 +130,7 @@ static int proc_taint(const struct ctl_table *table, int write, static int sysctl_panic_print_handler(const struct ctl_table *table, int write, void *buffer, size_t *lenp, loff_t *ppos) { - pr_info_once("Kernel: 'panic_print' sysctl interface will be obsoleted by both 'panic_sys_info' and 'panic_console_replay'\n"); + panic_print_deprecated(); return proc_doulongvec_minmax(table, write, buffer, lenp, ppos); } @@ -944,13 +949,13 @@ core_param(panic_console_replay, panic_console_replay, bool, 0644); static int panic_print_set(const char *val, const struct kernel_param *kp) { - pr_info_once("Kernel: 'panic_print' parameter will be obsoleted by both 'panic_sys_info' and 'panic_console_replay'\n"); + panic_print_deprecated(); return param_set_ulong(val, kp); } static int panic_print_get(char *val, const struct kernel_param *kp) { - pr_info_once("Kernel: 'panic_print' parameter will be obsoleted by both 'panic_sys_info' and 'panic_console_replay'\n"); + panic_print_deprecated(); return param_get_ulong(val, kp); } -- 2.50.1