mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@linux-foundation.org>
To: "Randy.Dunlap" <rdunlap@xenotime.net>
Cc: linux-kernel@vger.kernel.org, "Parag Warudkar" <parag.lkml@gmail.com>
Subject: Re: mmotm 2008-09-18-14-56 uploaded (olpc_battery build errors)
Date: Thu, 18 Sep 2008 16:08:35 -0700	[thread overview]
Message-ID: <20080918160835.deaa3398.akpm@linux-foundation.org> (raw)
In-Reply-To: <Pine.LNX.4.64.0809181540480.28355@shark.he.net>

On Thu, 18 Sep 2008 15:42:18 -0700 (PDT)
"Randy.Dunlap" <rdunlap@xenotime.net> wrote:

> On Thu, 18 Sep 2008, akpm@linux-foundation.org wrote:
> 
> > The mm-of-the-moment snapshot 2008-09-18-14-56 has been uploaded to
> > 
> >    http://userweb.kernel.org/~akpm/mmotm/
> > 
> > It contains the following patches against 2.6.27-rc6:
> 
> olpc_battery build fails with
> 
> mmotm-2008-0918-1456/drivers/power/olpc_battery.c: At top level:
> mmotm-2008-0918-1456/drivers/power/olpc_battery.c:363: error: unknown field 'owner' specified in initializer
> mmotm-2008-0918-1456/drivers/power/olpc_battery.c:363: warning: excess elements in struct initializer
> mmotm-2008-0918-1456/drivers/power/olpc_battery.c:363: warning: (near initialization for 'olpc_bat_eeprom.attr')
> make[3]: *** [drivers/power/olpc_battery.o] Error 1
> 

OK, x86-sysfs-kill-owner-field-from-attribute.patch is being a pain. 
The problem is that it tries to kill all `owner' instances and then
remove the `owner' field.

But of course new code keeps on turning up doing the wrong thing and
the build breaks and I hae to keep fixing it.

I'm going to do this:

--- a/include/linux/sysfs.h~x86-sysfs-kill-owner-field-from-attribute-fix-3
+++ a/include/linux/sysfs.h
@@ -27,9 +27,7 @@ struct module;
  */
 struct attribute {
 	const char		*name;
-#ifndef CONFIG_X86
 	struct module		*owner;
-#endif
 	mode_t			mode;
 };
 

Parag, once that patch is merged into mainline can you please send a second
one which cleans up any newly-added occurrences and which also nukes that field.


  reply	other threads:[~2008-09-18 23:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <200809182157.m8ILv0Vi021531@imap1.linux-foundation.org>
2008-09-18 22:42 ` Randy.Dunlap
2008-09-18 23:08   ` Andrew Morton [this message]
2008-09-18 23:48 ` mmotm 2008-09-18-14-56 uploaded (nilfs2 build error) Randy.Dunlap
2008-09-18 23:59 ` mmotm 2008-09-18-14-56 uploaded Randy.Dunlap

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=20080918160835.deaa3398.akpm@linux-foundation.org \
    --to=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=parag.lkml@gmail.com \
    --cc=rdunlap@xenotime.net \
    /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