From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
To: noah@caltech.edu
Cc: dwmw2@redhat.com, linux-mtd@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Remove needless and non-portable include in mtd
Date: Mon, 20 Oct 2003 23:58:42 +0900 (JST) [thread overview]
Message-ID: <20031020.235842.126570816.anemo@mba.ocn.ne.jp> (raw)
In-Reply-To: <Pine.GSO.4.58.0310171454050.13905@blinky>
>>>>> On Sun, 19 Oct 2003 21:36:15 -0700 (PDT), "Noah J. Misch" <noah@caltech.edu> said:
noah> The #include <asm/setup.h> in drivers/mtd/cmdlinepart.c does not
noah> appear to provide any definition this file uses, and it quickly
noah> breaks builds on architectures that lack such a header,
noah> including ia64 and sparc.
I have posted a patch including this fix to linux-mtd ML two times
(two month ago and a week ago). My patch fixes another problem that
cmdlinepart.c can not handle zero offset value correctly
(ex. "mtdparts=id:2M@2M,2M@0"). Please consider applying this fix
also. Thank you.
--- mtd-20030811/drivers/mtd/cmdlinepart.c Fri May 30 07:00:05 2003
+++ mtd/drivers/mtd/cmdlinepart.c Tue Aug 12 16:35:43 2003
@@ -29,7 +29,6 @@
#include <linux/mtd/mtd.h>
#include <linux/mtd/partitions.h>
#include <linux/mtd/compatmac.h>
-#include <asm/setup.h>
#include <linux/bootmem.h>
/* error message prefix */
@@ -45,6 +44,7 @@
/* special size referring to all the remaining space in a partition */
#define SIZE_REMAINING 0xffffffff
+#define OFFSET_CONTINUOUS 0xffffffff
struct cmdline_mtd_partition {
struct cmdline_mtd_partition *next;
@@ -77,7 +77,7 @@
{
struct mtd_partition *parts;
unsigned long size;
- unsigned long offset = 0;
+ unsigned long offset = OFFSET_CONTINUOUS;
char *name;
int name_len;
unsigned char *extra_mem;
@@ -312,7 +312,7 @@
{
for(i = 0, offset = 0; i < part->num_parts; i++)
{
- if (!part->parts[i].offset)
+ if (part->parts[i].offset == OFFSET_CONTINUOUS)
part->parts[i].offset = offset;
else
offset = part->parts[i].offset;
---
Atsushi Nemoto
prev parent reply other threads:[~2003-10-20 14:41 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-20 4:36 Noah J. Misch
2003-10-20 14:58 ` Atsushi Nemoto [this message]
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=20031020.235842.126570816.anemo@mba.ocn.ne.jp \
--to=anemo@mba.ocn.ne.jp \
--cc=dwmw2@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=noah@caltech.edu \
/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®