On Fri, 14 Mar 2008 13:27:10 +0530 Kamalesh Babulal <kamalesh@linux.vnet.ibm.com> wrote:Caused by Alan's "PM: make wakeup flags available whenever CONFIG_PM is set" which I assume Len merged. Sorry, but that code should be dragged out and shot. Doing this: is just gross and stupid. It looks daft, it isn't C and it *requires* that device_can_wakeup() be implemented as a macro, which totally busts any concept of abstraction. The code previously had quite reasonable accessors: #define device_set_wakeup_enable(dev,val) \ ((dev)->power.should_wakeup = !!(val)) #define device_may_wakeup(dev) \ (device_can_wakeup(dev) && (dev)->power.should_wakeup) can we please go back to that scheme? Please also convert all these magical macros into inlined C functions. One reason is that this: +#define device_init_wakeup(dev,val) \ + do { \ + device_can_wakeup(dev) = !!(val); \ + device_set_wakeup_enable(dev,val); \ + } while(0) is buggy. It evaluates its arguments multiple times and will cause failures when passed expressions which have side-effects. Alan, please also pass all future patches through checkpatch - there is no need to be adding trivial coding-style errors in this day and age. Thanks. --
| Andi Kleen | [PATCH x86] [6/16] Add a new arch_early_alloc() interface for x86-64 |
| Jay L. T. Cornwall | 2.6.22-rc5: pdflush oops under heavy disk load |
| Adrian Bunk | If you want me to quit I will quit |
| H. Willstrand | Re: AMD Quad Core clock problem? |
git: | |
| Pietro Mascagni | GIT vs Other: Need argument |
| Wink Saville | Resolving conflicts |
| Wink Saville | Using git with Eclipse |
| Toby White | Using Filemerge.app as a git-diff viewer |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Beavis | mutiple pptp pass-through PF |
| Andrei Pirvan | apache 1.3.29 + PHP 5.2.6 on OpenBSD 4.4 |
| STeve Andre' | Re: Perpetually Current |
| Herbert Xu | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Denys | r8169 crash |
| David Miller | Re: [crash] BUG: unable to handle kernel NULL pointer dereference at 0000000000000... |
| Jianjun Kong | [PATCH 2/6] nets: clean up net/ipv4/ipip.c raw.c tcp.c tcp_minisocks.c tcp_yeah.c ... |
