[PATCH] QUOTA: Have include explicitly.

2007-02-04 Thread Robert P. J. Day
Since quota.h declares a R/W semaphore, it should include rwsem.h explicitly. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- No, this doesn't fix an *existing* problem, but it's necessary for an upcoming patch which will remove all includes of from all the s

Re: [patch] MTD: fix DOC2000/2001/2001PLUS build error

2007-02-06 Thread Robert P. J. Day
a couple patches to start the process, but it never really went anywhere. rday -- ==== Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://fsdev.net/wiki/index.php?title=

[PATCH] Kconfig: Remove DEBUG_RWSEMS

2007-02-08 Thread Robert P. J. Day
Remove the final vestiges of the kernel config option DEBUG_RWSEMS, since it has no value, at least at the moment. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- my apologies for pushing this so high up the food chain, but i want to submit another patch that sits *right* n

introducing conditional submenus in the config process?

2007-02-09 Thread Robert P. J. Day
as an aside, rather than have to implement this with two Kconfig features, it might even be worth creating a whole new feature, something like "submenuconfig" or whatever, that does all this automatically.) thoughts? rday -- =========

[PATCH] Remove "#include " from semaphore headers.

2007-02-12 Thread Robert P. J. Day
Remove all inclusions of "linux/rwsem.h" from the standard semaphore header files, since anyone who needs R/W semaphores should be including that header file directly. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- it *seems* fairly obvious that the nume

[PATCH] Standardize on "depends on" in Kconfig files.

2007-02-12 Thread Robert P. J. Day
Standardize on "depends on" in Kconfig files, and drop support for the alternative forms of "depends" or "requires". Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- there was a consensus to standardize exclusively on the qualifier "depends o

removing all "R/W" content from all semaphore.h files?

2007-02-16 Thread Robert P. J. Day
ions *can't* be a good thing. rday -- ================ Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://fsdev.net/wiki/index.php?title=Main_Page - To unsubscribe from this list: sen

Re: [KJ] [PATCH] is_power_of_2 in ia64mm

2007-02-16 Thread Robert P. J. Day
change. > > > Yes, but is it meant to state that 'size' is not a power of two? > Otherwise, imho, it should be left as-is. i think the above change is fine. as long as the final, overall semantics of the condition are identical, then there's no problem. rday -- =

Re: [KJ] [PATCH] is_power_of_2 in ia64mm

2007-02-16 Thread Robert P. J. Day
t is_power_of_2() should be fixed up first > and then we can see about it. there's nothing about is_power_of_2() that needs "fixing". it's correct as it's currently implemented. > And as I stated before; !is_power_of_2(size) != (size & (size-1))! > It may be a bug but then we have to be sure it is s

[PATCH] Remove obsolete raw device support.

2007-02-16 Thread Robert P. J. Day
Remove the long-obsolete "raw device" support. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- based on this excerpt from Documentation/feature-removal-schedule.txt: What: RAW driver (CONFIG_RAW_DRIVER) When: December 2005 Why:declared obsolete si

[PATCH] kbuild: Add the code maturity levels DEPRECATED and OBSOLETE.

2007-02-18 Thread Robert P. J. Day
Add two new maturity levels of DEPRECATED and OBSOLETE to the kbuild structure. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- one more time, i'll see if i can get this into the main tree, since previous attempts just seem to disappear into the void, even though sev

Re: [PATCH] kbuild: Add the code maturity levels DEPRECATED and OBSOLETE.

2007-02-18 Thread Robert P. J. Day
On Sun, 18 Feb 2007, Bartlomiej Zolnierkiewicz wrote: > Hi, > > Would it be possible to get this patch merged > (or at least DEPRECATED part of it)? > > I think that the patch is useful and that the distinction between > DEPRECATED and OBSOLETE options is quite clear: > > * DEPRECATED == new bette

Re: [PATCH] kbuild: Add the code maturity levels DEPRECATED and OBSOLETE.

2007-02-20 Thread Robert P. J. Day
bsolete means dead/unsupported/use at own risk. might still work but no guarantees and could be removed at any time. rday -- ================ Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Wa

Re: [PATCH] kbuild: Add the code maturity levels DEPRECATED and OBSOLETE.

2007-02-20 Thread Robert P. J. Day
t now* and you should consider switching to it. if you can't offer someone a completely functional, better alternative to what they're using now, then you can't say that what they're using now is deprecated. rday -- ==

Re: [PATCH] kbuild: Add the code maturity levels DEPRECATED and OBSOLETE.

2007-02-20 Thread Robert P. J. Day
On Tue, 20 Feb 2007, Sam Ravnborg wrote: > On Tue, Feb 20, 2007 at 05:47:43PM -0500, Robert P. J. Day wrote: > > in a nutshell, my idea of deprecated is: perhaps still supported, > > still being used, but there is a better alternative available right > > now and you should

[PATCH] deprecated/obsolete patch

2007-02-20 Thread Robert P. J. Day
tion/feature-removal-schedule.txt for + any proposed removal dates. + config BROKEN bool -- ================ Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Onta

Re: [PATCH] kbuild: Add the code maturity levels DEPRECATED and OBSOLETE.

2007-02-20 Thread Robert P. J. Day
On Wed, 21 Feb 2007, Tilman Schmidt wrote: > Am 20.02.2007 23:52 schrieb Robert P. J. Day: > > "deprecated" means that there *is* a complete replacement available > > *right now* and you should consider switching to it. > > > > if you can't off

Re: [PATCH] Add a rounddown_pow_of_two() macro to log2.h.

2007-01-25 Thread Robert P. J. Day
On Thu, 25 Jan 2007, Andrew Morton wrote: > On Thu, 25 Jan 2007 04:32:12 -0500 (EST) > "Robert P. J. Day" <[EMAIL PROTECTED]> wrote: > > +/* > > + * round down to nearest power of two > > + */ > > +static inline __attribute__((const)) > > +

[PATCH] Remove final vestiges of CONFIG_UNWIND_INFO.

2007-01-26 Thread Robert P. J. Day
Remove the sole remaining reference to the apparently dead config variable CONFIG_UNWIND_INFO. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- there doesn't seem to be much point in leaving this in if nothing's using it. diff --git a/include/asm-i386/dwarf2.h b/

Re: [PATCH] Remove final vestiges of CONFIG_UNWIND_INFO.

2007-01-26 Thread Robert P. J. Day
On Fri, 26 Jan 2007, Alexey Dobriyan wrote: > On Fri, Jan 26, 2007 at 01:06:39PM -0500, Robert P. J. Day wrote: > > Remove the sole remaining reference to the apparently dead config > > variable CONFIG_UNWIND_INFO. > > Regardless of unwinder future, patch doesn't up

[PATCH] ACPI: Correct apparent typo "CONFIG_ACPI_DEBUG_OUTPUT".

2007-01-26 Thread Robert P. J. Day
Replace the apparent typo CONFIG_ACPI_DEBUG_OUTPUT with the non-Kconfig conditional ACPI_DEBUG_OUTPUT, which is what every other file uses. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- diff --git a/drivers/acpi/scan.c b/drivers/acpi/scan.c index 698a154..d65142a 100644

[PATCH] Fix apparent typo CONFIG_LOCKDEP_DEBUG.

2007-01-27 Thread Robert P. J. Day
Replace the apparent typo CONFIG_LOCKDEP_DEBUG with the correct CONFIG_DEBUG_LOCKDEP. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- diff --git a/kernel/lockdep_proc.c b/kernel/lockdep_proc.c index b554b40..78381a6 100644 --- a/kernel/lockdep_proc.c +++ b/kernel/lockdep_

definite OMAP1610_IR-related typo

2007-01-27 Thread Robert P. J. Day
l-encompassing CONFIG_OMAP16XX confguration setting. -- ================ Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://www.fsdev.dreamhosters.com/

[PATCH] ISDN: Rename some debugging macros to not resemble CONFIG options.

2007-01-27 Thread Robert P. J. Day
Rename some of the debugging macros for ISDN AVM so that they don't resemble kernel config settings, as they're primarily for author debugging instead. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- Replace the "CONFIG_" prefix with an "AVM_" pr

[PATCH] ISDN: Fix typo "CONFIG_HISAX_QUADRO" -> "CONFIG_HISAX_SCT_QUADRO".

2007-01-27 Thread Robert P. J. Day
Replace misspelled CONFIG_HISAX_QUADRO with CONFIG_HISAX_SCT_QUADRO. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- diff --git a/drivers/isdn/hisax/config.c b/drivers/isdn/hisax/config.c index 17ec0b7..29e98f7 100644 --- a/drivers/isdn/hisax/config.c +++ b/drivers/isdn

[PATCH} XFS: Remove placeholders for unimplemented functionality.

2007-01-28 Thread Robert P. J. Day
Remove a couple kernel config variables (FS_POSIX_CAP and FS_POSIX_MAC) that represent placeholders for unimplemented functionality. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- compile-tested on i386. fs/xfs/xfs_cap.h | 15 --- fs/xfs/xfs_mac.h

Re: [xfs-masters] [PATCH} XFS: Remove placeholders for unimplemented functionality.

2007-01-29 Thread Robert P. J. Day
On Sun, 28 Jan 2007, Eric Sandeen wrote: > Robert P. J. Day wrote: > > Remove a couple kernel config variables (FS_POSIX_CAP and > > FS_POSIX_MAC) that represent placeholders for unimplemented > > functionality. > > > > Signed-off-by: R

finding "dead" CONFIG variables -- an exercise for the reader

2007-01-29 Thread Robert P. J. Day
tainer, as you can see by the suffix "_DEBUG". but if that's the case, it's my feeling that macros like that should *not* start with the "CONFIG_" prefix, which should be reserved for user-configurable selections only. but that's just my $0.02. rday -- ==

[PATCH] Add "is_power_of_2" checking to log2.h.

2007-01-30 Thread Robert P. J. Day
Add the inline function "is_power_of_2()" to log2.h, where the value zero is *not* considered to be a power of two. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- while people are coming up with more and more clever ways to do rounding, we can at least add the chec

Re: [PATCH] Add "is_power_of_2" checking to log2.h.

2007-01-30 Thread Robert P. J. Day
On Tue, 30 Jan 2007, Nick Piggin wrote: > Robert P. J. Day wrote: > > Add the inline function "is_power_of_2()" to log2.h, where the value > > zero is *not* considered to be a power of two. > > > > > Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]&g

Re: [PATCH] Add "is_power_of_2" checking to log2.h.

2007-01-30 Thread Robert P. J. Day
nd third macros *won't* consider zero a power of two, while the second one *will*. hence the need for a single standard for all of this, just to play it safe. rday p.s. in case you missed it, that was a not-so-subtle plea to please just apply this patch so we can move on. -- ==========

Re: [PATCH] Add "is_power_of_2" checking to log2.h.

2007-01-30 Thread Robert P. J. Day
On Tue, 30 Jan 2007, Jan Engelhardt wrote: > > On Jan 30 2007 09:45, Robert P. J. Day wrote: > >seriously, though, there is the potential of breaking something with > >this change since you can see how there is some inconsistency in how > >it's done *now* just for

Re: [PATCH] Add "is_power_of_2" checking to log2.h.

2007-01-30 Thread Robert P. J. Day
On Wed, 31 Jan 2007, Nick Piggin wrote: > Robert P. J. Day wrote: > > On Tue, 30 Jan 2007, Nick Piggin wrote: > > > > > > > Robert P. J. Day wrote: > > > > > > > Add the inline function "is_power_of_2()" to log2.h, where th

Re: [PATCH] Add "is_power_of_2" checking to log2.h.

2007-01-31 Thread Robert P. J. Day
it as a project for the kernel janitors, they might not realize what you had in mind. so it's in your best interest to start cleaning this up on your own. just my $0.02 (Cdn.) rday -- Robert P. J. Day Linux Consulting, Training and Annoy

[PATCH] Centralize the selection for debugging semaphores.

2007-01-31 Thread Robert P. J. Day
Centralize the kernel config option for debugging semaphores and modify the macro for frv to use that config option instead. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- at the moment, two architectures have support for debugging semaphores: alpha (with a local Kconfig

Re: [PATCH] Centralize the selection for debugging semaphores.

2007-01-31 Thread Robert P. J. Day
On Wed, 31 Jan 2007, Michal Piotrowski wrote: > On 31/01/07, Robert P. J. Day <[EMAIL PROTECTED]> wrote: > > > > Centralize the kernel config option for debugging semaphores and > > modify the macro for frv to use that config option instead. > > > >

Re: [PATCH] Centralize the selection for debugging semaphores.

2007-01-31 Thread Robert P. J. Day
On Wed, 31 Jan 2007, Michal Piotrowski wrote: > On 31/01/07, Robert P. J. Day <[EMAIL PROTECTED]> wrote: > > On Wed, 31 Jan 2007, Michal Piotrowski wrote: > > > > > On 31/01/07, Robert P. J. Day <[EMAIL PROTECTED]> wrote: > > > > > > &

Re: [PATCH] Fix apparent typo of "CONFIG_MT_SMP".

2007-01-31 Thread Robert P. J. Day
On Wed, 31 Jan 2007, Chuck Ebbert wrote: > Robert P. J. Day wrote: > > Replace apparent typo of CONFIG_MT_SMP with CONFIG_MIPS_MT_SMP. > > > > Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> > > > > --- > > > > diff --git a/arch/mips/mips-

Re: [PATCH] Add "is_power_of_2" checking to log2.h.

2007-02-01 Thread Robert P. J. Day
On Thu, 1 Feb 2007, David Howells wrote: > > Robert P. J. Day <[EMAIL PROTECTED]> wrote: > > > +#define is_power_of_4(x) is_power_of_2(x) && (ffs(x) & 1)) > > If this is such a commonly implemented op, it should probably be implemented > globally t

[PATCH] SCSI: Fix obvious typo "spin_lock_irqrestore()" in gdth.c.

2007-02-01 Thread Robert P. J. Day
Fix misspelled "spin_lock_irqrestore" to read "spin_unlock_irqrestore" instead. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- diff --git a/drivers/scsi/gdth.c b/drivers/scsi/gdth.c index 4c698a7..25f7cf4 100644 --- a/drivers/scsi/gdth.c +++ b/drivers/scsi

[PATCH] Replace arrays of SPIN_LOCK_UNLOCKED with __RAW_SPIN_LOCK_UNLOCKED.

2007-02-01 Thread Robert P. J. Day
For Sparc, PPC and CRIS, replace declarations of an array of SPIN_LOCK_UNLOCKED with an array of __RAW_SPIN_LOCK_UNLOCKED. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- given that the macro SPIN_LOCK_UNLOCKED is deprecated in favour of the named version of spin locks, it

Re: [ PATCH ] fix to documentation for kexec

2007-02-01 Thread Robert P. J. Day
g. If you want networking, use "init 3." > +* Boot parameter "1" boots the dump-capture kernel into single-user mode > + without networking. If you want networking, use "3". i'm not sure you want to totally remove those first two lines, they appear to talk

Re: [ PATCH ] fix to documentation for kexec

2007-02-01 Thread Robert P. J. Day
. More precisely, any arguments that could not be parsed (because > the kernel does not know them) are handed down to the init program > as arguments and/or environment variables. whoops, ignore my last post, i misread the critical words. rday -- ==

finding macro names that might need a "CONFIG_" prefix

2007-02-02 Thread Robert P. J. Day
way, you get the idea. have at it. rday -- ============ Robert P. J. Day Linux Consulting, Training and Annoying Kernel Pedantry Waterloo, Ontario, CANADA http://www.fsdev.dreamh

[PATCH] REISERFS: Rename incorrect macro name "REISERFS_PROC_INFO".

2007-02-02 Thread Robert P. J. Day
Rename the incorrect macro name "REISERFS_PROC_INFO" to "CONFIG_REISERFS_PROC_INFO". Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- what the heck ... might as well patch the ones i found. diff --git a/fs/reiserfs/procfs.c b/fs/reiserfs/procfs.c index ecc

[PATCH] GFS2: Fix incorrect macro name "NR_CPUS" in glock.c.

2007-02-02 Thread Robert P. J. Day
Rename the incorrect macro name "NR_CPUS" to "CONFIG_NR_CPUS". Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- diff --git a/fs/gfs2/glock.c b/fs/gfs2/glock.c index 4381469..e6bf4b9 100644 --- a/fs/gfs2/glock.c +++ b/fs/gfs2/glock.c @@ -70,

Re: [PATCH] GFS2: Fix incorrect macro name "NR_CPUS" in glock.c.

2007-02-02 Thread Robert P. J. Day
On Fri, 2 Feb 2007, Robert P. J. Day wrote: > > Rename the incorrect macro name "NR_CPUS" to "CONFIG_NR_CPUS". > > Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> ACK!! ignore, ignore! duh. rday -- ==========

[PATCH] Replace incorrect macro name "WIRELESS_EXT" with "CONFIG_WIRELESS_EXT".

2007-02-02 Thread Robert P. J. Day
Rename the (apparently) incorrect macro name WIRELESS_EXT to CONFIG_WIRELESS_EXT. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- this one i'm not sure about since there really is a WIRELESS_EXT macro defined in the header file: include/linux/wireless.h:#define WIRE

[PATCH] NTFS: Rename apparently incorrect macro name "NTFS_DEBUG".

2007-02-02 Thread Robert P. J. Day
Replace the apparently incorrect macro name "NTFS_DEBUG" with "CONFIG_NTFS_DEBUG". Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- diff --git a/fs/ntfs/attrib.c b/fs/ntfs/attrib.c index c577d8e..2154d03 100644 --- a/fs/ntfs/attrib.c +++ b/fs/ntfs/attrib.c

Re: [PATCH] REISERFS: Rename incorrect macro name "REISERFS_PROC_INFO".

2007-02-02 Thread Robert P. J. Day
On Fri, 2 Feb 2007, Alexey Dobriyan wrote: > On 2/2/07, Robert P. J. Day <[EMAIL PROTECTED]> wrote: > > Rename the incorrect macro name "REISERFS_PROC_INFO" to > > "CONFIG_REISERFS_PROC_INFO". > > It isn't incorrect. It's setup in reis

Re: [PATCH] NTFS: Rename apparently incorrect macro name "NTFS_DEBUG".

2007-02-02 Thread Robert P. J. Day
On Fri, 2 Feb 2007, Anton Altaparmakov wrote: > Hi, > > On Fri, 2007-02-02 at 05:46 -0500, Robert P. J. Day wrote: > > Replace the apparently incorrect macro name "NTFS_DEBUG" with > > "CONFIG_NTFS_DEBUG". > > > > Signed-off-by: Robert P

[PATCH] KCONFIG: Add the maturity level categories DEPRECATED and OBSOLETE.

2007-02-02 Thread Robert P. J. Day
In addition to EXPERIMENTAL and BROKEN, define the maturity level options DEPRECATED and OBSOLETE. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- we'd discussed this a while back but nothing seemed to be finalized one way or the other so, as a followup to the exchange

a quick survey: "FIELD_SIZEOF" or "MEMBER_SIZE"?

2007-02-03 Thread Robert P. J. Day
since no one (at least, no one in the current tree) uses FIELD_SIZEOF as it is, so it's not as if it would be a disruptive change in the slightest. opinions? rday -- ================ Robert P. J. Day Linux Consulting, Training and

[PATCH] Remove final references to deprecated "MAP_ANON" page protection flag.

2007-02-03 Thread Robert P. J. Day
Remove the last vestiges of the long-deprecated "MAP_ANON" page protection flag: use "MAP_ANONYMOUS" instead. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- fs/aio.c |2 +- fs/binfmt_elf_fdpic.c |2 +- include/asm-alpha/mman

proposed patch: standardize white space for "#endif /* __KERNEL__ */" directives

2006-12-02 Thread Robert P. J. Day
i've got a one-line perl command that runs through include/linux and standardizes all of the "#endif" directives for "__KERNEL__" into a single variant #endif /* __KERNEL__ */ where all of the whitespace bits above are a single space and nothing more. while this is clearly just aesthetic an

[PATCH] configfs.h: Remove dead macro definitions.

2006-12-03 Thread Robert P. J. Day
Delete the __ATTR-related macro definitions since these are now defined in include/linux/sysfs.h. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- diff --git a/include/linux/configfs.h b/include/linux/configfs.h index a7f0150..fef6f3d 100644 --- a/include/linux/configfs.h

any value to "struct configfs_attribute" anymore?

2006-12-03 Thread Robert P. J. Day
as a followup to my previous patch submission, is there any value to the definition of "struct configfs_attribute" in configfs.h anymore, given a similar structure in sysfs.h? configfs.h: --- struct configfs_attribute { const char *ca_name; struct module

[PATCH] kernel: replace "kmalloc+memset" with kzalloc in kernel/ dir

2006-12-03 Thread Robert P. J. Day
Replace kmalloc()+memset() combination with kzalloc(). Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- auditfilter.c |3 +-- futex.c |4 +--- kexec.c |3 +-- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/kernel/auditfilter.c b/

[PATCH] fs: Convert kmalloc()+memset() combo to kzalloc().

2006-12-03 Thread Robert P. J. Day
Convert all obvious combinations of kmalloc()+memset() to single kzalloc() in the fs/ directory. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- binfmt_elf_fdpic.c |3 +-- seq_file.c |3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --gi

[PATCH] lib: Convert kmalloc()+memset() to kzalloc()

2006-12-03 Thread Robert P. J. Day
Convert the single obvious instance in lib/ of kmalloc() + memset() to kzalloc(). Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- diff --git a/lib/kobject.c b/lib/kobject.c index 744a4b1..7ce6dc1 100644 --- a/lib/kobject.c +++ b/lib/kobject.c @@ -111,10 +111,9 @

[PATCH] mm: Remove worthless comment referring to kzalloc_node().

2006-12-03 Thread Robert P. J. Day
Remove comment referring to non-existent kzalloc_node() routine. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- diff --git a/mm/allocpercpu.c b/mm/allocpercpu.c index eaa9abe..9adcf4d 100644 --- a/mm/allocpercpu.c +++ b/mm/allocpercpu.c @@ -55,7 +55,6 @@ void *percpu_populat

Re: [PATCH] fs: Convert kmalloc()+memset() combo to kzalloc().

2006-12-03 Thread Robert P. J. Day
On Sun, 3 Dec 2006, Alan wrote: > > if (!p) { > > - p = kmalloc(sizeof(*p), GFP_KERNEL); > > + p = kzalloc(sizeof(*p), GFP_KERNEL); > > if (!p) > > return -ENOMEM; > > file->private_data = p; > > } > > - memset(p, 0, sizeof(

[PATCH] fs: Convert kmalloc() + memset() to kzalloc() in fs/.

2006-12-03 Thread Robert P. J. Day
Convert the single available instance of kmalloc() + memset() to kzalloc() in the fs/ directory. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- (Re-submission of earlier patch, but omitting erroneous part of that patch. Sorry about that. Nothing but decaf in the house.)

[PATCH] ipc: Convert kmalloc()+memset() to kzalloc() in ipc/.

2006-12-03 Thread Robert P. J. Day
Convert the single changeable instance of kmalloc() + memset() to kzalloc() in the ipc/ directory. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- ok, i *think* this one's valid. now i'll go work on something else. diff --git a/ipc/sem.c b/ipc/sem.c index 21b3289

why do both kobjects and ksets have a "kobj_type" member?

2006-12-03 Thread Robert P. J. Day
what is the rationale for both the kobject structs and the kset structs having a kobj_type? can those values possibly be different? from kobject.h: ... * kset - a set of kobjects of a specific type, belonging * to a specific subsystem. * * All kobjects of a kset should be e

Re: [PATCH] kernel: replace "kmalloc+memset" with kzalloc in kernel/ dir

2006-12-03 Thread Robert P. J. Day
On Sun, 3 Dec 2006, Randy Dunlap wrote: > On Sun, 3 Dec 2006 08:31:50 -0500 (EST) Robert P. J. Day wrote: > > > > > Replace kmalloc()+memset() combination with kzalloc(). > > > > Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> > > > > --

[PATCH][RFC] Restructure Device Driver menu entries

2006-12-06 Thread Robert P. J. Day
This is a *proposed* restructuring of the DD menu so that one can see and select/de-select entire submenus without having to enter each submenu.It's also immediately obvious visually which submenus are currently active. Based on Randy Dunlap's earlier suggestion, it uses the kbuild "menuc

Re: [PATCH][RFC] Restructure Device Driver menu entries

2006-12-07 Thread Robert P. J. Day
On Wed, 6 Dec 2006, Randy Dunlap wrote: > On Wed, 6 Dec 2006 09:33:46 -0500 (EST) Robert P. J. Day wrote: > > > > > This is a *proposed* restructuring of the DD menu so that one can > > see and select/de-select entire submenus without having to enter each > > sub

[PATCH] kbuild : Restructure Device Drivers menu for entry selectability

2006-12-07 Thread Robert P. J. Day
Rewrite a number of the Kconfig files under the drivers/ directory so that those driver submenus can be selected or de-selected directly from the Drivers menu using the kbuild "menuconfig" feature without having to enter the submenu itself. Signed-off-by: Robert P. J. Day <[EM

The drivers Kconfig structure: oddities and exceptions

2006-12-07 Thread Robert P. J. Day
as a followup to my previous patch (and before i build on top of that), perhaps someone can clarify some of these bits of curiosity: 1) although "Sound" is listed in the Device Drivers menu, its actual source directory is at the top level of the kernel source tree, and it's the *only* entry in

[PATCH] kbuild : Make Fusion MPT selectable from "Device drivers" menu

2006-12-07 Thread Robert P. J. Day
Rewrite the Fusion MPT Kconfig file so that all of MPT functionality is entirely selectable from "Device drivers." Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- The original Kconfig file seems to have an odd structure, as you can see from the first

[PATCH] kbuild: Remove superfluous "!=n" symbol comparisons.

2006-12-07 Thread Robert P. J. Day
Remove all apparently unnecessary "!=n" symbol comparisons from Kconfig files. --- According to the parser itself (scripts/kconfig/expr.c), that comparison is superfluous: /* * bool FOO!=n => FOO */ drivers/block/Kconfig |2 +- drivers/block/paride/Kconfig|

[PATCH] sound : Replace kmalloc()+memset(0) with kzalloc().

2006-12-07 Thread Robert P. J. Day
Replace all appropriate kmalloc() + memset() combinations with kzalloc() throughout the sound/ directory. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- sound/oss/ac97_codec.c |3 +-- sound/oss/ad1889.c |3 +-- sound/oss/btaudio.c

Re: [PATCH] sound : Replace kmalloc()+memset(0) with kzalloc().

2006-12-07 Thread Robert P. J. Day
On Fri, 8 Dec 2006, Mariusz Kozlowski wrote: > Hello, > > > > Replace all appropriate kmalloc() + memset() combinations with > > kzalloc() throughout the sound/ directory. > > [... cut ...] > > > diff --git a/sound/oss/i810_audio.c b/sound/oss/i810_audio.c > > index c3c8a72..f5e31f1 100644 > > -

CodingStyle: "kzalloc()" versus "kcalloc(1,...)"

2006-12-07 Thread Robert P. J. Day
i just noticed that there are numerous invocations of kcalloc() where the hard-coded first arg of # elements is "1", which seems like an inappropriate use of kcalloc(). the only rationale i can see is that kcalloc() guarantees that the memory will be set to zero, so i'm guessing that this for

[PATCH] cpufreq : Change logical compare to bitwise compare.

2006-12-08 Thread Robert P. J. Day
Change a logical comparison to the proper bitwise comparison. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- diff --git a/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c b/arch/i386/kernel/cpu/cpufreq/gx-suspmod.c index 92afa3b..0b9cc8a 100644 --- a/arch/i386/kernel/cpu/cpuf

[PATCH] kcalloc: Re-order the first two out-of-order args to kcalloc().

2006-12-08 Thread Robert P. J. Day
Some calls to kcalloc() appear to have the first two args in the wrong order. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- drivers/macintosh/smu.c |2 +- drivers/net/skge.c |2 +- drivers/scsi/sym53c8xx_2/sym_hipd.c |2 +- drivers/us

why are some of my patches being credited to other "authors"?

2006-12-09 Thread Robert P. J. Day
perhaps i'm just being clueless about the authorship protocol here, but i'm a bit hacked off by noticing that at least one submitted patch of mine was apparently re-submitted (albeit slightly modified) a few days later by another poster and applied under that poster's name. on sun, dec 3, i s

Re: why are some of my patches being credited to other "authors"?

2006-12-09 Thread Robert P. J. Day
On Sat, 9 Dec 2006, Benjamin Herrenschmidt wrote: > > p.s. it's possible that this is all just a wild coincidence, of > > course. stranger things have happened. > > ... or a genuine mistake. sure, as i wrote above, i'm willing to accept that. but it still leaves an open issue -- once one subm

Re: why are some of my patches being credited to other "authors"?

2006-12-09 Thread Robert P. J. Day
On Sat, 9 Dec 2006, Jeff Garzik wrote: > The protocol is simply to do best to give credit where credit is > due. If your patch is taken directly, most likely it is a mistake if > attribution was dropped. If your patch was modified, often that > patch will get checked in under the name of the pers

Re: why are some of my patches being credited to other "authors"?

2006-12-09 Thread Robert P. J. Day
On Sat, 9 Dec 2006, Tim Schmielau wrote: > i wrote: > > but given that i'm trying to follow the kernel guidelines and keep > > each submission as a logically-related chunk, in many cases, i > > have to wait for one patch to be applied before i can submit the > > next one. and, at the moment, ther

Re: [PATCH] kcalloc: Re-order the first two out-of-order args to kcalloc().

2006-12-09 Thread Robert P. J. Day
On Sat, 9 Dec 2006, Pekka Enberg wrote: > On 12/9/06, Robert P. J. Day <[EMAIL PROTECTED]> wrote: > > @@ -705,7 +705,7 @@ static int uss720_probe(struct usb_inter > > /* > > * Allocate parport interface > > */ > > -

Re: Re: [PATCH] kcalloc: Re-order the first two out-of-order args to kcalloc().

2006-12-09 Thread Robert P. J. Day
On Sat, 9 Dec 2006, Pekka Enberg wrote: > On 12/9/06, Pekka Enberg <[EMAIL PROTECTED]> wrote: > > You really ought to send these cleanups to [EMAIL PROTECTED] with LKML > > cc'd to get them merged. > > ...or even better, the relevant maintainer. normally what i would do but, in the case of that p

Re: Re: [PATCH] kcalloc: Re-order the first two out-of-order args to kcalloc().

2006-12-09 Thread Robert P. J. Day
On Sat, 9 Dec 2006, Pekka Enberg wrote: > On 12/9/06, Robert P. J. Day <[EMAIL PROTECTED]> wrote: > > argh, in that i've already mentioned that, following the guidelines in > > "SubmittingPatches", i prefer that each of my patches have one logical > &g

Re: Re: Re: [PATCH] kcalloc: Re-order the first two out-of-order args to kcalloc().

2006-12-09 Thread Robert P. J. Day
On Sat, 9 Dec 2006, Pekka Enberg wrote: > On 12/9/06, Robert P. J. Day <[EMAIL PROTECTED]> wrote: > > no. those two submissions represent two logically different "fixes" > > and i have no intention of combining them. > > Like I said, fixing the order o

[PATCH] Fix numerous kcalloc() calls, convert to kzalloc().

2006-12-09 Thread Robert P. J. Day
All kcalloc() calls of the form "kcalloc(1,...)" are converted to the equivalent kzalloc() calls, and a few kcalloc() calls with the incorrect ordering of the first two arguments are fixed. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- drivers/ata/pdc_adma.c

Re: [PATCH] Fix numerous kcalloc() calls, convert to kzalloc().

2006-12-09 Thread Robert P. J. Day
On Sat, 9 Dec 2006, Stefan Richter wrote: > Robert P. J. Day wrote: > > drivers/ata/pdc_adma.c |4 ++-- > > drivers/macintosh/smu.c |2 +- > > drivers/mtd/rfd_ftl.c |2 +- > > drivers/net/phy/phy_device.c|2

[PATCH] kbuild: Replace remaining "depends" with "depends on"

2006-12-13 Thread Robert P. J. Day
Replace the very few remaining "depends" Kconfig directives with "depends on". Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- Given the recent patch that was applied to make this transformation, might as well finish it off and deal with those last thr

lots of code could be simplified by using ARRAY_SIZE()

2006-12-13 Thread Robert P. J. Day
there are numerous places throughout the source tree that apparently calculate the size of an array using the construct "sizeof(fubar)/sizeof(fubar[0])". see for yourself: $ grep -Er "sizeof\((.*)\) ?/ ?sizeof\(\1\[0\]\)" * but we already have, from "include/linux/kernel.h": #define ARRAY

[PATCH] sound: Fix last two instances of "kcalloc(1,...)" -> "kzalloc()"

2006-12-13 Thread Robert P. J. Day
Change the remaining two instances of "kcalloc(1,...)" to "kzalloc()". Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- Now that that general change has been merged into Linus' tree, I've added a check for that to an ongoing "coding style

[RFC][PATCH] Make entries in the "Device drivers" menu individually selectable

2006-12-14 Thread Robert P. J. Day
i've posted on this before so here's a slightly-updated patch that uses the kbuild "menuconfig" feature to make numerous entries under the Device drivers menu selectable on the spot. if folks think this is a good idea, what's the best way to get it in? i could officially submit the patch as

[PATCH] Various typo fixes.

2006-12-14 Thread Robert P. J. Day
Correct mis-spellings of "algorithm", "appear", "consistent" and (shame, shame) "kernel". Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- Documentation/video4linux/bttv/Insmod-options |2 +- arch/m32r/lib/usercopy.c

[PATCH] init: Remove commented, obsolete code invoking smp_commence().

2006-12-14 Thread Robert P. J. Day
Remove the "#if 0"ed call to smp_commence, which is clearly obsolete. Signed-off-by: Robert P. J. Day <[EMAIL PROTECTED]> --- There appears to be no value to leaving that call in the code, given that the source file "arch/ia64/kernel/smpboot.c" explains: "

Re: lots of code could be simplified by using ARRAY_SIZE()

2006-12-14 Thread Robert P. J. Day
On Thu, 14 Dec 2006, Zach Brown wrote: > > there are numerous places throughout the source tree that > > apparently calculate the size of an array using the construct > > "sizeof(fubar)/sizeof(fubar[0])". see for yourself: > > $ grep -Er "sizeof\((.*)\) ?/ ?sizeof\(\1\[0\]\)" * > > Indeed, ther

Re: [PATCH/RFC] CodingStyle updates

2006-12-14 Thread Robert P. J. Day
On Thu, 14 Dec 2006, Randy Dunlap wrote: > David Weinehall wrote: > > On Thu, Dec 07, 2006 at 12:48:38AM -0800, Randy Dunlap wrote: > > > > [snip] > > > > > +but no space after unary operators: > > > + sizeof ++ -- & * + - ~ ! defined > > > > Uhm, that doesn't compute... If you d

Re: lots of code could be simplified by using ARRAY_SIZE()

2006-12-14 Thread Robert P. J. Day
On Fri, 15 Dec 2006, Miguel Ojeda wrote: > On 12/13/06, Robert P. J. Day <[EMAIL PROTECTED]> wrote: > > > > there are numerous places throughout the source tree that apparently > > calculate the size of an array using the construct > > "sizeof(fuba

Re: [PATCH/RFC] CodingStyle updates

2006-12-14 Thread Robert P. J. Day
On Thu, 14 Dec 2006, Randy Dunlap wrote: > On Thu, 14 Dec 2006 19:07:27 -0500 (EST) Robert P. J. Day wrote: > > > On Thu, 14 Dec 2006, Randy Dunlap wrote: > > > > > David Weinehall wrote: > > > > On Thu, Dec 07, 2006 at 12:48:38AM -0800, Ra

Re: lots of code could be simplified by using ARRAY_SIZE()

2006-12-15 Thread Robert P. J. Day
On Fri, 15 Dec 2006, Jan Engelhardt wrote: > > >>> Indeed, there seems to be lots of potential clean-up there. > >>> Including duplicate macros like: > >>> > >>> ./drivers/ide/ide-cd.h:#define ARY_LEN(a) ((sizeof(a) / sizeof(a[0]))) > >> > >> not surprisingly, i have a script "arraysize.sh": > >..

Re: lots of code could be simplified by using ARRAY_SIZE()

2006-12-16 Thread Robert P. J. Day
On Fri, 15 Dec 2006, Tim Schmielau wrote: > On Fri, 15 Dec 2006, Robert P. J. Day wrote: > > On Fri, 15 Dec 2006, Jan Engelhardt wrote: > > > Even sizeof a / sizeof *a > > > > > > may happen. > > > > yes, sadly, there are a number of those as well.

Re: lots of code could be simplified by using ARRAY_SIZE()

2006-12-16 Thread Robert P. J. Day
On Sat, 16 Dec 2006, Pavel Machek wrote: > Hi! > > > there are numerous places throughout the source tree that apparently > > calculate the size of an array using the construct > > "sizeof(fubar)/sizeof(fubar[0])". see for yourself: > > > > $ grep -Er "sizeof\((.*)\) ?/ ?sizeof\(\1\[0\]\)" * >

<    1   2   3   4   5   6   7   8   9   10   >