linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Vitaly Bordug <vbordug@ru.mvista.com>
To: Kumar Gala <galak@kernel.crashing.org>
Cc: linuxppc-dev <linuxppc-dev@ozlabs.org>,
	Paul Mackerras <paulus@samba.org>
Subject: Re: [PATCH 4/5] [POWERPC] Fix kernel build errors for mpc8272ads and mpc8560ads
Date: Thu, 11 Jan 2007 00:41:36 +0300	[thread overview]
Message-ID: <20070111004136.4e058899@localhost.localdomain> (raw)
In-Reply-To: <7F484F5C-4814-4721-90A8-F8D98DF10823@kernel.crashing.org>

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

On Wed, 10 Jan 2007 14:58:31 -0600
Kumar Gala wrote:

> 
> On Jan 10, 2007, at 2:50 PM, Vitaly Bordug wrote:
> 
> > On Wed, 10 Jan 2007 11:11:05 -0600
> > Kumar Gala wrote:
> >
[snip]
> >>> b/include/asm-powerpc/fs_pd.h index 3d0e819..2ba51b9 100644
> >>> --- a/include/asm-powerpc/fs_pd.h
> >>> +++ b/include/asm-powerpc/fs_pd.h
> >>> @@ -25,6 +25,12 @@ static inline int uart_clock(void)
> >>>          return ppc_proc_freq;
> >>>  }
> >>>
> >>> +#if defined(CONFIG_8260)
> >>> +#include <asm/mpc8260.h>
> >>> +#elif defined(CONFIG_85xx)
> >>> +#include <asm/mpc85xx.h>
> >>> +#endif
> >>> +
> >>
> >> what do we need these includes for?
> >>
> >
> > This is to keep ppc stuff still working mostly. Basically, whole
> > this header is for such aim.
> > To be specific, both fs_enet and cpm_uart will bail the
> > compilation out
> > failing to find CPM_MAP_ADDR:
> >
> > drivers/net/fs_enet/fs_enet-main.c:1144: error: 'CPM_MAP_ADDR'
> > undeclared (first use in this function)
> >
> > and so forth.
> 
> How about wrapping it a ifndef CONFIG_PPC_MERGE so we know its just  
> for that and can get ride of it in the future.
> 

I afraid it will make arch/ppc unhappy - these got included to both.
And the headers required because there used to be same asm/io.h where this stuff used to reside, and from 
the recent time, arch/powerpc has separate io.h that made all the CPM2-related kinda hosed.

As a good thing, this header is only for the time we'll have to have same target working both in ppc and powerpc.
I think this can be revisited after the patch about cleaning-up CPM_MAP_ADDR from the drivers and core code.

> >>>  #define
> >>> cpm2_map(member)						\
> >>> ({
> >>> \ u32 offset = offsetof(cpm2_map_t, member);
> >>> \
> >>
> >> - k
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

  reply	other threads:[~2007-01-10 21:43 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-10  1:11 [PATCH 1/5] [POWERPC] cpm2: Updates for CPM2 pic Vitaly Bordug
2007-01-10  1:11 ` [PATCH 2/5] [POWERPC] cpm_uart: OF-related updates Vitaly Bordug
2007-01-10  1:11 ` [PATCH 3/5] [FS_ENET] OF-related update for FEC and SCC MAC's Vitaly Bordug
2007-01-10 17:07   ` Kumar Gala
2007-01-10 20:14     ` Vitaly Bordug
2007-01-10  1:12 ` [PATCH 4/5] [POWERPC] Fix kernel build errors for mpc8272ads and mpc8560ads Vitaly Bordug
2007-01-10 17:11   ` Kumar Gala
2007-01-10 20:50     ` Vitaly Bordug
2007-01-10 20:58       ` Kumar Gala
2007-01-10 21:41         ` Vitaly Bordug [this message]
2007-01-10  1:12 ` [PATCH 5/5] [POWERPC] mpc8272ads: defconfig Vitaly Bordug
2007-01-10  2:13 ` [PATCH 1/5] [POWERPC] cpm2: Updates for CPM2 pic Paul Mackerras
2007-01-10  5:09   ` Vitaly Bordug
2007-01-10 17:02 ` Kumar Gala
2007-01-10 20:13   ` Vitaly Bordug
2007-01-10 20:55     ` Kumar Gala
2007-01-10 20:58       ` Vitaly Bordug
  -- strict thread matches above, loose matches on Subject: below --
2007-01-13  0:41 [PATCH 1/5] [POWERPC] cpm2: CPM2 interrupt controller fix Vitaly Bordug
2007-01-13  0:42 ` [PATCH 4/5] [POWERPC] Fix kernel build errors for mpc8272ads and mpc8560ads Vitaly Bordug

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=20070111004136.4e058899@localhost.localdomain \
    --to=vbordug@ru.mvista.com \
    --cc=galak@kernel.crashing.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=paulus@samba.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;
as well as URLs for NNTP newsgroup(s).