From: Greg Banks <gnb@alphalink.com.au>
To: Pete Zaitcev <zaitcev@redhat.com>,
Michael Elizabeth Chastain <mec@shout.net>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: Patch for xconfig
Date: Sun, 28 Jul 2002 22:40:03 +1000 [thread overview]
Message-ID: <3D43E623.B8496CB5@alphalink.com.au> (raw)
G'day,
Pete Zaitcev wrote:
>
> My customers complain that using certain canned configurations
> xconfig does not work (naturally, it works with defconfig).
> A problem that I am trying to fix is that it can refuse to
> quit with something like "Variable CONSTANT_M does not exist".
> The necessary "global" is indeed missing.
>
> Can someone knowledgeable (like Chastain) have a look at
> the attached patch?
I don't claim to be knowledgeable, but I can confirm that this is a
real bug and the patch fixes it. Here is the patch re-jigged to apply
cleanly to 2.5.29.
diff -ruN --exclude-from=dontdiff linux-2.5.29-orig/scripts/tkgen.c linux-2.5.29/scripts/tkgen.c
--- linux-2.5.29-orig/scripts/tkgen.c Sun Jul 28 22:34:05 2002
+++ linux-2.5.29/scripts/tkgen.c Sun Jul 28 22:32:23 2002
@@ -625,6 +625,7 @@
if ( ! vartable[i].global_written )
{
global( vartable[i].name );
+ vartable[i].global_written = 1;
}
printf( "\t" );
}
@@ -696,6 +697,19 @@
}
break;
}
+ }
+
+ /*
+ * Generate global declarations for the dependency chain (e.g. CONSTANT_M).
+ */
+ for ( tmp = cfg->depend; tmp; tmp = tmp->next )
+ {
+ int i = get_varnum( tmp->name );
+ if ( ! vartable[i].global_written )
+ {
+ global( vartable[i].name );
+ vartable[i].global_written = 1;
+ }
}
/*
Greg.
--
the price of civilisation today is a courageous willingness to prevail,
with force, if necessary, against whatever vicious and uncomprehending
enemies try to strike it down. - Roger Sandall, The Age, 28Sep2001.
next reply other threads:[~2002-07-28 12:38 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-28 12:40 Greg Banks [this message]
2002-07-29 23:15 ` Patch for xconfig Pete Zaitcev
2002-07-31 14:59 ` Greg Banks
[not found] <200207301001.g6UA1hN14567@sunrise.pg.gda.pl>
2002-07-30 12:57 ` Andrzej Krzysztofowicz
-- strict thread matches above, loose matches on Subject: below --
2002-07-27 2:43 Pete Zaitcev
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=3D43E623.B8496CB5@alphalink.com.au \
--to=gnb@alphalink.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=mec@shout.net \
--cc=zaitcev@redhat.com \
/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