@@ -51,6 +51,8 @@ static void m8xx_cpm_dpinit(void);staticuinthost_buffer;/* One page of host buffer */staticuinthost_end;/* end + 1 */cpm8xx_t__iomem*cpmp;/* Pointer to comm processor space */+EXPORT_SYMBOL_GPL(cpmp);+immap_t__iomem*mpc8xx_immr;staticcpic8xx_t__iomem*cpic_reg;
@@ -51,11 +51,13 @@ static void cpm2_dpinit(void);#endifcpm_cpm2_t__iomem*cpmp;/* Pointer to comm processor space */+EXPORT_SYMBOL_GPL(cpmp);/* We allocate this here because it is used almost exclusively for*thecommunicationprocessordevices.*/cpm2_map_t__iomem*cpm2_immr;+EXPORT_SYMBOL_GPL(cpm2_immr);#define CPM_MAP_SIZE (0x40000) /* 256k - the PQ3 reserve this amountofspaceforCPMasitislarger
@@ -117,6 +119,7 @@ cpm_setbrg(uint brg, uint rate)cpm2_unmap(bp);}+EXPORT_SYMBOL_GPL(cpm_setbrg);/* This function is used to set high speed synchronous baud rate*clocks.
From: Timur Tabi <hidden> Date: 2007-11-25 15:41:21
Jochen Friedrich wrote:
fs_enet and cpm_uart need symbols from commproc.c (for CPM1) or
cpm2_common.c. Add EXPORT_SYMBOL_GPL for cpmp, cpm_setbrg and cpm2_immr,
so the drivers can be compiled as modules.
Maybe this is a stupid question, but why did you choose EXPORT_SYMBOL_GPL and
not EXPORT_SYMBOL?
--
Timur Tabi
Linux Kernel Developer @ Freescale
From: Jon Smirl <hidden> Date: 2007-11-25 15:58:11
On 11/25/07, Timur Tabi [off-list ref] wrote:
Jochen Friedrich wrote:
quoted
fs_enet and cpm_uart need symbols from commproc.c (for CPM1) or
cpm2_common.c. Add EXPORT_SYMBOL_GPL for cpmp, cpm_setbrg and cpm2_immr,
so the drivers can be compiled as modules.
Maybe this is a stupid question, but why did you choose EXPORT_SYMBOL_GPL and
not EXPORT_SYMBOL?
By marking all new exports EXPORT_SYMBOL_GPL it stops new closed
source device drivers from being built. We have to live the the
existing ones, but we certainly don't want to encourage any more to be
built.
Over on lkml there is a thread about moving all symbols of this type
into private name spaces and removing the exports in the final kernel
binary.
--
Timur Tabi
Linux Kernel Developer @ Freescale
_______________________________________________
Linuxppc-dev mailing list
Linuxppc-dev@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-dev
On Sun, 25 Nov 2007 09:38:57 -0600
Timur Tabi wrote:
Jochen Friedrich wrote:
quoted
fs_enet and cpm_uart need symbols from commproc.c (for CPM1) or
cpm2_common.c. Add EXPORT_SYMBOL_GPL for cpmp, cpm_setbrg and
cpm2_immr, so the drivers can be compiled as modules.
As I told replying to prev mail, this needs to be addressed in respective driver(s), since
there is a way to retrieve such pointers without making them global.
This patch will exist in maillist as a workaround, but meanwhile I'll take a look at this problem.
Maybe this is a stupid question, but why did you choose
EXPORT_SYMBOL_GPL and not EXPORT_SYMBOL?
To prevent using those pointers from within non-GPL modules. kind of policy now...
--
Sincerely, Vitaly
From: Jochen Friedrich <jochen@scram.de> Date: 2007-11-26 11:15:28
Hi Vitaly,
quoted
Maybe this is a stupid question, but why did you choose
EXPORT_SYMBOL_GPL and not EXPORT_SYMBOL?
To prevent using those pointers from within non-GPL modules. kind of policy now...
In particular in this case, as these pointers are currently not exported, at all. They
are currently used by a few drivers and will disappear again once these drivers have
been converted to use the propper accessors, which will also prevent access conflicts
to the CPM registers.
Thanks,
Jochen