mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 17:13:52 +02:00
Bootconfig fixes v6.3
- Fix bootconfig test script to test increased maximum number (8192) node correctly. - Change the console message if there is no bootconfig data and the kernel is compiled with CONFIG_BOOT_CONFIG_FORCE=y. -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEh7BulGwFlgAOi5DV2/sHvwUrPxsFAmQbDHsACgkQ2/sHvwUr Pxs8Nwf/S8r+Z8+1aRZ3lPLpGgT50CgaeceMcSuxhbTWgKXHTk1Gg/ShIqPMmiQW Lx7M9wL1ictPQ0Xk2hzJL5vD15RI6dIv+kLsRxyMHiqusR09/IIxkX3SbihjGQuf Tpf5Fq4yfEH3eWLVA6/WN+cv2pH+TmlHv+sYVSf01BcFfmhC4p8YKTMJpM8yJfnh Ux9ugxY5JwceDCRBoL88Wx7wKPHDIVs25mnYWSR82zohsJhqW0CFhOPHpziyqyQX FEt9CFqfrJ+qild9bkUhgAFze0EaetZaRjdXJhrwFZZ2UkTqT/RTZgWCbwJ10x8j rPNNTgpIpPSCZ17bZQd5CwpY6SGMtg== =tj7z -----END PGP SIGNATURE----- Merge tag 'bootconfig-fixes-v6.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace Pull bootconfig fixes from Masami Hiramatsu: - Fix bootconfig test script to test increased maximum number (8192) node correctly - Change the console message if there is no bootconfig data and the kernel is compiled with CONFIG_BOOT_CONFIG_FORCE=y * tag 'bootconfig-fixes-v6.3-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/trace/linux-trace: bootconfig: Change message if no bootconfig with CONFIG_BOOT_CONFIG_FORCE=y bootconfig: Fix testcase to increase max node
This commit is contained in:
commit
c13e02d335
10
init/main.c
10
init/main.c
|
|
@ -156,7 +156,7 @@ static char *extra_init_args;
|
|||
|
||||
#ifdef CONFIG_BOOT_CONFIG
|
||||
/* Is bootconfig on command line? */
|
||||
static bool bootconfig_found = IS_ENABLED(CONFIG_BOOT_CONFIG_FORCE);
|
||||
static bool bootconfig_found;
|
||||
static size_t initargs_offs;
|
||||
#else
|
||||
# define bootconfig_found false
|
||||
|
|
@ -429,7 +429,7 @@ static void __init setup_boot_config(void)
|
|||
err = parse_args("bootconfig", tmp_cmdline, NULL, 0, 0, 0, NULL,
|
||||
bootconfig_params);
|
||||
|
||||
if (IS_ERR(err) || !bootconfig_found)
|
||||
if (IS_ERR(err) || !(bootconfig_found || IS_ENABLED(CONFIG_BOOT_CONFIG_FORCE)))
|
||||
return;
|
||||
|
||||
/* parse_args() stops at the next param of '--' and returns an address */
|
||||
|
|
@ -437,7 +437,11 @@ static void __init setup_boot_config(void)
|
|||
initargs_offs = err - tmp_cmdline;
|
||||
|
||||
if (!data) {
|
||||
pr_err("'bootconfig' found on command line, but no bootconfig found\n");
|
||||
/* If user intended to use bootconfig, show an error level message */
|
||||
if (bootconfig_found)
|
||||
pr_err("'bootconfig' found on command line, but no bootconfig found\n");
|
||||
else
|
||||
pr_info("No bootconfig data provided, so skipping bootconfig");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -87,10 +87,14 @@ xfail grep -i "error" $OUTFILE
|
|||
|
||||
echo "Max node number check"
|
||||
|
||||
echo -n > $TEMPCONF
|
||||
for i in `seq 1 1024` ; do
|
||||
echo "node$i" >> $TEMPCONF
|
||||
done
|
||||
awk '
|
||||
BEGIN {
|
||||
for (i = 0; i < 26; i += 1)
|
||||
printf("%c\n", 65 + i % 26)
|
||||
for (i = 26; i < 8192; i += 1)
|
||||
printf("%c%c%c\n", 65 + i % 26, 65 + (i / 26) % 26, 65 + (i / 26 / 26))
|
||||
}
|
||||
' > $TEMPCONF
|
||||
xpass $BOOTCONF -a $TEMPCONF $INITRD
|
||||
|
||||
echo "badnode" >> $TEMPCONF
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user