LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Murali Iyer <mniyer@vnet.ibm.com>
To: Linuxppc-dev@ozlabs.org, cbe-oss-dev@ozlabs.org
Subject: Export DCR symbols - resubmitting
Date: Wed, 08 Aug 2007 16:46:49 -0500	[thread overview]
Message-ID: <1186609609.4053.19.camel@macg5-2.rchland.ibm.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 376 bytes --]

Hi,

This patch is needed in order to compile kernel modules that uses some
of the DCR functions. For example, compiling powerpc emac driver as
module it is needed.

Arnd, Dennis Spathis pinged me about this today and I thought it was a
closed issue but still open. If you find it okay please upstream it or
let me know if any modifications needed. Thanks.

-- 
Bye,

Murali


[-- Attachment #2: export-dcr-symbols.diff --]
[-- Type: text/x-patch, Size: 1384 bytes --]

Subject: Export few DCR symbols for kernel modules

In order to compile drivers as modules that uses some of the
DCR functions, we need to export the symbols. Example, EMAC
driver and other drivers that are under development uses these
some of the functions.

This patch applies cleanly against 2.6.23-rc1 kernel and ready
for inclusion.

From: Murali Iyer

Signed-off-by: Murali Iyer <mniyer@us.ibm.com>
Index: linux-2.6.22/arch/powerpc/sysdev/dcr.c
===================================================================
--- linux-2.6.22.orig/arch/powerpc/sysdev/dcr.c
+++ linux-2.6.22/arch/powerpc/sysdev/dcr.c
@@ -33,6 +33,7 @@ unsigned int dcr_resource_start(struct d
 
 	return dr[index * 2];
 }
+EXPORT_SYMBOL_GPL(dcr_resource_start);
 
 unsigned int dcr_resource_len(struct device_node *np, unsigned int index)
 {
@@ -44,6 +45,7 @@ unsigned int dcr_resource_len(struct dev
 
 	return dr[index * 2 + 1];
 }
+EXPORT_SYMBOL_GPL(dcr_resource_len);
 
 #ifndef CONFIG_PPC_DCR_NATIVE
 
@@ -122,6 +124,7 @@ dcr_host_t dcr_map(struct device_node *d
 	ret.token -= dcr_n * ret.stride;
 	return ret;
 }
+EXPORT_SYMBOL_GPL(dcr_map);
 
 void dcr_unmap(dcr_host_t host, unsigned int dcr_n, unsigned int dcr_c)
 {
@@ -133,5 +136,6 @@ void dcr_unmap(dcr_host_t host, unsigned
 	iounmap(h.token);
 	h.token = NULL;
 }
+EXPORT_SYMBOL_GPL(dcr_unmap);
 
 #endif /* !defined(CONFIG_PPC_DCR_NATIVE) */

             reply	other threads:[~2007-08-08 21:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-08 21:46 Murali Iyer [this message]
2007-08-08 21:58 ` [Cbe-oss-dev] Export DCR symbols - resubmitting Arnd Bergmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1186609609.4053.19.camel@macg5-2.rchland.ibm.com \
    --to=mniyer@vnet.ibm.com \
    --cc=Linuxppc-dev@ozlabs.org \
    --cc=cbe-oss-dev@ozlabs.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox