mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead.org>
To: Haavard Skinnemoen <hskinnemoen@atmel.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: AVR32 architecture patch against Linux 2.6.18-rc1 available
Date: Thu, 06 Jul 2006 12:58:03 +0100	[thread overview]
Message-ID: <1152187083.2987.117.camel@pmac.infradead.org> (raw)
In-Reply-To: <20060706105227.220565f8@cad-250-152.norway.atmel.com>

On Thu, 2006-07-06 at 10:52 +0200, Haavard Skinnemoen wrote:
> Hi everyone,
> 
> I've put up an updated set of patches for AVR32 support at
> http://avr32linux.org/twiki/bin/view/Main/LinuxPatches
> 
> The most interesting patch probably is
> http://avr32linux.org/twiki/pub/Main/LinuxPatches/avr32-arch-2.patch

Please add include/asm-avr32/Kbuild which lists those files which need
to be present in /usr/include/asm, over and above those listed in
asm-generic/Kbuild.asm. Then run 'make headers_install' and review the
exported headers to make sure they're suitable for building glibc, etc.

Should probably drop the #ifdef __KERNEL__ from asm/atomic.h. There's no
excuse for anything non-kernel to be using atomic.h, so by the time you
merge that'll probably have been taken out of asm-generic/Kbuild.asm.
Likewise bitops.h and anything else which isn't, or shouldn't be,
exported (including dma-mapping.h, probably also io.h, etc.)

You define PAGE_SIZE in asm/page.h where userspace can see it. No need
for that -- portable userspace must use sysconf(_SC_PAGE_SIZE) anyway --
you can move it inside the #ifdef __KERNEL__ you already have there.

Your posix_types.h wraps __FD_SET et al in 
#if defined(__KERNEL__) || !defined(__GLIBC__) || (__GLIBC__ < 2)
I suspect that's not at all needed, so it can be fixed to just
__KERNEL__ as we did on s390 recently iirc.

Kill syscall[012456] from your unistd.h -- they aren't used anywhere. In
fact, you might as well kill syscall3() too, since you only use it in
one place for execve. Just do execve 'manually' with the appropriate
inline asm.

Do you really need the EARLY_PRINTK crap? Can't you just register your
proper console nice and early? There's no need to wait for
console_init() and use console_initcall(). You can do it right at the
beginning of setup_arch(), as long as you parse the command line early
enough for console= options. 

You're including <linux/config.h> in a few places -- kill them all.

"DMA controller framework".... isn't that what drivers/dma was recently
invented for? If appropriate, you should probably use that. If not, you
should explain why, and perhaps we should get it fixed.

You're a bit behind on syscall support -- I note you have
TIF_RESTORE_SIGMASK (which means you're ahead of x86_64) but you haven't
wired up ppoll() and pselect(), amongst others.

You say 'MB' in a few places where you actually mean 'MiB', probably
copied from sloppy code elsewhere.

-- 
dwmw2


  parent reply	other threads:[~2006-07-06 11:58 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-06  8:52 Haavard Skinnemoen
2006-07-06  9:19 ` Andrew Morton
2006-07-06  9:51   ` Russell King
2006-07-06  9:58   ` Arjan van de Ven
2006-07-06 10:43     ` Haavard Skinnemoen
2006-07-06 15:17       ` Russell King
2006-07-06 10:03   ` Haavard Skinnemoen
2006-07-06 10:14     ` Andrew Morton
2006-07-06 13:57       ` Haavard Skinnemoen
2006-07-10  9:03       ` Haavard Skinnemoen
2006-07-10  9:31         ` Andrew Morton
2006-07-10  9:37         ` Andrew Morton
2006-07-10 11:04           ` Haavard Skinnemoen
2006-07-10  9:57         ` David Woodhouse
2006-07-10 11:25           ` Haavard Skinnemoen
2006-07-06 11:30     ` Thomas Gleixner
2006-07-06 11:50       ` Haavard Skinnemoen
2006-07-06 12:10         ` Thomas Gleixner
2006-07-06 11:58 ` David Woodhouse [this message]
2006-07-06 14:13   ` Haavard Skinnemoen
2006-07-06 14:34     ` David Woodhouse
2006-07-06 18:48       ` Haavard Skinnemoen
2006-07-06 23:17         ` David Woodhouse
2006-07-07 10:39   ` Haavard Skinnemoen
2006-07-07 10:44     ` Arjan van de Ven
2006-07-07  8:08 ` Nick Piggin
2006-07-07  8:18   ` Nick Piggin
2006-07-07 16:36   ` Haavard Skinnemoen

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=1152187083.2987.117.camel@pmac.infradead.org \
    --to=dwmw2@infradead.org \
    --cc=hskinnemoen@atmel.com \
    --cc=linux-kernel@vger.kernel.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

all inboxes | Powered by JetHome®