On Tue, 18 Sep 2007 16:09:25 +0800 Bryan Wu <bryan.wu@analog.com> wrote:A few things `persistent' here only has meaning inside the next nesting level, so should be moved down into that scope for readability reasons. Also, the initialisation to zero is, afaict, unneeded and wastes instructions. I suspect that's just there to suppress a gcc warning, which is better done with uninitialized_var(). If this correct? flat_set_persistent() returns zero if it didn't write anything to `persistent'. It seems strange that in the case where flat_set_persistent() _does_ write something to `persistent', we just throw it away by doing `continue'. Either that, or I've misread the code and you really did mean to put `persistent' in the outer scope, and its value is supposed to propagate over into the next iteration of the loop. If so, that's all a bit too tricky for it to be implemented with zero code comments, dontcha think? Also, given that you are proposing that flat_set_persistent() becomes part of the kernel's core<->arch interface (for all architectures which want to implement binfmt_flat()), it is no longer appropriate that the reference implementation of flat_set_persistent() (ie: blackfins's implementation) be completely undocumented. IMO. ug. those macros are crap. who did that. They will generate compiler warnings and runtime failures in a whole host of well-known scenarios. My kingdom to the person who invents a keyboard which delivers 12 kV when it detects the sequence # d e f i n e. There is no reason why these "functions" need to be implemented as crappy #defines and converting them to C will fix bug, warnings and will clean stuff up. Sigh. -
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| Rafael J. Wysocki | [Bug #11799] xorg can not start up with stolen memory |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Pavel Roskin | ndiswrapper and GPL-only symbols redux |
git: | |
| David Miller | [GIT]: Networking |
| Joakim Tjernlund | ucc_geth: nf_conntrack: table full, dropping packet. |
| Gerrit Renker | [PATCH 03/37] dccp: List management for new feature negotiation |
| Frans Pop | svc: failed to register lockdv1 RPC service (errno 97). |
