From: Sedat Dilek <sedat.dilek@gmail•com>
To: Michal Marek <mmarek@suse•cz>
Cc: Stephen Rothwell <sfr@canb•auug.org.au>,
linux-next@vger•kernel.org, linux-kernel@vger•kernel.org,
linux-kbuild@vger•kernel.org,
"Yann E. MORIN" <yann.morin.1998@free•fr>
Subject: Re: linux-next: Tree for Apr 26
Date: Fri, 26 Apr 2013 12:49:24 +0200 [thread overview]
Message-ID: <CA+icZUXSsqN1iE3ttQakvpZqG-oOL9NR6RMUezB7LGeUw3d00Q@mail.gmail.com> (raw)
In-Reply-To: <CA+icZUWNVEsiTs6u_2R9krb45ub4t-pZj_VEPRmrX2c4DzwfmA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1750 bytes --]
On Fri, Apr 26, 2013 at 12:37 PM, Sedat Dilek <sedat.dilek@gmail•com> wrote:
> On Fri, Apr 26, 2013 at 12:35 PM, Sedat Dilek <sedat.dilek@gmail•com> wrote:
>> On Fri, Apr 26, 2013 at 12:04 PM, Michal Marek <mmarek@suse•cz> wrote:
>>> On Fri, Apr 26, 2013 at 11:58:25AM +0200, Michal Marek wrote:
>>>> Can you send a copy of your .config?
>>>
>>> I can reproduce it as well:
>>>
>>> $ yes "" | make oldconfig
>>> ...
>>> Enumeration method [M/y/?] (NEW)
>>> Basic (RAPIDIO_ENUM_BASIC) [N/m/?] n
>>> ...
>>> #
>>> # configuration written to .config
>>> #
>>> $ make oldconfig
>>> ...
>>> Enumeration method [M/y/?] (NEW)
>>>
>>>
>>> .config is attached.
>>>
>>
>> Mine, too.
>>
>> I hoped that -next release will be one w/o troubles
>> (cpufreq/intel_pstate / pm/timekeeping / ipc-sem-from-mmotm).
>> Unfortunately, I am not lucky :-(.
>>
>> Anyway, waiting for a fix.
>>
>
> Just FYI: Mail delivery troubles!
>
> Delivery to the following recipient failed permanently:
>
> yann.morin.1998@free•fr
>
> Technical details of permanent failure:
> Google tried to deliver your message, but it was rejected by the
> server for the recipient domain free.fr by mx1.free.fr. [212.27.48.6].
>
> The error that the other server returned was:
> 550 spam detected
> ...
>
With reverting all kbuild-next commits I was able to build again.
Revert "kconfig: implement KCONFIG_PROBABILITY for randconfig"
Revert "kconfig: allow specifying the seed for randconfig"
Revert "kconfig: fix randomising choice entries in presence of
KCONFIG_ALLCONFIG"
Revert "kconfig: do not override symbols already set"
Revert "kconfig: fix randconfig tristate detection"
Patch attached!
- Sedat -
> - Sedat -
>
>> - Sedat -
>>
>>> Michal
[-- Attachment #2: 3.9.0-rc8-next20130426-1-iniza-small.patch --]
[-- Type: application/octet-stream, Size: 8889 bytes --]
Sedat Dilek (11):
kbuild: deb-pkg: Try to determine distribution
kbuild: deb-pkg: Bump year in debian/copyright file
kbuild: deb-pkg: Update git repository URL in debian/copyright file
Merge tag 'next-20130426' of git://git.kernel.org/.../next/linux-next into Linux-Next-v20130426
Merge branch 'deb-pkg-fixes' into 3.9.0-rc8-next20130426-1-iniza-small
Revert "kconfig: implement KCONFIG_PROBABILITY for randconfig"
Revert "kconfig: allow specifying the seed for randconfig"
Revert "kconfig: fix randomising choice entries in presence of KCONFIG_ALLCONFIG"
Revert "kconfig: do not override symbols already set"
Revert "kconfig: fix randconfig tristate detection"
Merge branch 'revert-kbuild-next' into 3.9.0-rc8-next20130426-1-iniza-small
Documentation/kbuild/kconfig.txt | 36 ----------------------
scripts/kconfig/conf.c | 12 +-------
scripts/kconfig/confdata.c | 66 +++++-----------------------------------
scripts/package/builddeb | 19 ++++++++++--
4 files changed, 24 insertions(+), 109 deletions(-)
diff --git a/Documentation/kbuild/kconfig.txt b/Documentation/kbuild/kconfig.txt
index 3f429ed..b8b77bb 100644
--- a/Documentation/kbuild/kconfig.txt
+++ b/Documentation/kbuild/kconfig.txt
@@ -90,42 +90,6 @@ disable the options that are explicitly listed in the specified
mini-config files.
______________________________________________________________________
-Environment variables for 'randconfig'
-
-KCONFIG_SEED
---------------------------------------------------
-You can set this to the integer value used to seed the RNG, if you want
-to somehow debug the behaviour of the kconfig parser/frontends.
-If not set, the current time will be used.
-
-KCONFIG_PROBABILITY
---------------------------------------------------
-This variable can be used to skew the probabilities. This variable can
-be unset or empty, or set to three different formats:
- KCONFIG_PROBABILITY y:n split y:m:n split
- -----------------------------------------------------------------
- unset or empty 50 : 50 33 : 33 : 34
- N N : 100-N N/2 : N/2 : 100-N
- [1] N:M N+M : 100-(N+M) N : M : 100-(N+M)
- [2] N:M:L N : 100-N M : L : 100-(M+L)
-
-where N, M and L are integers (in base 10) in the range [0,100], and so
-that:
- [1] N+M is in the range [0,100]
- [2] M+L is in the range [0,100]
-
-Examples:
- KCONFIG_PROBABILITY=10
- 10% of booleans will be set to 'y', 90% to 'n'
- 5% of tristates will be set to 'y', 5% to 'm', 90% to 'n'
- KCONFIG_PROBABILITY=15:25
- 40% of booleans will be set to 'y', 60% to 'n'
- 15% of tristates will be set to 'y', 25% to 'm', 60% to 'n'
- KCONFIG_PROBABILITY=10:15:15
- 10% of booleans will be set to 'y', 90% to 'n'
- 15% of tristates will be set to 'y', 15% to 'm', 70% to 'n'
-
-______________________________________________________________________
Environment variables for 'silentoldconfig'
KCONFIG_NOSILENTUPDATE
diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c
index bde5b95..e39fcd8 100644
--- a/scripts/kconfig/conf.c
+++ b/scripts/kconfig/conf.c
@@ -13,7 +13,6 @@
#include <getopt.h>
#include <sys/stat.h>
#include <sys/time.h>
-#include <errno.h>
#include "lkc.h"
@@ -515,23 +514,14 @@ int main(int ac, char **av)
{
struct timeval now;
unsigned int seed;
- char *seed_env;
/*
* Use microseconds derived seed,
* compensate for systems where it may be zero
*/
gettimeofday(&now, NULL);
- seed = (unsigned int)((now.tv_sec + 1) * (now.tv_usec + 1));
- seed_env = getenv("KCONFIG_SEED");
- if( seed_env && *seed_env ) {
- char *endp;
- int tmp = (int)strtol(seed_env, &endp, 10);
- if (*endp == '\0') {
- seed = tmp;
- }
- }
+ seed = (unsigned int)((now.tv_sec + 1) * (now.tv_usec + 1));
srand(seed);
break;
}
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index fc45fc1..13ddf11 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -288,6 +288,8 @@ load:
for_all_symbols(i, sym) {
sym->flags |= SYMBOL_CHANGED;
sym->flags &= ~(def_flags|SYMBOL_VALID);
+ if (sym_is_choice(sym))
+ sym->flags |= def_flags;
switch (sym->type) {
case S_INT:
case S_HEX:
@@ -377,13 +379,13 @@ setsym:
case mod:
if (cs->def[def].tri == yes) {
conf_warning("%s creates inconsistent choice state", sym->name);
+ cs->flags &= ~def_flags;
}
break;
case yes:
if (cs->def[def].tri != no)
conf_warning("override: %s changes choice state", sym->name);
cs->def[def].val = sym;
- cs->flags |= def_flags;
break;
}
cs->def[def].tri = EXPR_OR(cs->def[def].tri, sym->def[def].tri);
@@ -789,8 +791,6 @@ int conf_write(const char *name)
sym_calc_value(sym);
if (!(sym->flags & SYMBOL_WRITE))
goto next;
- if (sym_is_choice_value(sym) && !menu_is_visible(menu->parent))
- goto next;
sym->flags &= ~SYMBOL_WRITE;
conf_write_symbol(out, sym, &kconfig_printer_cb, NULL);
@@ -1077,7 +1077,6 @@ static void randomize_choice_values(struct symbol *csym)
else {
sym->def[S_DEF_USER].tri = no;
}
- sym->flags &= ~(SYMBOL_VALID);
}
csym->flags |= SYMBOL_DEF_USER;
/* clear VALID to get value calculated */
@@ -1107,54 +1106,10 @@ static void set_all_choice_values(struct symbol *csym)
void conf_set_all_new_symbols(enum conf_def_mode mode)
{
struct symbol *sym, *csym;
- int i, cnt, pby, pty, ptm; /* pby: probability of boolean = y
- * pty: probability of tristate = y
- * ptm: probability of tristate = m
- */
-
- pby = 50; pty = ptm = 33; /* can't go as the default in switch-case
- * below, otherwise gcc whines about
- * -Wmaybe-uninitialized */
- if (mode == def_random) {
- int n, p[3];
- char *env = getenv("KCONFIG_PROBABILITY");
- n = 0;
- while( env && *env ) {
- char *endp;
- int tmp = strtol( env, &endp, 10 );
- if( tmp >= 0 && tmp <= 100 ) {
- p[n++] = tmp;
- } else {
- errno = ERANGE;
- perror( "KCONFIG_PROBABILITY" );
- exit( 1 );
- }
- env = (*endp == ':') ? endp+1 : endp;
- if( n >=3 ) {
- break;
- }
- }
- switch( n ) {
- case 1:
- pby = p[0]; ptm = pby/2; pty = pby-ptm;
- break;
- case 2:
- pty = p[0]; ptm = p[1]; pby = pty + ptm;
- break;
- case 3:
- pby = p[0]; pty = p[1]; ptm = p[2];
- break;
- }
-
- if( pty+ptm > 100 ) {
- errno = ERANGE;
- perror( "KCONFIG_PROBABILITY" );
- exit( 1 );
- }
- }
+ int i, cnt;
for_all_symbols(i, sym) {
- if (sym_has_value(sym) || (sym->flags & SYMBOL_VALID))
+ if (sym_has_value(sym))
continue;
switch (sym_get_type(sym)) {
case S_BOOLEAN:
@@ -1170,15 +1125,8 @@ void conf_set_all_new_symbols(enum conf_def_mode mode)
sym->def[S_DEF_USER].tri = no;
break;
case def_random:
- sym->def[S_DEF_USER].tri = no;
- cnt = rand() % 100;
- if (sym->type == S_TRISTATE) {
- if (cnt < pty)
- sym->def[S_DEF_USER].tri = yes;
- else if (cnt < (pty+ptm))
- sym->def[S_DEF_USER].tri = mod;
- } else if (cnt < pby)
- sym->def[S_DEF_USER].tri = yes;
+ cnt = sym_get_type(sym) == S_TRISTATE ? 3 : 2;
+ sym->def[S_DEF_USER].tri = (tristate)(rand() % cnt);
break;
default:
continue;
diff --git a/scripts/package/builddeb b/scripts/package/builddeb
index acb8650..7d7c9d8 100644
--- a/scripts/package/builddeb
+++ b/scripts/package/builddeb
@@ -172,9 +172,22 @@ else
fi
maintainer="$name <$email>"
+# Try to determine distribution
+if [ -e $(which lsb_release) ]; then
+ codename=$(lsb_release --codename --short)
+ if [ "$codename" != "" ]; then
+ distribution=$codename
+ else
+ distribution="UNRELEASED"
+ echo "WARNING: The distribution could NOT be determined!"
+ fi
+else
+ echo "HINT: Install lsb_release binary, this helps to identify your distribution!"
+fi
+
# Generate a simple changelog template
cat <<EOF > debian/changelog
-linux-upstream ($packageversion) unstable; urgency=low
+linux-upstream ($packageversion) $distribution; urgency=low
* Custom built Linux kernel.
@@ -188,10 +201,10 @@ This is a packacked upstream version of the Linux kernel.
The sources may be found at most Linux ftp sites, including:
ftp://ftp.kernel.org/pub/linux/kernel
-Copyright: 1991 - 2009 Linus Torvalds and others.
+Copyright: 1991 - 2013 Linus Torvalds and others.
The git repository for mainline kernel development is at:
-git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
+git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
next prev parent reply other threads:[~2013-04-26 10:49 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-26 8:03 linux-next: Tree for Apr 26 Stephen Rothwell
2013-04-26 9:42 ` Sedat Dilek
2013-04-26 9:45 ` Sedat Dilek
2013-04-26 9:58 ` Michal Marek
2013-04-26 10:04 ` Michal Marek
2013-04-26 10:35 ` Sedat Dilek
2013-04-26 10:37 ` Sedat Dilek
2013-04-26 10:49 ` Sedat Dilek [this message]
2013-04-26 11:08 ` Michal Marek
2013-04-26 11:13 ` Michal Marek
2013-04-26 11:23 ` Sedat Dilek
2013-04-26 11:45 ` Sedat Dilek
2013-04-26 11:55 ` Michal Marek
2013-04-26 22:01 ` Yann E. MORIN
2013-04-27 6:54 ` Michal Marek
2013-04-27 11:30 ` Sedat Dilek
2013-04-27 15:24 ` Yann E. MORIN
2013-04-27 15:18 ` Yann E. MORIN
2013-04-26 12:06 ` Yann E. MORIN
2013-04-26 17:34 ` linux-next: Tree for Apr 26 (nfc) Randy Dunlap
2013-04-26 17:59 ` Marcel Holtmann
[not found] ` <20130426180357.7599d1b6b7965470905dcdf3-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org>
2013-04-27 17:06 ` linux-next: Tree for Apr 26 Geert Uytterhoeven
[not found] ` <CAMuHMdWQ0rMuoH+peGMZ3=AdsYrMPpeV4_vSsLD3kaJukx=83w-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-28 23:36 ` Stephen Rothwell
[not found] ` <20130429093628.b739ef3b879b6f8759bd31af-3FnU+UHB4dNDw9hX6IcOSA@public.gmane.org>
2013-04-29 6:58 ` Geert Uytterhoeven
[not found] ` <CAMuHMdXZrjaSmttoGHqWCpTkUaxNm3zpWCeU8Lojnp3i=TjhZw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-04-29 7:08 ` Sedat Dilek
2013-04-29 8:11 ` Matt Fleming
2013-04-29 8:53 ` Stephen Rothwell
2013-04-29 13:50 ` Matt Fleming
-- strict thread matches above, loose matches on Subject: below --
2016-04-26 7:21 Stephen Rothwell
2017-04-26 8:03 Stephen Rothwell
2018-04-26 5:18 Stephen Rothwell
2019-04-26 9:40 Stephen Rothwell
2021-04-26 6:41 Stephen Rothwell
2022-04-26 9:54 Stephen Rothwell
2023-04-26 16:32 broonie
2024-04-26 7:18 Stephen Rothwell
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=CA+icZUXSsqN1iE3ttQakvpZqG-oOL9NR6RMUezB7LGeUw3d00Q@mail.gmail.com \
--to=sedat.dilek@gmail$(echo .)com \
--cc=linux-kbuild@vger$(echo .)kernel.org \
--cc=linux-kernel@vger$(echo .)kernel.org \
--cc=linux-next@vger$(echo .)kernel.org \
--cc=mmarek@suse$(echo .)cz \
--cc=sfr@canb$(echo .)auug.org.au \
--cc=yann.morin.1998@free$(echo .)fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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