From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from e28smtp03.in.ibm.com (e28smtp03.in.ibm.com [122.248.162.3]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id BC54E1A017B for ; Wed, 6 Aug 2014 00:42:20 +1000 (EST) Received: from /spool/local by e28smtp03.in.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 5 Aug 2014 20:12:17 +0530 Received: from d28relay01.in.ibm.com (d28relay01.in.ibm.com [9.184.220.58]) by d28dlp01.in.ibm.com (Postfix) with ESMTP id D6015E001C for ; Tue, 5 Aug 2014 20:14:07 +0530 (IST) Received: from d28av01.in.ibm.com (d28av01.in.ibm.com [9.184.220.63]) by d28relay01.in.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s75EgBFb56623120 for ; Tue, 5 Aug 2014 20:12:11 +0530 Received: from d28av01.in.ibm.com (localhost [127.0.0.1]) by d28av01.in.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s75EgE3N006892 for ; Tue, 5 Aug 2014 20:12:15 +0530 Message-ID: <53E0ED41.8030804@linux.vnet.ibm.com> Date: Tue, 05 Aug 2014 20:12:09 +0530 From: Vishal Mansur MIME-Version: 1.0 To: gwshan@linux.vnet.ibm.com, benh@kernel.crashing.org, linuxppc-dev@lists.ozlabs.org Subject: [PATCH] powerpc: non-GPL export for eeh_dev_check_failure Content-Type: text/plain; charset=ISO-8859-1 Cc: linux-kernel@vger.kernel.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , EEH kernel services are inconsistently exported by the kernel. eeh_check_failure is exported for any use, but eeh_dev_check_failure is exported only for GPL use. While eeh_check_failure is implemented for a specific purpose to be used by services such as readl, it is not suited for a purpose where caller needs eeh status. This functionality is provided by eeh_dev_check_failure. This patch relaxes the export for eeh_dev_check_failure to make it consistent with eeh_check_failure() and usable by non-GPL modules. Signed-off-by: Vishal Mansur --- arch/powerpc/kernel/eeh.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel/eeh.c index 86e2570..8689c30 100644 --- a/arch/powerpc/kernel/eeh.c +++ b/arch/powerpc/kernel/eeh.c @@ -496,8 +496,7 @@ dn_unlock: eeh_serialize_unlock(flags); return rc; } - -EXPORT_SYMBOL_GPL(eeh_dev_check_failure); +EXPORT_SYMBOL(eeh_dev_check_failure); /** * eeh_check_failure - Check if all 1's data is due to EEH slot freeze -- 2.0.1