From: Yoshinori Sato <ysato@users.sourceforge.jp>
To: Tobias Klauser <tklauser@distanz.ch>
Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org
Subject: Re: [PATCH v8 01/17] h8300: Assembly headers.
Date: Tue, 21 Apr 2015 17:32:43 +0900 [thread overview]
Message-ID: <87a8y1vq38.wl-ysato@users.sourceforge.jp> (raw)
In-Reply-To: <20150420140034.GB9990@distanz.ch>
At Mon, 20 Apr 2015 16:00:34 +0200,
Tobias Klauser wrote:
>
> On 2015-04-20 at 08:13:17 +0200, Yoshinori Sato <ysato@users.sourceforge.jp> wrote:
> [...]
> > diff --git a/arch/h8300/include/asm/pgtable.h b/arch/h8300/include/asm/pgtable.h
> > new file mode 100644
> > index 0000000..8341db6
> > --- /dev/null
> > +++ b/arch/h8300/include/asm/pgtable.h
> > @@ -0,0 +1,49 @@
> > +#ifndef _H8300_PGTABLE_H
> > +#define _H8300_PGTABLE_H
> > +#include <asm-generic/pgtable-nopud.h>
> > +#include <asm-generic/pgtable.h>
> > +#define pgtable_cache_init() do { } while (0)
> > +extern void paging_init(void);
> > +#define PAGE_NONE __pgprot(0) /* these mean nothing to NO_MM */
> > +#define PAGE_SHARED __pgprot(0) /* these mean nothing to NO_MM */
> > +#define PAGE_COPY __pgprot(0) /* these mean nothing to NO_MM */
> > +#define PAGE_READONLY __pgprot(0) /* these mean nothing to NO_MM */
> > +#define PAGE_KERNEL __pgprot(0) /* these mean nothing to NO_MM */
> > +#define __swp_type(x) (0)
> > +#define __swp_offset(x) (0)
> > +#define __swp_entry(typ, off) ((swp_entry_t) { ((typ) | ((off) << 7)) })
> > +#define __pte_to_swp_entry(pte) ((swp_entry_t) { pte_val(pte) })
> > +#define __swp_entry_to_pte(x) ((pte_t) { (x).val })
> > +#define kern_addr_valid(addr) (1)
> > +#define pgprot_writecombine(prot) (prot)
> > +#define pgprot_noncached pgprot_writecombine
> > +
> > +static inline int pte_file(pte_t pte) { return 0; }
>
> No need to define pte_file() anymore, remap_file_pages(2) implementation
> was replaced by emulation.
OK.
Remove it.
> > +#define swapper_pg_dir ((pgd_t *) 0)
> > +/*
> > + * ZERO_PAGE is a global shared page that is always zero: used
> > + * for zero-mapped memory areas etc..
> > + */
> > +#define ZERO_PAGE(vaddr) (virt_to_page(0))
> > +
> > +/*
> > + * These would be in other places but having them here reduces the diffs.
> > + */
> > +extern unsigned int kobjsize(const void *objp);
>
> This prototypes doesn't need to be defined here, it's already in
> linux/mm.h which is included where kobjsize is used.
OK.
> > +extern int is_in_rom(unsigned long);
>
> This function is no longer defined nor used in the rest of the tree, no
> need for this prototype as well.
>
OK.
Remove.
> [...]
> > diff --git a/arch/h8300/include/asm/sh_bios.h b/arch/h8300/include/asm/sh_bios.h
> > new file mode 100644
> > index 0000000..9ce513c
> > --- /dev/null
> > +++ b/arch/h8300/include/asm/sh_bios.h
> > @@ -0,0 +1,4 @@
> > +#ifndef SH_BIOS_H
> > +#define SH_BIOS_H
> > +
> > +#endif
>
> Why this empty header? Can it be removed?
It was necessary before, it's already unnecessary.
Removed.
Thanks.
--
Yoshinori Sato
<ysato@users.sourceforge.jp>
next prev parent reply other threads:[~2015-04-21 8:32 UTC|newest]
Thread overview: 41+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-20 6:13 [PATCH v8 00/17] Re-introduce h8300 architecture Yoshinori Sato
2015-04-20 6:13 ` Yoshinori Sato
2015-04-20 6:13 ` [PATCH v8 01/17] h8300: Assembly headers Yoshinori Sato
2015-04-20 7:17 ` Richard Weinberger
2015-04-20 7:47 ` Stephen Rothwell
2015-04-20 7:54 ` Richard Weinberger
2015-04-20 7:54 ` Richard Weinberger
2015-04-21 6:50 ` Yoshinori Sato
2015-04-21 6:50 ` Yoshinori Sato
2015-04-20 7:44 ` Tobias Klauser
2015-04-20 7:44 ` Tobias Klauser
2015-04-21 8:28 ` Yoshinori Sato
2015-04-20 14:00 ` Tobias Klauser
2015-04-20 14:00 ` Tobias Klauser
2015-04-21 8:32 ` Yoshinori Sato [this message]
2015-04-20 6:13 ` [PATCH v8 02/17] h8300: UAPI headers Yoshinori Sato
2015-04-20 6:13 ` [PATCH v8 03/17] h8300: Exception and Interrupt handling Yoshinori Sato
2015-04-20 6:13 ` Yoshinori Sato
2015-04-20 6:13 ` [PATCH v8 04/17] h8300: kernel booting Yoshinori Sato
2015-04-20 6:13 ` [PATCH v8 05/17] h8300: process and signals Yoshinori Sato
2015-04-20 6:13 ` Yoshinori Sato
2015-04-20 6:13 ` [PATCH v8 06/17] h8300: CPU depend helpers Yoshinori Sato
2015-04-20 6:13 ` [PATCH v8 07/17] h8300: miscellaneous functions Yoshinori Sato
2015-04-20 6:13 ` Yoshinori Sato
2015-04-20 6:13 ` [PATCH v8 08/17] h8300: Memory management Yoshinori Sato
2015-04-20 6:13 ` Yoshinori Sato
2015-04-20 6:13 ` [PATCH v8 09/17] h8300: library functions Yoshinori Sato
2015-04-20 6:13 ` Yoshinori Sato
2015-04-20 6:13 ` [PATCH v8 10/17] h8300: Build scripts Yoshinori Sato
2015-04-20 6:13 ` [PATCH v8 11/17] h8300: clock driver Yoshinori Sato
2015-04-20 6:13 ` [PATCH v8 12/17] h8300: clocksource Yoshinori Sato
2015-04-20 6:13 ` Yoshinori Sato
2015-04-20 6:13 ` [PATCH v8 13/17] h8300: configs Yoshinori Sato
2015-04-20 6:13 ` Yoshinori Sato
2015-04-20 6:13 ` [PATCH v8 14/17] serial: Add H8300 Yoshinori Sato
2015-04-20 6:13 ` [PATCH v8 15/17] Add ELF machine Yoshinori Sato
2015-04-20 6:13 ` Yoshinori Sato
2015-04-20 6:13 ` [PATCH v8 16/17] mksysmap: Add h8300 local symbol pattern Yoshinori Sato
2015-04-20 6:13 ` Yoshinori Sato
2015-04-20 6:13 ` [PATCH v8 17/17] Add H8/300 entry Yoshinori Sato
2015-04-20 6:13 ` Yoshinori Sato
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=87a8y1vq38.wl-ysato@users.sourceforge.jp \
--to=ysato@users.sourceforge.jp \
--cc=linux-arch@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tklauser@distanz.ch \
/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).