linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Greg KH <gregkh@linuxfoundation.org>
To: Borislav Petkov <bp@alien8.de>
Cc: "Arvind R." <arvino55@gmail.com>,
	Mark Gross <mark.gross@intel.com>,
	Mauro Carvalho Chehab <mchehab@redhat.com>,
	Jason Uhlenkott <juhlenko@akamai.com>,
	Ranganathan Desikan <ravi@jetztechnologies.com>,
	Bill Pemberton <wfp5p@virginia.edu>,
	Egor Martovetsky <egor@pasemi.com>,
	Doug Thompson <dougthompson@xmission.com>,
	Olof Johansson <olof@lixom.net>,
	linux-edac@vger.kernel.org, linuxppc-dev@lists.ozlabs.org,
	Tim Small <tim@buttersideup.com>
Subject: Re: [PATCH 056/493] edac: remove use of __devexit_p
Date: Fri, 23 Nov 2012 08:40:24 -0800	[thread overview]
Message-ID: <20121123164024.GB5471@kroah.com> (raw)
In-Reply-To: <20121123100635.GC18765@x1.alien8.de>

On Fri, Nov 23, 2012 at 11:06:35AM +0100, Borislav Petkov wrote:
> On Thu, Nov 22, 2012 at 10:22:22AM -0800, Greg KH wrote:
> > On Thu, Nov 22, 2012 at 02:44:51PM +0100, Borislav Petkov wrote:
> > > On Mon, Nov 19, 2012 at 01:20:05PM -0500, Bill Pemberton wrote:
> > > > CONFIG_HOTPLUG is going away as an option so __devexit_p is no longer
> > > > needed.
> > > 
> > > Erm, I don't understand. __devexit_p is defined also for modules not
> > > only for CONFIG_HOTPLUG:
> > > 
> > > #if defined(MODULE) || defined(CONFIG_HOTPLUG)
> > > #define __devexit_p(x) x
> > > #else
> > > #define __devexit_p(x) NULL
> > > #endif
> > > 
> > > AFAICT, we cannot remove it yet no?
> > 
> > If MODULE is defined, it defaults to nothing.  And now that
> > CONFIG_HOTPLUG is always set to Y, this always defaults to nothing.
> 
> Huh, if MODULE is defined, __devexit_p(x) evaluates to the function name
> 'x' itself, AFAICT.

Yes, sorry, that is what I was trying to say here, I meant "nothing" in
that the macro did not do anything, not that it was setting it to NULL.

> So, if MODULE is defined and we have a reference from retained sections
> to a discarded section (I'm rereading the comment over __devexit_p in
> <include/linux/init.h> btw) then we'll get linker errors so we'd still
> need the ifdef thing, no?

No, as there will not be any discarded sections anymore because
CONFIG_HOTPLUG is always enabled.  We will just delete this whole
#if/#endif section once all users of __devexit_p() are gone from the
tree.

Does that help out?

thanks,

greg k-h

  reply	other threads:[~2012-11-23 16:39 UTC|newest]

Thread overview: 78+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1353349642-3677-1-git-send-email-wfp5p@virginia.edu>
2012-11-19 18:19 ` [PATCH 014/493] PCI: remove CONFIG_HOTPLUG ifdefs Bill Pemberton
2012-11-19 18:19 ` [PATCH 024/493] powerpc: " Bill Pemberton
2012-11-19 18:19 ` [PATCH 035/493] powerpc: remove use of __devexit_p Bill Pemberton
2012-11-19 18:20 ` [PATCH 056/493] edac: " Bill Pemberton
2012-11-22 13:44   ` Borislav Petkov
2012-11-22 18:22     ` Greg KH
2012-11-23 10:06       ` Borislav Petkov
2012-11-23 16:40         ` Greg KH [this message]
2012-11-24  9:14           ` Borislav Petkov
2012-11-24 17:59             ` Greg KH
2012-11-19 18:20 ` [PATCH 065/493] i2c: " Bill Pemberton
2012-11-20  6:59   ` Shubhrajyoti Datta
2012-11-20 13:46   ` Jean Delvare
2012-11-22 21:49     ` Wolfram Sang
2012-11-26 13:52       ` Bill Pemberton
2012-11-19 18:20 ` [PATCH 072/493] drivers/macintosh: " Bill Pemberton
2012-11-19 18:21 ` [PATCH 117/493] tty: " Bill Pemberton
2012-11-19 18:21 ` [PATCH 119/493] usb: " Bill Pemberton
2012-11-19 20:14   ` Felipe Balbi
2012-11-20  9:29   ` Nicolas Ferre
2012-11-20 14:02     ` Peter Korsgaard
2012-11-19 18:21 ` [PATCH 146/493] ASoC: " Bill Pemberton
     [not found]   ` <s5hehjordzj.wl%tiwai@suse.de>
2012-11-20  6:30     ` Forward: " Mark Brown
2012-11-19 18:21 ` [PATCH 158/493] video: remove use of __devinit Bill Pemberton
2012-11-20 16:57   ` David Brown
2012-11-19 18:21 ` [PATCH 159/493] usb: " Bill Pemberton
2012-11-19 20:15   ` Felipe Balbi
2012-11-20  9:33   ` Nicolas Ferre
2012-11-20 21:44   ` Alan Stern
2012-11-19 18:21 ` [PATCH 161/493] tty: " Bill Pemberton
2012-11-20  9:34   ` Nicolas Ferre
2012-11-20  9:44   ` Tobias Klauser
2012-11-19 18:22 ` [PATCH 192/493] scsi: " Bill Pemberton
2012-11-21 11:51   ` Russell King - ARM Linux
2012-11-21 12:13   ` Guennadi Liakhovetski
2012-11-26 17:37   ` [Pv-drivers] " Dmitry Torokhov
2012-11-27 11:32   ` vinayak holikatti
2012-11-19 18:22 ` [PATCH 198/493] ethernet: " Bill Pemberton
2012-11-21 11:55   ` Russell King - ARM Linux
2012-11-19 18:22 ` [PATCH 207/493] i2c: " Bill Pemberton
2012-11-20  8:20   ` Jean Delvare
2012-11-20 13:23     ` Russell King - ARM Linux
2012-11-20 13:37       ` Jean Delvare
2012-11-21 11:02   ` Barry Song
2012-11-19 18:22 ` [PATCH 211/493] hwrng: " Bill Pemberton
2012-11-19 18:22 ` [PATCH 215/493] drivers/macintosh: " Bill Pemberton
2012-11-19 18:22 ` [PATCH 222/493] char: " Bill Pemberton
2012-11-19 18:22 ` [PATCH 226/493] dma: " Bill Pemberton
2012-11-20  3:07   ` viresh kumar
2012-11-19 18:22 ` [PATCH 227/493] edac: " Bill Pemberton
2012-11-19 18:23 ` [PATCH 238/493] mtd: " Bill Pemberton
2012-11-21 11:58   ` Russell King - ARM Linux
2012-11-19 18:23 ` [PATCH 244/493] ps3: " Bill Pemberton
2012-11-19 18:23 ` [PATCH 247/493] drivers/block: " Bill Pemberton
2012-11-19 18:23 ` [PATCH 261/493] sound: " Bill Pemberton
2012-11-19 18:23 ` [PATCH 283/493] powerpc: " Bill Pemberton
2012-11-19 18:24 ` [PATCH 295/493] tty: remove use of __devinitdata Bill Pemberton
2012-11-19 18:24 ` [PATCH 298/493] video: " Bill Pemberton
2012-11-21 12:00   ` Russell King - ARM Linux
2012-11-19 18:24 ` [PATCH 323/493] tty: " Bill Pemberton
2012-11-19 18:24 ` [PATCH 344/493] powerpc: " Bill Pemberton
2012-11-19 18:25 ` [PATCH 371/493] usb: remove use of __devinitconst Bill Pemberton
2012-11-19 20:16   ` Felipe Balbi
2012-11-19 18:25 ` [PATCH 373/493] drivers/macintosh: " Bill Pemberton
2012-11-19 18:25 ` [PATCH 382/493] powerpc: " Bill Pemberton
2012-11-19 18:25 ` [PATCH 399/493] edac: remove use of __devexit Bill Pemberton
2012-11-19 18:25 ` [PATCH 404/493] i2c: " Bill Pemberton
2012-11-19 18:26 ` [PATCH 415/493] mtd: " Bill Pemberton
2012-11-19 18:26 ` [PATCH 429/493] tty: " Bill Pemberton
2012-11-20  9:45   ` Tobias Klauser
2012-11-20 17:06   ` David Brown
2012-11-19 18:26 ` [PATCH 431/493] usb: " Bill Pemberton
2012-11-19 20:17   ` Felipe Balbi
2012-11-19 18:26 ` [PATCH 437/493] char: " Bill Pemberton
2012-11-26 20:36   ` Kent Yoder
2012-11-19 18:26 ` [PATCH 443/493] drivers/macintosh: " Bill Pemberton
2012-11-19 18:27 ` [PATCH 486/493] powerpc: " Bill Pemberton
2012-11-19 18:27 ` [PATCH 491/493] sound: " Bill Pemberton

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=20121123164024.GB5471@kroah.com \
    --to=gregkh@linuxfoundation.org \
    --cc=arvino55@gmail.com \
    --cc=bp@alien8.de \
    --cc=dougthompson@xmission.com \
    --cc=egor@pasemi.com \
    --cc=juhlenko@akamai.com \
    --cc=linux-edac@vger.kernel.org \
    --cc=linuxppc-dev@lists.ozlabs.org \
    --cc=mark.gross@intel.com \
    --cc=mchehab@redhat.com \
    --cc=olof@lixom.net \
    --cc=ravi@jetztechnologies.com \
    --cc=tim@buttersideup.com \
    --cc=wfp5p@virginia.edu \
    /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;
as well as URLs for NNTP newsgroup(s).