mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Randy Dunlap <randy.dunlap@oracle.com>
To: Jonathan Campbell <jon@nerdgrounds.com>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Patches for tiny 386 kernels, again. Linux kernel 2.6.22.7
Date: Wed, 26 Sep 2007 16:20:59 -0700	[thread overview]
Message-ID: <20070926162059.e6eb5e93.randy.dunlap@oracle.com> (raw)
In-Reply-To: <46FAA808.90004@nerdgrounds.com>

On Wed, 26 Sep 2007 11:42:16 -0700 Jonathan Campbell wrote:

> Here is the DMI patch again, written against linux-2.6.23-rc8,
> with some of the #ifdef CONFIG_DMI's removed and moved
> to include/linux/dmi.h. Putting them there in the way I've done
> ensures that you don't have to put #ifdef CONFIG_DMI
> around each dmi_check_machine() and that you don't
> have to apply little patches to so many device drivers.

Damaged as the patch is, I was able to apply it by using
'patch -l' (ignore whitespace) + some fuzz.  Not something that
Linus or Andrew would or should do.

I built and booted the kernel, it's running fine (x86_32 notebook).



> diff -u -r linux-2.6.23-rc8-old/init/Kconfig linux-2.6.23-rc8/init/Kconfig
> --- linux-2.6.23-rc8-old/init/Kconfig    2007-09-21 22:38:23.000000000 +0000
> +++ linux-2.6.23-rc8/init/Kconfig    2007-09-26 00:03:05.000000000 +0000
> @@ -542,6 +542,18 @@
>        on EMBEDDED systems.  /proc/vmstat will only show page counts
>        if VM event counters are disabled.
>  
> +config DMI
> +    default y
> +    bool "Enable DMI support" if EMBEDDED
> +    depends on X86
> +    help
> +      This enables support for processing the Desktop Management
> +      Interface structures present in most modern BIOSes. If you are
> +      building a kernel for an older Pentium, 486, or 386 system and
> +      memory is tight, you can disable this to help reduce the size
> +      of your kernel by about 6K.
> +      If unsure, say Y.
> +

This is in the General setup menu.  How about putting it into the
EMBEDDED menu instead?  [Configure standard kernel features (for
small systems)]

>  config SLUB_DEBUG
>      default y
>      bool "Enable SLUB debugging support" if EMBEDDED


There are still several build warnings that need attention:

drivers/acpi/sleep/main.c:223: warning: 'acpisleep_dmi_table' defined but not used
drivers/pnp/pnpbios/core.c:509: warning: 'pnpbios_dmi_table' defined but not used
arch/i386/pci/irq.c:1035: warning: 'pciirq_dmi_table' defined but not used
arch/i386/pci/common.c:148: warning: 'pciprobe_dmi_table' defined but not used


+#endif // CONFIG_DMI

Use /* ... */ style comments instead of // comments.

---
~Randy
Phaedrus says that Quality is about caring.

  parent reply	other threads:[~2007-09-26 23:22 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-24  8:51 Jonathan Campbell
2007-09-24 17:49 ` Randy Dunlap
2007-09-26 18:42   ` Jonathan Campbell
2007-09-26 22:06     ` Randy Dunlap
2007-09-26 23:20     ` Randy Dunlap [this message]
2007-09-26 23:44       ` Jonathan Campbell
     [not found]       ` <46FAEE97.7090902@nerdgrounds.com>
2007-09-26 23:47         ` Randy Dunlap
2007-09-26 23:49           ` Jonathan Campbell
2007-09-28 21:24   ` Bill Davidsen
2007-09-28 21:56     ` Randy Dunlap
2007-10-01 13:44     ` Lennart Sorensen
2007-10-01 14:28       ` Bill Davidsen
2007-10-02  4:48         ` Willy Tarreau
2007-09-24 19:09 ` Dave Jones
2007-09-25  4:45   ` Andrey Panin
2007-09-25  7:28   ` Jan Engelhardt

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=20070926162059.e6eb5e93.randy.dunlap@oracle.com \
    --to=randy.dunlap@oracle.com \
    --cc=jon@nerdgrounds.com \
    --cc=linux-kernel@vger.kernel.org \
    /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

Powered by JetHome