From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933803AbdKAW7d (ORCPT ); Wed, 1 Nov 2017 18:59:33 -0400 Received: from osg.samsung.com ([64.30.133.232]:35688 "EHLO osg.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752129AbdKAW7b (ORCPT ); Wed, 1 Nov 2017 18:59:31 -0400 Subject: Re: [PATCH] selftests: remove obsolete kconfig fragment for cpu-hotplug To: Thomas Gleixner Cc: lei.yang@windriver.com, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , Shuah Khan , Shuah Khan References: <1508292623-8479-1-git-send-email-lei.yang@windriver.com> From: Shuah Khan Message-ID: <33c654fe-7d48-15e4-ee3b-1dba7dd41dd4@osg.samsung.com> Date: Wed, 1 Nov 2017 16:59:24 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/01/2017 04:52 PM, Thomas Gleixner wrote: > On Wed, 1 Nov 2017, Shuah Khan wrote: >> On 10/17/2017 08:10 PM, lei.yang@windriver.com wrote: >>> From: Lei Yang >>> >>> Kconfig CONFIG_CPU_NOTIFIER_ERROR_INJECT has been removed since kernel 4.10 >>> check commit: >>> commit 530e9b76ae8f863dfdef4a6ad0b38613d32e8c3f >>> Author: Thomas Gleixner >>> Date: Wed Dec 21 20:19:53 2016 +0100 >>> >>> cpu/hotplug: Remove obsolete cpu hotplug register/unregister functions >>> >>> hotcpu_notifier(), cpu_notifier(), __hotcpu_notifier(), __cpu_notifier(), >>> register_hotcpu_notifier(), register_cpu_notifier(), >>> __register_hotcpu_notifier(), __register_cpu_notifier(), >>> unregister_hotcpu_notifier(), unregister_cpu_notifier(), >>> __unregister_hotcpu_notifier(), __unregister_cpu_notifier() >>> >>> >>> Signed-off-by: Lei Yang >>> --- >>> tools/testing/selftests/cpu-hotplug/config | 1 - >>> 1 file changed, 1 deletion(-) >>> >>> diff --git a/tools/testing/selftests/cpu-hotplug/config b/tools/testing/selftests/cpu-hotplug/config >>> index e6ab090..d4aca2a 100644 >>> --- a/tools/testing/selftests/cpu-hotplug/config >>> +++ b/tools/testing/selftests/cpu-hotplug/config >>> @@ -1,2 +1 @@ >>> CONFIG_NOTIFIER_ERROR_INJECTION=y >>> -CONFIG_CPU_NOTIFIER_ERROR_INJECT=m >>> >> >> Yes. It is removed from the kernel. However, selftests from the latest >> release do get run routinely on older stable releases. Dropping the >> config will impact coverage on older releases. >> >> Thomas/Greg, >> >> Any ideas on what we should do about this. On one hand it is a good idea >> to remove it, however my concern is coverage on older releases. > > Can you check the kernel version on which you are running and do it runtime > conditionally? > I have been avoiding adding kernel version checks to tests. Maybe this is one exception since the functionality is obsoleted. In any case, just removing the config isn't the complete solution. I will have to think about this some. thanks, -- Shuah