Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
packages
kernel
linux
Commits
006d7bcc
Commit
006d7bcc
authored
Dec 10, 2016
by
Lorenzo "Palinuro" Faletra
Browse files
reapply patches
parent
8e2aa337
Changes
384
Hide whitespace changes
Inline
Side-by-side
Documentation/filesystems/porting
View file @
006d7bcc
...
...
@@ -287,8 +287,8 @@ implementing on-disk size changes. Start with a copy of the old inode_setattr
and vmtruncate, and the reorder the vmtruncate + foofs_vmtruncate sequence to
be in order of zeroing blocks using block_truncate_page or similar helpers,
size update and on finally on-disk truncation which should not fail.
inode_change_ok now includes the size checks
for ATTR_SIZE and must be called
in the beginning of ->setattr unconditionally.
setattr_prepare (which used to be
inode_change_ok
)
now includes the size checks
for ATTR_SIZE and must be called
in the beginning of ->setattr unconditionally.
[mandatory]
...
...
Documentation/kernel-parameters.txt
View file @
006d7bcc
...
...
@@ -3939,6 +3939,10 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
switches= [HW,M68k]
syscall.x32= [KNL,x86_64] Enable/disable use of x32 syscalls on
an x86_64 kernel where CONFIG_X86_X32 is enabled.
Default depends on CONFIG_X86_X32_DISABLED.
sysfs.deprecated=0|1 [KNL]
Enable/disable old style sysfs layout for old udev
on older distributions. When this option is enabled
...
...
Documentation/security/securelevel.txt
0 → 100644
View file @
006d7bcc
Linux securelevel interface
---------------------------
The Linux securelevel interface (inspired by the BSD securelevel interface)
is a runtime mechanism for configuring coarse-grained kernel-level security
restrictions. It provides a runtime configuration variable at
/sys/kernel/security/securelevel which can be written to by root. The
following values are supported:
-1: Permanently insecure mode. This level is equivalent to level 0, but once
set cannot be changed.
0: Insecure mode (default). This level imposes no additional kernel
restrictions.
1: Secure mode. If set, userspace will be unable to perform direct access
to PCI devices, port IO access, access system memory directly via
/dev/mem and /dev/kmem, perform kexec_load(), use the userspace
software suspend mechanism, insert new ACPI code at runtime via the
custom_method interface or modify CPU MSRs (on x86). Certain drivers
may also limit additional interfaces.
Once the securelevel value is increased, it may not be decreased.
Documentation/sysctl/fs.txt
View file @
006d7bcc
...
...
@@ -265,6 +265,13 @@ aio-nr can grow to.
==============================================================
mount-max:
This denotes the maximum number of mounts that may exist
in a mount namespace.
==============================================================
2. /proc/sys/fs/binfmt_misc
----------------------------------------------------------
...
...
Documentation/x86/zero-page.txt
View file @
006d7bcc
...
...
@@ -31,6 +31,8 @@ Offset Proto Name Meaning
1E9/001 ALL eddbuf_entries Number of entries in eddbuf (below)
1EA/001 ALL edd_mbr_sig_buf_entries Number of entries in edd_mbr_sig_buffer
(below)
1EB/001 ALL kbd_status Numlock is enabled
1EC/001 ALL secure_boot Secure boot is enabled in the firmware
1EF/001 ALL sentinel Used to detect broken bootloaders
290/040 ALL edd_mbr_sig_buffer EDD MBR signatures
2D0/A00 ALL e820_map E820 memory map table
...
...
MAINTAINERS
View file @
006d7bcc
...
...
@@ -2256,6 +2256,19 @@ F: include/linux/audit.h
F: include/uapi/linux/audit.h
F: kernel/audit*
AUFS (advanced multi layered unification filesystem) FILESYSTEM
M: "J. R. Okajima" <hooanon05g@gmail.com>
L: linux-unionfs@vger.kernel.org
L: aufs-users@lists.sourceforge.net (members only)
W: http://aufs.sourceforge.net
T: git://github.com/sfjro/aufs4-linux.git
S: Supported
F: Documentation/filesystems/aufs/
F: Documentation/ABI/testing/debugfs-aufs
F: Documentation/ABI/testing/sysfs-aufs
F: fs/aufs/
F: include/uapi/linux/aufs_type.h
AUXILIARY DISPLAY DRIVERS
M: Miguel Ojeda Sandonis <miguel.ojeda.sandonis@gmail.com>
W: http://miguelojeda.es/auxdisplay.htm
...
...
Makefile
View file @
006d7bcc
...
...
@@ -255,42 +255,6 @@ SUBARCH := $(shell uname -m | sed -e s/i.86/x86/ -e s/x86_64/x86/ \
ARCH
?=
$(SUBARCH)
CROSS_COMPILE
?=
$
(
CONFIG_CROSS_COMPILE:
"%"
=
%
)
# Architecture as present in compile.h
UTS_MACHINE
:=
$(ARCH)
SRCARCH
:=
$(ARCH)
# Additional ARCH settings for x86
ifeq
($(ARCH),i386)
SRCARCH
:=
x86
endif
ifeq
($(ARCH),x86_64)
SRCARCH
:=
x86
endif
# Additional ARCH settings for sparc
ifeq
($(ARCH),sparc32)
SRCARCH
:=
sparc
endif
ifeq
($(ARCH),sparc64)
SRCARCH
:=
sparc
endif
# Additional ARCH settings for sh
ifeq
($(ARCH),sh64)
SRCARCH
:=
sh
endif
# Additional ARCH settings for tile
ifeq
($(ARCH),tilepro)
SRCARCH
:=
tile
endif
ifeq
($(ARCH),tilegx)
SRCARCH
:=
tile
endif
# Where to locate arch specific headers
hdr-arch
:=
$(SRCARCH)
KCONFIG_CONFIG
?=
.config
export
KCONFIG_CONFIG
...
...
@@ -373,6 +337,44 @@ LDFLAGS_vmlinux =
CFLAGS_GCOV
=
-fprofile-arcs
-ftest-coverage
-fno-tree-loop-im
CFLAGS_KCOV
:=
$(
call
cc-option,-fsanitize-coverage
=
trace-pc,
)
-include
$(obj)/.kernelvariables
# Architecture as present in compile.h
UTS_MACHINE
:=
$(ARCH)
SRCARCH
:=
$(ARCH)
# Additional ARCH settings for x86
ifeq
($(ARCH),i386)
SRCARCH
:=
x86
endif
ifeq
($(ARCH),x86_64)
SRCARCH
:=
x86
endif
# Additional ARCH settings for sparc
ifeq
($(ARCH),sparc64)
SRCARCH
:=
sparc
endif
# Additional ARCH settings for sh
ifeq
($(ARCH),sh64)
SRCARCH
:=
sh
endif
# Additional ARCH settings for tile
ifeq
($(ARCH),tilepro)
SRCARCH
:=
tile
endif
ifeq
($(ARCH),tilegx)
SRCARCH
:=
tile
endif
# Where to locate arch specific headers
hdr-arch
:=
$(SRCARCH)
ifeq
($(ARCH),m68knommu)
hdr-arch
:=
m68k
endif
# Use USERINCLUDE when you must reference the UAPI directories only.
USERINCLUDE
:=
\
...
...
@@ -634,6 +636,8 @@ KBUILD_CFLAGS += -O2
endif
endif
NOSTDINC_FLAGS
+=
-nostdinc
# Tell gcc to never replace conditional load with a non-conditional one
KBUILD_CFLAGS
+=
$(
call
cc-option,--param
=
allow-store-data-races
=
0
)
...
...
@@ -752,7 +756,7 @@ KBUILD_CFLAGS += $(call cc-option, -fno-inline-functions-called-once)
endif
# arch Makefile may override CC so keep this after arch Makefile is included
NOSTDINC_FLAGS
+=
-nostdinc
-isystem
$(
shell
$(CC)
-print-file-name
=
include
)
NOSTDINC_FLAGS
+=
-isystem
$(
shell
$(CC)
-print-file-name
=
include
)
CHECKFLAGS
+=
$(NOSTDINC_FLAGS)
# warn about C99 declaration after statement
...
...
@@ -1006,7 +1010,7 @@ endif
prepare2
:
prepare3 prepare-compiler-check outputmakefile asm-generic
prepare1
:
prepare2 $(version_h) include/generated/utsrelease.h
\
include/config/auto.conf
include/config/auto.conf
include/generated/package.h
$(cmd_crmodverdir)
$(Q)
test
-e
include/generated/autoksyms.h
||
\
touch
include/generated/autoksyms.h
...
...
@@ -1081,6 +1085,16 @@ define filechk_version.h
echo
'#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))'
;)
endef
ifneq
($(DISTRIBUTION_OFFICIAL_BUILD),)
define
filechk_package.h
echo
\
#define LINUX_PACKAGE_ID \" $(DISTRIBUTOR) $(DISTRIBUTION_VERSION)\"
endef
else
define
filechk_package.h
echo
\
#define LINUX_PACKAGE_ID \"\"
endef
endif
$(version_h)
:
$(srctree)/Makefile FORCE
$(
call
filechk,version.h
)
$(Q)
rm
-f
$(old_version_h)
...
...
@@ -1088,6 +1102,9 @@ $(version_h): $(srctree)/Makefile FORCE
include/generated/utsrelease.h
:
include/config/kernel.release FORCE
$(
call
filechk,utsrelease.h
)
include/generated/package.h
:
$(srctree)/Makefile FORCE
$(
call
filechk,package.h
)
PHONY
+=
headerdep
headerdep
:
$(Q)
find
$(srctree)
/include/
-name
'*.h'
| xargs
--max-args
1
\
...
...
arch/alpha/include/uapi/asm/types.h
View file @
006d7bcc
...
...
@@ -9,8 +9,18 @@
* need to be careful to avoid a name clashes.
*/
#ifndef __KERNEL__
/*
* This is here because we used to use l64 for alpha
* and we don't want to impact user mode with our change to ll64
* in the kernel.
*
* However, some user programs are fine with this. They can
* flag __SANE_USERSPACE_TYPES__ to get int-ll64.h here.
*/
#if !defined(__SANE_USERSPACE_TYPES__) && !defined(__KERNEL__)
#include <asm-generic/int-l64.h>
#else
#include <asm-generic/int-ll64.h>
#endif
#endif
/* _UAPI_ALPHA_TYPES_H */
arch/arm/boot/dts/Makefile
View file @
006d7bcc
...
...
@@ -315,6 +315,7 @@ dtb-$(CONFIG_SOC_IMX53) += \
imx53-smd.dtb
\
imx53-tx53-x03x.dtb
\
imx53-tx53-x13x.dtb
\
imx53-usbarmory.dtb
\
imx53-voipac-bsb.dtb
dtb-$(CONFIG_SOC_IMX6Q)
+=
\
imx6dl-apf6dev.dtb
\
...
...
arch/arm/boot/dts/imx53-usbarmory.dts
0 → 100644
View file @
006d7bcc
/*
*
USB
armory
MkI
device
tree
file
*
https
://
inversepath
.
com
/
usbarmory
*
*
Copyright
(
C
)
2015
,
Inverse
Path
*
Andrej
Rosano
<
andrej
@
inversepath
.
com
>
*
*
This
file
is
dual
-
licensed
:
you
can
use
it
either
under
the
terms
*
of
the
GPL
or
the
X11
license
,
at
your
option
.
Note
that
this
dual
*
licensing
only
applies
to
this
file
,
and
not
this
project
as
a
*
whole
.
*
*
a
)
This
file
is
free
software
;
you
can
redistribute
it
and
/
or
*
modify
it
under
the
terms
of
the
GNU
General
Public
License
as
*
published
by
the
Free
Software
Foundation
;
either
version
2
of
the
*
License
,
or
(
at
your
option
)
any
later
version
.
*
*
This
file
is
distributed
in
the
hope
that
it
will
be
useful
,
*
but
WITHOUT
ANY
WARRANTY
;
without
even
the
implied
warranty
of
*
MERCHANTABILITY
or
FITNESS
FOR
A
PARTICULAR
PURPOSE
.
See
the
*
GNU
General
Public
License
for
more
details
.
*
*
Or
,
alternatively
,
*
*
b
)
Permission
is
hereby
granted
,
free
of
charge
,
to
any
person
*
obtaining
a
copy
of
this
software
and
associated
documentation
*
files
(
the
"Software"
),
to
deal
in
the
Software
without
*
restriction
,
including
without
limitation
the
rights
to
use
,
*
copy
,
modify
,
merge
,
publish
,
distribute
,
sublicense
,
and
/
or
*
sell
copies
of
the
Software
,
and
to
permit
persons
to
whom
the
*
Software
is
furnished
to
do
so
,
subject
to
the
following
*
conditions
:
*
*
The
above
copyright
notice
and
this
permission
notice
shall
be
*
included
in
all
copies
or
substantial
portions
of
the
Software
.
*
*
THE
SOFTWARE
IS
PROVIDED
"AS IS"
,
WITHOUT
WARRANTY
OF
ANY
KIND
,
*
EXPRESS
OR
IMPLIED
,
INCLUDING
BUT
NOT
LIMITED
TO
THE
WARRANTIES
*
OF
MERCHANTABILITY
,
FITNESS
FOR
A
PARTICULAR
PURPOSE
AND
*
NONINFRINGEMENT
.
IN
NO
EVENT
SHALL
THE
AUTHORS
OR
COPYRIGHT
*
HOLDERS
BE
LIABLE
FOR
ANY
CLAIM
,
DAMAGES
OR
OTHER
LIABILITY
,
*
WHETHER
IN
AN
ACTION
OF
CONTRACT
,
TORT
OR
OTHERWISE
,
ARISING
*
FROM
,
OUT
OF
OR
IN
CONNECTION
WITH
THE
SOFTWARE
OR
THE
USE
OR
*
OTHER
DEALINGS
IN
THE
SOFTWARE
.
*/
/
dts
-
v1
/;
#
include
"imx53.dtsi"
/
{
model
=
"Inverse Path USB armory"
;
compatible
=
"inversepath,imx53-usbarmory"
,
"fsl,imx53"
;
};
/
{
chosen
{
stdout
-
path
=
&
uart1
;
};
memory
{
reg
=
<
0x70000000
0x20000000
>;
};
leds
{
compatible
=
"gpio-leds"
;
pinctrl
-
names
=
"default"
;
pinctrl
-
0
=
<&
pinctrl_led
>;
user
{
label
=
"LED"
;
gpios
=
<&
gpio4
27
GPIO_ACTIVE_LOW
>;
linux
,
default
-
trigger
=
"heartbeat"
;
};
};
};
/*
*
Not
every
i
.
MX53
P
/
N
supports
clock
>
800
MHz
.
*
As
USB
armory
does
not
mount
a
specific
P
/
N
set
a
safe
clock
upper
limit
.
*/
&
cpu0
{
operating
-
points
=
<
/*
kHz
*/
166666
850000
400000
900000
800000
1050000
>;
};
&
esdhc1
{
pinctrl
-
names
=
"default"
;
pinctrl
-
0
=
<&
pinctrl_esdhc1
>;
status
=
"okay"
;
};
&
iomuxc
{
pinctrl_esdhc1
:
esdhc1grp
{
fsl
,
pins
=
<
MX53_PAD_SD1_DATA0__ESDHC1_DAT0
0x1d5
MX53_PAD_SD1_DATA1__ESDHC1_DAT1
0x1d5
MX53_PAD_SD1_DATA2__ESDHC1_DAT2
0x1d5
MX53_PAD_SD1_DATA3__ESDHC1_DAT3
0x1d5
MX53_PAD_SD1_CMD__ESDHC1_CMD
0x1d5
MX53_PAD_SD1_CLK__ESDHC1_CLK
0x1d5
>;
};
pinctrl_i2c1_pmic
:
i2c1grp
{
fsl
,
pins
=
<
MX53_PAD_EIM_D21__I2C1_SCL
0x80
MX53_PAD_EIM_D28__I2C1_SDA
0x80
>;
};
pinctrl_led
:
ledgrp
{
fsl
,
pins
=
<
MX53_PAD_DISP0_DAT6__GPIO4_27
0x1e4
>;
};
/*
*
UART
mode
pin
header
configration
*
3
-
GPIO5
[
26
],
pull
-
down
100
K
*
4
-
GPIO5
[
27
],
pull
-
down
100
K
*
5
-
TX
,
pull
-
up
100
K
*
6
-
RX
,
pull
-
up
100
K
*
7
-
GPIO5
[
30
],
pull
-
down
100
K
*/
pinctrl_uart1
:
uart1grp
{
fsl
,
pins
=
<
MX53_PAD_CSI0_DAT8__GPIO5_26
0xc0
MX53_PAD_CSI0_DAT9__GPIO5_27
0xc0
MX53_PAD_CSI0_DAT10__UART1_TXD_MUX
0x1e4
MX53_PAD_CSI0_DAT11__UART1_RXD_MUX
0x1e4
MX53_PAD_CSI0_DAT12__GPIO5_30
0xc0
>;
};
};
&
i2c1
{
pinctrl
-
0
=
<&
pinctrl_i2c1_pmic
>;
status
=
"okay"
;
ltc3589
:
pmic
@
34
{
compatible
=
"lltc,ltc3589-2"
;
reg
=
<
0x34
>;
regulators
{
sw1_reg
:
sw1
{
regulator
-
min
-
microvolt
=
<
591930
>;
regulator
-
max
-
microvolt
=
<
1224671
>;
lltc
,
fb
-
voltage
-
divider
=
<
100000
158000
>;
regulator
-
ramp
-
delay
=
<
7000
>;
regulator
-
boot
-
on
;
regulator
-
always
-
on
;
};
sw2_reg
:
sw2
{
regulator
-
min
-
microvolt
=
<
704123
>;
regulator
-
max
-
microvolt
=
<
1456803
>;
lltc
,
fb
-
voltage
-
divider
=
<
180000
191000
>;
regulator
-
ramp
-
delay
=
<
7000
>;
regulator
-
boot
-
on
;
regulator
-
always
-
on
;
};
sw3_reg
:
sw3
{
regulator
-
min
-
microvolt
=
<
1341250
>;
regulator
-
max
-
microvolt
=
<
2775000
>;
lltc
,
fb
-
voltage
-
divider
=
<
270000
100000
>;
regulator
-
ramp
-
delay
=
<
7000
>;
regulator
-
boot
-
on
;
regulator
-
always
-
on
;
};
bb_out_reg
:
bb
-
out
{
regulator
-
min
-
microvolt
=
<
3387341
>;
regulator
-
max
-
microvolt
=
<
3387341
>;
lltc
,
fb
-
voltage
-
divider
=
<
511000
158000
>;
regulator
-
boot
-
on
;
regulator
-
always
-
on
;
};
ldo1_reg
:
ldo1
{
regulator
-
min
-
microvolt
=
<
1306329
>;
regulator
-
max
-
microvolt
=
<
1306329
>;
lltc
,
fb
-
voltage
-
divider
=
<
100000
158000
>;
regulator
-
boot
-
on
;
regulator
-
always
-
on
;
};
ldo2_reg
:
ldo2
{
regulator
-
min
-
microvolt
=
<
704123
>;
regulator
-
max
-
microvolt
=
<
1456806
>;
lltc
,
fb
-
voltage
-
divider
=
<
180000
191000
>;
regulator
-
ramp
-
delay
=
<
7000
>;
regulator
-
boot
-
on
;
regulator
-
always
-
on
;
};
ldo3_reg
:
ldo3
{
regulator
-
min
-
microvolt
=
<
2800000
>;
regulator
-
max
-
microvolt
=
<
2800000
>;
regulator
-
boot
-
on
;
};
ldo4_reg
:
ldo4
{
regulator
-
min
-
microvolt
=
<
1200000
>;
regulator
-
max
-
microvolt
=
<
3200000
>;
};
};
};
};
&
uart1
{
pinctrl
-
names
=
"default"
;
pinctrl
-
0
=
<&
pinctrl_uart1
>;
status
=
"okay"
;
};
&
usbotg
{
dr_mode
=
"peripheral"
;
status
=
"okay"
;
};
arch/arm/mach-netx/xc.c
View file @
006d7bcc
...
...
@@ -127,10 +127,8 @@ int xc_request_firmware(struct xc *x)
ret
=
request_firmware
(
&
fw
,
name
,
x
->
dev
);
if
(
ret
<
0
)
{
dev_err
(
x
->
dev
,
"request_firmware failed
\n
"
);
if
(
ret
)
return
ret
;
}
head
=
(
struct
fw_header
*
)
fw
->
data
;
if
(
head
->
magic
!=
0x4e657458
)
{
...
...
arch/arm64/Kconfig
View file @
006d7bcc
...
...
@@ -972,6 +972,19 @@ config EFI
allow the kernel to be booted as an EFI application. This
is only useful on systems that have UEFI firmware.
config EFI_SECURE_BOOT_SECURELEVEL
def_bool n
depends on SECURITY_SECURELEVEL
depends on EFI
prompt "Automatically set securelevel when UEFI Secure Boot is enabled"
---help---
UEFI Secure Boot provides a mechanism for ensuring that the
firmware will only load signed bootloaders and kernels. Certain
use cases may also require that the kernel restrict any userspace
mechanism that could insert untrusted code into the kernel.
Say Y here to automatically enable securelevel enforcement
when a system boots with UEFI Secure Boot enabled.
config DMI
bool "Enable support for SMBIOS (DMI) tables"
depends on EFI
...
...
arch/arm64/include/asm/memory.h
View file @
006d7bcc
...
...
@@ -74,7 +74,12 @@
#define PCI_IO_END (VMEMMAP_START - SZ_2M)
#define PCI_IO_START (PCI_IO_END - PCI_IO_SIZE)
#define FIXADDR_TOP (PCI_IO_START - SZ_2M)
#if VA_BITS <= 47
#define TASK_SIZE_64 (UL(1) << VA_BITS)
#else
/* User-space might use up to 17 tag bits in 64-bit pointers */
#define TASK_SIZE_64 (UL(1) << 47)
#endif
#ifdef CONFIG_COMPAT
#define TASK_SIZE_32 UL(0x100000000)
...
...
arch/cris/arch-v32/drivers/iop_fw_load.c
View file @
006d7bcc
...
...
@@ -74,12 +74,7 @@ int iop_fw_load_spu(const unsigned char *fw_name, unsigned int spu_inst)
fw_name
,
&
iop_spu_device
[
spu_inst
]);
if
(
retval
!=
0
)
{
printk
(
KERN_ERR
"iop_load_spu: Failed to load firmware
\"
%s
\"\n
"
,
fw_name
);
return
retval
;
}
data
=
(
u32
*
)
fw_entry
->
data
;
/* acquire ownership of memory controller */
...
...
@@ -137,12 +132,7 @@ int iop_fw_load_mpu(unsigned char *fw_name)
/* get firmware */
retval
=
request_firmware
(
&
fw_entry
,
fw_name
,
&
iop_mpu_device
);
if
(
retval
!=
0
)
{
printk
(
KERN_ERR
"iop_load_spu: Failed to load firmware
\"
%s
\"\n
"
,
fw_name
);
return
retval
;
}
data
=
(
u32
*
)
fw_entry
->
data
;
/* disable MPU */
...
...
arch/ia64/kernel/process.c
View file @
006d7bcc
...
...
@@ -30,6 +30,7 @@
#include <linux/utsname.h>
#include <linux/tracehook.h>
#include <linux/rcupdate.h>
#include <generated/package.h>
#include <asm/cpu.h>
#include <asm/delay.h>
...
...
@@ -103,9 +104,9 @@ show_regs (struct pt_regs *regs)
print_modules
();
printk
(
"
\n
"
);
show_regs_print_info
(
KERN_DEFAULT
);
printk
(
"psr : %016lx ifs : %016lx ip : [<%016lx>] %s (%s)
\n
"
,
printk
(
"psr : %016lx ifs : %016lx ip : [<%016lx>] %s (%s
%s
)
\n
"
,
regs
->
cr_ipsr
,
regs
->
cr_ifs
,
ip
,
print_tainted
(),
init_utsname
()
->
release
);
init_utsname
()
->
release
,
LINUX_PACKAGE_ID
);
print_symbol
(
"ip is at %s
\n
"
,
ip
);
printk
(
"unat: %016lx pfs : %016lx rsc : %016lx
\n
"
,
regs
->
ar_unat
,
regs
->
ar_pfs
,
regs
->
ar_rsc
);
...
...
arch/mips/Kbuild
View file @
006d7bcc
# Fail on warnings - also for files referenced in subdirs
# -Werror can be disabled for specific files using:
# CFLAGS_<file.o> := -Wno-error
subdir-ccflags-y := -Werror
# platform specific definitions
include arch/mips/Kbuild.platforms
obj-y := $(platform-y)
...
...
arch/mips/cavium-octeon/executive/cvmx-helper-board.c
View file @
006d7bcc
...
...
@@ -186,6 +186,8 @@ int cvmx_helper_board_get_mii_address(int ipd_port)
return
7
-
ipd_port
;
else
return
-
1
;
case
CVMX_BOARD_TYPE_UBNT_E200
:
return
-
1
;
case
CVMX_BOARD_TYPE_KONTRON_S1901
:
if
(
ipd_port
==
CVMX_HELPER_BOARD_MGMT_IPD_PORT
)
return
1
;
...
...
@@ -744,6 +746,7 @@ enum cvmx_helper_board_usb_clock_types __cvmx_helper_board_usb_get_clock_type(vo
case
CVMX_BOARD_TYPE_LANAI2_G
:
case
CVMX_BOARD_TYPE_NIC10E_66
:
case
CVMX_BOARD_TYPE_UBNT_E100
:
case
CVMX_BOARD_TYPE_UBNT_E200
:
return
USB_CLOCK_TYPE_CRYSTAL_12
;
case
CVMX_BOARD_TYPE_NIC10E
:
return
USB_CLOCK_TYPE_REF_12
;
...
...
arch/mips/include/asm/bootinfo.h
View file @
006d7bcc
...
...
@@ -71,6 +71,7 @@ enum loongson_machine_type {
MACH_LEMOTE_NAS
,
MACH_LEMOTE_LL2F
,
MACH_LOONGSON_GENERIC
,
MACH_LOONGSON_3A780E1W
,
MACH_LOONGSON_END
};
...
...
arch/mips/include/asm/octeon/cvmx-bootinfo.h
View file @
006d7bcc
...
...
@@ -295,6 +295,7 @@ enum cvmx_board_types_enum {