Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update from base #13

Merged
merged 8,326 commits into from
Feb 5, 2018
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
Show all changes
8326 commits
Select commit Hold shift + click to select a range
a9e89e5
Merge tag 'hsi-for-4.16' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Jan 31, 2018
972058a
Merge tag 'for-v4.16' of git://git.kernel.org/pub/scm/linux/kernel/gi…
torvalds Jan 31, 2018
4c6790c
Merge tag 'for-linus-4.16-1' of git://github.com/cminyard/linux-ipmi
torvalds Jan 31, 2018
183b636
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Jan 31, 2018
e1c70f3
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Jan 31, 2018
3c29548
Merge branch 'next-integrity' of git://git.kernel.org/pub/scm/linux/k…
torvalds Jan 31, 2018
2a71490
Merge branch 'next-smack' of git://git.kernel.org/pub/scm/linux/kerne…
torvalds Jan 31, 2018
ae0cb7b
Merge branch 'next-tpm' of git://git.kernel.org/pub/scm/linux/kernel/…
torvalds Jan 31, 2018
3dbc4f5
Merge branch 'next-seccomp' of git://git.kernel.org/pub/scm/linux/ker…
torvalds Jan 31, 2018
2cfa1cd
Merge tag 'selinux-pr-20180130' of git://git.kernel.org/pub/scm/linux…
torvalds Jan 31, 2018
a103950
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git…
torvalds Jan 31, 2018
b2fe5fa
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next
torvalds Jan 31, 2018
13e9454
Input: mms114 - fix typo in definition
Jan 29, 2018
fafef98
Input: goodix - use generic touchscreen_properties
mniestroj Jan 26, 2018
ee190ca
fs/dax.c: release PMD lock even when there is no PMD support in DAX
schnhrr Feb 1, 2018
7e68b36
scripts/decodecode: make it take multiline Code line
andy-shev Feb 1, 2018
99443f8
scripts/tags.sh: change find_other_sources() for include directories
Feb 1, 2018
d91dad4
m32r: remove abort()
sudipm-mukherjee Feb 1, 2018
e37b963
fs/ocfs2/dlm/dlmmaster.c: clean up dead code
Feb 1, 2018
cfdce25
ocfs2/cluster: neaten a member of o2net_msg_handler
Feb 1, 2018
a52370b
ocfs2: give an obvious tip for mismatched cluster names
Feb 1, 2018
fc2af28
ocfs2/cluster: close a race that fence can't be triggered
Feb 1, 2018
32ed0bd
ocfs2: use the OCFS2_XATTR_ROOT_SIZE macro in ocfs2_reflink_xattr_hea…
Feb 1, 2018
dd7b5f9
ocfs2: clean dead code in suballoc.c
Feb 1, 2018
025bcbd
ocfs2: return -EROFS to mount.ocfs2 if inode block is invalid
JunPiaoHW Feb 1, 2018
ff26cc1
ocfs2: try a blocking lock before return AOP_TRUNCATED_PAGE
Feb 1, 2018
c0a1a6d
ocfs2/xattr: assign errno to 'ret' in ocfs2_calc_xattr_init()
JunPiaoHW Feb 1, 2018
d22aa61
ocfs2: clean up dead code in alloc.c
Feb 1, 2018
16c8d56
ocfs2/acl: use 'ip_xattr_sem' to protect getting extended attribute
JunPiaoHW Feb 1, 2018
63de8bd
ocfs2: make metadata estimation accurate and clear
Feb 1, 2018
71a3694
ocfs2: try to reuse extent block in dealloc without meta_alloc
Feb 1, 2018
4882abe
ocfs2: add trimfs dlm lock resource
Feb 1, 2018
637dd20
ocfs2: add trimfs lock to avoid duplicated trims in cluster
Feb 1, 2018
06e7f13
ocfs2: add ocfs2_try_rw_lock() and ocfs2_try_inode_lock()
Feb 1, 2018
ac604d3
ocfs2: add ocfs2_overwrite_io()
Feb 1, 2018
c4c2416
ocfs2: nowait aio support
Feb 1, 2018
e75ed71
ocfs2: unlock bh_state if bg check fails
Feb 1, 2018
d984187
ocfs2: return error when we attempt to access a dirty bh in jbd2
JunPiaoHW Feb 1, 2018
692ae74
mm/slab_common.c: make calculate_alignment() static
Feb 1, 2018
84ebb58
mm/slab.c: remove redundant assignments for slab_state
leberus Feb 1, 2018
5d68268
mm/slub.c: fix wrong address during slab padding restoration
bvivekan Feb 1, 2018
0d2d5d4
slub: remove obsolete comments of put_cpu_partial()
milesdotchen Feb 1, 2018
d70f2a1
include/linux/sched/mm.h: uninline mmdrop_async(), etc
akpm00 Feb 1, 2018
4a01768
mm: kmemleak: remove unused hardirq.h
Feb 1, 2018
a85f878
zswap: same-filled pages handling
Feb 1, 2018
2e3ca40
mm: relax deferred struct page requirements
Feb 1, 2018
66f308e
mm/mempolicy: remove redundant check in get_nodes
Feb 1, 2018
56521e7
mm/mempolicy: fix the check of nodemask from user
Feb 1, 2018
0486a38
mm/mempolicy: add nodes_empty check in SYSC_migrate_pages
Feb 1, 2018
9852a72
mm: drop hotplug lock from lru_add_drain_all()
Feb 1, 2018
fcb2b0c
mm: show total hugetlb memory consumption in /proc/meminfo
rgushchin Feb 1, 2018
9092c71
mm: use sc->priority for slab shrink targets
Feb 1, 2018
80b1f41
mm: split deferred_init_range into initializing and freeing parts
Feb 1, 2018
2b9fceb
mm/filemap.c: remove include of hardirq.h
Feb 1, 2018
c9019e9
mm: memcontrol: eliminate raw access to stat and event counters
hnaz Feb 1, 2018
2845426
mm: memcontrol: implement lruvec stat functions on top of each other
hnaz Feb 1, 2018
a983b5e
mm: memcontrol: fix excessive complexity in memory.stat reporting
hnaz Feb 1, 2018
8e33771
mm/page_owner.c: use PTR_ERR_OR_ZERO()
Carmichael561 Feb 1, 2018
4812839
mm/page_alloc.c: fix comment in __get_free_pages()
Feb 1, 2018
e496612
mm: do not stall register_shrinker()
minchank Feb 1, 2018
235266b
selftests/vm: move 128TB mmap boundary test to generic directory
kvaneesh Feb 1, 2018
e025f05
mm/interval_tree.c: use vma_pages() helper
Carmichael561 Feb 1, 2018
a4ef876
mm: remove unused pgdat_reclaimable_pages()
jankara Feb 1, 2018
d6cb41c
mm, hugetlb: remove hugepages_treat_as_movable sysctl
Feb 1, 2018
dc88c88
mm/memory_hotplug.c: remove unnecesary check from register_page_bootm…
leberus Feb 1, 2018
ef549e1
mm: update comment describing tlb_gather_mmu
rppt Feb 1, 2018
8526d84
fs/proc/task_mmu.c: do not show VmExe bigger than total executable vi…
koct9i Feb 1, 2018
9ac9322
mm: memory_hotplug: remove second __nr_to_section in register_page_bo…
leberus Feb 1, 2018
9bebc09
mm/huge_memory.c: fix comment in __split_huge_pmd_locked
Feb 1, 2018
a365ac0
mm, userfaultfd, THP: avoid waiting when PMD under THP migration
yhuang-intel Feb 1, 2018
977fbdc
mm: add unmap_mapping_pages()
Feb 1, 2018
146500e
mm: get 7% more pages in a pagevec
Feb 1, 2018
c58f0bb
asm-generic: provide generic_pmdp_establish()
kiryl Feb 1, 2018
5c8aa7e
arc: use generic_pmdp_establish as pmdp_establish
kiryl Feb 1, 2018
ef298cc
arm/mm: provide pmdp_establish() helper
kiryl Feb 1, 2018
1d78a62
arm64: provide pmdp_establish() helper
ctmarinas Feb 1, 2018
b6b34b2
mips: use generic_pmdp_establish as pmdp_establish
kiryl Feb 1, 2018
8cc931e
powerpc/mm: update pmdp_invalidate to return old pmd value
kvaneesh Feb 1, 2018
9c4563f
s390/mm: modify pmdp_invalidate to return old value.
Feb 1, 2018
a8e654f
sparc64: update pmdp_invalidate() to return old pmd value
Feb 1, 2018
86fa949
x86/mm: provide pmdp_establish() helper
kiryl Feb 1, 2018
d52605d
mm: do not lose dirty and accessed bits in pmdp_invalidate()
kiryl Feb 1, 2018
a3cf988
mm: use updated pmdp_invalidate() interface to track dirty/accessed bits
kiryl Feb 1, 2018
423ac9a
mm/thp: remove pmd_huge_split_prepare()
kvaneesh Feb 1, 2018
3b454ad
mm: thp: use down_read_trylock() in khugepaged to avoid long block
Feb 1, 2018
5ff7091
mm, mmu_notifier: annotate mmu notifiers with blockable invalidate ca…
rientjes Feb 1, 2018
f340ff8
mm, oom: avoid reaping only for mm's with blockable invalidate callbacks
rientjes Feb 1, 2018
93144ca
mm/zsmalloc: simplify shrinker init/destroy
Feb 1, 2018
e20df2c
mm: align struct page more aesthetically
Feb 1, 2018
ca9c88c
mm: de-indent struct page
Feb 1, 2018
4cf7c8b
mm: remove misleading alignment claims
Feb 1, 2018
b26435a
mm: improve comment on page->mapping
Feb 1, 2018
0dd4da5
mm: introduce _slub_counter_t
Feb 1, 2018
036e7aa
mm: store compound_dtor / compound_order as bytes
Feb 1, 2018
be50015
mm: document how to use struct page
Feb 1, 2018
ab8928b
mm: remove reference to PG_buddy
Feb 1, 2018
e9d586a
shmem: unexport shmem_add_seals()/shmem_get_seals()
elmarco Feb 1, 2018
5aadc43
shmem: rename functions that are memfd-related
elmarco Feb 1, 2018
da14c1e
hugetlb: expose hugetlbfs_inode_info in header
elmarco Feb 1, 2018
ff62a34
hugetlb: implement memfd sealing
elmarco Feb 1, 2018
47b9012
shmem: add sealing support to hugetlb-backed memfd
elmarco Feb 1, 2018
7249784
memfd-test: test hugetlbfs sealing
elmarco Feb 1, 2018
3037aeb
memfd-test: add 'memfd-hugetlb:' prefix when testing hugetlbfs
elmarco Feb 1, 2018
29f34d1
memfd-test: move common code to a shared unit
elmarco Feb 1, 2018
c5c6383
memfd-test: run fuse test on hugetlb backend memory
elmarco Feb 1, 2018
284cd24
userfaultfd: convert to use anon_inode_getfd()
ebiggers Feb 1, 2018
69d763f
mm: pin address_space before dereferencing it while isolating an LRU …
gormanm Feb 1, 2018
a7ab400
mm/fadvise: discard partial page if endbyte is also EOF
shidao-ytt Feb 1, 2018
9c3760e
zswap: only save zswap header when necessary
yuzhaogoogle Feb 1, 2018
c054a78
memcg: refactor mem_cgroup_resize_limit()
yuzhaogoogle Feb 1, 2018
3c2c648
mm/page_alloc.c: fix typos in comments
shiloong Feb 1, 2018
6787c1d
mm/page_owner.c: clean up init_pages_in_zone()
leberus Feb 1, 2018
01a6ad9
zsmalloc: use U suffix for negative literals being shifted
nickdesaulniers Feb 1, 2018
3a45acc
mm/page_ext.c: make page_ext_init a noop when CONFIG_PAGE_EXTENSION b…
leberus Feb 1, 2018
112d2d2
mm/compaction.c: fix comment for try_to_compact_pages()
Feb 1, 2018
def9b71
include/linux/mmzone.h: fix explanation of lower bits in the SPARSEME…
ptesarik Feb 1, 2018
8d63e4c
mm/hmm: fix uninitialized use of 'entry' in hmm_vma_walk_pmd()
Feb 1, 2018
8ad6e40
mm/memcontrol.c: make local symbol static
ChrisADR Feb 1, 2018
1ab5c05
mm/memcontrol.c: try harder to decrease [memory,memsw].limit_in_bytes
aryabinin Feb 1, 2018
af0fb9d
mm, hugetlb: unify core page allocation accounting and initialization
Feb 1, 2018
d9cc948
mm, hugetlb: integrate giga hugetlb more naturally to the allocation …
Feb 1, 2018
ab5ac90
mm, hugetlb: do not rely on overcommit limit during migration
Feb 1, 2018
9980d74
mm, hugetlb: get rid of surplus page accounting tricks
Feb 1, 2018
0c397da
mm, hugetlb: further simplify hugetlb allocation API
Feb 1, 2018
ebd6372
hugetlb, mempolicy: fix the mbind hugetlb migration
Feb 1, 2018
389c817
hugetlb, mbind: fall back to default policy if vma is NULL
Feb 1, 2018
859d4ad
mm: numa: do not trap faults on shared data section pages.
hwillard Feb 1, 2018
da391d6
mm: correct comments regarding do_fault_around()
Feb 1, 2018
9bb5a39
mm, memory_hotplug: fix memmap initialization
Feb 1, 2018
e02a9f0
mm/swap.c: make functions and their kernel-doc agree
rddunlap Feb 1, 2018
c7905f2
tools, vm: new option to specify kpageflags file
rientjes Feb 1, 2018
3f56a2f
mm: remove PG_highmem description
milesdotchen Feb 1, 2018
7ec3c09
Merge tag 'drm-misc-next-fixes-2018-01-31' of git://anongit.freedeskt…
airlied Feb 1, 2018
24b8ef6
drm/ast: Load lut in crtc_commit
danvet Jan 18, 2018
73da9e1
Merge branch 'akpm' (patches from Andrew)
torvalds Feb 1, 2018
dc1efc3
Merge branch 'work.dcache' of git://git.kernel.org/pub/scm/linux/kern…
torvalds Feb 1, 2018
40b9672
Merge branch 'work.whack-a-mole' of git://git.kernel.org/pub/scm/linu…
torvalds Feb 1, 2018
d76e0a0
Merge branch 'work.vmci' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Feb 1, 2018
255442c
Merge tag 'docs-4.16' of git://git.lwn.net/linux
torvalds Feb 1, 2018
d67ad78
Merge branch 'next' into for-linus
dtor Feb 1, 2018
085331d
x86/kvm: Update spectre-v1 mitigation
djbw Feb 1, 2018
1beaeac
genirq: Make legacy autoprobing work again
KAGA-KOKO Jan 30, 2018
2b16f04
net: create skb_gso_validate_mac_len()
daxtens Jan 31, 2018
8914a59
bnx2x: disable GSO where gso_size is too big for hardware
daxtens Jan 31, 2018
26c26ab
Merge branch 'bnx2x-disable-GSO-on-too-large-packets'
davem330 Feb 1, 2018
2e85283
be2net: remove redundant initialization of 'head' and pointer txq
Jan 31, 2018
3aff3b4
tcp_bbr: fix pacing_gain to always be unity when using lt_bw
nealcardwell Jan 31, 2018
9382fe7
openvswitch: Remove padding from packet before L3+ conntrack processing
Feb 1, 2018
367dc65
net: bridge: Fix uninitialized error in br_fdb_sync_static()
geertu Feb 1, 2018
0ba9871
inet: Avoid unitialized variable warning in inet_unhash()
geertu Feb 1, 2018
a83165f
rocker: fix possible null pointer dereference in rocker_router_fib_ev…
jpirko Feb 1, 2018
7973bfd
rtnetlink: remove check for IFLA_IF_NETNSID
Feb 1, 2018
1640eea
Coccinelle: coccicheck: fix typo
JuliaLawall Feb 1, 2018
0b1dfa4
fscrypt: fix build with pre-4.6 gcc versions
ebiggers Jan 19, 2018
ca0c836
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Feb 1, 2018
ba49097
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc-next
torvalds Feb 1, 2018
7109a04
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/ide
torvalds Feb 1, 2018
e4ee8b8
Merge tag 'usb-4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Feb 1, 2018
db59332
Merge tag 'tty-4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Feb 1, 2018
5d8515b
Merge tag 'staging-4.16-rc1' of git://git.kernel.org/pub/scm/linux/ke…
torvalds Feb 1, 2018
47fcc03
Merge tag 'driver-core-4.16-rc1' of git://git.kernel.org/pub/scm/linu…
torvalds Feb 1, 2018
dcb2cd5
gfs2: Fix the crc32c dependency
Feb 1, 2018
7ac07fd
gfs2: Glock dump performance regression fix
Jan 8, 2018
f6cff79
Merge tag 'char-misc-4.16-rc1' of git://git.kernel.org/pub/scm/linux/…
torvalds Feb 1, 2018
eea43ed
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Feb 1, 2018
2bed266
Merge tag 'devicetree-for-4.16' of git://git.kernel.org/pub/scm/linux…
torvalds Feb 1, 2018
06c8f7a
Merge tag 'kbuild-v4.16' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Feb 1, 2018
b9a4072
Merge git://git.kernel.org/pub/scm/linux/kernel/git/pablo/nf
davem330 Feb 1, 2018
a659f15
Merge tag 'kbuild-misc-v4.16' of git://git.kernel.org/pub/scm/linux/k…
torvalds Feb 1, 2018
562f36e
Merge tag 'kconfig-v4.16' of git://git.kernel.org/pub/scm/linux/kerne…
torvalds Feb 1, 2018
f14d244
net: jme: remove unused initialization of 'rxdesc'
Feb 1, 2018
3b51cc7
lan78xx: remove redundant initialization of pointer 'phydev'
Feb 1, 2018
5e264e2
vmxnet3: remove redundant initialization of pointer 'rq'
Feb 1, 2018
a107311
ibmvnic: fix firmware version when no firmware level has been provide…
Feb 1, 2018
e7aadb2
net: igmp: add a missing rcu locking section
Feb 1, 2018
743ffff
net: pxa168_eth: add netconsole support
amonakov Feb 1, 2018
bdb5ac8
compiler.h, kasan: Avoid duplicating __read_once_size_nocheck()
aryabinin Feb 1, 2018
7f1e541
compiler.h: Add read_word_at_a_time() function.
aryabinin Feb 1, 2018
1a3241f
lib/strscpy: Shut up KASAN false-positives in strscpy()
aryabinin Feb 1, 2018
bfe7aa6
fs/dcache: Use read_word_at_a_time() in dentry_string_cmp()
aryabinin Feb 1, 2018
babcbbc
fs: dcache: Revert "manually unpoison dname after allocation to shut …
aryabinin Feb 1, 2018
8e44e66
Merge branch 'KASAN-read_word_at_a_time'
torvalds Feb 1, 2018
445251d
blk-mq: fix discard merge with scheduler attached
axboe Feb 1, 2018
27529c8
Merge tag 'trace-v4.16' of git://git.kernel.org/pub/scm/linux/kernel/…
torvalds Feb 1, 2018
34b1cf6
Merge tag 'vfio-v4.16-rc1' of git://github.com/awilliam/linux-vfio
torvalds Feb 1, 2018
ab486bc
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Feb 1, 2018
bea99a5
blk-mq-sched: Enable merging discard bio into request
Feb 1, 2018
537433b
Merge tag 'armsoc-dt' of git://git.kernel.org/pub/scm/linux/kernel/gi…
torvalds Feb 2, 2018
adbc128
Merge tag 'armsoc-soc' of git://git.kernel.org/pub/scm/linux/kernel/g…
torvalds Feb 2, 2018
fe53d14
Merge tag 'armsoc-drivers' of git://git.kernel.org/pub/scm/linux/kern…
torvalds Feb 2, 2018
3879ae6
Merge tag 'clk-for-linus' of git://git.kernel.org/pub/scm/linux/kerne…
torvalds Feb 2, 2018
4bf772b
Merge tag 'drm-for-v4.16' of git://people.freedesktop.org/~airlied/linux
torvalds Feb 2, 2018
7825cd8
maintainers: update trusted keys
Feb 1, 2018
e259807
ima: re-initialize iint->atomic_flags
Jan 23, 2018
66f7930
x86/retpoline: Avoid retpolines for built-in __init functions
dwmw2 Feb 1, 2018
9005c68
x86/spectre: Simplify spectre_v2 command line parsing
Feb 1, 2018
60f9182
buffer: Avoid setting buffer bits that are already set
Oct 24, 2017
1d51877
block: skd: fix incorrect linux/slab_def.h inclusion
arndb Feb 2, 2018
4464439
Merge tag 'microblaze-4.16-rc1' of git://git.monstr.eu/linux-2.6-micr…
torvalds Feb 2, 2018
367b0df
Merge branch 'for-linus' of git://git.armlinux.org.uk/~rmk/linux-arm
torvalds Feb 2, 2018
03f51d4
Merge tag 'powerpc-4.16-1' of git://git.kernel.org/pub/scm/linux/kern…
torvalds Feb 2, 2018
b89e32c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel…
torvalds Feb 2, 2018
4bf5d56
x86/pti: Mark constant arrays as __initconst
arndb Feb 2, 2018
af189c9
x86/speculation: Fix typo IBRS_ATT, which should be IBRS_ALL
darrenkenny Feb 2, 2018
bf64499
Merge tag 'rtc-4.16' of git://git.kernel.org/pub/scm/linux/kernel/git…
torvalds Feb 2, 2018
ef99179
Merge tag 'pinctrl-v4.16-1' of git://git.kernel.org/pub/scm/linux/ker…
torvalds Feb 2, 2018
ebfc150
x86/dumpstack: Avoid uninitlized variable
arndb Feb 2, 2018
328008a
x86/power: Fix swsusp_arch_resume prototype
arndb Feb 2, 2018
d3581c8
Merge tag 'firewire-updates' of git://git.kernel.org/pub/scm/linux/ke…
torvalds Feb 2, 2018
1d8ef0c
nfp: fix TLV offset calculation
edwin-peer Feb 2, 2018
ea6499e
r8152: fix wrong checksum status for received IPv4 packets
hayesorz Feb 2, 2018
aece477
r8152: set rx mode early when linking on
hayesorz Feb 2, 2018
0072f0c
Merge branch 'r8152-fix-rx-issues'
davem330 Feb 3, 2018
058a6c0
cls_u32: add missing RCU annotation.
Feb 2, 2018
1a91649
net: cxgb4: avoid memcpy beyond end of source buffer
arndb Feb 2, 2018
11f7110
net: qed: use correct strncpy() size
arndb Feb 2, 2018
cfabb17
net: qlge: use memmove instead of skb_copy_to_linear_data
arndb Feb 2, 2018
4db428a
soreuseport: fix mem leak in reuseport_add_sock()
Feb 2, 2018
edbe69e
Revert "defer call to mem_cgroup_sk_alloc()"
rgushchin Feb 2, 2018
8cf4e6a
firmware: dmi: Optimize dmi_matches
jdelvare Feb 3, 2018
7117794
firmware: dmi_scan: Drop dmi_initialized
jdelvare Feb 3, 2018
a7770ae
firmware: dmi_scan: Fix handling of empty DMI strings
jdelvare Feb 3, 2018
a81114d
firmware: dmi: handle missing DMI data gracefully
Feb 3, 2018
23c35f4
pinctrl: remove include file from <linux/device.h>
torvalds Feb 3, 2018
6cb7903
Merge tag 'linux-kselftest-4.16-rc1' of git://git.kernel.org/pub/scm/…
torvalds Feb 3, 2018
abbbd02
Merge tag 'scsi-postmerge' of git://git.kernel.org/pub/scm/linux/kern…
torvalds Feb 3, 2018
6ec4de8
Merge tag 'gfs2-4.16.fixes2' of git://git.kernel.org/pub/scm/linux/ke…
torvalds Feb 3, 2018
c80c238
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
torvalds Feb 3, 2018
a96223f
Merge branch 'msr-bitmaps' of git://git.kernel.org/pub/scm/virt/kvm/k…
KAGA-KOKO Feb 3, 2018
1726aa7
Merge branch 'fixes-v4.16-rc1' of git://git.kernel.org/pub/scm/linux/…
torvalds Feb 3, 2018
85b8bac
Merge branch 'dmi-for-linus' of git://git.kernel.org/pub/scm/linux/ke…
torvalds Feb 3, 2018
23aedc4
Merge tag 'ext4_for_linus' of git://git.kernel.org/pub/scm/linux/kern…
torvalds Feb 3, 2018
0771ad4
Merge tag 'pstore-v4.16-rc1' of git://git.kernel.org/pub/scm/linux/ke…
torvalds Feb 3, 2018
b7b27aa
KVM/x86: Update the reverse_cpuid list to include CPUID_7_EDX
Feb 1, 2018
15d4507
KVM/x86: Add IBPB support
ashok-raj Feb 1, 2018
28c1c9f
KVM/VMX: Emulate MSR_IA32_ARCH_CAPABILITIES
Feb 1, 2018
d28b387
KVM/VMX: Allow direct access to MSR_IA32_SPEC_CTRL
Feb 1, 2018
b2ac58f
KVM/SVM: Allow direct access to MSR_IA32_SPEC_CTRL
Feb 3, 2018
617aebe
Merge tag 'usercopy-v4.16-rc1' of git://git.kernel.org/pub/scm/linux/…
torvalds Feb 4, 2018
c6a8b17
mailbox: qcom: Convert APCS IPC driver to use regmap
Dec 5, 2017
c815d76
mailbox: qcom: Create APCS child device for clock controller
Dec 5, 2017
0ae7d32
dt-bindings: mailbox: qcom: Document the APCS clock binding
Dec 5, 2017
3462ac5
Merge tag 'fscrypt_for_linus' of git://git.kernel.org/pub/scm/linux/k…
torvalds Feb 4, 2018
4141cf6
Merge branch 'i2c/for-4.16' of git://git.kernel.org/pub/scm/linux/ker…
torvalds Feb 4, 2018
8ac4840
Merge tag 'mailbox-v4.16' of git://git.linaro.org/landing-teams/worki…
torvalds Feb 4, 2018
d3658c2
Merge tag 'ntb-4.16' of git://github.com/jonmason/ntb
torvalds Feb 4, 2018
64b2868
Merge tag 'for-linus-20180204' of git://git.kernel.dk/linux-block
torvalds Feb 4, 2018
f74a127
Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/l…
torvalds Feb 4, 2018
0a646e9
Merge branch 'x86-urgent-for-linus' of git://git.kernel.org/pub/scm/l…
torvalds Feb 4, 2018
3527799
Merge branch 'x86-pti-for-linus' of git://git.kernel.org/pub/scm/linu…
torvalds Feb 4, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion drivers/firmware/dmi-sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,7 @@ static int __init dmi_sysfs_init(void)
int val;

if (!dmi_kobj) {
pr_err("dmi-sysfs: dmi entry is absent.\n");
pr_debug("dmi-sysfs: dmi entry is absent.\n");
error = -ENODATA;
goto err;
}
Expand Down
64 changes: 28 additions & 36 deletions drivers/firmware/dmi_scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,14 @@ EXPORT_SYMBOL_GPL(dmi_kobj);
* of and an antecedent to, SMBIOS, which stands for System
* Management BIOS. See further: http://www.dmtf.org/standards
*/
static const char dmi_empty_string[] = " ";
static const char dmi_empty_string[] = "";

static u32 dmi_ver __initdata;
static u32 dmi_len;
static u16 dmi_num;
static u8 smbios_entry_point[32];
static int smbios_entry_point_size;

/*
* Catch too early calls to dmi_check_system():
*/
static int dmi_initialized;

/* DMI system identification string used during boot */
static char dmi_ids_string[128] __initdata;

Expand All @@ -44,25 +39,21 @@ static int dmi_memdev_nr;
static const char * __init dmi_string_nosave(const struct dmi_header *dm, u8 s)
{
const u8 *bp = ((u8 *) dm) + dm->length;
const u8 *nsp;

if (s) {
s--;
while (s > 0 && *bp) {
while (--s > 0 && *bp)
bp += strlen(bp) + 1;
s--;
}

if (*bp != 0) {
size_t len = strlen(bp)+1;
size_t cmp_len = len > 8 ? 8 : len;

if (!memcmp(bp, dmi_empty_string, cmp_len))
return dmi_empty_string;
/* Strings containing only spaces are considered empty */
nsp = bp;
while (*nsp == ' ')
nsp++;
if (*nsp != '\0')
return bp;
}
}

return "";
return dmi_empty_string;
}

static const char * __init dmi_string(const struct dmi_header *dm, u8 s)
Expand Down Expand Up @@ -633,7 +624,7 @@ void __init dmi_scan_machine(void)

if (!dmi_smbios3_present(buf)) {
dmi_available = 1;
goto out;
return;
}
}
if (efi.smbios == EFI_INVALID_TABLE_ADDR)
Expand All @@ -651,7 +642,7 @@ void __init dmi_scan_machine(void)

if (!dmi_present(buf)) {
dmi_available = 1;
goto out;
return;
}
} else if (IS_ENABLED(CONFIG_DMI_SCAN_MACHINE_NON_EFI_FALLBACK)) {
p = dmi_early_remap(0xF0000, 0x10000);
Expand All @@ -668,7 +659,7 @@ void __init dmi_scan_machine(void)
if (!dmi_smbios3_present(buf)) {
dmi_available = 1;
dmi_early_unmap(p, 0x10000);
goto out;
return;
}
memcpy(buf, buf + 16, 16);
}
Expand All @@ -686,16 +677,14 @@ void __init dmi_scan_machine(void)
if (!dmi_present(buf)) {
dmi_available = 1;
dmi_early_unmap(p, 0x10000);
goto out;
return;
}
memcpy(buf, buf + 16, 16);
}
dmi_early_unmap(p, 0x10000);
}
error:
pr_info("DMI not present or invalid.\n");
out:
dmi_initialized = 1;
}

static ssize_t raw_table_read(struct file *file, struct kobject *kobj,
Expand All @@ -715,10 +704,8 @@ static int __init dmi_init(void)
u8 *dmi_table;
int ret = -ENOMEM;

if (!dmi_available) {
ret = -ENODATA;
goto err;
}
if (!dmi_available)
return 0;

/*
* Set up dmi directory at /sys/firmware/dmi. This entry should stay
Expand Down Expand Up @@ -784,19 +771,20 @@ static bool dmi_matches(const struct dmi_system_id *dmi)
{
int i;

WARN(!dmi_initialized, KERN_ERR "dmi check: not initialized yet.\n");

for (i = 0; i < ARRAY_SIZE(dmi->matches); i++) {
int s = dmi->matches[i].slot;
if (s == DMI_NONE)
break;
if (dmi_ident[s]) {
if (!dmi->matches[i].exact_match &&
strstr(dmi_ident[s], dmi->matches[i].substr))
continue;
else if (dmi->matches[i].exact_match &&
!strcmp(dmi_ident[s], dmi->matches[i].substr))
continue;
if (dmi->matches[i].exact_match) {
if (!strcmp(dmi_ident[s],
dmi->matches[i].substr))
continue;
} else {
if (strstr(dmi_ident[s],
dmi->matches[i].substr))
continue;
}
}

/* No match */
Expand Down Expand Up @@ -826,6 +814,8 @@ static bool dmi_is_end_of_table(const struct dmi_system_id *dmi)
* Walk the blacklist table running matching functions until someone
* returns non zero or we hit the end. Callback function is called for
* each successful match. Returns the number of matches.
*
* dmi_scan_machine must be called before this function is called.
*/
int dmi_check_system(const struct dmi_system_id *list)
{
Expand Down Expand Up @@ -854,6 +844,8 @@ EXPORT_SYMBOL(dmi_check_system);
*
* Walk the blacklist table until the first match is found. Return the
* pointer to the matching entry or NULL if there's no match.
*
* dmi_scan_machine must be called before this function is called.
*/
const struct dmi_system_id *dmi_first_match(const struct dmi_system_id *list)
{
Expand Down