diff options
37 files changed, 63 insertions, 61 deletions
diff --git a/Documentation/DocBook/kernel-locking.tmpl b/Documentation/DocBook/kernel-locking.tmpl index 435413ca40dc..77c42f40be5d 100644 --- a/Documentation/DocBook/kernel-locking.tmpl +++ b/Documentation/DocBook/kernel-locking.tmpl | |||
@@ -854,7 +854,7 @@ The change is shown below, in standard patch format: the | |||
854 | }; | 854 | }; |
855 | 855 | ||
856 | -static DEFINE_MUTEX(cache_lock); | 856 | -static DEFINE_MUTEX(cache_lock); |
857 | +static spinlock_t cache_lock = SPIN_LOCK_UNLOCKED; | 857 | +static DEFINE_SPINLOCK(cache_lock); |
858 | static LIST_HEAD(cache); | 858 | static LIST_HEAD(cache); |
859 | static unsigned int cache_num = 0; | 859 | static unsigned int cache_num = 0; |
860 | #define MAX_CACHE_SIZE 10 | 860 | #define MAX_CACHE_SIZE 10 |
@@ -1238,7 +1238,7 @@ Here is the "lock-per-object" implementation: | |||
1238 | - int popularity; | 1238 | - int popularity; |
1239 | }; | 1239 | }; |
1240 | 1240 | ||
1241 | static spinlock_t cache_lock = SPIN_LOCK_UNLOCKED; | 1241 | static DEFINE_SPINLOCK(cache_lock); |
1242 | @@ -77,6 +84,7 @@ | 1242 | @@ -77,6 +84,7 @@ |
1243 | obj->id = id; | 1243 | obj->id = id; |
1244 | obj->popularity = 0; | 1244 | obj->popularity = 0; |
diff --git a/Documentation/DocBook/writing_usb_driver.tmpl b/Documentation/DocBook/writing_usb_driver.tmpl index d4188d4ff535..eeff19ca831b 100644 --- a/Documentation/DocBook/writing_usb_driver.tmpl +++ b/Documentation/DocBook/writing_usb_driver.tmpl | |||
@@ -100,8 +100,8 @@ | |||
100 | useful documents, at the USB home page (see Resources). An excellent | 100 | useful documents, at the USB home page (see Resources). An excellent |
101 | introduction to the Linux USB subsystem can be found at the USB Working | 101 | introduction to the Linux USB subsystem can be found at the USB Working |
102 | Devices List (see Resources). It explains how the Linux USB subsystem is | 102 | Devices List (see Resources). It explains how the Linux USB subsystem is |
103 | structured and introduces the reader to the concept of USB urbs, which | 103 | structured and introduces the reader to the concept of USB urbs |
104 | are essential to USB drivers. | 104 | (USB Request Blocks), which are essential to USB drivers. |
105 | </para> | 105 | </para> |
106 | <para> | 106 | <para> |
107 | The first thing a Linux USB driver needs to do is register itself with | 107 | The first thing a Linux USB driver needs to do is register itself with |
@@ -162,8 +162,8 @@ static int __init usb_skel_init(void) | |||
162 | module_init(usb_skel_init); | 162 | module_init(usb_skel_init); |
163 | </programlisting> | 163 | </programlisting> |
164 | <para> | 164 | <para> |
165 | When the driver is unloaded from the system, it needs to unregister | 165 | When the driver is unloaded from the system, it needs to deregister |
166 | itself with the USB subsystem. This is done with the usb_unregister | 166 | itself with the USB subsystem. This is done with the usb_deregister |
167 | function: | 167 | function: |
168 | </para> | 168 | </para> |
169 | <programlisting> | 169 | <programlisting> |
@@ -232,7 +232,7 @@ static int skel_probe(struct usb_interface *interface, | |||
232 | were passed to the USB subsystem will be called from a user program trying | 232 | were passed to the USB subsystem will be called from a user program trying |
233 | to talk to the device. The first function called will be open, as the | 233 | to talk to the device. The first function called will be open, as the |
234 | program tries to open the device for I/O. We increment our private usage | 234 | program tries to open the device for I/O. We increment our private usage |
235 | count and save off a pointer to our internal structure in the file | 235 | count and save a pointer to our internal structure in the file |
236 | structure. This is done so that future calls to file operations will | 236 | structure. This is done so that future calls to file operations will |
237 | enable the driver to determine which device the user is addressing. All | 237 | enable the driver to determine which device the user is addressing. All |
238 | of this is done with the following code: | 238 | of this is done with the following code: |
@@ -252,8 +252,8 @@ file->private_data = dev; | |||
252 | send to the device based on the size of the write urb it has created (this | 252 | send to the device based on the size of the write urb it has created (this |
253 | size depends on the size of the bulk out end point that the device has). | 253 | size depends on the size of the bulk out end point that the device has). |
254 | Then it copies the data from user space to kernel space, points the urb to | 254 | Then it copies the data from user space to kernel space, points the urb to |
255 | the data and submits the urb to the USB subsystem. This can be shown in | 255 | the data and submits the urb to the USB subsystem. This can be seen in |
256 | he following code: | 256 | the following code: |
257 | </para> | 257 | </para> |
258 | <programlisting> | 258 | <programlisting> |
259 | /* we can only write as much as 1 urb will hold */ | 259 | /* we can only write as much as 1 urb will hold */ |
diff --git a/Documentation/SubmittingPatches b/Documentation/SubmittingPatches index 1fc4e7144dce..9c93a03ea33b 100644 --- a/Documentation/SubmittingPatches +++ b/Documentation/SubmittingPatches | |||
@@ -183,7 +183,7 @@ Even if the maintainer did not respond in step #4, make sure to ALWAYS | |||
183 | copy the maintainer when you change their code. | 183 | copy the maintainer when you change their code. |
184 | 184 | ||
185 | For small patches you may want to CC the Trivial Patch Monkey | 185 | For small patches you may want to CC the Trivial Patch Monkey |
186 | trivial@kernel.org managed by Adrian Bunk; which collects "trivial" | 186 | trivial@kernel.org managed by Jesper Juhl; which collects "trivial" |
187 | patches. Trivial patches must qualify for one of the following rules: | 187 | patches. Trivial patches must qualify for one of the following rules: |
188 | Spelling fixes in documentation | 188 | Spelling fixes in documentation |
189 | Spelling fixes which could break grep(1) | 189 | Spelling fixes which could break grep(1) |
@@ -196,7 +196,7 @@ patches. Trivial patches must qualify for one of the following rules: | |||
196 | since people copy, as long as it's trivial) | 196 | since people copy, as long as it's trivial) |
197 | Any fix by the author/maintainer of the file (ie. patch monkey | 197 | Any fix by the author/maintainer of the file (ie. patch monkey |
198 | in re-transmission mode) | 198 | in re-transmission mode) |
199 | URL: <http://www.kernel.org/pub/linux/kernel/people/bunk/trivial/> | 199 | URL: <http://www.kernel.org/pub/linux/kernel/people/juhl/trivial/> |
200 | 200 | ||
201 | 201 | ||
202 | 202 | ||
diff --git a/Documentation/block/biodoc.txt b/Documentation/block/biodoc.txt index 93f223b9723f..4dbb8be1c991 100644 --- a/Documentation/block/biodoc.txt +++ b/Documentation/block/biodoc.txt | |||
@@ -1097,7 +1097,7 @@ lock themselves, if required. Drivers that explicitly used the | |||
1097 | io_request_lock for serialization need to be modified accordingly. | 1097 | io_request_lock for serialization need to be modified accordingly. |
1098 | Usually it's as easy as adding a global lock: | 1098 | Usually it's as easy as adding a global lock: |
1099 | 1099 | ||
1100 | static spinlock_t my_driver_lock = SPIN_LOCK_UNLOCKED; | 1100 | static DEFINE_SPINLOCK(my_driver_lock); |
1101 | 1101 | ||
1102 | and passing the address to that lock to blk_init_queue(). | 1102 | and passing the address to that lock to blk_init_queue(). |
1103 | 1103 | ||
diff --git a/Documentation/cli-sti-removal.txt b/Documentation/cli-sti-removal.txt index 0223c9d20331..60932b02fcb3 100644 --- a/Documentation/cli-sti-removal.txt +++ b/Documentation/cli-sti-removal.txt | |||
@@ -43,7 +43,7 @@ would execute while the cli()-ed section is executing. | |||
43 | 43 | ||
44 | but from now on a more direct method of locking has to be used: | 44 | but from now on a more direct method of locking has to be used: |
45 | 45 | ||
46 | spinlock_t driver_lock = SPIN_LOCK_UNLOCKED; | 46 | DEFINE_SPINLOCK(driver_lock); |
47 | struct driver_data; | 47 | struct driver_data; |
48 | 48 | ||
49 | irq_handler (...) | 49 | irq_handler (...) |
diff --git a/Documentation/dontdiff b/Documentation/dontdiff index c09a96b99354..354aec047c0e 100644 --- a/Documentation/dontdiff +++ b/Documentation/dontdiff | |||
@@ -47,7 +47,6 @@ | |||
47 | .mm | 47 | .mm |
48 | 53c700_d.h | 48 | 53c700_d.h |
49 | 53c8xx_d.h* | 49 | 53c8xx_d.h* |
50 | BitKeeper | ||
51 | COPYING | 50 | COPYING |
52 | CREDITS | 51 | CREDITS |
53 | CVS | 52 | CVS |
diff --git a/Documentation/early-userspace/README b/Documentation/early-userspace/README index 766d320c8eb6..e35d83052192 100644 --- a/Documentation/early-userspace/README +++ b/Documentation/early-userspace/README | |||
@@ -89,8 +89,8 @@ the 2.7 era (it missed the boat for 2.5). | |||
89 | You can obtain somewhat infrequent snapshots of klibc from | 89 | You can obtain somewhat infrequent snapshots of klibc from |
90 | ftp://ftp.kernel.org/pub/linux/libs/klibc/ | 90 | ftp://ftp.kernel.org/pub/linux/libs/klibc/ |
91 | 91 | ||
92 | For active users, you are better off using the klibc BitKeeper | 92 | For active users, you are better off using the klibc git |
93 | repositories, at http://klibc.bkbits.net/ | 93 | repository, at http://git.kernel.org/?p=libs/klibc/klibc.git |
94 | 94 | ||
95 | The standalone klibc distribution currently provides three components, | 95 | The standalone klibc distribution currently provides three components, |
96 | in addition to the klibc library: | 96 | in addition to the klibc library: |
diff --git a/MAINTAINERS b/MAINTAINERS index 525d09b48801..c0cc52a9afe5 100644 --- a/MAINTAINERS +++ b/MAINTAINERS | |||
@@ -684,6 +684,11 @@ L: linux-wireless@vger.kernel.org | |||
684 | L: ath5k-devel@lists.ath5k.org | 684 | L: ath5k-devel@lists.ath5k.org |
685 | S: Maintained | 685 | S: Maintained |
686 | 686 | ||
687 | ATI_REMOTE2 DRIVER | ||
688 | P: Ville Syrjala | ||
689 | M: syrjala@sci.fi | ||
690 | S: Maintained | ||
691 | |||
687 | ATL1 ETHERNET DRIVER | 692 | ATL1 ETHERNET DRIVER |
688 | P: Jay Cliburn | 693 | P: Jay Cliburn |
689 | M: jcliburn@gmail.com | 694 | M: jcliburn@gmail.com |
@@ -2947,7 +2952,7 @@ P: Mark Fasheh | |||
2947 | M: mfasheh@suse.com | 2952 | M: mfasheh@suse.com |
2948 | P: Joel Becker | 2953 | P: Joel Becker |
2949 | M: joel.becker@oracle.com | 2954 | M: joel.becker@oracle.com |
2950 | L: ocfs2-devel@oss.oracle.com | 2955 | L: ocfs2-devel@oss.oracle.com (moderated for non-subscribers) |
2951 | W: http://oss.oracle.com/projects/ocfs2/ | 2956 | W: http://oss.oracle.com/projects/ocfs2/ |
2952 | T: git git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2.git | 2957 | T: git git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2.git |
2953 | S: Supported | 2958 | S: Supported |
@@ -1538,7 +1538,7 @@ quiet_cmd_rmdirs = $(if $(wildcard $(rm-dirs)),CLEAN $(wildcard $(rm-dirs))) | |||
1538 | quiet_cmd_rmfiles = $(if $(wildcard $(rm-files)),CLEAN $(wildcard $(rm-files))) | 1538 | quiet_cmd_rmfiles = $(if $(wildcard $(rm-files)),CLEAN $(wildcard $(rm-files))) |
1539 | cmd_rmfiles = rm -f $(rm-files) | 1539 | cmd_rmfiles = rm -f $(rm-files) |
1540 | 1540 | ||
1541 | # Run depmod only is we have System.map and depmod is executable | 1541 | # Run depmod only if we have System.map and depmod is executable |
1542 | # and we build for the host arch | 1542 | # and we build for the host arch |
1543 | quiet_cmd_depmod = DEPMOD $(KERNELRELEASE) | 1543 | quiet_cmd_depmod = DEPMOD $(KERNELRELEASE) |
1544 | cmd_depmod = \ | 1544 | cmd_depmod = \ |
diff --git a/arch/arm/mach-pxa/mfp-pxa3xx.c b/arch/arm/mach-pxa/mfp-pxa3xx.c index b84c3ba7a8d6..3a5b0fcbaf1f 100644 --- a/arch/arm/mach-pxa/mfp-pxa3xx.c +++ b/arch/arm/mach-pxa/mfp-pxa3xx.c | |||
@@ -42,7 +42,7 @@ struct pxa3xx_mfp_pin { | |||
42 | static struct pxa3xx_mfp_pin mfp_table[MFP_PIN_MAX]; | 42 | static struct pxa3xx_mfp_pin mfp_table[MFP_PIN_MAX]; |
43 | 43 | ||
44 | /* mapping of MFP_LPM_* definitions to MFPR_LPM_* register bits */ | 44 | /* mapping of MFP_LPM_* definitions to MFPR_LPM_* register bits */ |
45 | const static unsigned long mfpr_lpm[] = { | 45 | static const unsigned long mfpr_lpm[] = { |
46 | MFPR_LPM_INPUT, | 46 | MFPR_LPM_INPUT, |
47 | MFPR_LPM_DRIVE_LOW, | 47 | MFPR_LPM_DRIVE_LOW, |
48 | MFPR_LPM_DRIVE_HIGH, | 48 | MFPR_LPM_DRIVE_HIGH, |
@@ -52,7 +52,7 @@ const static unsigned long mfpr_lpm[] = { | |||
52 | }; | 52 | }; |
53 | 53 | ||
54 | /* mapping of MFP_PULL_* definitions to MFPR_PULL_* register bits */ | 54 | /* mapping of MFP_PULL_* definitions to MFPR_PULL_* register bits */ |
55 | const static unsigned long mfpr_pull[] = { | 55 | static const unsigned long mfpr_pull[] = { |
56 | MFPR_PULL_NONE, | 56 | MFPR_PULL_NONE, |
57 | MFPR_PULL_LOW, | 57 | MFPR_PULL_LOW, |
58 | MFPR_PULL_HIGH, | 58 | MFPR_PULL_HIGH, |
@@ -60,7 +60,7 @@ const static unsigned long mfpr_pull[] = { | |||
60 | }; | 60 | }; |
61 | 61 | ||
62 | /* mapping of MFP_LPM_EDGE_* definitions to MFPR_EDGE_* register bits */ | 62 | /* mapping of MFP_LPM_EDGE_* definitions to MFPR_EDGE_* register bits */ |
63 | const static unsigned long mfpr_edge[] = { | 63 | static const unsigned long mfpr_edge[] = { |
64 | MFPR_EDGE_NONE, | 64 | MFPR_EDGE_NONE, |
65 | MFPR_EDGE_RISE, | 65 | MFPR_EDGE_RISE, |
66 | MFPR_EDGE_FALL, | 66 | MFPR_EDGE_FALL, |
diff --git a/drivers/acpi/ac.c b/drivers/acpi/ac.c index 76b9bea98b6d..43a95e5640de 100644 --- a/drivers/acpi/ac.c +++ b/drivers/acpi/ac.c | |||
@@ -63,7 +63,7 @@ static int acpi_ac_add(struct acpi_device *device); | |||
63 | static int acpi_ac_remove(struct acpi_device *device, int type); | 63 | static int acpi_ac_remove(struct acpi_device *device, int type); |
64 | static int acpi_ac_resume(struct acpi_device *device); | 64 | static int acpi_ac_resume(struct acpi_device *device); |
65 | 65 | ||
66 | const static struct acpi_device_id ac_device_ids[] = { | 66 | static const struct acpi_device_id ac_device_ids[] = { |
67 | {"ACPI0003", 0}, | 67 | {"ACPI0003", 0}, |
68 | {"", 0}, | 68 | {"", 0}, |
69 | }; | 69 | }; |
diff --git a/drivers/char/sonypi.c b/drivers/char/sonypi.c index 921c6d2bc8fc..c03ad164c39a 100644 --- a/drivers/char/sonypi.c +++ b/drivers/char/sonypi.c | |||
@@ -1147,7 +1147,7 @@ static int sonypi_acpi_remove(struct acpi_device *device, int type) | |||
1147 | return 0; | 1147 | return 0; |
1148 | } | 1148 | } |
1149 | 1149 | ||
1150 | const static struct acpi_device_id sonypi_device_ids[] = { | 1150 | static const struct acpi_device_id sonypi_device_ids[] = { |
1151 | {"SNY6001", 0}, | 1151 | {"SNY6001", 0}, |
1152 | {"", 0}, | 1152 | {"", 0}, |
1153 | }; | 1153 | }; |
diff --git a/drivers/dma/dmaengine.c b/drivers/dma/dmaengine.c index d6dc70fd7527..97b329e76798 100644 --- a/drivers/dma/dmaengine.c +++ b/drivers/dma/dmaengine.c | |||
@@ -42,9 +42,9 @@ | |||
42 | * | 42 | * |
43 | * Each device has a kref, which is initialized to 1 when the device is | 43 | * Each device has a kref, which is initialized to 1 when the device is |
44 | * registered. A kref_get is done for each device registered. When the | 44 | * registered. A kref_get is done for each device registered. When the |
45 | * device is released, the coresponding kref_put is done in the release | 45 | * device is released, the corresponding kref_put is done in the release |
46 | * method. Every time one of the device's channels is allocated to a client, | 46 | * method. Every time one of the device's channels is allocated to a client, |
47 | * a kref_get occurs. When the channel is freed, the coresponding kref_put | 47 | * a kref_get occurs. When the channel is freed, the corresponding kref_put |
48 | * happens. The device's release function does a completion, so | 48 | * happens. The device's release function does a completion, so |
49 | * unregister_device does a remove event, device_unregister, a kref_put | 49 | * unregister_device does a remove event, device_unregister, a kref_put |
50 | * for the first reference, then waits on the completion for all other | 50 | * for the first reference, then waits on the completion for all other |
@@ -53,7 +53,7 @@ | |||
53 | * Each channel has an open-coded implementation of Rusty Russell's "bigref," | 53 | * Each channel has an open-coded implementation of Rusty Russell's "bigref," |
54 | * with a kref and a per_cpu local_t. A dma_chan_get is called when a client | 54 | * with a kref and a per_cpu local_t. A dma_chan_get is called when a client |
55 | * signals that it wants to use a channel, and dma_chan_put is called when | 55 | * signals that it wants to use a channel, and dma_chan_put is called when |
56 | * a channel is removed or a client using it is unregesitered. A client can | 56 | * a channel is removed or a client using it is unregistered. A client can |
57 | * take extra references per outstanding transaction, as is the case with | 57 | * take extra references per outstanding transaction, as is the case with |
58 | * the NET DMA client. The release function does a kref_put on the device. | 58 | * the NET DMA client. The release function does a kref_put on the device. |
59 | * -ChrisL, DanW | 59 | * -ChrisL, DanW |
diff --git a/drivers/md/md.c b/drivers/md/md.c index 61ccbd2683fa..5ebfb4d79901 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c | |||
@@ -4152,7 +4152,7 @@ static int hot_remove_disk(mddev_t * mddev, dev_t dev) | |||
4152 | 4152 | ||
4153 | return 0; | 4153 | return 0; |
4154 | busy: | 4154 | busy: |
4155 | printk(KERN_WARNING "md: cannot remove active disk %s from %s ... \n", | 4155 | printk(KERN_WARNING "md: cannot remove active disk %s from %s ...\n", |
4156 | bdevname(rdev->bdev,b), mdname(mddev)); | 4156 | bdevname(rdev->bdev,b), mdname(mddev)); |
4157 | return -EBUSY; | 4157 | return -EBUSY; |
4158 | } | 4158 | } |
diff --git a/drivers/media/dvb/frontends/or51132.c b/drivers/media/dvb/frontends/or51132.c index 1d2d28ce823d..8ffb8daca031 100644 --- a/drivers/media/dvb/frontends/or51132.c +++ b/drivers/media/dvb/frontends/or51132.c | |||
@@ -91,7 +91,7 @@ static int or51132_writebuf(struct or51132_state *state, const u8 *buf, int len) | |||
91 | Less code and more efficient that loading a buffer on the stack with | 91 | Less code and more efficient that loading a buffer on the stack with |
92 | the bytes to send and then calling or51132_writebuf() on that. */ | 92 | the bytes to send and then calling or51132_writebuf() on that. */ |
93 | #define or51132_writebytes(state, data...) \ | 93 | #define or51132_writebytes(state, data...) \ |
94 | ({ const static u8 _data[] = {data}; \ | 94 | ({ static const u8 _data[] = {data}; \ |
95 | or51132_writebuf(state, _data, sizeof(_data)); }) | 95 | or51132_writebuf(state, _data, sizeof(_data)); }) |
96 | 96 | ||
97 | /* Read data from demod into buffer. Returns 0 on success. */ | 97 | /* Read data from demod into buffer. Returns 0 on success. */ |
@@ -132,7 +132,7 @@ static int or51132_readreg(struct or51132_state *state, u8 reg) | |||
132 | static int or51132_load_firmware (struct dvb_frontend* fe, const struct firmware *fw) | 132 | static int or51132_load_firmware (struct dvb_frontend* fe, const struct firmware *fw) |
133 | { | 133 | { |
134 | struct or51132_state* state = fe->demodulator_priv; | 134 | struct or51132_state* state = fe->demodulator_priv; |
135 | const static u8 run_buf[] = {0x7F,0x01}; | 135 | static const u8 run_buf[] = {0x7F,0x01}; |
136 | u8 rec_buf[8]; | 136 | u8 rec_buf[8]; |
137 | u32 firmwareAsize, firmwareBsize; | 137 | u32 firmwareAsize, firmwareBsize; |
138 | int i,ret; | 138 | int i,ret; |
diff --git a/drivers/media/video/sn9c102/sn9c102_sensor.h b/drivers/media/video/sn9c102/sn9c102_sensor.h index 2d7d786b8430..2dc7c6869484 100644 --- a/drivers/media/video/sn9c102/sn9c102_sensor.h +++ b/drivers/media/video/sn9c102/sn9c102_sensor.h | |||
@@ -126,7 +126,7 @@ extern int sn9c102_write_regs(struct sn9c102_device*, const u8 valreg[][2], | |||
126 | Register adresses must be < 256. | 126 | Register adresses must be < 256. |
127 | */ | 127 | */ |
128 | #define sn9c102_write_const_regs(sn9c102_device, data...) \ | 128 | #define sn9c102_write_const_regs(sn9c102_device, data...) \ |
129 | ({ const static u8 _valreg[][2] = {data}; \ | 129 | ({ static const u8 _valreg[][2] = {data}; \ |
130 | sn9c102_write_regs(sn9c102_device, _valreg, ARRAY_SIZE(_valreg)); }) | 130 | sn9c102_write_regs(sn9c102_device, _valreg, ARRAY_SIZE(_valreg)); }) |
131 | 131 | ||
132 | /*****************************************************************************/ | 132 | /*****************************************************************************/ |
diff --git a/drivers/media/video/v4l1-compat.c b/drivers/media/video/v4l1-compat.c index 50e1ff9f2be5..e3ac5e686075 100644 --- a/drivers/media/video/v4l1-compat.c +++ b/drivers/media/video/v4l1-compat.c | |||
@@ -126,7 +126,7 @@ set_v4l_control(struct inode *inode, | |||
126 | 126 | ||
127 | /* ----------------------------------------------------------------- */ | 127 | /* ----------------------------------------------------------------- */ |
128 | 128 | ||
129 | const static unsigned int palette2pixelformat[] = { | 129 | static const unsigned int palette2pixelformat[] = { |
130 | [VIDEO_PALETTE_GREY] = V4L2_PIX_FMT_GREY, | 130 | [VIDEO_PALETTE_GREY] = V4L2_PIX_FMT_GREY, |
131 | [VIDEO_PALETTE_RGB555] = V4L2_PIX_FMT_RGB555, | 131 | [VIDEO_PALETTE_RGB555] = V4L2_PIX_FMT_RGB555, |
132 | [VIDEO_PALETTE_RGB565] = V4L2_PIX_FMT_RGB565, | 132 | [VIDEO_PALETTE_RGB565] = V4L2_PIX_FMT_RGB565, |
diff --git a/drivers/misc/intel_menlow.c b/drivers/misc/intel_menlow.c index de16e88eb8d3..0c0bb3093e07 100644 --- a/drivers/misc/intel_menlow.c +++ b/drivers/misc/intel_menlow.c | |||
@@ -213,7 +213,7 @@ static int intel_menlow_memory_remove(struct acpi_device *device, int type) | |||
213 | return 0; | 213 | return 0; |
214 | } | 214 | } |
215 | 215 | ||
216 | const static struct acpi_device_id intel_menlow_memory_ids[] = { | 216 | static const struct acpi_device_id intel_menlow_memory_ids[] = { |
217 | {"INT0002", 0}, | 217 | {"INT0002", 0}, |
218 | {"", 0}, | 218 | {"", 0}, |
219 | }; | 219 | }; |
diff --git a/fs/ext2/ialloc.c b/fs/ext2/ialloc.c index 5deb8b74e649..08f647d8188d 100644 --- a/fs/ext2/ialloc.c +++ b/fs/ext2/ialloc.c | |||
@@ -253,7 +253,7 @@ static int find_group_dir(struct super_block *sb, struct inode *parent) | |||
253 | * it has too few free inodes left (min_inodes) or | 253 | * it has too few free inodes left (min_inodes) or |
254 | * it has too few free blocks left (min_blocks) or | 254 | * it has too few free blocks left (min_blocks) or |
255 | * it's already running too large debt (max_debt). | 255 | * it's already running too large debt (max_debt). |
256 | * Parent's group is prefered, if it doesn't satisfy these | 256 | * Parent's group is preferred, if it doesn't satisfy these |
257 | * conditions we search cyclically through the rest. If none | 257 | * conditions we search cyclically through the rest. If none |
258 | * of the groups look good we just look for a group with more | 258 | * of the groups look good we just look for a group with more |
259 | * free inodes than average (starting at parent's group). | 259 | * free inodes than average (starting at parent's group). |
diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c index c62006805427..b8a2990bab83 100644 --- a/fs/ext2/inode.c +++ b/fs/ext2/inode.c | |||
@@ -239,7 +239,7 @@ no_block: | |||
239 | * @inode: owner | 239 | * @inode: owner |
240 | * @ind: descriptor of indirect block. | 240 | * @ind: descriptor of indirect block. |
241 | * | 241 | * |
242 | * This function returns the prefered place for block allocation. | 242 | * This function returns the preferred place for block allocation. |
243 | * It is used when heuristic for sequential allocation fails. | 243 | * It is used when heuristic for sequential allocation fails. |
244 | * Rules are: | 244 | * Rules are: |
245 | * + if there is a block to the left of our position - allocate near it. | 245 | * + if there is a block to the left of our position - allocate near it. |
@@ -283,7 +283,7 @@ static unsigned long ext2_find_near(struct inode *inode, Indirect *ind) | |||
283 | } | 283 | } |
284 | 284 | ||
285 | /** | 285 | /** |
286 | * ext2_find_goal - find a prefered place for allocation. | 286 | * ext2_find_goal - find a preferred place for allocation. |
287 | * @inode: owner | 287 | * @inode: owner |
288 | * @block: block we want | 288 | * @block: block we want |
289 | * @partial: pointer to the last triple within a chain | 289 | * @partial: pointer to the last triple within a chain |
diff --git a/fs/ext3/ialloc.c b/fs/ext3/ialloc.c index 4f4020c54683..96dd5573e49b 100644 --- a/fs/ext3/ialloc.c +++ b/fs/ext3/ialloc.c | |||
@@ -239,7 +239,7 @@ static int find_group_dir(struct super_block *sb, struct inode *parent) | |||
239 | * it has too few free inodes left (min_inodes) or | 239 | * it has too few free inodes left (min_inodes) or |
240 | * it has too few free blocks left (min_blocks) or | 240 | * it has too few free blocks left (min_blocks) or |
241 | * it's already running too large debt (max_debt). | 241 | * it's already running too large debt (max_debt). |
242 | * Parent's group is prefered, if it doesn't satisfy these | 242 | * Parent's group is preferred, if it doesn't satisfy these |
243 | * conditions we search cyclically through the rest. If none | 243 | * conditions we search cyclically through the rest. If none |
244 | * of the groups look good we just look for a group with more | 244 | * of the groups look good we just look for a group with more |
245 | * free inodes than average (starting at parent's group). | 245 | * free inodes than average (starting at parent's group). |
diff --git a/fs/ext3/inode.c b/fs/ext3/inode.c index eb95670a27eb..c683609b0e3a 100644 --- a/fs/ext3/inode.c +++ b/fs/ext3/inode.c | |||
@@ -392,7 +392,7 @@ no_block: | |||
392 | * @inode: owner | 392 | * @inode: owner |
393 | * @ind: descriptor of indirect block. | 393 | * @ind: descriptor of indirect block. |
394 | * | 394 | * |
395 | * This function returns the prefered place for block allocation. | 395 | * This function returns the preferred place for block allocation. |
396 | * It is used when heuristic for sequential allocation fails. | 396 | * It is used when heuristic for sequential allocation fails. |
397 | * Rules are: | 397 | * Rules are: |
398 | * + if there is a block to the left of our position - allocate near it. | 398 | * + if there is a block to the left of our position - allocate near it. |
@@ -436,12 +436,12 @@ static ext3_fsblk_t ext3_find_near(struct inode *inode, Indirect *ind) | |||
436 | } | 436 | } |
437 | 437 | ||
438 | /** | 438 | /** |
439 | * ext3_find_goal - find a prefered place for allocation. | 439 | * ext3_find_goal - find a preferred place for allocation. |
440 | * @inode: owner | 440 | * @inode: owner |
441 | * @block: block we want | 441 | * @block: block we want |
442 | * @partial: pointer to the last triple within a chain | 442 | * @partial: pointer to the last triple within a chain |
443 | * | 443 | * |
444 | * Normally this function find the prefered place for block allocation, | 444 | * Normally this function find the preferred place for block allocation, |
445 | * returns it. | 445 | * returns it. |
446 | */ | 446 | */ |
447 | 447 | ||
diff --git a/fs/ext4/ialloc.c b/fs/ext4/ialloc.c index 8036b9b5376b..486e46a3918d 100644 --- a/fs/ext4/ialloc.c +++ b/fs/ext4/ialloc.c | |||
@@ -305,7 +305,7 @@ static int find_group_dir(struct super_block *sb, struct inode *parent, | |||
305 | * it has too few free inodes left (min_inodes) or | 305 | * it has too few free inodes left (min_inodes) or |
306 | * it has too few free blocks left (min_blocks) or | 306 | * it has too few free blocks left (min_blocks) or |
307 | * it's already running too large debt (max_debt). | 307 | * it's already running too large debt (max_debt). |
308 | * Parent's group is prefered, if it doesn't satisfy these | 308 | * Parent's group is preferred, if it doesn't satisfy these |
309 | * conditions we search cyclically through the rest. If none | 309 | * conditions we search cyclically through the rest. If none |
310 | * of the groups look good we just look for a group with more | 310 | * of the groups look good we just look for a group with more |
311 | * free inodes than average (starting at parent's group). | 311 | * free inodes than average (starting at parent's group). |
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index 945cbf6cb1fc..8fab233cb05f 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c | |||
@@ -382,7 +382,7 @@ no_block: | |||
382 | * @inode: owner | 382 | * @inode: owner |
383 | * @ind: descriptor of indirect block. | 383 | * @ind: descriptor of indirect block. |
384 | * | 384 | * |
385 | * This function returns the prefered place for block allocation. | 385 | * This function returns the preferred place for block allocation. |
386 | * It is used when heuristic for sequential allocation fails. | 386 | * It is used when heuristic for sequential allocation fails. |
387 | * Rules are: | 387 | * Rules are: |
388 | * + if there is a block to the left of our position - allocate near it. | 388 | * + if there is a block to the left of our position - allocate near it. |
@@ -432,12 +432,12 @@ static ext4_fsblk_t ext4_find_near(struct inode *inode, Indirect *ind) | |||
432 | } | 432 | } |
433 | 433 | ||
434 | /** | 434 | /** |
435 | * ext4_find_goal - find a prefered place for allocation. | 435 | * ext4_find_goal - find a preferred place for allocation. |
436 | * @inode: owner | 436 | * @inode: owner |
437 | * @block: block we want | 437 | * @block: block we want |
438 | * @partial: pointer to the last triple within a chain | 438 | * @partial: pointer to the last triple within a chain |
439 | * | 439 | * |
440 | * Normally this function find the prefered place for block allocation, | 440 | * Normally this function find the preferred place for block allocation, |
441 | * returns it. | 441 | * returns it. |
442 | */ | 442 | */ |
443 | static ext4_fsblk_t ext4_find_goal(struct inode *inode, ext4_lblk_t block, | 443 | static ext4_fsblk_t ext4_find_goal(struct inode *inode, ext4_lblk_t block, |
diff --git a/fs/select.c b/fs/select.c index 5633fe980781..00f58c5c7e05 100644 --- a/fs/select.c +++ b/fs/select.c | |||
@@ -260,7 +260,7 @@ int do_select(int n, fd_set_bits *fds, s64 *timeout) | |||
260 | wait = NULL; | 260 | wait = NULL; |
261 | if (retval || !*timeout || signal_pending(current)) | 261 | if (retval || !*timeout || signal_pending(current)) |
262 | break; | 262 | break; |
263 | if(table.error) { | 263 | if (table.error) { |
264 | retval = table.error; | 264 | retval = table.error; |
265 | break; | 265 | break; |
266 | } | 266 | } |
diff --git a/include/asm-arm/hardware/iop3xx-adma.h b/include/asm-arm/hardware/iop3xx-adma.h index 84d635b0a71a..a32b86ac62aa 100644 --- a/include/asm-arm/hardware/iop3xx-adma.h +++ b/include/asm-arm/hardware/iop3xx-adma.h | |||
@@ -260,7 +260,7 @@ static inline int iop_chan_memset_slot_count(size_t len, int *slots_per_op) | |||
260 | static inline int iop3xx_aau_xor_slot_count(size_t len, int src_cnt, | 260 | static inline int iop3xx_aau_xor_slot_count(size_t len, int src_cnt, |
261 | int *slots_per_op) | 261 | int *slots_per_op) |
262 | { | 262 | { |
263 | const static int slot_count_table[] = { 0, | 263 | static const int slot_count_table[] = { 0, |
264 | 1, 1, 1, 1, /* 01 - 04 */ | 264 | 1, 1, 1, 1, /* 01 - 04 */ |
265 | 2, 2, 2, 2, /* 05 - 08 */ | 265 | 2, 2, 2, 2, /* 05 - 08 */ |
266 | 4, 4, 4, 4, /* 09 - 12 */ | 266 | 4, 4, 4, 4, /* 09 - 12 */ |
@@ -369,7 +369,7 @@ static inline u32 iop_desc_get_byte_count(struct iop_adma_desc_slot *desc, | |||
369 | /* translate the src_idx to a descriptor word index */ | 369 | /* translate the src_idx to a descriptor word index */ |
370 | static inline int __desc_idx(int src_idx) | 370 | static inline int __desc_idx(int src_idx) |
371 | { | 371 | { |
372 | const static int desc_idx_table[] = { 0, 0, 0, 0, | 372 | static const int desc_idx_table[] = { 0, 0, 0, 0, |
373 | 0, 1, 2, 3, | 373 | 0, 1, 2, 3, |
374 | 5, 6, 7, 8, | 374 | 5, 6, 7, 8, |
375 | 9, 10, 11, 12, | 375 | 9, 10, 11, 12, |
diff --git a/include/keys/rxrpc-type.h b/include/keys/rxrpc-type.h index 4ea429b18750..7609365577f1 100644 --- a/include/keys/rxrpc-type.h +++ b/include/keys/rxrpc-type.h | |||
@@ -21,4 +21,4 @@ extern struct key_type key_type_rxrpc; | |||
21 | 21 | ||
22 | extern struct key *rxrpc_get_null_key(const char *); | 22 | extern struct key *rxrpc_get_null_key(const char *); |
23 | 23 | ||
24 | #endif /* _KEYS_USER_TYPE_H */ | 24 | #endif /* _KEYS_RXRPC_TYPE_H */ |
diff --git a/include/linux/dmaengine.h b/include/linux/dmaengine.h index b4d84ed6187d..d08a5c5eb928 100644 --- a/include/linux/dmaengine.h +++ b/include/linux/dmaengine.h | |||
@@ -404,7 +404,7 @@ static inline enum dma_status dma_async_is_tx_complete(struct dma_chan *chan, | |||
404 | * @last_used: last cookie value handed out | 404 | * @last_used: last cookie value handed out |
405 | * | 405 | * |
406 | * dma_async_is_complete() is used in dma_async_memcpy_complete() | 406 | * dma_async_is_complete() is used in dma_async_memcpy_complete() |
407 | * the test logic is seperated for lightweight testing of multiple cookies | 407 | * the test logic is separated for lightweight testing of multiple cookies |
408 | */ | 408 | */ |
409 | static inline enum dma_status dma_async_is_complete(dma_cookie_t cookie, | 409 | static inline enum dma_status dma_async_is_complete(dma_cookie_t cookie, |
410 | dma_cookie_t last_complete, dma_cookie_t last_used) | 410 | dma_cookie_t last_complete, dma_cookie_t last_used) |
diff --git a/include/linux/jiffies.h b/include/linux/jiffies.h index e377e34e589e..33ef710dac24 100644 --- a/include/linux/jiffies.h +++ b/include/linux/jiffies.h | |||
@@ -36,7 +36,7 @@ | |||
36 | #elif HZ >= 6144 && HZ < 12288 | 36 | #elif HZ >= 6144 && HZ < 12288 |
37 | # define SHIFT_HZ 13 | 37 | # define SHIFT_HZ 13 |
38 | #else | 38 | #else |
39 | # error You lose. | 39 | # error Invalid value of HZ. |
40 | #endif | 40 | #endif |
41 | 41 | ||
42 | /* LATCH is used in the interval timer and ftape setup. */ | 42 | /* LATCH is used in the interval timer and ftape setup. */ |
diff --git a/include/linux/mmzone.h b/include/linux/mmzone.h index 8d8d1977736e..9f274a687c7e 100644 --- a/include/linux/mmzone.h +++ b/include/linux/mmzone.h | |||
@@ -699,7 +699,6 @@ extern char numa_zonelist_order[]; | |||
699 | extern struct pglist_data contig_page_data; | 699 | extern struct pglist_data contig_page_data; |
700 | #define NODE_DATA(nid) (&contig_page_data) | 700 | #define NODE_DATA(nid) (&contig_page_data) |
701 | #define NODE_MEM_MAP(nid) mem_map | 701 | #define NODE_MEM_MAP(nid) mem_map |
702 | #define MAX_NODES_SHIFT 1 | ||
703 | 702 | ||
704 | #else /* CONFIG_NEED_MULTIPLE_NODES */ | 703 | #else /* CONFIG_NEED_MULTIPLE_NODES */ |
705 | 704 | ||
diff --git a/kernel/signal.c b/kernel/signal.c index cc8303cd093d..64ad0ed15992 100644 --- a/kernel/signal.c +++ b/kernel/signal.c | |||
@@ -220,7 +220,7 @@ void flush_signals(struct task_struct *t) | |||
220 | unsigned long flags; | 220 | unsigned long flags; |
221 | 221 | ||
222 | spin_lock_irqsave(&t->sighand->siglock, flags); | 222 | spin_lock_irqsave(&t->sighand->siglock, flags); |
223 | clear_tsk_thread_flag(t,TIF_SIGPENDING); | 223 | clear_tsk_thread_flag(t, TIF_SIGPENDING); |
224 | flush_sigqueue(&t->pending); | 224 | flush_sigqueue(&t->pending); |
225 | flush_sigqueue(&t->signal->shared_pending); | 225 | flush_sigqueue(&t->signal->shared_pending); |
226 | spin_unlock_irqrestore(&t->sighand->siglock, flags); | 226 | spin_unlock_irqrestore(&t->sighand->siglock, flags); |
@@ -424,7 +424,7 @@ int dequeue_signal(struct task_struct *tsk, sigset_t *mask, siginfo_t *info) | |||
424 | } | 424 | } |
425 | if (signr && | 425 | if (signr && |
426 | ((info->si_code & __SI_MASK) == __SI_TIMER) && | 426 | ((info->si_code & __SI_MASK) == __SI_TIMER) && |
427 | info->si_sys_private){ | 427 | info->si_sys_private) { |
428 | /* | 428 | /* |
429 | * Release the siglock to ensure proper locking order | 429 | * Release the siglock to ensure proper locking order |
430 | * of timer locks outside of siglocks. Note, we leave | 430 | * of timer locks outside of siglocks. Note, we leave |
diff --git a/kernel/stop_machine.c b/kernel/stop_machine.c index dc25b0baaa96..0101aeef7ed7 100644 --- a/kernel/stop_machine.c +++ b/kernel/stop_machine.c | |||
@@ -134,8 +134,7 @@ static void restart_machine(void) | |||
134 | preempt_enable_no_resched(); | 134 | preempt_enable_no_resched(); |
135 | } | 135 | } |
136 | 136 | ||
137 | struct stop_machine_data | 137 | struct stop_machine_data { |
138 | { | ||
139 | int (*fn)(void *); | 138 | int (*fn)(void *); |
140 | void *data; | 139 | void *data; |
141 | struct completion done; | 140 | struct completion done; |
diff --git a/mm/pdflush.c b/mm/pdflush.c index 0ceacff56457..1c96cfc9e040 100644 --- a/mm/pdflush.c +++ b/mm/pdflush.c | |||
@@ -17,8 +17,8 @@ | |||
17 | #include <linux/gfp.h> | 17 | #include <linux/gfp.h> |
18 | #include <linux/init.h> | 18 | #include <linux/init.h> |
19 | #include <linux/module.h> | 19 | #include <linux/module.h> |
20 | #include <linux/fs.h> // Needed by writeback.h | 20 | #include <linux/fs.h> /* Needed by writeback.h */ |
21 | #include <linux/writeback.h> // Prototypes pdflush_operation() | 21 | #include <linux/writeback.h> /* Prototypes pdflush_operation() */ |
22 | #include <linux/kthread.h> | 22 | #include <linux/kthread.h> |
23 | #include <linux/cpuset.h> | 23 | #include <linux/cpuset.h> |
24 | #include <linux/freezer.h> | 24 | #include <linux/freezer.h> |
diff --git a/net/core/sock.c b/net/core/sock.c index 54c836a2216b..5ac052693554 100644 --- a/net/core/sock.c +++ b/net/core/sock.c | |||
@@ -942,7 +942,6 @@ static void sk_prot_free(struct proto *prot, struct sock *sk) | |||
942 | * @family: protocol family | 942 | * @family: protocol family |
943 | * @priority: for allocation (%GFP_KERNEL, %GFP_ATOMIC, etc) | 943 | * @priority: for allocation (%GFP_KERNEL, %GFP_ATOMIC, etc) |
944 | * @prot: struct proto associated with this new sock instance | 944 | * @prot: struct proto associated with this new sock instance |
945 | * @zero_it: if we should zero the newly allocated sock | ||
946 | */ | 945 | */ |
947 | struct sock *sk_alloc(struct net *net, int family, gfp_t priority, | 946 | struct sock *sk_alloc(struct net *net, int family, gfp_t priority, |
948 | struct proto *prot) | 947 | struct proto *prot) |
diff --git a/samples/firmware_class/firmware_sample_driver.c b/samples/firmware_class/firmware_sample_driver.c index 165cff98032e..11114f389c49 100644 --- a/samples/firmware_class/firmware_sample_driver.c +++ b/samples/firmware_class/firmware_sample_driver.c | |||
@@ -73,6 +73,7 @@ static void sample_probe_specific(void) | |||
73 | 73 | ||
74 | /* finish setting up the device */ | 74 | /* finish setting up the device */ |
75 | } | 75 | } |
76 | |||
76 | static void sample_probe_async_cont(const struct firmware *fw, void *context) | 77 | static void sample_probe_async_cont(const struct firmware *fw, void *context) |
77 | { | 78 | { |
78 | if (!fw) { | 79 | if (!fw) { |
diff --git a/sound/pci/sis7019.c b/sound/pci/sis7019.c index dcd7cd010461..742f1180c39e 100644 --- a/sound/pci/sis7019.c +++ b/sound/pci/sis7019.c | |||
@@ -920,7 +920,7 @@ static unsigned short sis_ac97_rw(struct sis7019 *sis, int codec, u32 cmd) | |||
920 | u16 status; | 920 | u16 status; |
921 | u16 rdy; | 921 | u16 rdy; |
922 | int count; | 922 | int count; |
923 | const static u16 codec_ready[3] = { | 923 | static const u16 codec_ready[3] = { |
924 | SIS_AC97_STATUS_CODEC_READY, | 924 | SIS_AC97_STATUS_CODEC_READY, |
925 | SIS_AC97_STATUS_CODEC2_READY, | 925 | SIS_AC97_STATUS_CODEC2_READY, |
926 | SIS_AC97_STATUS_CODEC3_READY, | 926 | SIS_AC97_STATUS_CODEC3_READY, |
@@ -984,7 +984,7 @@ timeout: | |||
984 | static void sis_ac97_write(struct snd_ac97 *ac97, unsigned short reg, | 984 | static void sis_ac97_write(struct snd_ac97 *ac97, unsigned short reg, |
985 | unsigned short val) | 985 | unsigned short val) |
986 | { | 986 | { |
987 | const static u32 cmd[3] = { | 987 | static const u32 cmd[3] = { |
988 | SIS_AC97_CMD_CODEC_WRITE, | 988 | SIS_AC97_CMD_CODEC_WRITE, |
989 | SIS_AC97_CMD_CODEC2_WRITE, | 989 | SIS_AC97_CMD_CODEC2_WRITE, |
990 | SIS_AC97_CMD_CODEC3_WRITE, | 990 | SIS_AC97_CMD_CODEC3_WRITE, |
@@ -995,7 +995,7 @@ static void sis_ac97_write(struct snd_ac97 *ac97, unsigned short reg, | |||
995 | 995 | ||
996 | static unsigned short sis_ac97_read(struct snd_ac97 *ac97, unsigned short reg) | 996 | static unsigned short sis_ac97_read(struct snd_ac97 *ac97, unsigned short reg) |
997 | { | 997 | { |
998 | const static u32 cmd[3] = { | 998 | static const u32 cmd[3] = { |
999 | SIS_AC97_CMD_CODEC_READ, | 999 | SIS_AC97_CMD_CODEC_READ, |
1000 | SIS_AC97_CMD_CODEC2_READ, | 1000 | SIS_AC97_CMD_CODEC2_READ, |
1001 | SIS_AC97_CMD_CODEC3_READ, | 1001 | SIS_AC97_CMD_CODEC3_READ, |
diff --git a/sound/ppc/snd_ps3.c b/sound/ppc/snd_ps3.c index d8d0b4b2395a..20d0e328288a 100644 --- a/sound/ppc/snd_ps3.c +++ b/sound/ppc/snd_ps3.c | |||
@@ -137,7 +137,7 @@ static inline void update_mask_reg(unsigned int reg, u32 mask, u32 or_val) | |||
137 | /* | 137 | /* |
138 | * ALSA defs | 138 | * ALSA defs |
139 | */ | 139 | */ |
140 | const static struct snd_pcm_hardware snd_ps3_pcm_hw = { | 140 | static const struct snd_pcm_hardware snd_ps3_pcm_hw = { |
141 | .info = (SNDRV_PCM_INFO_MMAP | | 141 | .info = (SNDRV_PCM_INFO_MMAP | |
142 | SNDRV_PCM_INFO_NONINTERLEAVED | | 142 | SNDRV_PCM_INFO_NONINTERLEAVED | |
143 | SNDRV_PCM_INFO_MMAP_VALID), | 143 | SNDRV_PCM_INFO_MMAP_VALID), |