On Thu, Nov 27, 2008 at 11:01 PM, Sean McNeil <[EMAIL PROTECTED]> wrote: > Really shouldn't have any compiler warnings. This includes a check on the > rfkill_register which is marked as must check. Please use this patch instead > for clean compilation. > > Sean McNeil wrote: >> >> It turns out the code I used for reference was setting an invalid initial >> value for the state. Setting it to the off state should prevent the warning >> trace seen by Werner. I didn't see it as my dmesg buffer is flooded with >> other messages, so I can't verify it is gone either.
Hello Sean. Before the patch I would get: [21474539.315000] SD power -> 2700mV [21474539.335000] ------------[ cut here ]------------ [21474539.340000] WARNING: at net/rfkill/rfkill.c:752 rfkill_register+0x54/0xd8() [21474539.345000] rfkill: attempt to register a badly initialized rfkill struct And after the patch I get: [21474539.305000] SD power -> 2700mV [21474539.365000] [EMAIL PROTECTED]@�8BB�x : GTA02 Set PCF50633 LDO4 = 3200 [21474539.375000] neo1973-pm-host neo1973-pm-host.0: starting I tried twice. Is it OK?
