login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
February
»
20
Re: [PATCH] Add PCI_DEVICE_TABLE macro
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Jeff Garzik
Subject:
Re: [PATCH] Add PCI_DEVICE_TABLE macro
Date: Wednesday, February 20, 2008 - 10:05 am
Greg KH wrote:
quoted text
> On Mon, Feb 18, 2008 at 08:34:42AM +0100, Jonas Bonn wrote: >>> And again, what does this buy us? >> Clarity and simplicity, I hope... there are a bunch of definitions >> scattered about the kernel that omit the __devinitdata modifier despite the >> documentation stating that it should always be there. The definition >> really should have been const, which wasn't possible before but has become >> so with the addition of the __devinitconst attribute. >> >> Furthermore, there are definitions that use "const" and __devinitdata, >> which is explicitly wrong but the compiler doesn't catch section mismatches >> if there's only one such one case in the module (which is often the case). >> >> Adding the __devinitconst modifier where there was nothing before buys us >> memory. Adding the const modifier gives the compiler a chance to do its >> thing. Changing __devinitdata to __devinitconst where it was wrong >> actually fixes some compiler errors in older (mid-release) kernels that >> were patched over by "removing" the section attribute altogether (which >> wastes memory). >> >> Adding the macro (Olof's idea, not mine) makes it pretty difficult to get >> this definition wrong... I'll do the rest of the cleanup, but I need to >> know whether it's better to use a macro like this, or to open code the >> definitions. I prefer the macro approach... >> >> Hope this makes some sense... > > Ok, yes it does, thanks for the explaination. > > Please, can you add this very good text to the changelog entry for the > addition of the macro, and to the documentation somewhere? I'd be glad > to take the patch if that was done.
I would suggest having a DECLARE_ prefix in there, like other subsystems do... Jeff --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH] Add PCI_DEVICE_TABLE macro
, Jonas Bonn
, (Sun Feb 17, 5:10 am)
Re: [PATCH] Add PCI_DEVICE_TABLE macro
, Jonas Bonn
, (Sun Feb 17, 5:13 am)
Re: [PATCH] Add PCI_DEVICE_TABLE macro
, Randy Dunlap
, (Sun Feb 17, 11:14 am)
Re: [PATCH] Add PCI_DEVICE_TABLE macro
, Greg KH
, (Sun Feb 17, 9:48 pm)
Re: [PATCH] Add PCI_DEVICE_TABLE macro
, Jonas Bonn
, (Mon Feb 18, 12:34 am)
Re: [PATCH] Add PCI_DEVICE_TABLE macro
, Greg KH
, (Wed Feb 20, 9:11 am)
Re: [PATCH] Add PCI_DEVICE_TABLE macro
, Jeff Garzik
, (Wed Feb 20, 10:05 am)
[PATCH] Add DECLARE_PCI_DEVICE_TABLE macro
, Jonas Bonn
, (Fri Feb 22, 3:02 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Benjamin Herrenschmidt
Re: [PATCH 1/4] hvc_console: do not set low_latency
Russell King
Re: ARM defconfig files
Carsten Otte
Re: [patch] ext2: xip check fix
Jordan Crouse
Re: 2.6.25-mm1
James Morris
Re: [AppArmor 01/41] Pass struct vfsmount to the inode_create LSM hook
git
:
Felipe Contreras
Re: [kernel.org users] [RFD] On deprecating "git-foo" for builtins
Johannes Schindelin
[PATCH] fetch: refuse to fetch into the current branch in a non-bare repository
Johannes Schindelin
Re: [PATCH] Fix install-doc-quick target
Peter Oberndorfer
Subject: [PATCH] fix stg edit command
Nicolas Pitre
Re: About git and the use of SHA-1
linux-netdev
:
Ursula Braun
[patch 2/8] [PATCH] af_iucv: sync sk shutdown flag if iucv path is quiesced
Andi Kleen
Re: RFC: Nagle latency tuning
Gary Thomas
Re: Marvell 88E609x switch?
David Miller
Re: [RFC 0/5] generic rx recycling
Chuck Lever
Re: [RFC] ipv6: Change %pI6 format to output compacted addresses?
dragonflybsd-user
:
Andreas Hauser
Re: Transset.
Tomas
usb printer Brother HL-2030 and DragonFly
Matthew Dillon
Re: DragonFlyBSD not in compliance with RFC 1122
Nikolai Lifanov
pkgsrc issues
Jonas
Re: New to DragonFly...
dragonflybsd-submit
:
Ilya Dryomov
git: HAMMER - Add live_dedup_cache_size sysctl
Matthew Dillon
git: MBUF - Account for failed allocations so netstat -m reports properly.
Simon Schubert
git: make.conf(5): mention STATIC_LOCALES
Matthias Schmidt
cvs commit: src/sys/net bpf.c bpf.h bpfdesc.h
Simon Schubert
git: Revert "Increase the default TCP maximum segment size from 512 to 1460."
Colocation donated by:
Syndicate