mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andreas Mohr <andi@rhlx01.hs-esslingen.de>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Anton Vorontsov <cbou@mail.ru>, linux-kernel@vger.kernel.org
Subject: 2.6.21-mm2: power_supply_core.c build failure
Date: Wed, 9 May 2007 23:08:20 +0200	[thread overview]
Message-ID: <20070509210818.GA7672@rhlx01.hs-esslingen.de> (raw)

Hi,

  CC      drivers/power/power_supply_core.o
In file included from drivers/power/power_supply_core.c:18:
include/linux/power_supply.h:125: error: field 'changed_work' has incomplete type
drivers/power/power_supply_core.c: In function 'power_supply_changed_work':
drivers/power/power_supply_core.c:25: warning: type defaults to 'int' in declaration of '__mptr'
drivers/power/power_supply_core.c:25: warning: initialization from incompatible pointer type
drivers/power/power_supply_core.c: In function 'power_supply_changed':
drivers/power/power_supply_core.c:57: warning: implicit declaration of function 'schedule_work'
drivers/power/power_supply_core.c: In function 'power_supply_register':
drivers/power/power_supply_core.c:103: warning: implicit declaration of function 'INIT_WORK'
drivers/power/power_supply_core.c: In function 'power_supply_unregister':
drivers/power/power_supply_core.c:128: warning: implicit declaration of function 'flush_scheduled_work'
make[3]: *** [drivers/power/power_supply_core.o] Error 1
make[2]: *** [drivers/power] Error 2
make[1]: *** [drivers] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.21-mm2.agp'
make: *** [debian/stamp-build-kernel] Error 2

CONFIG_POWER_SUPPLY=y
# CONFIG_POWER_SUPPLY_DEBUG is not set
# CONFIG_PDA_POWER is not set
# CONFIG_BATTERY_DS2760 is not set
# CONFIG_BATTERY_OLPC is not set

P3/700 UP, gcc 4.1.3.

Care to add a #include <linux/workqueue.h> or so? ;)
(worked for me when adding to include/linux/power_supply.h)

Ugh, such a pain following ever-outdated and always-broken -mm versions ;)

Andreas Mohr

             reply	other threads:[~2007-05-09 21:08 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-09 21:08 Andreas Mohr [this message]
2007-05-09 21:27 ` Anton Vorontsov
2007-05-09 21:44   ` Andreas Mohr

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=20070509210818.GA7672@rhlx01.hs-esslingen.de \
    --to=andi@rhlx01.hs-esslingen.de \
    --cc=akpm@linux-foundation.org \
    --cc=cbou@mail.ru \
    --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

all inboxes | Powered by JetHome®