mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 07:50:53 +07:00
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial
* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial: (34 commits) trivial: fix typo in aic7xxx comment trivial: fix comment typo in drivers/ata/pata_hpt37x.c trivial: typo in kernel-parameters.txt trivial: fix typo in tracing documentation trivial: add __init/__exit macros in drivers/gpio/bt8xxgpio.c trivial: add __init macro/ fix of __exit macro location in ipmi_poweroff.c trivial: remove unnecessary semicolons trivial: Fix duplicated word "options" in comment trivial: kbuild: remove extraneous blank line after declaration of usage() trivial: improve help text for mm debug config options trivial: doc: hpfall: accept disk device to unload as argument trivial: doc: hpfall: reduce risk that hpfall can do harm trivial: SubmittingPatches: Fix reference to renumbered step trivial: fix typos "man[ae]g?ment" -> "management" trivial: media/video/cx88: add __init/__exit macros to cx88 drivers trivial: fix typo in CONFIG_DEBUG_FS in gcov doc trivial: fix missing printk space in amd_k7_smp_check trivial: fix typo s/ketymap/keymap/ in comment trivial: fix typo "to to" in multiple files trivial: fix typos in comments s/DGBU/DBGU/ ...
This commit is contained in:
commit
342ff1a1b5
@ -568,7 +568,7 @@ static void board_select_chip (struct mtd_info *mtd, int chip)
|
||||
<para>
|
||||
The blocks in which the tables are stored are procteted against
|
||||
accidental access by marking them bad in the memory bad block
|
||||
table. The bad block table managment functions are allowed
|
||||
table. The bad block table management functions are allowed
|
||||
to circumvernt this protection.
|
||||
</para>
|
||||
<para>
|
||||
|
@ -317,7 +317,7 @@
|
||||
<para>
|
||||
The SAS transport class contains common code to deal with SAS HBAs,
|
||||
an aproximated representation of SAS topologies in the driver model,
|
||||
and various sysfs attributes to expose these topologies and managment
|
||||
and various sysfs attributes to expose these topologies and management
|
||||
interfaces to userspace.
|
||||
</para>
|
||||
<para>
|
||||
|
@ -183,7 +183,7 @@ the MAN-PAGES maintainer (as listed in the MAINTAINERS file)
|
||||
a man-pages patch, or at least a notification of the change,
|
||||
so that some information makes its way into the manual pages.
|
||||
|
||||
Even if the maintainer did not respond in step #4, make sure to ALWAYS
|
||||
Even if the maintainer did not respond in step #5, make sure to ALWAYS
|
||||
copy the maintainer when you change their code.
|
||||
|
||||
For small patches you may want to CC the Trivial Patch Monkey
|
||||
|
@ -105,7 +105,7 @@ ip=<client-ip>:<server-ip>:<gw-ip>:<netmask>:<hostname>:<device>:<autoconf>
|
||||
the client address and this parameter is NOT empty only
|
||||
replies from the specified server are accepted.
|
||||
|
||||
Only required for for NFS root. That is autoconfiguration
|
||||
Only required for NFS root. That is autoconfiguration
|
||||
will not be triggered if it is missing and NFS root is not
|
||||
in operation.
|
||||
|
||||
|
@ -47,7 +47,7 @@ Possible uses:
|
||||
|
||||
Configure the kernel with:
|
||||
|
||||
CONFIG_DEBUGFS=y
|
||||
CONFIG_DEBUG_FS=y
|
||||
CONFIG_GCOV_KERNEL=y
|
||||
|
||||
and to get coverage data for the entire kernel:
|
||||
|
@ -16,6 +16,34 @@
|
||||
#include <stdint.h>
|
||||
#include <errno.h>
|
||||
#include <signal.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sched.h>
|
||||
|
||||
char unload_heads_path[64];
|
||||
|
||||
int set_unload_heads_path(char *device)
|
||||
{
|
||||
char devname[64];
|
||||
|
||||
if (strlen(device) <= 5 || strncmp(device, "/dev/", 5) != 0)
|
||||
return -EINVAL;
|
||||
strncpy(devname, device + 5, sizeof(devname));
|
||||
|
||||
snprintf(unload_heads_path, sizeof(unload_heads_path),
|
||||
"/sys/block/%s/device/unload_heads", devname);
|
||||
return 0;
|
||||
}
|
||||
int valid_disk(void)
|
||||
{
|
||||
int fd = open(unload_heads_path, O_RDONLY);
|
||||
if (fd < 0) {
|
||||
perror(unload_heads_path);
|
||||
return 0;
|
||||
}
|
||||
|
||||
close(fd);
|
||||
return 1;
|
||||
}
|
||||
|
||||
void write_int(char *path, int i)
|
||||
{
|
||||
@ -40,7 +68,7 @@ void set_led(int on)
|
||||
|
||||
void protect(int seconds)
|
||||
{
|
||||
write_int("/sys/block/sda/device/unload_heads", seconds*1000);
|
||||
write_int(unload_heads_path, seconds*1000);
|
||||
}
|
||||
|
||||
int on_ac(void)
|
||||
@ -57,45 +85,62 @@ void ignore_me(void)
|
||||
{
|
||||
protect(0);
|
||||
set_led(0);
|
||||
|
||||
}
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int fd, ret;
|
||||
int fd, ret;
|
||||
struct sched_param param;
|
||||
|
||||
fd = open("/dev/freefall", O_RDONLY);
|
||||
if (fd < 0) {
|
||||
perror("open");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
if (argc == 1)
|
||||
ret = set_unload_heads_path("/dev/sda");
|
||||
else if (argc == 2)
|
||||
ret = set_unload_heads_path(argv[1]);
|
||||
else
|
||||
ret = -EINVAL;
|
||||
|
||||
if (ret || !valid_disk()) {
|
||||
fprintf(stderr, "usage: %s <device> (default: /dev/sda)\n",
|
||||
argv[0]);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
fd = open("/dev/freefall", O_RDONLY);
|
||||
if (fd < 0) {
|
||||
perror("/dev/freefall");
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
daemon(0, 0);
|
||||
param.sched_priority = sched_get_priority_max(SCHED_FIFO);
|
||||
sched_setscheduler(0, SCHED_FIFO, ¶m);
|
||||
mlockall(MCL_CURRENT|MCL_FUTURE);
|
||||
|
||||
signal(SIGALRM, ignore_me);
|
||||
|
||||
for (;;) {
|
||||
unsigned char count;
|
||||
for (;;) {
|
||||
unsigned char count;
|
||||
|
||||
ret = read(fd, &count, sizeof(count));
|
||||
alarm(0);
|
||||
if ((ret == -1) && (errno == EINTR)) {
|
||||
/* Alarm expired, time to unpark the heads */
|
||||
continue;
|
||||
}
|
||||
ret = read(fd, &count, sizeof(count));
|
||||
alarm(0);
|
||||
if ((ret == -1) && (errno == EINTR)) {
|
||||
/* Alarm expired, time to unpark the heads */
|
||||
continue;
|
||||
}
|
||||
|
||||
if (ret != sizeof(count)) {
|
||||
perror("read");
|
||||
break;
|
||||
}
|
||||
if (ret != sizeof(count)) {
|
||||
perror("read");
|
||||
break;
|
||||
}
|
||||
|
||||
protect(21);
|
||||
set_led(1);
|
||||
if (1 || on_ac() || lid_open()) {
|
||||
alarm(2);
|
||||
} else {
|
||||
alarm(20);
|
||||
}
|
||||
}
|
||||
protect(21);
|
||||
set_led(1);
|
||||
if (1 || on_ac() || lid_open())
|
||||
alarm(2);
|
||||
else
|
||||
alarm(20);
|
||||
}
|
||||
|
||||
close(fd);
|
||||
return EXIT_SUCCESS;
|
||||
close(fd);
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
@ -34,5 +34,5 @@ Fan rotation speeds are reported as 14-bit values from a gated clock
|
||||
signal. Speeds down to 83 RPM can be measured.
|
||||
|
||||
An alarm is triggered if the rotation speed drops below a programmable
|
||||
limit. Another alarm is triggered if the speed is too low to to be measured
|
||||
limit. Another alarm is triggered if the speed is too low to be measured
|
||||
(including stalled or missing fan).
|
||||
|
@ -933,7 +933,7 @@ and is between 256 and 4096 characters. It is defined in the file
|
||||
1 -- enable informational integrity auditing messages.
|
||||
|
||||
ima_hash= [IMA]
|
||||
Formt: { "sha1" | "md5" }
|
||||
Format: { "sha1" | "md5" }
|
||||
default: "sha1"
|
||||
|
||||
ima_tcb [IMA]
|
||||
|
@ -96,7 +96,7 @@ Example code - drivers hinting an alpha2:
|
||||
|
||||
This example comes from the zd1211rw device driver. You can start
|
||||
by having a mapping of your device's EEPROM country/regulatory
|
||||
domain value to to a specific alpha2 as follows:
|
||||
domain value to a specific alpha2 as follows:
|
||||
|
||||
static struct zd_reg_alpha2_map reg_alpha2_map[] = {
|
||||
{ ZD_REGDOMAIN_FCC, "US" },
|
||||
|
@ -32,7 +32,7 @@ prefixed with the string "marvell,", for Marvell Technology Group Ltd.
|
||||
devices. This field represents the number of cells needed to
|
||||
represent the address of the memory-mapped registers of devices
|
||||
within the system controller chip.
|
||||
- #size-cells : Size representation for for the memory-mapped
|
||||
- #size-cells : Size representation for the memory-mapped
|
||||
registers within the system controller chip.
|
||||
- #interrupt-cells : Defines the width of cells used to represent
|
||||
interrupts.
|
||||
|
@ -514,7 +514,7 @@ iv. Remove yield() while mailbox handshake in synchronous commands
|
||||
|
||||
v. Remove redundant __megaraid_busywait_mbox routine
|
||||
|
||||
vi. Fix bug in the managment module, which causes a system lockup when the
|
||||
vi. Fix bug in the management module, which causes a system lockup when the
|
||||
IO module is loaded and then unloaded, followed by executing any
|
||||
management utility. The current version of management module does not
|
||||
handle the adapter unregister properly.
|
||||
|
@ -378,7 +378,7 @@ Vport Disable/Enable:
|
||||
int vport_disable(struct fc_vport *vport, bool disable)
|
||||
|
||||
where:
|
||||
vport: Is vport to to be enabled or disabled
|
||||
vport: Is vport to be enabled or disabled
|
||||
disable: If "true", the vport is to be disabled.
|
||||
If "false", the vport is to be enabled.
|
||||
|
||||
|
@ -387,7 +387,7 @@ STAC92HD73*
|
||||
STAC92HD83*
|
||||
===========
|
||||
ref Reference board
|
||||
mic-ref Reference board with power managment for ports
|
||||
mic-ref Reference board with power management for ports
|
||||
dell-s14 Dell laptop
|
||||
auto BIOS setup (default)
|
||||
|
||||
|
@ -319,25 +319,29 @@ This option can be used to select the type of process address
|
||||
space randomization that is used in the system, for architectures
|
||||
that support this feature.
|
||||
|
||||
0 - Turn the process address space randomization off by default.
|
||||
0 - Turn the process address space randomization off. This is the
|
||||
default for architectures that do not support this feature anyways,
|
||||
and kernels that are booted with the "norandmaps" parameter.
|
||||
|
||||
1 - Make the addresses of mmap base, stack and VDSO page randomized.
|
||||
This, among other things, implies that shared libraries will be
|
||||
loaded to random addresses. Also for PIE-linked binaries, the location
|
||||
of code start is randomized.
|
||||
loaded to random addresses. Also for PIE-linked binaries, the
|
||||
location of code start is randomized. This is the default if the
|
||||
CONFIG_COMPAT_BRK option is enabled.
|
||||
|
||||
With heap randomization, the situation is a little bit more
|
||||
complicated.
|
||||
There a few legacy applications out there (such as some ancient
|
||||
2 - Additionally enable heap randomization. This is the default if
|
||||
CONFIG_COMPAT_BRK is disabled.
|
||||
|
||||
There are a few legacy applications out there (such as some ancient
|
||||
versions of libc.so.5 from 1996) that assume that brk area starts
|
||||
just after the end of the code+bss. These applications break when
|
||||
start of the brk area is randomized. There are however no known
|
||||
just after the end of the code+bss. These applications break when
|
||||
start of the brk area is randomized. There are however no known
|
||||
non-legacy applications that would be broken this way, so for most
|
||||
systems it is safe to choose full randomization. However there is
|
||||
a CONFIG_COMPAT_BRK option for systems with ancient and/or broken
|
||||
binaries, that makes heap non-randomized, but keeps all other
|
||||
parts of process address space randomized if randomize_va_space
|
||||
sysctl is turned on.
|
||||
systems it is safe to choose full randomization.
|
||||
|
||||
Systems with ancient and/or broken binaries should be configured
|
||||
with CONFIG_COMPAT_BRK enabled, which excludes the heap from process
|
||||
address space randomization.
|
||||
|
||||
==============================================================
|
||||
|
||||
|
@ -72,7 +72,7 @@ To enable all events in sched subsystem:
|
||||
|
||||
# echo 1 > /sys/kernel/debug/tracing/events/sched/enable
|
||||
|
||||
To eanble all events:
|
||||
To enable all events:
|
||||
|
||||
# echo 1 > /sys/kernel/debug/tracing/events/enable
|
||||
|
||||
|
@ -133,7 +133,7 @@ of ftrace. Here is a list of some of the key files:
|
||||
than requested, the rest of the page will be used,
|
||||
making the actual allocation bigger than requested.
|
||||
( Note, the size may not be a multiple of the page size
|
||||
due to buffer managment overhead. )
|
||||
due to buffer management overhead. )
|
||||
|
||||
This can only be updated when the current_tracer
|
||||
is set to "nop".
|
||||
|
@ -2958,7 +2958,7 @@ F: scripts/Makefile.*
|
||||
KERNEL JANITORS
|
||||
L: kernel-janitors@vger.kernel.org
|
||||
W: http://www.kerneljanitors.org/
|
||||
S: Odd fixes
|
||||
S: Maintained
|
||||
|
||||
KERNEL NFSD, SUNRPC, AND LOCKD SERVERS
|
||||
M: "J. Bruce Fields" <bfields@fieldses.org>
|
||||
|
@ -25,7 +25,7 @@ KBUILD_CFLAGS +=$(call cc-option,-marm,)
|
||||
# Select a platform tht is kept up-to-date
|
||||
KBUILD_DEFCONFIG := versatile_defconfig
|
||||
|
||||
# defines filename extension depending memory manement type.
|
||||
# defines filename extension depending memory management type.
|
||||
ifeq ($(CONFIG_MMU),)
|
||||
MMUEXT := -nommu
|
||||
endif
|
||||
|
@ -53,7 +53,7 @@ static void __init afeb9260_map_io(void)
|
||||
/* Initialize processor: 18.432 MHz crystal */
|
||||
at91sam9260_initialize(18432000);
|
||||
|
||||
/* DGBU on ttyS0. (Rx & Tx only) */
|
||||
/* DBGU on ttyS0. (Rx & Tx only) */
|
||||
at91_register_uart(0, 0, 0);
|
||||
|
||||
/* USART0 on ttyS1. (Rx, Tx, CTS, RTS, DTR, DSR, DCD, RI) */
|
||||
|
@ -50,7 +50,7 @@ static void __init cam60_map_io(void)
|
||||
/* Initialize processor: 10 MHz crystal */
|
||||
at91sam9260_initialize(10000000);
|
||||
|
||||
/* DGBU on ttyS0. (Rx & Tx only) */
|
||||
/* DBGU on ttyS0. (Rx & Tx only) */
|
||||
at91_register_uart(0, 0, 0);
|
||||
|
||||
/* set serial console to ttyS0 (ie, DBGU) */
|
||||
|
@ -56,7 +56,7 @@ static void __init neocore926_map_io(void)
|
||||
/* Initialize processor: 20 MHz crystal */
|
||||
at91sam9263_initialize(20000000);
|
||||
|
||||
/* DGBU on ttyS0. (Rx & Tx only) */
|
||||
/* DBGU on ttyS0. (Rx & Tx only) */
|
||||
at91_register_uart(0, 0, 0);
|
||||
|
||||
/* USART0 on ttyS1. (Rx, Tx, RTS, CTS) */
|
||||
|
@ -53,7 +53,7 @@ static void __init ek_map_io(void)
|
||||
/* Initialize processor: 12.000 MHz crystal */
|
||||
at91sam9260_initialize(12000000);
|
||||
|
||||
/* DGBU on ttyS0. (Rx & Tx only) */
|
||||
/* DBGU on ttyS0. (Rx & Tx only) */
|
||||
at91_register_uart(0, 0, 0);
|
||||
|
||||
/* USART0 on ttyS1. (Rx, Tx, CTS, RTS, DTR, DSR, DCD, RI) */
|
||||
|
@ -54,7 +54,7 @@ static void __init ek_map_io(void)
|
||||
/* Initialize processor: 18.432 MHz crystal */
|
||||
at91sam9260_initialize(18432000);
|
||||
|
||||
/* DGBU on ttyS0. (Rx & Tx only) */
|
||||
/* DBGU on ttyS0. (Rx & Tx only) */
|
||||
at91_register_uart(0, 0, 0);
|
||||
|
||||
/* USART0 on ttyS1. (Rx, Tx, CTS, RTS, DTR, DSR, DCD, RI) */
|
||||
|
@ -61,7 +61,7 @@ static void __init ek_map_io(void)
|
||||
/* Setup the LEDs */
|
||||
at91_init_leds(AT91_PIN_PA13, AT91_PIN_PA14);
|
||||
|
||||
/* DGBU on ttyS0. (Rx & Tx only) */
|
||||
/* DBGU on ttyS0. (Rx & Tx only) */
|
||||
at91_register_uart(0, 0, 0);
|
||||
|
||||
/* set serial console to ttyS0 (ie, DBGU) */
|
||||
|
@ -57,7 +57,7 @@ static void __init ek_map_io(void)
|
||||
/* Initialize processor: 16.367 MHz crystal */
|
||||
at91sam9263_initialize(16367660);
|
||||
|
||||
/* DGBU on ttyS0. (Rx & Tx only) */
|
||||
/* DBGU on ttyS0. (Rx & Tx only) */
|
||||
at91_register_uart(0, 0, 0);
|
||||
|
||||
/* USART0 on ttyS1. (Rx, Tx, RTS, CTS) */
|
||||
|
@ -50,7 +50,7 @@ static void __init ek_map_io(void)
|
||||
/* Initialize processor: 18.432 MHz crystal */
|
||||
at91sam9260_initialize(18432000);
|
||||
|
||||
/* DGBU on ttyS0. (Rx & Tx only) */
|
||||
/* DBGU on ttyS0. (Rx & Tx only) */
|
||||
at91_register_uart(0, 0, 0);
|
||||
|
||||
/* USART0 on ttyS1. (Rx, Tx, CTS, RTS, DTR, DSR, DCD, RI) */
|
||||
|
@ -43,7 +43,7 @@ static void __init ek_map_io(void)
|
||||
/* Initialize processor: 12.000 MHz crystal */
|
||||
at91sam9rl_initialize(12000000);
|
||||
|
||||
/* DGBU on ttyS0. (Rx & Tx only) */
|
||||
/* DBGU on ttyS0. (Rx & Tx only) */
|
||||
at91_register_uart(0, 0, 0);
|
||||
|
||||
/* USART0 on ttyS1. (Rx, Tx, CTS, RTS) */
|
||||
|
@ -53,7 +53,7 @@ static void __init ek_map_io(void)
|
||||
/* Initialize processor: 12.000 MHz crystal */
|
||||
at91sam9260_initialize(12000000);
|
||||
|
||||
/* DGBU on ttyS0. (Rx & Tx only) */
|
||||
/* DBGU on ttyS0. (Rx & Tx only) */
|
||||
at91_register_uart(0, 0, 0);
|
||||
|
||||
/* set serial console to ttyS0 (ie, DBGU) */
|
||||
|
@ -52,7 +52,7 @@ static void __init ek_map_io(void)
|
||||
/* Initialize processor: 12.00 MHz crystal */
|
||||
at91sam9263_initialize(12000000);
|
||||
|
||||
/* DGBU on ttyS0. (Rx & Tx only) */
|
||||
/* DBGU on ttyS0. (Rx & Tx only) */
|
||||
at91_register_uart(0, 0, 0);
|
||||
|
||||
/* set serial console to ttyS0 (ie, DBGU) */
|
||||
|
@ -2325,7 +2325,7 @@
|
||||
#define AMBEN_B0_B1 0x0004 /* Enable Asynchronous Memory Banks 0 & 1 only */
|
||||
#define AMBEN_B0_B1_B2 0x0006 /* Enable Asynchronous Memory Banks 0, 1, and 2 */
|
||||
#define AMBEN_ALL 0x0008 /* Enable Asynchronous Memory Banks (all) 0, 1, 2, and 3 */
|
||||
#define CDPRIO 0x0100 /* DMA has priority over core for for external accesses */
|
||||
#define CDPRIO 0x0100 /* DMA has priority over core for external accesses */
|
||||
|
||||
/* EBIU_AMGCTL Bit Positions */
|
||||
#define AMCKEN_P 0x0000 /* Enable CLKOUT */
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* cache.S: cache managment routines
|
||||
/* cache.S: cache management routines
|
||||
*
|
||||
* Copyright (C) 2004 Red Hat, Inc. All Rights Reserved.
|
||||
* Written by David Howells (dhowells@redhat.com)
|
||||
|
@ -7,7 +7,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include <linux/config.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/sched.h>
|
||||
#include <linux/kernel.h>
|
||||
|
@ -1270,7 +1270,7 @@ putreg (struct task_struct *child, int regno, unsigned int value)
|
||||
case PT_CS:
|
||||
if (value != __USER_CS)
|
||||
printk(KERN_ERR
|
||||
"ia32.putreg: attempt to to set invalid segment register %d = %x\n",
|
||||
"ia32.putreg: attempt to set invalid segment register %d = %x\n",
|
||||
regno, value);
|
||||
break;
|
||||
default:
|
||||
|
@ -17,7 +17,7 @@
|
||||
#include <linux/mm.h>
|
||||
|
||||
/*
|
||||
* virtually-indexed cache managment (our cache is physically indexed)
|
||||
* virtually-indexed cache management (our cache is physically indexed)
|
||||
*/
|
||||
#define flush_cache_all() do {} while (0)
|
||||
#define flush_cache_mm(mm) do {} while (0)
|
||||
@ -31,7 +31,7 @@
|
||||
#define flush_dcache_mmap_unlock(mapping) do {} while (0)
|
||||
|
||||
/*
|
||||
* physically-indexed cache managment
|
||||
* physically-indexed cache management
|
||||
*/
|
||||
#ifndef CONFIG_MN10300_CACHE_DISABLED
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* udbg for for NS16550 compatable serial ports
|
||||
* udbg for NS16550 compatable serial ports
|
||||
*
|
||||
* Copyright (C) 2001-2005 PPC 64 Team, IBM Corp
|
||||
*
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* udbg for for zilog scc ports as found on Apple PowerMacs
|
||||
* udbg for zilog scc ports as found on Apple PowerMacs
|
||||
*
|
||||
* Copyright (C) 2001-2005 PPC 64 Team, IBM Corp
|
||||
*
|
||||
|
@ -496,7 +496,7 @@ static int __init hypfs_init(void)
|
||||
}
|
||||
s390_kobj = kobject_create_and_add("s390", hypervisor_kobj);
|
||||
if (!s390_kobj) {
|
||||
rc = -ENOMEM;;
|
||||
rc = -ENOMEM;
|
||||
goto fail_sysfs;
|
||||
}
|
||||
rc = register_filesystem(&hypfs_type);
|
||||
|
@ -478,7 +478,7 @@ int kvm_s390_inject_program_int(struct kvm_vcpu *vcpu, u16 code)
|
||||
if (!inti)
|
||||
return -ENOMEM;
|
||||
|
||||
inti->type = KVM_S390_PROGRAM_INT;;
|
||||
inti->type = KVM_S390_PROGRAM_INT;
|
||||
inti->pgm.code = code;
|
||||
|
||||
VCPU_EVENT(vcpu, 3, "inject: program check %d (from kernel)", code);
|
||||
|
@ -229,7 +229,7 @@ static unsigned int sun4u_compute_tid(unsigned long imap, unsigned long cpuid)
|
||||
tid = ((a << IMAP_AID_SHIFT) |
|
||||
(n << IMAP_NID_SHIFT));
|
||||
tid &= (IMAP_AID_SAFARI |
|
||||
IMAP_NID_SAFARI);;
|
||||
IMAP_NID_SAFARI);
|
||||
}
|
||||
} else {
|
||||
tid = cpuid << IMAP_TID_SHIFT;
|
||||
|
@ -533,7 +533,7 @@ static int eth_parse(char *str, int *index_out, char **str_out,
|
||||
char **error_out)
|
||||
{
|
||||
char *end;
|
||||
int n, err = -EINVAL;;
|
||||
int n, err = -EINVAL;
|
||||
|
||||
n = simple_strtoul(str, &end, 0);
|
||||
if (end == str) {
|
||||
|
@ -29,7 +29,7 @@ extern int ptrace_setregs(long pid, unsigned long *regs_in);
|
||||
* recompilation. So, we use PTRACE_OLDSETOPTIONS in UML.
|
||||
* We also want to be able to build the kernel on 2.4, which doesn't
|
||||
* have PTRACE_OLDSETOPTIONS. So, if it is missing, we declare
|
||||
* PTRACE_OLDSETOPTIONS to to be the same as PTRACE_SETOPTIONS.
|
||||
* PTRACE_OLDSETOPTIONS to be the same as PTRACE_SETOPTIONS.
|
||||
*
|
||||
* On architectures, that start to support PTRACE_O_TRACESYSGOOD on
|
||||
* linux 2.6, PTRACE_OLDSETOPTIONS never is defined, and also isn't
|
||||
|
@ -184,7 +184,7 @@ static void __cpuinit amd_k7_smp_check(struct cpuinfo_x86 *c)
|
||||
* approved Athlon
|
||||
*/
|
||||
WARN_ONCE(1, "WARNING: This combination of AMD"
|
||||
"processors is not suitable for SMP.\n");
|
||||
" processors is not suitable for SMP.\n");
|
||||
if (!test_taint(TAINT_UNSAFE_SMP))
|
||||
add_taint(TAINT_UNSAFE_SMP);
|
||||
|
||||
|
@ -624,7 +624,7 @@ static struct ata_port_operations hpt374_fn1_port_ops = {
|
||||
};
|
||||
|
||||
/**
|
||||
* htp37x_clock_slot - Turn timing to PC clock entry
|
||||
* hpt37x_clock_slot - Turn timing to PC clock entry
|
||||
* @freq: Reported frequency timing
|
||||
* @base: Base timing
|
||||
*
|
||||
|
@ -6653,7 +6653,7 @@ static long DAC960_gam_ioctl(struct file *file, unsigned int Request,
|
||||
else ErrorCode = get_user(ControllerNumber,
|
||||
&UserSpaceControllerInfo->ControllerNumber);
|
||||
if (ErrorCode != 0)
|
||||
break;;
|
||||
break;
|
||||
ErrorCode = -ENXIO;
|
||||
if (ControllerNumber < 0 ||
|
||||
ControllerNumber > DAC960_ControllerCount - 1) {
|
||||
@ -6661,7 +6661,7 @@ static long DAC960_gam_ioctl(struct file *file, unsigned int Request,
|
||||
}
|
||||
Controller = DAC960_Controllers[ControllerNumber];
|
||||
if (Controller == NULL)
|
||||
break;;
|
||||
break;
|
||||
memset(&ControllerInfo, 0, sizeof(DAC960_ControllerInfo_T));
|
||||
ControllerInfo.ControllerNumber = ControllerNumber;
|
||||
ControllerInfo.FirmwareType = Controller->FirmwareType;
|
||||
@ -7210,7 +7210,7 @@ static struct pci_driver DAC960_pci_driver = {
|
||||
.remove = DAC960_Remove,
|
||||
};
|
||||
|
||||
static int DAC960_init_module(void)
|
||||
static int __init DAC960_init_module(void)
|
||||
{
|
||||
int ret;
|
||||
|
||||
@ -7222,7 +7222,7 @@ static int DAC960_init_module(void)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static void DAC960_cleanup_module(void)
|
||||
static void __exit DAC960_cleanup_module(void)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
@ -1062,7 +1062,7 @@ static int swim3_add_device(struct macio_dev *mdev, int index)
|
||||
goto out_release;
|
||||
}
|
||||
fs->swim3_intr = macio_irq(mdev, 0);
|
||||
fs->dma_intr = macio_irq(mdev, 1);;
|
||||
fs->dma_intr = macio_irq(mdev, 1);
|
||||
fs->cur_cyl = -1;
|
||||
fs->cur_sector = -1;
|
||||
fs->secpercyl = 36;
|
||||
|
@ -270,7 +270,7 @@ static void uninorth_agp_enable(struct agp_bridge_data *bridge, u32 mode)
|
||||
|
||||
if ((uninorth_rev >= 0x30) && (uninorth_rev <= 0x33)) {
|
||||
/*
|
||||
* We need to to set REQ_DEPTH to 7 for U3 versions 1.0, 2.1,
|
||||
* We need to set REQ_DEPTH to 7 for U3 versions 1.0, 2.1,
|
||||
* 2.2 and 2.3, Darwin do so.
|
||||
*/
|
||||
if ((command >> AGPSTAT_RQ_DEPTH_SHIFT) > 7)
|
||||
|
@ -2239,7 +2239,7 @@ static void do_softint(struct work_struct *work)
|
||||
struct channel *ch = container_of(work, struct channel, tqueue);
|
||||
/* Called in response to a modem change event */
|
||||
if (ch && ch->magic == EPCA_MAGIC) {
|
||||
struct tty_struct *tty = tty_port_tty_get(&ch->port);;
|
||||
struct tty_struct *tty = tty_port_tty_get(&ch->port);
|
||||
|
||||
if (tty && tty->driver_data) {
|
||||
if (test_and_clear_bit(EPCA_EVENT_HANGUP, &ch->event)) {
|
||||
|
@ -691,7 +691,7 @@ static struct ctl_table_header *ipmi_table_header;
|
||||
/*
|
||||
* Startup and shutdown functions.
|
||||
*/
|
||||
static int ipmi_poweroff_init(void)
|
||||
static int __init ipmi_poweroff_init(void)
|
||||
{
|
||||
int rv;
|
||||
|
||||
@ -725,7 +725,7 @@ static int ipmi_poweroff_init(void)
|
||||
}
|
||||
|
||||
#ifdef MODULE
|
||||
static __exit void ipmi_poweroff_cleanup(void)
|
||||
static void __exit ipmi_poweroff_cleanup(void)
|
||||
{
|
||||
int rv;
|
||||
|
||||
|
@ -286,7 +286,7 @@ enum scrub_type {
|
||||
* is irrespective of the memory devices being mounted
|
||||
* on both sides of the memory stick.
|
||||
*
|
||||
* Socket set: All of the memory sticks that are required for for
|
||||
* Socket set: All of the memory sticks that are required for
|
||||
* a single memory access or all of the memory sticks
|
||||
* spanned by a chip-select row. A single socket set
|
||||
* has two chip-select rows and if double-sided sticks
|
||||
|
@ -331,13 +331,13 @@ static struct pci_driver bt8xxgpio_pci_driver = {
|
||||
.resume = bt8xxgpio_resume,
|
||||
};
|
||||
|
||||
static int bt8xxgpio_init(void)
|
||||
static int __init bt8xxgpio_init(void)
|
||||
{
|
||||
return pci_register_driver(&bt8xxgpio_pci_driver);
|
||||
}
|
||||
module_init(bt8xxgpio_init)
|
||||
|
||||
static void bt8xxgpio_exit(void)
|
||||
static void __exit bt8xxgpio_exit(void)
|
||||
{
|
||||
pci_unregister_driver(&bt8xxgpio_pci_driver);
|
||||
}
|
||||
|
@ -232,7 +232,7 @@ intel_dp_aux_ch(struct intel_output *intel_output,
|
||||
for (try = 0; try < 5; try++) {
|
||||
/* Load the send data into the aux channel data registers */
|
||||
for (i = 0; i < send_bytes; i += 4) {
|
||||
uint32_t d = pack_aux(send + i, send_bytes - i);;
|
||||
uint32_t d = pack_aux(send + i, send_bytes - i);
|
||||
|
||||
I915_WRITE(ch_data + i, d);
|
||||
}
|
||||
|
@ -239,7 +239,7 @@ static __inline__ void mga_g200_emit_pipe(drm_mga_private_t * dev_priv)
|
||||
MGA_WR34, 0x00000000,
|
||||
MGA_WR42, 0x0000ffff, MGA_WR60, 0x0000ffff);
|
||||
|
||||
/* Padding required to to hardware bug.
|
||||
/* Padding required due to hardware bug.
|
||||
*/
|
||||
DMA_BLOCK(MGA_DMAPAD, 0xffffffff,
|
||||
MGA_DMAPAD, 0xffffffff,
|
||||
@ -317,7 +317,7 @@ static __inline__ void mga_g400_emit_pipe(drm_mga_private_t * dev_priv)
|
||||
MGA_WR52, MGA_G400_WR_MAGIC, /* tex1 width */
|
||||
MGA_WR60, MGA_G400_WR_MAGIC); /* tex1 height */
|
||||
|
||||
/* Padding required to to hardware bug */
|
||||
/* Padding required due to hardware bug */
|
||||
DMA_BLOCK(MGA_DMAPAD, 0xffffffff,
|
||||
MGA_DMAPAD, 0xffffffff,
|
||||
MGA_DMAPAD, 0xffffffff,
|
||||
|
@ -1212,7 +1212,7 @@ static int ide_find_port_slot(const struct ide_port_info *d)
|
||||
{
|
||||
int idx = -ENOENT;
|
||||
u8 bootable = (d && (d->host_flags & IDE_HFLAG_NON_BOOTABLE)) ? 0 : 1;
|
||||
u8 i = (d && (d->host_flags & IDE_HFLAG_QD_2ND_PORT)) ? 1 : 0;;
|
||||
u8 i = (d && (d->host_flags & IDE_HFLAG_QD_2ND_PORT)) ? 1 : 0;
|
||||
|
||||
/*
|
||||
* Claim an unassigned slot.
|
||||
|
@ -170,9 +170,9 @@ static int __init umc8672_init(void)
|
||||
goto out;
|
||||
|
||||
if (umc8672_probe() == 0)
|
||||
return 0;;
|
||||
return 0;
|
||||
out:
|
||||
return -ENODEV;;
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
module_init(umc8672_init);
|
||||
|
@ -809,7 +809,7 @@ static int ipath_setup_ht_reset(struct ipath_devdata *dd)
|
||||
* errors. We only bother to do this at load time, because it's OK if
|
||||
* it happened before we were loaded (first time after boot/reset),
|
||||
* but any time after that, it's fatal anyway. Also need to not check
|
||||
* for for upper byte errors if we are in 8 bit mode, so figure out
|
||||
* for upper byte errors if we are in 8 bit mode, so figure out
|
||||
* our width. For now, at least, also complain if it's 8 bit.
|
||||
*/
|
||||
static void slave_or_pri_blk(struct ipath_devdata *dd, struct pci_dev *pdev,
|
||||
|
@ -229,7 +229,7 @@ struct atkbd {
|
||||
};
|
||||
|
||||
/*
|
||||
* System-specific ketymap fixup routine
|
||||
* System-specific keymap fixup routine
|
||||
*/
|
||||
static void (*atkbd_platform_fixup)(struct atkbd *, const void *data);
|
||||
static void *atkbd_platform_fixup_data;
|
||||
|
@ -1019,7 +1019,7 @@ int __init cdebug_init(void)
|
||||
if (!g_debbuf->buf) {
|
||||
kfree(g_cmsg);
|
||||
kfree(g_debbuf);
|
||||
return -ENOMEM;;
|
||||
return -ENOMEM;
|
||||
}
|
||||
g_debbuf->size = CDEBUG_GSIZE;
|
||||
g_debbuf->buf[0] = 0;
|
||||
|
@ -761,7 +761,7 @@ isdn_getnum(char **p)
|
||||
* Be aware that this is not an atomic operation when sleep != 0, even though
|
||||
* interrupts are turned off! Well, like that we are currently only called
|
||||
* on behalf of a read system call on raw device files (which are documented
|
||||
* to be dangerous and for for debugging purpose only). The inode semaphore
|
||||
* to be dangerous and for debugging purpose only). The inode semaphore
|
||||
* takes care that this is not called for the same minor device number while
|
||||
* we are sleeping, but access is not serialized against simultaneous read()
|
||||
* from the corresponding ttyI device. Can other ugly events, like changes
|
||||
@ -873,7 +873,7 @@ isdn_readbchan(int di, int channel, u_char * buf, u_char * fp, int len, wait_que
|
||||
* Be aware that this is not an atomic operation when sleep != 0, even though
|
||||
* interrupts are turned off! Well, like that we are currently only called
|
||||
* on behalf of a read system call on raw device files (which are documented
|
||||
* to be dangerous and for for debugging purpose only). The inode semaphore
|
||||
* to be dangerous and for debugging purpose only). The inode semaphore
|
||||
* takes care that this is not called for the same minor device number while
|
||||
* we are sleeping, but access is not serialized against simultaneous read()
|
||||
* from the corresponding ttyI device. Can other ugly events, like changes
|
||||
|
@ -894,7 +894,7 @@ void guest_set_pte(struct lg_cpu *cpu,
|
||||
* tells us they've changed. When the Guest tries to use the new entry it will
|
||||
* fault and demand_page() will fix it up.
|
||||
*
|
||||
* So with that in mind here's our code to to update a (top-level) PGD entry:
|
||||
* So with that in mind here's our code to update a (top-level) PGD entry:
|
||||
*/
|
||||
void guest_set_pgd(struct lguest *lg, unsigned long gpgdir, u32 idx)
|
||||
{
|
||||
|
@ -274,7 +274,7 @@ static void __devinit rackmeter_init_cpu_sniffer(struct rackmeter *rm)
|
||||
|
||||
if (cpu > 1)
|
||||
continue;
|
||||
rcpu = &rm->cpu[cpu];;
|
||||
rcpu = &rm->cpu[cpu];
|
||||
rcpu->prev_idle = get_cpu_idle_time(cpu);
|
||||
rcpu->prev_wall = jiffies64_to_cputime64(get_jiffies_64());
|
||||
schedule_delayed_work_on(cpu, &rm->cpu[cpu].sniffer,
|
||||
|
@ -201,7 +201,7 @@ struct mddev_s
|
||||
* INTR: resync needs to be aborted for some reason
|
||||
* DONE: thread is done and is waiting to be reaped
|
||||
* REQUEST: user-space has requested a sync (used with SYNC)
|
||||
* CHECK: user-space request for for check-only, no repair
|
||||
* CHECK: user-space request for check-only, no repair
|
||||
* RESHAPE: A reshape is happening
|
||||
*
|
||||
* If neither SYNC or RESHAPE are set, then it is a recovery.
|
||||
|
@ -1367,7 +1367,7 @@ int smscore_set_gpio(struct smscore_device_t *coredev, u32 pin, int level)
|
||||
&msg, sizeof(msg));
|
||||
}
|
||||
|
||||
/* new GPIO managment implementation */
|
||||
/* new GPIO management implementation */
|
||||
static int GetGpioPinParams(u32 PinNum, u32 *pTranslatedPinNum,
|
||||
u32 *pGroupNum, u32 *pGroupCfg) {
|
||||
|
||||
|
@ -657,12 +657,12 @@ struct smscore_buffer_t *smscore_getbuffer(struct smscore_device_t *coredev);
|
||||
extern void smscore_putbuffer(struct smscore_device_t *coredev,
|
||||
struct smscore_buffer_t *cb);
|
||||
|
||||
/* old GPIO managment */
|
||||
/* old GPIO management */
|
||||
int smscore_configure_gpio(struct smscore_device_t *coredev, u32 pin,
|
||||
struct smscore_config_gpio *pinconfig);
|
||||
int smscore_set_gpio(struct smscore_device_t *coredev, u32 pin, int level);
|
||||
|
||||
/* new GPIO managment */
|
||||
/* new GPIO management */
|
||||
extern int smscore_gpio_configure(struct smscore_device_t *coredev, u8 PinNum,
|
||||
struct smscore_gpio_config *pGpioConfig);
|
||||
extern int smscore_gpio_set_level(struct smscore_device_t *coredev, u8 PinNum,
|
||||
|
@ -46,7 +46,7 @@
|
||||
* Version 0.11: Converted to v4l2_device.
|
||||
*
|
||||
* Many things to do:
|
||||
* - Correct power managment of device (suspend & resume)
|
||||
* - Correct power management of device (suspend & resume)
|
||||
* - Add code for scanning and smooth tuning
|
||||
* - Add code for sensitivity value
|
||||
* - Correct mistakes
|
||||
|
@ -1371,7 +1371,7 @@ static struct cx8802_driver cx8802_blackbird_driver = {
|
||||
.advise_release = cx8802_blackbird_advise_release,
|
||||
};
|
||||
|
||||
static int blackbird_init(void)
|
||||
static int __init blackbird_init(void)
|
||||
{
|
||||
printk(KERN_INFO "cx2388x blackbird driver version %d.%d.%d loaded\n",
|
||||
(CX88_VERSION_CODE >> 16) & 0xff,
|
||||
@ -1384,7 +1384,7 @@ static int blackbird_init(void)
|
||||
return cx8802_register_driver(&cx8802_blackbird_driver);
|
||||
}
|
||||
|
||||
static void blackbird_fini(void)
|
||||
static void __exit blackbird_fini(void)
|
||||
{
|
||||
cx8802_unregister_driver(&cx8802_blackbird_driver);
|
||||
}
|
||||
|
@ -1350,7 +1350,7 @@ static struct cx8802_driver cx8802_dvb_driver = {
|
||||
.advise_release = cx8802_dvb_advise_release,
|
||||
};
|
||||
|
||||
static int dvb_init(void)
|
||||
static int __init dvb_init(void)
|
||||
{
|
||||
printk(KERN_INFO "cx88/2: cx2388x dvb driver version %d.%d.%d loaded\n",
|
||||
(CX88_VERSION_CODE >> 16) & 0xff,
|
||||
@ -1363,7 +1363,7 @@ static int dvb_init(void)
|
||||
return cx8802_register_driver(&cx8802_dvb_driver);
|
||||
}
|
||||
|
||||
static void dvb_fini(void)
|
||||
static void __exit dvb_fini(void)
|
||||
{
|
||||
cx8802_unregister_driver(&cx8802_dvb_driver);
|
||||
}
|
||||
|
@ -870,7 +870,7 @@ static struct pci_driver cx8802_pci_driver = {
|
||||
.remove = __devexit_p(cx8802_remove),
|
||||
};
|
||||
|
||||
static int cx8802_init(void)
|
||||
static int __init cx8802_init(void)
|
||||
{
|
||||
printk(KERN_INFO "cx88/2: cx2388x MPEG-TS Driver Manager version %d.%d.%d loaded\n",
|
||||
(CX88_VERSION_CODE >> 16) & 0xff,
|
||||
@ -883,7 +883,7 @@ static int cx8802_init(void)
|
||||
return pci_register_driver(&cx8802_pci_driver);
|
||||
}
|
||||
|
||||
static void cx8802_fini(void)
|
||||
static void __exit cx8802_fini(void)
|
||||
{
|
||||
pci_unregister_driver(&cx8802_pci_driver);
|
||||
}
|
||||
|
@ -2113,7 +2113,7 @@ static struct pci_driver cx8800_pci_driver = {
|
||||
#endif
|
||||
};
|
||||
|
||||
static int cx8800_init(void)
|
||||
static int __init cx8800_init(void)
|
||||
{
|
||||
printk(KERN_INFO "cx88/0: cx2388x v4l2 driver version %d.%d.%d loaded\n",
|
||||
(CX88_VERSION_CODE >> 16) & 0xff,
|
||||
@ -2126,7 +2126,7 @@ static int cx8800_init(void)
|
||||
return pci_register_driver(&cx8800_pci_driver);
|
||||
}
|
||||
|
||||
static void cx8800_fini(void)
|
||||
static void __exit cx8800_fini(void)
|
||||
{
|
||||
pci_unregister_driver(&cx8800_pci_driver);
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ int m5602_read_bridge(struct sd *sd, const u8 address, u8 *i2c_data)
|
||||
return (err < 0) ? err : 0;
|
||||
}
|
||||
|
||||
/* Writes a byte to to the m5602 */
|
||||
/* Writes a byte to the m5602 */
|
||||
int m5602_write_bridge(struct sd *sd, const u8 address, const u8 i2c_data)
|
||||
{
|
||||
int err;
|
||||
|
@ -6821,7 +6821,7 @@ mpt_print_ioc_summary(MPT_ADAPTER *ioc, char *buffer, int *size, int len, int sh
|
||||
*size = y;
|
||||
}
|
||||
/**
|
||||
* mpt_set_taskmgmt_in_progress_flag - set flags associated with task managment
|
||||
* mpt_set_taskmgmt_in_progress_flag - set flags associated with task management
|
||||
* @ioc: Pointer to MPT_ADAPTER structure
|
||||
*
|
||||
* Returns 0 for SUCCESS or -1 if FAILED.
|
||||
@ -6854,7 +6854,7 @@ mpt_set_taskmgmt_in_progress_flag(MPT_ADAPTER *ioc)
|
||||
EXPORT_SYMBOL(mpt_set_taskmgmt_in_progress_flag);
|
||||
|
||||
/**
|
||||
* mpt_clear_taskmgmt_in_progress_flag - clear flags associated with task managment
|
||||
* mpt_clear_taskmgmt_in_progress_flag - clear flags associated with task management
|
||||
* @ioc: Pointer to MPT_ADAPTER structure
|
||||
*
|
||||
**/
|
||||
|
@ -512,7 +512,7 @@ static void mxcmci_cmd_done(struct mxcmci_host *host, unsigned int stat)
|
||||
}
|
||||
|
||||
/* For the DMA case the DMA engine handles the data transfer
|
||||
* automatically. For non DMA we have to to it ourselves.
|
||||
* automatically. For non DMA we have to do it ourselves.
|
||||
* Don't do it in interrupt context though.
|
||||
*/
|
||||
if (!mxcmci_use_dma(host) && host->data)
|
||||
|
@ -776,13 +776,13 @@ static struct spi_driver m25p80_driver = {
|
||||
};
|
||||
|
||||
|
||||
static int m25p80_init(void)
|
||||
static int __init m25p80_init(void)
|
||||
{
|
||||
return spi_register_driver(&m25p80_driver);
|
||||
}
|
||||
|
||||
|
||||
static void m25p80_exit(void)
|
||||
static void __exit m25p80_exit(void)
|
||||
{
|
||||
spi_unregister_driver(&m25p80_driver);
|
||||
}
|
||||
|
@ -303,7 +303,7 @@ __setup("slram=", mtd_slram_setup);
|
||||
|
||||
#endif
|
||||
|
||||
static int init_slram(void)
|
||||
static int __init init_slram(void)
|
||||
{
|
||||
char *devname;
|
||||
int i;
|
||||
|
@ -1099,7 +1099,7 @@ static struct mtd_blktrans_ops ftl_tr = {
|
||||
.owner = THIS_MODULE,
|
||||
};
|
||||
|
||||
static int init_ftl(void)
|
||||
static int __init init_ftl(void)
|
||||
{
|
||||
return register_mtd_blktrans(&ftl_tr);
|
||||
}
|
||||
|
@ -184,7 +184,7 @@ static int ixp2000_flash_probe(struct platform_device *dev)
|
||||
info->map.bankwidth = 1;
|
||||
|
||||
/*
|
||||
* map_priv_2 is used to store a ptr to to the bank_setup routine
|
||||
* map_priv_2 is used to store a ptr to the bank_setup routine
|
||||
*/
|
||||
info->map.map_priv_2 = (unsigned long) ixp_data->bank_setup;
|
||||
|
||||
|
@ -903,12 +903,12 @@ static struct pci_driver cafe_nand_pci_driver = {
|
||||
.resume = cafe_nand_resume,
|
||||
};
|
||||
|
||||
static int cafe_nand_init(void)
|
||||
static int __init cafe_nand_init(void)
|
||||
{
|
||||
return pci_register_driver(&cafe_nand_pci_driver);
|
||||
}
|
||||
|
||||
static void cafe_nand_exit(void)
|
||||
static void __exit cafe_nand_exit(void)
|
||||
{
|
||||
pci_unregister_driver(&cafe_nand_pci_driver);
|
||||
}
|
||||
|
@ -147,7 +147,7 @@ static int cmx270_device_ready(struct mtd_info *mtd)
|
||||
/*
|
||||
* Main initialization routine
|
||||
*/
|
||||
static int cmx270_init(void)
|
||||
static int __init cmx270_init(void)
|
||||
{
|
||||
struct nand_chip *this;
|
||||
const char *part_type;
|
||||
@ -261,7 +261,7 @@ module_init(cmx270_init);
|
||||
/*
|
||||
* Clean up routine
|
||||
*/
|
||||
static void cmx270_cleanup(void)
|
||||
static void __exit cmx270_cleanup(void)
|
||||
{
|
||||
/* Release resources, unregister device */
|
||||
nand_release(cmx270_nand_mtd);
|
||||
|
@ -1065,7 +1065,7 @@ int ubi_eba_copy_leb(struct ubi_device *ubi, int from, int to,
|
||||
}
|
||||
|
||||
/*
|
||||
* Now we have got to calculate how much data we have to to copy. In
|
||||
* Now we have got to calculate how much data we have to copy. In
|
||||
* case of a static volume it is fairly easy - the VID header contains
|
||||
* the data size. In case of a dynamic volume it is more difficult - we
|
||||
* have to read the contents, cut 0xFF bytes from the end and copy only
|
||||
|
@ -570,7 +570,7 @@ void ubi_do_get_volume_info(struct ubi_device *ubi, struct ubi_volume *vol,
|
||||
|
||||
/*
|
||||
* ubi_rb_for_each_entry - walk an RB-tree.
|
||||
* @rb: a pointer to type 'struct rb_node' to to use as a loop counter
|
||||
* @rb: a pointer to type 'struct rb_node' to use as a loop counter
|
||||
* @pos: a pointer to RB-tree entry type to use as a loop counter
|
||||
* @root: RB-tree's root
|
||||
* @member: the name of the 'struct rb_node' within the RB-tree entry
|
||||
|
@ -123,7 +123,6 @@ static void rx(struct net_device *dev, int bufnum,
|
||||
BUGLVL(D_SKB) arcnet_dump_skb(dev, skb, "rx");
|
||||
|
||||
skb->protocol = cpu_to_be16(ETH_P_ARCNET);
|
||||
;
|
||||
netif_rx(skb);
|
||||
}
|
||||
|
||||
|
@ -149,7 +149,6 @@ static void rx(struct net_device *dev, int bufnum,
|
||||
BUGLVL(D_SKB) arcnet_dump_skb(dev, skb, "rx");
|
||||
|
||||
skb->protocol = cpu_to_be16(ETH_P_ARCNET);
|
||||
;
|
||||
netif_rx(skb);
|
||||
}
|
||||
|
||||
|
@ -3122,7 +3122,7 @@
|
||||
The fields are:[4:0] - tail pointer; [10:5] - Link List size; 15:11] -
|
||||
header pointer. */
|
||||
#define TCM_REG_XX_TABLE 0x50240
|
||||
/* [RW 4] Load value for for cfc ac credit cnt. */
|
||||
/* [RW 4] Load value for cfc ac credit cnt. */
|
||||
#define TM_REG_CFC_AC_CRDCNT_VAL 0x164208
|
||||
/* [RW 4] Load value for cfc cld credit cnt. */
|
||||
#define TM_REG_CFC_CLD_CRDCNT_VAL 0x164210
|
||||
|
@ -1987,7 +1987,7 @@ void bond_3ad_unbind_slave(struct slave *slave)
|
||||
// find new aggregator for the related port(s)
|
||||
new_aggregator = __get_first_agg(port);
|
||||
for (; new_aggregator; new_aggregator = __get_next_agg(new_aggregator)) {
|
||||
// if the new aggregator is empty, or it connected to to our port only
|
||||
// if the new aggregator is empty, or it is connected to our port only
|
||||
if (!new_aggregator->lag_ports || ((new_aggregator->lag_ports == port) && !new_aggregator->lag_ports->next_port_in_aggregator)) {
|
||||
break;
|
||||
}
|
||||
|
@ -3035,7 +3035,7 @@ s32 e1000_check_for_link(struct e1000_hw *hw)
|
||||
/* If TBI compatibility is was previously off, turn it on. For
|
||||
* compatibility with a TBI link partner, we will store bad
|
||||
* packets. Some frames have an additional byte on the end and
|
||||
* will look like CRC errors to to the hardware.
|
||||
* will look like CRC errors to the hardware.
|
||||
*/
|
||||
if (!hw->tbi_compatibility_on) {
|
||||
hw->tbi_compatibility_on = true;
|
||||
|
@ -293,7 +293,7 @@ static int gfar_gcoalesce(struct net_device *dev, struct ethtool_coalesce *cvals
|
||||
rxtime = get_ictt_value(priv->rxic);
|
||||
rxcount = get_icft_value(priv->rxic);
|
||||
txtime = get_ictt_value(priv->txic);
|
||||
txcount = get_icft_value(priv->txic);;
|
||||
txcount = get_icft_value(priv->txic);
|
||||
cvals->rx_coalesce_usecs = gfar_ticks2usecs(priv, rxtime);
|
||||
cvals->rx_max_coalesced_frames = rxcount;
|
||||
|
||||
|
@ -2556,13 +2556,13 @@ static int __devinit emac_init_config(struct emac_instance *dev)
|
||||
if (emac_read_uint_prop(np, "mdio-device", &dev->mdio_ph, 0))
|
||||
dev->mdio_ph = 0;
|
||||
if (emac_read_uint_prop(np, "zmii-device", &dev->zmii_ph, 0))
|
||||
dev->zmii_ph = 0;;
|
||||
dev->zmii_ph = 0;
|
||||
if (emac_read_uint_prop(np, "zmii-channel", &dev->zmii_port, 0))
|
||||
dev->zmii_port = 0xffffffff;;
|
||||
dev->zmii_port = 0xffffffff;
|
||||
if (emac_read_uint_prop(np, "rgmii-device", &dev->rgmii_ph, 0))
|
||||
dev->rgmii_ph = 0;;
|
||||
dev->rgmii_ph = 0;
|
||||
if (emac_read_uint_prop(np, "rgmii-channel", &dev->rgmii_port, 0))
|
||||
dev->rgmii_port = 0xffffffff;;
|
||||
dev->rgmii_port = 0xffffffff;
|
||||
if (emac_read_uint_prop(np, "fifo-entry-size", &dev->fifo_entry_size, 0))
|
||||
dev->fifo_entry_size = 16;
|
||||
if (emac_read_uint_prop(np, "mal-burst-size", &dev->mal_burst_size, 0))
|
||||
|
@ -3966,7 +3966,7 @@ static int igb_set_vf_multicasts(struct igb_adapter *adapter,
|
||||
/* VFs are limited to using the MTA hash table for their multicast
|
||||
* addresses */
|
||||
for (i = 0; i < n; i++)
|
||||
vf_data->vf_mc_hashes[i] = hash_list[i];;
|
||||
vf_data->vf_mc_hashes[i] = hash_list[i];
|
||||
|
||||
/* Flush and reset the mta with the new values */
|
||||
igb_set_rx_mode(adapter->netdev);
|
||||
|
@ -865,7 +865,7 @@ temac_of_probe(struct of_device *op, const struct of_device_id *match)
|
||||
dcrs = dcr_resource_start(np, 0);
|
||||
if (dcrs == 0) {
|
||||
dev_err(&op->dev, "could not get DMA register address\n");
|
||||
goto nodev;;
|
||||
goto nodev;
|
||||
}
|
||||
lp->sdma_dcrs = dcr_map(np, dcrs, dcr_resource_len(np, 0));
|
||||
dev_dbg(&op->dev, "DCR base: %x\n", dcrs);
|
||||
|
@ -241,7 +241,7 @@ static int macb_mii_init(struct macb *bp)
|
||||
struct eth_platform_data *pdata;
|
||||
int err = -ENXIO, i;
|
||||
|
||||
/* Enable managment port */
|
||||
/* Enable management port */
|
||||
macb_writel(bp, NCR, MACB_BIT(MPE));
|
||||
|
||||
bp->mii_bus = mdiobus_alloc();
|
||||
|
@ -615,10 +615,10 @@ static int init586(struct net_device *dev)
|
||||
/* addr_len |!src_insert |pre-len |loopback */
|
||||
writeb(0x2e, &cfg_cmd->adr_len);
|
||||
writeb(0x00, &cfg_cmd->priority);
|
||||
writeb(0x60, &cfg_cmd->ifs);;
|
||||
writeb(0x60, &cfg_cmd->ifs);
|
||||
writeb(0x00, &cfg_cmd->time_low);
|
||||
writeb(0xf2, &cfg_cmd->time_high);
|
||||
writeb(0x00, &cfg_cmd->promisc);;
|
||||
writeb(0x00, &cfg_cmd->promisc);
|
||||
if (dev->flags & IFF_ALLMULTI) {
|
||||
int len = ((char __iomem *)p->iscp - (char __iomem *)ptr - 8) / 6;
|
||||
if (num_addrs > len) {
|
||||
|
@ -2630,7 +2630,7 @@ static int ql_start_rx_ring(struct ql_adapter *qdev, struct rx_ring *rx_ring)
|
||||
FLAGS_LI; /* Load irq delay values */
|
||||
if (rx_ring->lbq_len) {
|
||||
cqicb->flags |= FLAGS_LL; /* Load lbq values */
|
||||
tmp = (u64)rx_ring->lbq_base_dma;;
|
||||
tmp = (u64)rx_ring->lbq_base_dma;
|
||||
base_indirect_ptr = (__le64 *) rx_ring->lbq_base_indirect;
|
||||
page_entries = 0;
|
||||
do {
|
||||
@ -2654,7 +2654,7 @@ static int ql_start_rx_ring(struct ql_adapter *qdev, struct rx_ring *rx_ring)
|
||||
}
|
||||
if (rx_ring->sbq_len) {
|
||||
cqicb->flags |= FLAGS_LS; /* Load sbq values */
|
||||
tmp = (u64)rx_ring->sbq_base_dma;;
|
||||
tmp = (u64)rx_ring->sbq_base_dma;
|
||||
base_indirect_ptr = (__le64 *) rx_ring->sbq_base_indirect;
|
||||
page_entries = 0;
|
||||
do {
|
||||
|
@ -72,7 +72,7 @@ static int rionet_check = 0;
|
||||
static int rionet_capable = 1;
|
||||
|
||||
/*
|
||||
* This is a fast lookup table for for translating TX
|
||||
* This is a fast lookup table for translating TX
|
||||
* Ethernet packets into a destination RIO device. It
|
||||
* could be made into a hash table to save memory depending
|
||||
* on system trade-offs.
|
||||
|
@ -960,7 +960,7 @@ static void pcm_fsm(struct s_smc *smc, struct s_phy *phy, int cmd)
|
||||
/*PC88b*/
|
||||
if (!phy->cf_join) {
|
||||
phy->cf_join = TRUE ;
|
||||
queue_event(smc,EVENT_CFM,CF_JOIN+np) ; ;
|
||||
queue_event(smc,EVENT_CFM,CF_JOIN+np) ;
|
||||
}
|
||||
if (cmd == PC_JOIN)
|
||||
GO_STATE(PC8_ACTIVE) ;
|
||||
|
@ -807,9 +807,9 @@ void smt_add_para(struct s_smc *smc, struct s_pcon *pcon, u_short para,
|
||||
mib_p->fddiPORTLerFlag ;
|
||||
sp->p4050_pad = 0 ;
|
||||
sp->p4050_cutoff =
|
||||
mib_p->fddiPORTLer_Cutoff ; ;
|
||||
mib_p->fddiPORTLer_Cutoff ;
|
||||
sp->p4050_alarm =
|
||||
mib_p->fddiPORTLer_Alarm ; ;
|
||||
mib_p->fddiPORTLer_Alarm ;
|
||||
sp->p4050_estimate =
|
||||
mib_p->fddiPORTLer_Estimate ;
|
||||
sp->p4050_reject_ct =
|
||||
@ -829,7 +829,7 @@ void smt_add_para(struct s_smc *smc, struct s_pcon *pcon, u_short para,
|
||||
sp->p4051_porttype =
|
||||
mib_p->fddiPORTMy_Type ;
|
||||
sp->p4051_connectstate =
|
||||
mib_p->fddiPORTConnectState ; ;
|
||||
mib_p->fddiPORTConnectState ;
|
||||
sp->p4051_pc_neighbor =
|
||||
mib_p->fddiPORTNeighborType ;
|
||||
sp->p4051_pc_withhold =
|
||||
@ -853,7 +853,7 @@ void smt_add_para(struct s_smc *smc, struct s_pcon *pcon, u_short para,
|
||||
struct smt_p_4053 *sp ;
|
||||
sp = (struct smt_p_4053 *) to ;
|
||||
sp->p4053_multiple =
|
||||
mib_p->fddiPORTMultiple_P ; ;
|
||||
mib_p->fddiPORTMultiple_P ;
|
||||
sp->p4053_availablepaths =
|
||||
mib_p->fddiPORTAvailablePaths ;
|
||||
sp->p4053_currentpath =
|
||||
|
@ -215,7 +215,7 @@ static void skge_wol_init(struct skge_port *skge)
|
||||
if (skge->wol & WAKE_MAGIC)
|
||||
ctrl |= WOL_CTL_ENA_PME_ON_MAGIC_PKT|WOL_CTL_ENA_MAGIC_PKT_UNIT;
|
||||
else
|
||||
ctrl |= WOL_CTL_DIS_PME_ON_MAGIC_PKT|WOL_CTL_DIS_MAGIC_PKT_UNIT;;
|
||||
ctrl |= WOL_CTL_DIS_PME_ON_MAGIC_PKT|WOL_CTL_DIS_MAGIC_PKT_UNIT;
|
||||
|
||||
ctrl |= WOL_CTL_DIS_PME_ON_PATTERN|WOL_CTL_DIS_PATTERN_UNIT;
|
||||
skge_write16(hw, WOL_REGS(port, WOL_CTRL_STAT), ctrl);
|
||||
|
@ -765,7 +765,7 @@ static void sky2_wol_init(struct sky2_port *sky2)
|
||||
if (sky2->wol & WAKE_MAGIC)
|
||||
ctrl |= WOL_CTL_ENA_PME_ON_MAGIC_PKT|WOL_CTL_ENA_MAGIC_PKT_UNIT;
|
||||
else
|
||||
ctrl |= WOL_CTL_DIS_PME_ON_MAGIC_PKT|WOL_CTL_DIS_MAGIC_PKT_UNIT;;
|
||||
ctrl |= WOL_CTL_DIS_PME_ON_MAGIC_PKT|WOL_CTL_DIS_MAGIC_PKT_UNIT;
|
||||
|
||||
ctrl |= WOL_CTL_DIS_PME_ON_PATTERN|WOL_CTL_DIS_PATTERN_UNIT;
|
||||
sky2_write16(hw, WOL_REGS(port, WOL_CTRL_STAT), ctrl);
|
||||
|
@ -1541,7 +1541,7 @@ void vxge_hw_ring_rxd_1b_info_get(
|
||||
rxd_info->l4_cksum_valid =
|
||||
(u32)VXGE_HW_RING_RXD_L4_CKSUM_CORRECT_GET(rxdp->control_0);
|
||||
rxd_info->l4_cksum =
|
||||
(u32)VXGE_HW_RING_RXD_L4_CKSUM_GET(rxdp->control_0);;
|
||||
(u32)VXGE_HW_RING_RXD_L4_CKSUM_GET(rxdp->control_0);
|
||||
rxd_info->frame =
|
||||
(u32)VXGE_HW_RING_RXD_ETHER_ENCAP_GET(rxdp->control_0);
|
||||
rxd_info->proto =
|
||||
|
@ -2350,7 +2350,7 @@ static int vxge_enable_msix(struct vxgedev *vdev)
|
||||
enum vxge_hw_status status;
|
||||
/* 0 - Tx, 1 - Rx */
|
||||
int tim_msix_id[4];
|
||||
int alarm_msix_id = 0, msix_intr_vect = 0;;
|
||||
int alarm_msix_id = 0, msix_intr_vect = 0;
|
||||
vdev->intr_cnt = 0;
|
||||
|
||||
/* allocate msix vectors */
|
||||
|
@ -982,7 +982,7 @@
|
||||
#define AR5K_5414_CBCFG_BUF_DIS 0x10 /* Disable buffer */
|
||||
|
||||
/*
|
||||
* PCI-E Power managment configuration
|
||||
* PCI-E Power management configuration
|
||||
* and status register [5424+]
|
||||
*/
|
||||
#define AR5K_PCIE_PM_CTL 0x4068 /* Register address */
|
||||
|
@ -3330,7 +3330,7 @@ static void atmel_smooth_qual(struct atmel_private *priv)
|
||||
priv->wstats.qual.updated &= ~IW_QUAL_QUAL_INVALID;
|
||||
}
|
||||
|
||||
/* deals with incoming managment frames. */
|
||||
/* deals with incoming management frames. */
|
||||
static void atmel_management_frame(struct atmel_private *priv,
|
||||
struct ieee80211_hdr *header,
|
||||
u16 frame_len, u8 rssi)
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user