Commit graph android_kernel_sony_sdm845/scripts
Message SHA1
Merge remote-tracking branch 'remotes/origin/tmp-694d0d0' into msm-4.8_Merge_4.8-rc2
* remotes/origin/tmp-694d0d0:
  Linux 4.8-rc2
  h8300: Add missing include file to asm/io.h
  unicore32: mm: Add missing parameter to arch_vma_access_permitted
  PM / hibernate: Restore processor state before using per-CPU variables
  nfsd: don't return an unhashed lock stateid after taking mutex
  arm64: defconfig: enable CONFIG_LOCALVERSION_AUTO
  arm64: defconfig: add options for virtualization and containers
  arm64: hibernate: handle allocation failures
  arm64: hibernate: avoid potential TLB conflict
  arm64: Handle el1 synchronous instruction aborts cleanly
  MIPS: KVM: Propagate kseg0/mapped tlb fault errors
  MIPS: KVM: Fix gfn range check in kseg0 tlb faults
  MIPS: KVM: Add missing gfn range check
  MIPS: KVM: Fix mapped fault broken commpage handling
  KVM: Protect device ops->create and list_add with kvm->lock
  KVM: PPC: Move xics_debugfs_init out of create
  KVM: s390: reset KVM_REQ_MMU_RELOAD if mapping the prefix failed
  KVM: s390: set the prefix initially properly
  perf/x86/intel/uncore: Add enable_box for client MSR uncore
  perf/x86/intel/uncore: Fix uncore num_counters
  uprobes/x86: Fix RIP-relative handling of EVEX-encoded instructions
  mm/memory_hotplug.c: initialize per_cpu_nodestats for hotadded pgdats
  mm, oom: fix uninitialized ret in task_will_free_mem()
  kasan: remove the unnecessary WARN_ONCE from quarantine.c
  mm: memcontrol: fix memcg id ref counter on swap charge move
  mm: memcontrol: fix swap counter leak on swapout from offline cgroup
  proc, meminfo: use correct helpers for calculating LRU sizes in meminfo
  mm/hugetlb: fix incorrect hugepages count during mem hotplug
  nfsd: Fix race between FREE_STATEID and LOCK
  arm64: Remove stack duplicating code from jprobes
  nfsd: fix dentry refcounting on create
  bvec: avoid variable shadowing warning
  doc: update block/queue-sysfs.txt entries
  nvme: Suspend all queues before deletion
  x86/apic/x2apic, smp/hotplug: Don't use before alloc in x2apic_cluster_probe()
  sched/cputime: Fix omitted ticks passed in parameter
  efi/capsule: Allocate whole capsule into virtual memory
  x86/platform/uv: Skip UV runtime services mapping in the efi_runtime_disabled case
  x86/efi: Allocate a trampoline if needed in efi_free_boot_services()
  x86/boot: Rework reserve_real_mode() to allow multiple tries
  x86/boot: Defer setup_real_mode() to early_initcall time
  x86/boot: Synchronize trampoline_cr4_features and mmu_cr4_features directly
  x86/boot: Run reserve_bios_regions() after we initialize the memory map
  x86/irq: Do not substract irq_tlb_count from irq_call_count
  x86/mm: Fix swap entry comment and macro
  sched/cputime: Fix steal time accounting
  x86/mm/kaslr: Fix -Wformat-security warning
  Merge tag 'pxa-fixes-v4.8' of https://github.com/rjarzmik/linux into randconfig-4.8
  mm/slub.c: run free_partial() outside of the kmem_cache_node->list_lock
  rmap: fix compound check logic in page_remove_file_rmap
  mm, rmap: fix false positive VM_BUG() in page_add_file_rmap()
  mm/page_alloc.c: recalculate some of node threshold when on/offline memory
  mm/page_alloc.c: fix wrong initialization when sysctl_min_unmapped_ratio changes
  thp: move shmem_huge_enabled() outside of SYSFS ifdef
  revert "ARM: keystone: dts: add psci command definition"
  rapidio: dereferencing an error pointer
  tools/testing/nvdimm: fix SIGTERM vs hotplug crash
  arm64: Kconfig: select HISILICON_IRQ_MBIGEN only if PCI is selected
  arm64: Kconfig: select ALPINE_MSI only if PCI is selected
  ARM: dts: realview: Fix PBX-A9 cache description
  ARM: tegra: fix erroneous address in dts
  ARM: dts: add syscon compatible string for AP syscon
  ARM: dts: add syscon compatible string for CP syscon
  ARM: oxnas: select reset controller framework
  ARM: hide mach-*/ include for ARM_SINGLE_ARMV7M
  ARM: don't include removed directories
  arm: oabi compat: add missing access checks
  get_maintainer: Don't check if STDIN exists in a VCS repository
  x86/mm/pkeys: Fix compact mode by removing protection keys' XSAVE buffer manipulation
  x86/build: Reduce the W=1 warnings noise when compiling x86 syscall tables
  x86/platform/UV: Fix kernel panic running RHEL kdump kernel on UV systems
  x86/platform/UV: Fix problem with UV4 BIOS providing incorrect PXM values
  x86/platform/UV: Fix bug with iounmap() of the UV4 EFI System Table causing a crash
  x86/platform/UV: Fix problem with UV4 Socket IDs not being contiguous
  x86/entry: Clarify the RF saving/restoring situation with SYSCALL/SYSRET
  x86/mm: Disable preemption during CR3 read+write
  selftests/powerpc: Specify we expect to build with std=gnu99
  ALSA: hda - Manage power well properly for resume
  powerpc/vdso: Fix build rules to rebuild vdsos correctly
  powerpc/Makefile: Use cflags-y/aflags-y for setting endian options
  x86/mm/KASLR: Increase BRK pages for KASLR memory randomization
  x86/mm/KASLR: Fix physical memory calculation on KASLR memory randomization
  x86/hpet: Fix /dev/rtc breakage caused by RTC cleanup
  x86, kasan, ftrace: Put APIC interrupt handlers into .irqentry.text
  locking/pvqspinlock: Fix a bug in qstat_read()
  locking/pvqspinlock: Fix double hash race
  locking/qrwlock: Fix write unlock bug on big endian systems
  sched/deadline: Fix lock pinning warning during CPU hotplug
  sched/cputime: Mitigate performance regression in times()/clock_gettime()
  sched/fair: Fix typo in sync_throttle()
  sched/deadline: Fix wrap-around in DL heap
  perf/core: Set cgroup in CPU contexts for new cgroup events
  perf/core: Fix sideband list-iteration vs. event ordering NULL pointer deference crash
  x86/timers/apic: Inform TSC deadline clockevent device about recalibration
  x86/timers/apic: Fix imprecise timer interrupts by eliminating TSC clockevents frequency roundoff error
  powerpc/32: Fix crash during static key init
  powerpc: Update obsolete comment in setup_32.c about early_init()
  powerpc: Print the kernel load address at the end of prom_init()
  powerpc/ptrace: Fix coredump since ptrace TM changes
  powerpc/32: Fix csum_partial_copy_generic()
  cxl: Set psl_fir_cntl to production environment value
  mm, writeback: flush plugged IO in wakeup_flusher_threads()
  Revert "printk: create pr_<level> functions"
  ipr: Fix sync scsi scan
  mm: memcontrol: only mark charged pages with PageKmemcg
  drivers/perf: arm-pmu: Fix handling of SPI lacking "interrupt-affinity" property
  drivers/perf: arm-pmu: convert arm_pmu_mutex to spinlock
  ceph: initialize pathbase in the !dentry case in encode_caps_cb()
  rbd: nuke the 32-bit pool id check
  perf probe ppc64le: Fix probe location when using DWARF
  perf probe: Add function to post process kernel trace events
  tools: Sync cpufeatures headers with the kernel
  toops: Sync tools/include/uapi/linux/bpf.h with the kernel
  tools: Sync cpufeatures.h and vmx.h with the kernel
  perf probe: Support signedness casting
  tracing: Fix tick_stop tracepoint symbols for user export
  perf stat: Avoid skew when reading events
  perf probe: Fix module name matching
  perf probe: Adjust map->reloc offset when finding kernel symbol from map
  perf hists: Trim libtraceevent trace_seq buffers
  perf script: Add 'bpf-output' field to usage message
  metag: Drop show_mem() from mem_init()
  virtio/s390: deprecate old transport
  virtio/s390: keep early_put_chars
  virtio_blk: Fix a slient kernel panic
  virtio-vsock: fix include guard typo
  vhost/vsock: fix vhost virtio_vsock_pkt use-after-free
  9p/trans_virtio: use kvfree() for iov_iter_get_pages_alloc()
  virtio: fix error handling for debug builds
  virtio: fix memory leak in virtqueue_add()
  arm64: Support hard limit of cpu count by nr_cpus
  powerpc/pnv/pci: Fix incorrect PE reservation attempt on some 64-bit BARs
  powerpc/book3s: Fix MCE console messages for unrecoverable MCE.
  timers: Fix get_next_timer_interrupt() computation
  genirq/msi: Make sure PCI MSIs are activated early
  powerpc/pci: Fix endian bug in fixed PHB numbering
  powerpc/eeh: Switch to conventional PCI address output in EEH log
  cxl: Fix sparse warnings
  cxl: Fix NULL dereference in cxl_context_init() on PowerVM guests
  cxl: Use fixed width predefined types in data structure.
  powerpc/vdso: Add missing include file
  powerpc: Fix unused function warning 'lmb_to_memblock'
  powerpc/powernv: Fix MCE handler to avoid trashing CR0/CR1 registers.
  ALSA: usb-audio: Add quirk for ELP HD USB Camera
  ALSA: usb-audio: Add a sample rate quirk for Creative Live! Cam Socialize HD (VF0610)
  powerpc/powernv: Move IDLE_STATE_ENTER_SEQ macro to cpuidle.h
  powerpc/powernv: Load correct TOC pointer while waking up from winkle.
  powerpc/powernv/ioda: Fix TCE invalidate to work in real mode again
  powerpc/cell: Add missing error code in spufs_mkgang()
  powerpc/xics: Properly set Edge/Level type and enable resend
  crypto: crc32c-vpmsum - Convert to CPU feature based module autoloading
  drm/cirrus: Fix NULL pointer dereference when registering the fbdev
  gcc-plugins: Add support for plugin subdirectories
  gcc-plugins: Automate make rule generation
  gcc-plugins: Add support for passing plugin arguments
  gcc-plugins: abort builds cleanly when not supported
  kbuild: no gcc-plugins during cc-option tests
  drm/edid: Set 8 bpc color depth for displays with "DFP 1.x compliant TMDS".
  drm/i915/dp: Revert "drm/i915/dp: fall back to 18 bpp when sink capability is unknown"
  drm/edid: Add 6 bpc quirk for display AEO model 0.
  vfio/pci: Fix NULL pointer oops in error interrupt setup handling
  x86/power/64: Always create temporary identity mapping correctly
  unsafe_[get|put]_user: change interface to use a error target label
  rbd: destroy header_oloc in rbd_dev_release()
  ceph: fix null pointer dereference in ceph_flush_snaps()
  libceph: using kfree_rcu() to simplify the code
  libceph: make cancel_generic_request() static
  libceph: fix return value check in alloc_msg_with_page_vector()
  printk: Remove unnecessary #ifdef CONFIG_PRINTK
  dell-wmi: Ignore WMI event 0xe00e
  x86/hweight: Don't clobber %rdi
  nvdimm, btt: add a size attribute for BTTs
  libnvdimm, nd_blk: mask off reserved status bits
  powerpc/pasemi: Fix coherent_dma_mask for dma engine
  drm: Paper over locking inversion after registration rework
  drm: rcar-du: Link HDMI encoder with bridge
  thermal: clock_cooling: Fix missing mutex_init()
  thermal: hwmon: EXPORT_SYMBOL_GPL for thermal hwmon sysfs
  thermal: fix race condition when updating cooling device
  thermal/powerclamp: Prevent division by zero when counting interval
  thermal: intel_pch_thermal: Add suspend/resume callback
  m68knommu: fix user a5 register being overwritten
  cpufreq: powernv: Fix crash in gpstate_timer_handler()
  NFSv4: Cap the transport reconnection timer at 1/2 lease period
  NFSv4: Cleanup the setting of the nfs4 lease period
  SUNRPC: Limit the reconnect backoff timer to the max RPC message timeout
  drm/ttm: Wait for a BO to become idle before unbinding it from GTT
  SUNRPC: Fix reconnection timeouts
  NFSv4.2: LAYOUTSTATS may return NFS4ERR_ADMIN/DELEG_REVOKED
  SUNRPC: disable the use of IPv6 temporary addresses.
  SUNRPC: allow for upcalls for same uid but different gss service
  nvme-rdma: Remove unused includes
  nvme-rdma: start async event handler after reconnecting to a controller
  nvmet: Fix controller serial number inconsistency
  nvmet-rdma: Don't use the inline buffer in order to avoid allocation for small reads
  nvmet-rdma: Correctly handle RDMA device hot removal
  drm/i915/fbdev: Check for the framebuffer before use
  nvme-rdma: Make sure to shutdown the controller if we can
  nvme-loop: Remove duplicate call to nvme_remove_namespaces
  nvme-rdma: Free the I/O tags when we delete the controller
  nvme-rdma: Remove duplicate call to nvme_remove_namespaces
  nvme-rdma: Fix device removal handling
  nvme-rdma: Queue ns scanning after a sucessful reconnection
  nvme-rdma: Don't leak uninitialized memory in connect request private data
  Btrfs: remove unused function btrfs_add_delayed_qgroup_reserve()
  Revert "ARM: aspeed: adapt defconfigs for new CONFIG_PRINTK_TIME"
  drm/amdgpu: update golden setting of polaris10
  drm/amdgpu: update golden setting of stoney
  drm/amdgpu: update golden setting of polaris11
  drm/amdgpu: update golden setting of carrizo
  drm/amdgpu: update golden setting of iceland
  ARM: shmobile: don't call platform_can_secondary_boot on UP
  MAINTAINER: alpine: add a mailing list
  ARM: do away with final ARCH_REQUIRE_GPIOLIB
  arm64: dts: Fix RTC by providing rtc_src clock
  SUNRPC: Fix up socket autodisconnect
  lkdtm: Fix targets for objcopy usage
  lkdtm: fix false positive warning from -Wmaybe-uninitialized
  SUNRPC: Handle EADDRNOTAVAIL on connection failures
  drm/amd/amdgpu: change pptable output format from ASCII to binary
  drm/amdgpu/ci: add mullins to default case for smc ucode
  drm/amdgpu/gmc7: add missing mullins case
  clocksource/arm_arch_timer: Force per-CPU interrupt to be level-triggered
  Btrfs: improve performance on fsync against new inode after rename/unlink
  Btrfs: be more precise on errors when getting an inode from disk
  Btrfs: send, don't bug on inconsistent snapshots
  Btrfs: send, avoid incorrect leaf accesses when sending utimes operations
  Btrfs: send, fix invalid leaf accesses due to incorrect utimes operations
  Btrfs: send, fix warning due to late freeing of orphan_dir_info structures
  Btrfs: incremental send, fix premature rmdir operations
  Btrfs: incremental send, fix invalid paths for rename operations
  Btrfs: send, add missing error check for calls to path_loop()
  Btrfs: send, fix failure to move directories with the same name around
  Btrfs: add missing check for writeback errors on fsync
  drm/i915: Never fully mask the the EI up rps interrupt on SNB/IVB
  drm/i915: Wait up to 3ms for the pcu to ack the cdclk change request on SKL
  futex: Assume all mappings are private on !MMU systems
  mm: SLUB hardened usercopy support
  mm: SLAB hardened usercopy support
  s390/uaccess: Enable hardened usercopy
  sparc/uaccess: Enable hardened usercopy
  powerpc/uaccess: Enable hardened usercopy
  ia64/uaccess: Enable hardened usercopy
  arm64/uaccess: Enable hardened usercopy
  ARM: uaccess: Enable hardened usercopy
  x86/uaccess: Enable hardened usercopy
  mm: Hardened usercopy
  mm: Implement stack frame object validation
  mm: Add is_migrate_cma_page

CRs-Fixed: 1046658
Change-Id: I001736e91c50c855133f03b7694ae8cdd2e374be
Signed-off-by: Bruce Levy <blevy@codeaurora.org>

Bruce Levy   commited 2016-08-15 14:42:04 -07:00
a4dfdeccde
Merge remote-tracking branch 'remotes/origin/tmp-ef00624' into msm-4.8_Linaro--llctMerge_2
* remotes/origin/tmp-ef00624:
  ANDROID: configs: merge non-upstream AOSP config fragments
  ANDROID: sdcardfs: get rid of 'parent' argument of ->d_compare()
  ANDROID: sdcardfs: add parent pointer into dentry name hash
  ANDROID: ext4: fix FIDTRIM support
  ANDROID: dm verity fec: include dm-core.h instead of dm.h
  ANDROID: sdcardfs: eliminate the offset argument to ->direct_IO
  ANDROID: sdcardfs: use wrappers to access i_mutex
  ANDROID: usb: gadget: u_ether: fix dev->trans_start removal fallout
  ANDROID: proc: fix depreciated call to get_user_pages in task_mmu
  ANDROID: usb: gadget: fix MTP OS desc support
  usb: gadget: f_accessory: remove duplicate endpoint alloc
  FROMLIST: proc: Add LSM hook checks to /proc/<tid>/timerslack_ns
  FROMLIST: proc: Relax /proc/<tid>/timerslack_ns capability requirements
  cpuset: Add allow_attach hook for cpusets on android.
  ANDROID: sdcardfs: fix itnull.cocci warnings
  android-recommended.cfg: enable fstack-protector-strong
  sdcardfs: Truncate packages_gid.list on overflow
  netfilter: xt_quota2: make quota2_log work well
  ANDROID: base-cfg: enable UID_CPUTIME
  ANDROID: configs: remove unused configs
  ANDROID: cpu: send KOBJ_ONLINE event when enabling cpus
  ANDROID: dm verity fec: initialize recursion level
  ANDROID: dm verity fec: add missing release from fec_ktype
  ANDROID: dm verity fec: limit error correction recursion
  ANDROID: restrict access to perf events
  FROMLIST: security,perf: Allow further restriction of perf_event_open
  ARM64: Ignore Image-dtb from git point of view
  arm64: add option to build Image-dtb
  ANDROID: usb: gadget: f_midi: set fi->f to NULL when free f_midi function
  cpufreq: interactive: drop cpufreq_{get,put}_global_kobject func calls
  xt_qtaguid: Fix panic caused by processing non-full socket.
  fiq_debugger: Add fiq_debugger.disable option
  FROMLIST: wlcore: Disable filtering in AP role
  fiq_debugger: Add option to apply uart overlay by FIQ_DEBUGGER_UART_OVERLAY
  usb: dual-role: make stub functions inline
  quick selinux support for tracefs
  xt_qtaguid: Fix panic caused by synack processing
  fuse: Add support for d_canonical_path
  vfs: change d_canonical_path to take two paths
  netfilter: xt_qtaguid: seq_printf fixes
  ANDROID: base-cfg: enable CONFIG_IP_NF_NAT
  android: base-cfg: enable CONFIG_QUOTA
  ANDROID: mmc: Add CONFIG_MMC_SIMULATE_MAX_SPEED
  android: base-cfg: Add CONFIG_INET_DIAG_DESTROY
  cpufreq: interactive: only apply interactive boost when enabled
  cpufreq: interactive: fix policy locking
  ANDROID: dm verity fec: add sysfs attribute fec/corrected
  ANDROID: android: base-cfg: enable CONFIG_DM_VERITY_FEC
  mm: Export do_munmap
  sdcardfs: remove unneeded __init and __exit
  sdcardfs: Remove unused code
  fs: Export d_absolute_path
  sdcardfs: remove effectless config option
  inotify: Fix erroneous update of bit count
  fs: sdcardfs: Declare LOOKUP_CASE_INSENSITIVE unconditionally
  trace: cpufreq: fix typo in min/max cpufreq
  sdcardfs: Add support for d_canonical_path
  vfs: add d_canonical_path for stacked filesystem support
  sdcardfs: Bring up to date with Android M permissions:
  Changed type-casting in packagelist management
  Port of sdcardfs to 4.4
  Included sdcardfs source code for kernel 3.0
  ANDROID: usb: gadget: Add support for MTP OS desc
  CHROMIUM: usb: gadget: f_accessory: add .raw_request callback
  CHROMIUM: usb: gadget: audio_source: add .free_func callback
  CHROMIUM: usb: gadget: f_mtp: fix usb_ss_ep_comp_descriptor
  CHROMIUM: usb: gadget: f_mtp: Add SuperSpeed support
  usb: u_ether: Add missing rx_work init
  ANDROID: dm-crypt: run in a WQ_HIGHPRI workqueue
  power: Provide dummy log_suspend_abort_reason() if SUSPEND is disabled
  PM / suspend: Add dependency on RTC_LIB
  video: adf: Set ADF_MEMBLOCK to boolean
  video: adf: Fix modular build
  net: ppp: Fix modular build for PPPOLAC and PPPOPNS
  net: pppolac/pppopns: Replace msg.msg_iov with iov_iter_kvec()
  ANDROID: mmc: sdio: Disable retuning in sdio_reset_comm()
  ANDROID: kernel/watchdog: fix unused variable warning
  ANDROID: usb: gadget: f_mtp: don't use le16 for u8 field
  ANDROID: lowmemorykiller: fix declaration order warnings
  ANDROID: net: fix 'const' warnings
  ANDROID: mmc: move to a SCHED_FIFO thread
  android: base-cfg: Add CONFIG_IP_MULTICAST
  android: recommended.cfg: enable taskstats
  ion: fix page pool cache policy
  xt_qtaguid: fix a race condition in if_tag_stat_update
  android: skip building drivers as modules
  usb: gadget: u_ether: use %z format specifier for size_t
  userfaultfd: Add missing vma_merge parameter
  goldfish: pipe: fix platform_no_drv_owner.cocci warnings
  uid_cputime: skip power reporting per uid for now
  cgroup: refactor allow_attach handler for 4.4
  usb: gadget: rndis: fix broken build for 4.4
  usb: gadget: rndis: fix broken data aggregation build
  mm: private anonymous memory build fixes for 4.4
  netfilter: xt_qtaguid/socket: build fixes for 4.4
  net: PPPoPNS and PPPoLAC build fixes for 4.4
  usb: gadget: rndis: use %z format specifier for size_t
  kbuild: Makefile.clean: make Kbuild and Makefile optional
  ANDROID: rtc-palmas: correct for bcd year
  sched: add sched blocked tracepoint which dumps out context of sleep.
  ANDROID: android: base-cfg: disable CONFIG_SYSVIPC
  CHROMIUM: android: fix warning when releasing active sync point
  net: ipv6: fix virtual tunneling build
  Hack: net: PPPoPNS and PPPoLAC build fixes for 4.1
  net: pppopns: pppolac: fix sendmsg function calls
  fiq_debugger: Build fixes for 4.1
  trace: cpufreq: Add tracing for min/max cpufreq
  of: Fix build warnings
  android: configs: base: enable configfs gadget functions
  android: add CONFIG_DEBUG_RODATA to recommended config
  android: configs: remove CONFIG_BATTERY_ANDROID=y
  android: configs: base: enable IPV6
  android: configs: Enable SELinux and its dependencies.
  android: base-cfg: disable ALARM_DEV
  android: base-cfg: turn off /dev/mem and /dev/kmem
  android: base-cfg: enable ARMV8_DEPRECATED and subfeatures
  android: base-cfg: enforce the needed XFRM_MODE_TUNNEL (for VPN)
  android: base-cfg: disable LOGGER
  android: base-cfg: enable DM_VERITY (used for secureboot)
  android: configs: add systrace support to recommended configs
  android: configs: update 3.10 options
  android: configs: Add CONFIG_NETFILTER_XT_TARGET_IDLETIMER
  android: configs: add IPV6 ROUTE INFO
  android: configs: add TIMER_STATS back, helps with sysrq t.
  android: configs: Add HIDRAW to recommended set
  android: configs: require TCPMSS, remove SCHED_TRACER and TIMER_STATS
  android: configs: Reorder config fragments, update README
  android: configs: no MODULES for base, no SIP for recommended
  android: configs: Reorder config fragments
  android: configs: Enable KSM support by default
  android: configs: Add Logitech unifying receivers to recommended
  android: configs: Initial commit of Android config fragments
  wakeup: Add the guard condition for len in pm_get_active_wakeup_sources
  epoll: use freezable blocking call
  Fix for in kernel emergency remount when loop mounts are used
  kbuild: make it possible to specify the module output dir
  ext4: Add support for FIDTRIM, a best-effort ioctl for deep discard trim
  hardlockup: detect hard lockups without NMIs using secondary cpus
  sync: add Documentation/sync.txt
  w1: ds2482: Manage SLPZ pin sleep state
  fuse: Freeze client on suspend when request sent to userspace
  serial_core: Add wake_peer uart operation
  Revert "ARM: Blacklist GCC 4.8.0 to GCC 4.8.2 - PR58854"
  mm: add a field to store names for private anonymous memory
  pstore/ram: Add ramoops_console_write_buf api
  pstore: Update Documentation/android.txt
  arm64: pass return address to dma_common_contiguous_remap
  arm64 Kconfig: Move LIST_POISON to a safe value
  arch: arm64: force -fno-pic
  arm64: process: dump memory around registers when displaying regs
  arm64: check for upper PAGE_SHIFT bits in pfn_valid()
  ARM: fault: assume no context when IRQs are disabled during data abort.
  initramfs: Add skip_initramfs command line option
  of: fix CONFIG_CMDLINE_EXTEND
  ARM64: copy CONFIG_CMDLINE_EXTEND from ARM
  of: Support CONFIG_CMDLINE_EXTEND config option
  ARM: decompressor: Flush tlb before swiching domain 0 to client mode
  ARM64: add option to build Image.gz/dtb combo
  ARM: convert build of appended dtb zImage to list of dtbs
  ARM: add config option to build zImage/dtb combo
  ARM: Fix dtb list when DTB_IMAGE_NAMES is empty
  ARM: Fix "Make low-level printk work" to use a separate config option
  ARM: add option to flush console before reboot
  ARM: Make low-level printk work
  Optionally flush entire dcache from v6_dma_flush_range
  process: Add display of memory around registers when displaying regs.
  staging: ion: Add X86 dependency for ION_POOL_CACHE_POLICY
  ion: Handle the memory mapping correctly on x86
  selinux: Android kernel compatibility with M userspace
  security: Add proper checks for Android specific capability checks
  uid_cputime: Check for the range while removing range of UIDs.
  uid_cputime: Iterates over all the threads instead of processes.
  uid_cputime: fix cputime overflow
  uid_cputime: Avoids double accounting of process stime, utime and cpu_power in task exit.
  uid_cputime: Extends the cputime functionality to report power per uid
  proc: uid_cputime: fix show_uid_stat permission
  proc: uid_cputime: create uids from kuids
  proc: uid: Adds accounting for the cputimes per uid.
  fixup! proc: make oom adjustment files user read-only
  proc: make oom adjustment files user read-only
  proc: smaps: Allow smaps access for CAP_SYS_RESOURCE
  prctl: reset PR_SET_TIMERSLACK_PID value to avoid conflict
  prctl: make PR_SET_TIMERSLACK_PID pid namespace aware
  prctl: fix misplaced PR_SET_TIMERSLACK_PID case
  prctl: adds the capable(CAP_SYS_NICE) check to PR_SET_TIMERSLACK_PID.
  prctl: adds PR_SET_TIMERSLACK_PID for setting timer slack of an arbitrary thread.
  cgroup: fix cgroup_taskset_for_each call in allow_attach() for 4.1
  include: linux: cgroup: Fix compiler warning
  Fix generic cgroup subsystem permission checks
  cgroup: Fix issues in allow_attach callback
  cgroup: memcg: pass correct argument to subsys_cgroup_allow_attach
  cgroup: Add generic cgroup subsystem permission checks
  memcg: add permission check
  cgroup: refactor allow_attach function into common code
  wakeup_reason: use vsnprintf instead of snsprintf for vargs.
  power: wakeup_reason: fix suspend time reporting
  wakeup: Add last wake up source logging for suspend abort reason.
  Power: Report suspend times from last_suspend_time
  power: Remove HAS_WAKELOCK config and document WAKELOCK
  Make suspend abort reason logging depend on CONFIG_PM_SLEEP
  power: Add check_wakeup_reason() to verify wakeup source irq
  power: Adds functionality to log the last suspend abort reason.
  power: Avoids bogus error messages for the suspend aborts.
  power: Add property CHARGE_COUNTER_EXT and 64-bit precision properties
  Power: Changes the permission to read only for sysfs file /sys/kernel/wakeup_reasons/last_resume_reason
  power: wakeup_reason: rename irq_count to irqcount
  Power: Add guard condition for maximum wakeup reasons
  POWER: fix compile warnings in log_wakeup_reason
  Power: add an API to log wakeup reasons
  PM / Suspend: Print wall time at suspend entry and exit
  power: power_supply: add POWER_SUPPLY_PROP_CHARGE_ENABLED
  power: power_supply: add POWER_SUPPLY_PROP_USB_OTG
  power: power_supply: move POWER_SUPPLY_PROP_USB_HC to type 'int' order
  power_supply: Add custom property for USB High Current mode
  trace: power: add trace_clock_set_parent
  trace: fix compilation for 4.1
  trace/events: fix gpu event timestamp formatting
  trace: add non-hierarchical function_graph option
  trace: Add an option to show tgids in trace output
  trace/events: add gpu trace events
  video: adf: build fixes for 4.1
  video: adf: fix memblock build failure
  video: adf: fix wrong bitops in adf_modeinfo_to_fb_videomode()
  video: adf: Cleanup sw_sync timeline at adf_device_destroy
  video: adf: fbdev: add stubs for kernels without ADF_FBDEV
  video: adf: memblock: map buffer for dma
  video: adf: use rb_erase in adf_obj_destroy.
  video: adf: adf_memblock_export symbol should be exported
  video: adf: add buffer padding quirk
  video: adf: document adf_format_validate_yuv's origin
  video: adf: ensure consistent alignment on userspace facing structs
  video: adf: replace fbdev helper's open flag with refcount
  video: adf: export the adf_attachment_allow symbol to modules.
  video: adf: use %zu when printing size_t
  video: adf: fix compat ioctls calling ioctl with wrong cmd
  video: adf: use ADF_IOCTL_TYPE in compat ioctl definitions
  video: adf: define constants for device-custom ioctls
  video: adf: fix fbdev blank -> dpms state mapping
  video: adf: validate dpms state passed to blank
  video: adf: fix ADF_MAX_ATTACHMENTS declaration
  video: adf: remove PAGE_SIZE from userspace-facing header
  video: adf: make device node names less hierarchical
  video: adf: expose adf_modeinfo_set_{name,vrefresh} to drivers
  video: adf: set default interface dpms_state to OFF
  video: adf: make dpms_state sysfs attribute writable
  video: adf: add helpers for validating custom formats
  video: adf: add informational flags to interfaces
  video: adf: add fbdev compatibility helper
  video: adf: add supported formats to adf_overlay_engine_data
  video: adf: support "simple" buffers
  video: adf: add memblock helper
  video: add atomic display framework
  subsystem: CPU FREQUENCY DRIVERS- Set cpu_load calculation on current frequency
  cpufreq: interactive: replace strict_strtoul() with kstrtoul()
  cpufreq: interactive: Rearm governor timer at max freq
  cpufreq: interactive: Implement cluster-based min_sample_time
  cpufreq: interactive: Exercise hispeed settings at a policy level
  cpufreq: interactive: Round up timer_rate to match jiffy
  cpufreq: interactive: Don't set floor_validate_time during boost
  cpufreq: interactive: Put global cpufreq kobject on failure
  cpufreq: interactive: only boost tunable affected cpus
  cpufreq: interactive: don't skip waking up speedchange_task if target_freq > policy->cur
  cpufreq: interactive: make common_tunables static
  cpufreq: interactive: prevents the frequency to directly raise above the hispeed_freq from a lower frequency.
  cpufreq: interactive: remove compilation error from commit 49cc72365fb7ee87762a7ccc6a32ef68627216c5
  cpufreq: interactive: turn boost_pulse off on boost off
  cpufreq: interactive: restructure CPUFREQ_GOV_LIMITS
  cpufreq: interactive: hold reference on global cpufreq kobject if needed
  cpufreq: interactive: Use generic get_cpu_idle_time() from cpufreq.c
  cpufreq: interactive: fix NULL pointer dereference at sysfs ops
  cpufreq: interactive: fix compiling warnings
  cpufreq: interactive: delete timers for GOV_START
  cpufreq: Interactive: Implement per policy instances of governor
  cpufreq: interactive: Move definition of cpufreq_gov_interactive downwards
  cpufreq: interactive: Remove unnecessary cpu_online() check
  cpufreq: interactive: fix show_target_loads and show_above_hispeed_delay
  cpufreq: interactive: resched timer if max freq raised
  cpufreq: interactive: fix race on cpufreq TRANSITION notifier
  cpufreq: interactive: avoid underflow on active time calculation
  cpufreq: interactive: reduce chance of zero time delta on load eval
  cpufreq: interactive: handle errors from cpufreq_frequency_table_target
  cpufreq: interactive: fix uninitialized spinlock
  cpufreq: interactive: base above_hispeed_delay on target freq, not current
  cpufreq: interactive: fix crash on error paths in get_tokenized_data
  cpufreq: interactive: add io_is_busy interface
  cpufreq: interactive: allow arbitrary speed / delay mappings
  cpufreq: interactive: fix race on governor start/stop
  cpufreq: interactive: fix deadlock on spinlock in timer
  cpufreq: interactive: don't handle transition notification if not enabled
  cpufreq: interactive: init default values at compile time
  cpufreq: interactive: default go_hispeed_load 99%, doc updates
  cpufreq: interactive: fix race on timer restart on governor start
  cpufreq: interactive: fix racy timer stopping
  cpufreq: interactive: fix boosting logic
  cpufreq: interactive: add timer slack to limit idle at speed > min
  cpufreq: interactive: specify duration of CPU speed boost pulse
  cpufreq: interactive: adjust load for changes in speed
  cpufreq: interactive: remove load since last speed change
  cpufreq: interactive: allow arbitrary speed / target load mappings
  cpufreq: interactive: apply above_hispeed_delay to each step above hispeed
  cpufreq: interactive: change speed according to current speed and target load
  cpufreq: interactive: trace actual speed in target speed decisions
  cpufreq: interactive: kick timer on idle exit past expiry
  cpufreq: interactive: use deferrable timer by default
  cpufreq: interactive: pin timers to associated CPU
  cpufreq: interactive: run at fraction of hispeed_freq when load is low
  cpufreq: interactive: always limit initial speed bump to hispeed
  cpufreq: interactive: remove input_boost handling
  cpufreq: interactive: handle speed up and down in the realtime task
  cpufreq: interactive: keep freezer happy when not current governor
  cpufreq: interactive: take idle notifications only when active
  cpufreq: interactive: fixup trace of string params
  cpufreq: interactive: restart above_hispeed_delay at each hispeed load
  cpufreq-interactive: Compile fixup
  cpufreq: interactive: add boost pulse interface
  cpufreq: interactive: set floor for boosted speed
  cpufreq: interactive: Add sysfs boost interface for hints from userspace
  cpufreq: interactive: remove unused target_validate_time_in_idle
  cpufreq: interactive: Boost frequency on touchscreen input
  cpufreq: interactive: Separate speed target revalidate time and initial set time
  cpufreq: interactive: base hispeed bump on target freq, not actual
  cpufreq: interactive: adjust code and documentation to match
  cpufreq: interactive: configurable delay before raising above hispeed
  cpufreq: interactive: don't drop speed if recently at higher load
  cpufreq: interactive: set at least hispeed when above hispeed load
  cpufreq: interactive: apply intermediate load to max speed not current
  cpufreq interactive governor: event tracing
  cpufreq: interactive: New 'interactive' governor
  ARM: Call idle notifiers
  Move x86_64 idle notifiers to generic
  cpuidle: governor: menu: don't use loadavg
  sched: Enable might_sleep before initializing drivers.
  fiq_debugger: Add fiq_watchdog_triggered api
  fiq_debugger: Call fiq_debugger_printf through a function pointer from cpu specific code
  fiq_debugger: add ARM64 support
  fiq_debugger: split arm support into fiq_debugger_arm.c
  fiq_debugger: use pt_regs for registers
  fiq_debugger: allow compiling without CONFIG_FIQ_GLUE
  fiq_debugger: rename debug->fiq_debugger
  fiq_debugger: move into drivers/staging/android/fiq_debugger/
  ARM: fiq_glue: Add custom fiq return handler api.
  ARM: kgdb: ignore breakpoint instructions from user mode
  ARM: fiq_debugger: Update tty code for 3.9
  ARM: fiq_debugger: Use kmsg_dumper to dump kernel logs
  ARM: fiq_debugger: Fix to compile on 3.7
  ARM: fiq_debugger: fix uninitialised spin_lock.
  ARM: fiq_debugger: lock between tty and console writes
  ARM: fiq_debugger: add process context reboot command
  ARM: fiq_debugger: fix multiple consoles and make it a preferred console
  kdb: support new lines without carriage returns
  ARM: fiq_debugger: add support for kgdb
  ARM: fiq_debugger: add debug_putc
  ARM: fiq_debugger: add support for reboot commands
  ARM: fiq_debugger: fix compiling for v3.3
  ARM: Add generic fiq serial debugger
  ARM: Add fiq_glue
  fix false disconnect due to a signal sent to the reading process
  usb: gadget: cleanup: fix unused variable and function warnings
  usb: gadget: build audio_source function only if SND is enabled
  usb: gadget: configfs: handle gadget reset request for android
  ANDROID: usb: gadget: create F_midi device
  usb: gadget: Add device attribute to determine gadget state
  usb: phy: fix dual role sysfs build if kernel modules are supported
  usb: phy: Dual role sysfs class definition
  usb: gadget: fix NULL ptr derefer while symlinking PTP func
  usb:gadget:Add "state" attribute to android_device
  usb: gadget: Do not disconnect unregistered dev
  usb: gadget: Relocate f_accessory
  usb: gadget: Accessory:Migrate to USB_FUNCTION API
  usb: gadget: Move gadget functions code
  usb:gadget:audio_source: Move to USB_FUNCTION API
  usb: gadget: Add function devices to the parent
  usb: gadget: f_audio_source:replace deprecated API
  usb: gadget: check for accessory device before disconnecting HIDs
  usb: u_ether: Fix compile errors
  usb: gadget: Add Uevent to notify userspace
  usb: gadget: configfs: Add usb_function ptr to fi struct
  usb: gadget: mtp/ptp: Migrate functions to the USB_FUNCTION interface
  USB: gadget: rndis: Add module parameter for DL max packets per xfer
  ndis: Add debug support to disable RNDIS Multipacket Feature
  RNDIS: Add Data aggregation (multi packet) support
  USB: gadget: u_ether: Fix data stall issue in RNDIS tethering mode
  usb: u_ether: Add workqueue as bottom half handler for rx data path
  usb: Add support for rndis uplink aggregation
  USB: rndis: Free the rndis response queue during REMOTE_NDIS_RESET_MSG
  usb: gadget: f_audio_source: Fixed USB Audio Class Interface Descriptor
  usb: gadget: f_audio_source: change max ISO packet size
  usb: gadget: f_accessory: Enabled Zero Length Packet (ZLP) for acc_write
  drivers: usb: gadget: 64-bit related type fixes
  usb: gadget: f_accessory: move userspace interface to uapi
  usb: gadget: f_mtp: move userspace interface to uapi
  USB: remove duplicate out endpoint creation in MTP mode
  usb: gadget: Fix android gadget driver build
  usb: gadget: android: Fixes and hacks to make android usb gadget compile on 3.8
  usb: otg: otg-wakelock: Fix build for 3.7
  usb: gadget: accessory: Fix section mismatch (again)
  USB: gadget: f_audio_source: New gadget driver for audio output
  USB: gadget: f_accessory: Add support for HID input devices
  USB: gadget: Add ACCESSORY_SET_AUDIO_MODE control request and ioctl
  usb: gadget: accessory: Fix section mismatch
  usb: otg: otg-wakelock: Fix build for 3.4
  usb: gadget: adb: Only enable the gadget when adbd is ready
  usb: gadget: adb: do not set error flag when dequeuing req
  usb: gadget: adb: allow freezing in adb_read
  usb: gadget: accessory: Add Android Accessory function
  usb: gadget: adb: Add ADB function
  usb: gadget: mtp: Add MTP/PTP function
  usb: otg: otg-wakelock: fix build for 3.3
  usb: otg: Temporarily grab wakelock on charger and disconnect events
  USB: OTG: Take wakelock when VBUS present
  wlan: Add get_wake_irq functionality
  Add flags parameter to get_country_code template
  net: core: Handle 'sk' being NULL in UID-based routing
  net: core: Support UID-based routing.
  tcp: fix tcp_default_init_rwnd() for 4.1
  net: support marking accepting TCP sockets
  tcp: add a sysctl to config the tcp_default_init_rwnd
  netfilter: xt_qtaguid: xt_socket: build fixes
  net: xt_qtaguid/xt_socket: fix refcount underflow and crash
  xt_qtaguid: use sock_gen_put() instead of xt_socket_put_sk()
  xt_qtaguid: Use sk_callback_lock read locks before reading sk->sk_socket
  xt_qtaguid: fix broken uid/gid range check
  netfilter: Build fixups - kuid/kguid changes & xt_socket_get/put_sk
  net: PPPoPNS: Remove length argument from data_ready
  net: ipv6: fix build failure if IPV6_ROUTE_INFO config is enabled
  nf: IDLETIMER: Fix broken uid field in the msg
  nf: IDLETIMER: Adds the uid field in the msg
  net: wireless: Decrease scan entry expiration to avoid stall results
  netfilter: fix seq_printf type mismatch warning
  net: ipv6: autoconf routes into per-device tables
  nf: Remove compilation error caused by e8430cbed3ef15fdb1ac26cfd020e010aa5f1c35
  nf: IDLETIMER: time-stamp and suspend/resume handling.
  xt_qtaguid: Fix boot panic
  net: kuid/kguid build fixes
  netfilter: xt_qtaguid: 64-bit warning fixes
  netfilter: xt_qtaguid: fix memory leak in seq_file handlers
  net: move PPPoLAC and PPPoPNS headers to uapi
  netfilter: xt_qtaguid: fix bad tcp_time_wait sock handling
  netfilter: xt_qtaguid: 3.10 fixes
  netfilter: xt_quota2: 3.10 fixes.
  netfilter: qtaguid: rate limit some of the printks
  netfilter: xt_qtaguid: Allow tracking loopback
  netfilter: xt_qtaguid: extend iface stat to report protocols
  netfilter: xt_qtaguid: remove AID_* dependency for access control
  netfilter: qtaguid: Don't BUG_ON if create_if_tag_stat fails
  netfilter: xt_qtaguid: fix error exit that would keep a spinlock.
  netfilter: xt_qtaguid: report only uid tags to non-privileged processes
  netfilter: xt_qtaguid: start tracking iface rx/tx at low level
  netfilter: xt_IDLETIMER: Add new netlink msg type
  Include if_pppolac.h and if_pppopns.h into header-y target
  netfilter: xt_qtaguid: fix ipv6 protocol lookup
  netfilter: qtaguid: initialize a local var to keep compiler happy.
  net: Only NET_ADMIN is allowed to fully control TUN interfaces.
  bridge: Have tx_bytes count headers like rx_bytes.
  netfilter: ipv6: fix crash caused by ipv6_find_hdr()
  netfilter: fixup the quota2, and enable.
  netfilter: adding the original quota2 from xtables-addons
  netfilter: add xt_qtaguid matching module
  net: wireless: Add get_country_code functionality to platform
  network: wireless: Add get_mac_addr functionality to platform
  net: PPPoPNS and PPPoLAC update to use PPP_MRU instead of PPP_MRU
  net: Reorder incoming packets in PPPoLAC and PPPoPNS.
  wlan: Create generic wlan platform data header
  rfkill: Introduce CONFIG_RFKILL_PM and use instead of CONFIG_PM to power down
  net: Replace AID_NET_RAW checks with capable(CAP_NET_RAW).
  security: Add AID_NET_RAW and AID_NET_ADMIN capability check in cap_capable().
  net: PPPoPNS and PPPoLAC fixes.
  net: add PPP on PPTP Network Server (PPPoPNS) driver.
  net: add PPP on L2TP Access Concentrator (PPPoLAC) driver.
  sysfs_net_ipv4: Add sysfs-based knobs for controlling TCP window size
  Paranoid network.
  Add android_aid.h
  block: genhd: Add disk/partition specific uevent callbacks for partition info
  fs: block_dump: Don't display inode changes if block_dump < 2
  mmc: core: Remove stray CONFIG_EXPERIMENTAL dependencies
  mmc: sdio: Fix sdio_reset_comm for sync
  mmc: sdio: fix sdio_reset_comm() voltage selection
  mmc: Add "ignore mmc pm notify" functionality
  mmc: sdio: Fix enable_hs and enable_wide in sdio_reset_comm()
  mmc: sdio: Add high speed support to sdio_reset_comm()
  mmc: sdio: Claim host in sdio_reset_comm()
  mmc: sd: Add retries in re-detection
  mmc: sd: When resuming, try a little harder to init the card
  mmc: Add new API call 'sdio_reset_comm' for resetting communication with an SDIO device
  mmc: Add sdio_readb_ext() function
  mmc: Add concept of an 'embedded' SDIO device.
  mmc: sd: Add new CONFIG_MMC_PARANOID_SD_INIT for enabling retries during SD detection
  mtd: nand: Allow NAND chip ids to be included standalone.
  gpio_input: convert from wakelocks to wakeup sources
  input: Made keyreset more robust
  input: Changed keyreset to act as a wrapper for keycombo.
  input: add keycombo, a general key combo driver.
  input: misc: keychord: move header to uapi
  input: misc: keychord: log when keychord triggered
  input: keychord: Add keychord driver
  input: Add keyreset driver.
  input: misc: gpio_event: remove early suspend
  Input: Generic GPIO Input device.
  lowmemorykiller: use module_param_cb instead of __module_param_call
  lowmemorykiller: trace kill events.
  staging: android: lowmemorykiller: Add config option to support oom_adj values
  Shrink ashmem directly through shmem_fallocate
  ashmem: Add shmem_set_file to mm/shmem.c
  PM / Sleep: Add wake lock api wrapper on top of wakeup sources
  android: Add android config documentation to boot framework.

CRs-Fixed: 1046658
Change-Id: I02df527deb1310bfee468bc8e3b7b9c6a7ffe793
Signed-off-by: Bruce Levy <blevy@codeaurora.org>

Bruce Levy   commited 2016-08-15 12:51:03 -07:00
a70e20b973
get_maintainer: Don't check if STDIN exists in a VCS repository
If get_maintainer is not given any filename arguments on the command line,
the standard input is read for a patch.

But checking if a VCS has a file named &STDIN is not a good idea and fails.

Verify the nominal input file is not &STDIN before checking the VCS.

Fixes: 4cad35a7ca ("get_maintainer.pl: reduce need for command-line option -f")
Reported-by: Christopher Covington <cov@codeaurora.org>
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Joe Perches   authored and   Linus Torvalds   commited 2016-08-10 10:42:00 -07:00
aec742e8e1
gcc-plugins: Add support for plugin subdirectories
This adds support for building more complex gcc plugins that live in a
subdirectory instead of just in a single source file.

Reported-by: PaX Team <pageexec@freemail.hu>
Signed-off-by: Emese Revfy <re.emese@gmail.com>
[kees: clarified commit message]
Signed-off-by: Kees Cook <keescook@chromium.org>

Emese Revfy   authored and   Kees Cook   commited 2016-08-08 17:53:05 -07:00
caefd8c9a9
gcc-plugins: Automate make rule generation
There's no reason to repeat the same names in the Makefile when the .so
files have already been listed. The .o list can be generated from them.

Reported-by: PaX Team <pageexec@freemail.hu>
Signed-off-by: Emese Revfy <re.emese@gmail.com>
[kees: clarified commit message]
Signed-off-by: Kees Cook <keescook@chromium.org>

Emese Revfy   authored and   Kees Cook   commited 2016-08-08 17:52:20 -07:00
7040c83bfb
gcc-plugins: Add support for passing plugin arguments
The latent_entropy plugin needs to pass arguments, so this adds the
support.

Signed-off-by: Emese Revfy <re.emese@gmail.com>
Signed-off-by: Kees Cook <keescook@chromium.org>

Emese Revfy   authored and   Kees Cook   commited 2016-08-08 17:49:05 -07:00
65d59ec8ad
gcc-plugins: abort builds cleanly when not supported
When the compiler doesn't support gcc plugins (either due to missing
headers or too old a version), report the problem and abort the build
instead of emitting a warning and letting the build founder with arcane
compiler errors.

Signed-off-by: Kees Cook <keescook@chromium.org>

Kees Cook   commited 2016-08-08 17:49:05 -07:00
ed58c0e9ee
kbuild: no gcc-plugins during cc-option tests
The gcc-plugins arguments should not be included when performing
cc-option tests.

Steps to reproduce:
1) make mrproper
2) make defconfig
3) enable GCC_PLUGINS, GCC_PLUGIN_CYC_COMPLEXITY
4) enable FUNCTION_TRACER (it will select other options as well)
5) make && make modules

Build errors:
MODPOST 18 modules
ERROR: "__fentry__" [net/netfilter/xt_nat.ko] undefined!
ERROR: "__fentry__" [net/netfilter/xt_mark.ko] undefined!
ERROR: "__fentry__" [net/netfilter/xt_addrtype.ko] undefined!
ERROR: "__fentry__" [net/netfilter/xt_LOG.ko] undefined!
ERROR: "__fentry__" [net/netfilter/nf_nat_sip.ko] undefined!
ERROR: "__fentry__" [net/netfilter/nf_nat_irc.ko] undefined!
ERROR: "__fentry__" [net/netfilter/nf_nat_ftp.ko] undefined!
ERROR: "__fentry__" [net/netfilter/nf_nat.ko] undefined!

Reported-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Emese Revfy <re.emese@gmail.com>
[kees: renamed variable, clarified commit message]
Signed-off-by: Kees Cook <keescook@chromium.org>

Emese Revfy   authored and   Kees Cook   commited 2016-08-08 17:49:05 -07:00
d26e941492
checkpatch: Excuse reverts from "summary line over 75 characters" check
Rather than forcing authors of reverts to truncate the summary line
because the "Revert" prefix added pushes it over the character limit,
excuse reverts from this rule.

Change-Id: I395dfff3327e360ef935d4a685c38df6577e3867
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Matt Wagantall   authored and   Trilok Soni   commited 2016-08-08 15:23:12 -07:00
e324fc92da
checkpatch: recognize only specific tags when ending commit text
There are some very frequently used tags that checkpatch can look
for as an ending to the commit text rather than using a pattern,
which can generate false positives in the "no commit text" rule.

Change-Id: I5b4400017b8273bcd9f5a59b3e28965c0062bef4
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Steve Muckle   authored and   Trilok Soni   commited 2016-08-08 15:22:58 -07:00
d360fe429e
checkpatch: require commit text
Commit text is almost always necessary to explain why a change is
needed. Exceptions are rare enough that these can be granted through
manual checkpatch overrides.

Change-Id: I926b2276f717940c2fec77a6709fa3088b1bf0c3
Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Steve Muckle   authored and   Trilok Soni   commited 2016-08-08 15:22:57 -07:00
9ed561dff1
Don't complain about MIME headers.
When patches contain extended character sets, patches will contain
MIME headers after the subject line, which should not be confused
for a too-long summary line.

Signed-off-by: Gregory Bean <gbean@codeaurora.org>
(cherry picked from commit 8e6b9d3790595198a34320f1c3f4504cd258fed1)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Gregory Bean   authored and   Trilok Soni   commited 2016-08-08 15:22:56 -07:00
a386ec2549
checkpatch: warn on subject line not followed by blank line
Fixed case when no warning generated for long subject line that is
wrapped to more than one line, and all lines are less than line limit.

New warning message added:
"non-blank line after summary line"
Now there are two warnings possible for the subject line, the original
line over limit and the new one. Depending on the error(s) any
combination of the two warnings are possible.

Commit text requirements now:
1) Must be less than 75 characters
2) Must be followed by blank line.

Signed-off-by: David Keitel <dkeitel@codeaurora.org>

David Keitel   authored and   Trilok Soni   commited 2016-08-08 15:22:54 -07:00
e288d23fe7
checkpatch: warn on long summary, commit text lines
Warn on summary or commit text lines greater than 75 characters.
The summary and commit text are indented and may wrap on a terminal
if they are longer than 75 characters.

Signed-off-by: David Keitel <dkeitel@codeaurora.org>

David Keitel   authored and   Trilok Soni   commited 2016-08-08 15:22:54 -07:00
72bf3e80aa
checkpatch: Add exceptions for "dsb" keyword usage
Currently checkpatch.pl throws error for any use of "dsb"
keyword.  Add exceptions when it is used in a variable or a
function name.  Expectations are when 'dsb' keyword is used in a
variable or a function name, it is prefixed with class [-_>*\.]
and/or suffixed with class [-_\.;].

Change-Id: I06cd21e42135334bb41cf31f13088b118fcf3ac9
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>

Sarangdhar Joshi   authored and   Trilok Soni   commited 2016-08-08 15:22:52 -07:00
bbeebd5f3b
checkpatch: add support for --noauthor
Commit "scripts: checkpatch.pl: warn on invalid credentials" added
to checkpatch.pl logic to unconditionally check for invalid author
credentials.  Add a flag to allow override of this behavior.

Change-Id: Ib254cc6f73c4de857ba923e6170750262cde01ad
Signed-off-by: Jeff Johnson <jjohnson@codeaurora.org>

Jeff Johnson   authored and   Trilok Soni   commited 2016-08-08 15:22:52 -07:00
db9dbec2cc
scripts: checkpatch.pl: warn on invalid credentials
@quicinc.com identities are not allowed.  Check the "From:" field in the
patch, equivalent to the author in the git commit, and the Signed-off-by
field.

Signed-off-by: Bryan Huntsman <bryanh@codeaurora.org>
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
[imaund@codeaurora.org: Resolved context conflicts]
Signed-off-by: Ian Maund <imaund@codeaurora.org>

Bryan Huntsman   authored and   Trilok Soni   commited 2016-08-08 15:22:51 -07:00
b000c789af
checkpatch: complain about the use of dsb().
Now that mb() does what we want, dsb() should be discouraged.

Change-Id: Ib8fe8f44f669753c3d91fac3c6e598e117d6d90e
Signed-off-by: Gregory Bean <gbean@codeaurora.org>
(cherry picked from commit 9c0619be7b93ad114d6f33a749d905ddff93df7d)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Gregory Bean   authored and   Trilok Soni   commited 2016-08-08 15:22:50 -07:00
438bf5f323
checkpatch: close filp_open loophole.
filp_open allows people to get around the ban on sys_open.
Close the loophole.

Change-Id: I6e2be62e848cbc064e07008d0886c0d003c8be4b
Signed-off-by: Gregory Bean <gbean@codeaurora.org>
(cherry picked from commit bb181a18a813a70176f71a0c64aa572fcfbef0f0)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Gregory Bean   authored and   Trilok Soni   commited 2016-08-08 15:22:49 -07:00
a7cce0abb9
checkpatch: Handle long multi-line macros better.
Improve parsing of multiline macros which run beyond the available
diff context.  These beyond-the-horizon macros previously caused
two distinct naughty behaviors:
  - The scanner, confused by the trailing backslash, would grab
    the header of the next context hunk and treat it as the last
    line of the preceding macro.
  - The analyzer, unable to fully reduce the macro, would blame
    the patch for submitting an unbalanced or unprotected macro.

Change-Id: I6b7dd3d577c524d30b59dff7b20393bb5135f16d
Signed-off-by: Gregory Bean <gbean@codeaurora.org>
(cherry picked from commit ddd028c47b4d91aa9c0e97445eb584b2de367769)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Gregory Bean   authored and   Trilok Soni   commited 2016-08-08 15:22:47 -07:00
02870bec73
checkpatch: deprecate unbounded string functions.
Unbounded string functions are overflow risks.  The 'n'
versions of those functions should be used instead.

Change-Id: Ice0fb3ebdae9aa88cc7e764ffdf68cbed857febf
Signed-off-by: Gregory Bean <gbean@codeaurora.org>
(cherry picked from commit 15e1e97d66dd6a6039c1ec2bd549a632fe361128)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Gregory Bean   authored and   Trilok Soni   commited 2016-08-08 15:22:46 -07:00
df3a3eea26
checkpatch: forbid implied-barrier I/O functions.
Forbid read[bwl], write[bwl], in[bwl], and out[bwl], as they
contain a 'stealth barrier' which can harm performance.
Developers are expected to call appropriate __raw_* or *_relaxed
APIs and manage barriers explicitly.

Change-Id: Ie4da221c91a0505917199db9e2fdb704c3e47d44
Signed-off-by: Gregory Bean <gbean@codeaurora.org>
(cherry picked from commit 032fd4ba09e195d9913c08f460130da9905936ef)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Gregory Bean   authored and   Trilok Soni   commited 2016-08-08 15:22:46 -07:00
3f6f2dd2b3
checkpatch: Merge continuation-header handling from .38.
This commit is a cherry pick and squash of commits:
85c2ee62d37c19456c6dc83db262123956f010ac
4bc7c6001daba7d4037f54f67bae7fa90f759402

  checkpatch: Handle continuation headers.

  Continuation headers baffle checkpatch, as it can only operate
  on one line of context at a time.  When continuation headers are found,
  put them up with the header they're continuing so the whole thing
  can be parsed in a single line of context.

  checkpatch: Don't treat diffs as patches.

  The patch-header cleanup code assumed that it would only ever
  see patches, which was of course hogwash.  This lead to crazy
  results as it tried to wrap what it thought were continuation
  lines at the beginnings of raw diffs.

Signed-off-by: Gregory Bean <gbean@codeaurora.org>
(cherry picked from commit 57d50ae730a057ee1099a94a397475bfd147d97b)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Gregory Bean   authored and   Trilok Soni   commited 2016-08-08 15:22:45 -07:00
f07523e28a
checkpatch: forbid filesystem accesses from within the kernel.
Use of the sys_open/close/read/write system calls from within
kernel code is inappropriate, and now triggers errors.

Change-Id: I98e20513c257d0664684b7144585853f617d771a
Signed-off-by: Gregory Bean <gbean@codeaurora.org>
(cherry picked from commit ee62f2afcac1bcb180b2f0dddf2c8f5cda54bc5b)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
[abhimany: resolve trivial merge conflicts]
Signed-off-by: Abhimanyu Kapur <abhimany@codeaurora.org>

Gregory Bean   authored and   Trilok Soni   commited 2016-08-08 15:22:43 -07:00
6c9c6845f3
Checkpatch: Print location when catching return code error
Display context so users can see where there error was

OLD:
	ERROR: illegal return value, please use an error code

NEW:
	ERROR: illegal return value, please use an error code
	#152: test.c:5:
	+	return -1;

Change-Id: I098004d9a5dbeb6c39b35b84ac94fd7a861849d7
Signed-off-by: Patrick Pannuto <ppannuto@codeaurora.org>
(cherry picked from commit 8d09803de5d629f3ebc9cb357a40b5937a5d171e)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Patrick Pannuto   authored and   Trilok Soni   commited 2016-08-08 15:22:43 -07:00
e50031c2ed
checkpatch: Check for illegal return codes
The only legal integer return is 0, anything else
following "return" should be -ERRCODE or a function.

http://lkml.org/lkml/2010/7/23/318
  There's lots of "return -1;" statements in this patch - it's obscene
  that this is used to indicate "some error occurred" in kernel space
  rather than a real errno value - even when an existing function
  (eg, request_irq) gave you an error code already.

  Please note this for the future - and please review patches on this
  point internally first.

Change-Id: I16268b2ee034f0b3b899115e45c28acfa734ddec
Signed-off-by: Patrick Pannuto <ppannuto@codeaurora.org>
(cherry picked from commit 39531a47164294315b5a7256b520fe22d6e87013)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Patrick Pannuto   authored and   Trilok Soni   commited 2016-08-08 15:22:42 -07:00
f370e25d74
checkpatch: remove column limit for checkpatch patches
Currently checkpatch is enforcing an 80 character column
limit. This should not be applied for patches modifying
checkpatch.

Change-Id: I8e8935e633d79a7ee535ce6a90e54447a22d9a91
Signed-off-by: Israel Schlesinger <israels@codeaurora.org>
(cherry picked from commit 4aa1b864119e2d0e49efefcd6dba7349f13c3939)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Israel Schlesinger   authored and   Trilok Soni   commited 2016-08-08 15:22:41 -07:00
c595579423
checkpatch: Add warnings for use of mdelay()
Signed-off-by: Israel Schlesinger <israels@codeaurora.org>
(cherry picked from commit 084af58596758be6e51ef060aefa2cd622dc9205)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Israel Schlesinger   authored and   Trilok Soni   commited 2016-08-08 15:22:40 -07:00
5f8c9a23ef
checkpatch: Exceptions for CLK_* macros and some spaces in macros
Add CLK_* macros used in MSM clock drivers to the list of exceptions
for the "Macros with complex values should be enclosed in parenthesis"
test.

Also, allow spaces following open branckets for macros where the
macro is the first token on the line, the space preceds a decimal
number, and the line ends with ")," or ")". Such arrangements can
be useful for aligning numerical columns of tables when the rows
are described by macros.

Change-Id: I7701119ada2ea8fd646e5448eae51786bbf1e8fa
Signed-off-by: Matt Wagantall <mattw@codeaurora.org>
(cherry picked from commit ed6d6ed1c6b8f6016ea5676d075331e31b7ac1f8)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Matt Wagantall   authored and   Trilok Soni   commited 2016-08-08 15:22:38 -07:00
54afcc6dce
checkpatch: check for #if 0/#if 1
Warn if #if 1 or #if 0 is present.

Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
(cherry picked from commit a81f92c9abe442ad5b00e8df31172f145a14af3f)
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>

Abhijeet Dharmapurikar   authored and   Trilok Soni   commited 2016-08-08 15:22:37 -07:00
800a313a5c
scripts: snapshot of kernel build utility scripts
This is a snapshot of build scripts taken as of msm-4.4 commit
<400520a6e2f06cc> ("ASoC: msm: qdsp6v2: Fix FE id check in routing
driver").

CRs-Fixed: 1040265
Change-Id: If5774f946d41f2c15503a6641938412c5d3aefb3
Signed-off-by: Channagoud Kadabi <ckadabi@codeaurora.org>

Channagoud Kadabi   authored and   Trilok Soni   commited 2016-08-08 15:22:37 -07:00
1a82c2bc02
kbuild: Makefile.clean: make Kbuild and Makefile optional
AOSP commit b13ce9f4aa6f "ARM64: add option to build
Image.gz/dtb combo" broke archclean / mrproper build
targets and we run into:
----------
./scripts/Makefile.clean:14: arch/arm64/boot/amd/Makefile: No such file or directory
make[2]: *** No rule to make target `arch/arm64/boot/amd/Makefile'.  Stop.
make[1]: *** [arch/arm64/boot/amd] Error 2
make: *** [archclean] Error 2
----------

This patch skip the missing Kbuild/Makefile reporting
error. It does the job (i.e cleanup dts/*/*.dtb and
do not spit out missing file error messages as well).

Signed-off-by: Amit Pundir <amit.pundir@linaro.org>

Amit Pundir   commited 2016-08-08 12:02:17 +05:30
cb1e049d52
kbuild: make it possible to specify the module output dir
Make modinst_dir user-defined on the command line.

This allows to do things like:
make MODLIB=output/ modinst_dir=. modules_install

to ensure all the .ko are in the output/ directory.

Change-Id: I2bc007eea27ee744d35289e26e4a8ac43ba04151
Signed-off-by: Rom Lemarchand <romlem@android.com>

Rom Lemarchand   authored and   Amit Pundir   commited 2016-08-08 12:02:17 +05:30
8c49b6109c
ARM: convert build of appended dtb zImage to list of dtbs
Allow CONFIG_BUILD_ARM_APPENDED_DTB_IMAGE_NAMES to specify
a space separated list of dtbs to append to the zImage,
and name the resulting file zImage-dtb

Change-Id: Ied5d0bafbd1d01fc1f109c15c4283de7029903c9
Signed-off-by: Colin Cross <ccross@android.com>

Colin Cross   authored and   Amit Pundir   commited 2016-08-08 12:02:17 +05:30
4313d4ebfb
A few updates and fixes:
. Move the suppressing of the __builtin_return_address >0 warning to the
    tracing directory only.
 
  . metag recordmcount fix for newer glibc's
 
  . Two tracing histogram fixes that were reported by KASAN
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQEcBAABAgAGBQJXofc2AAoJEKKk/i67LK/8f7YIAI7YkUnzA7VZ/FmbgD+fu3MI
 XmLLb98dzEOEHKEUrmv/9TSj/W6cTVfgVH2z/U89J6nbPj56GgMf03qL1wn9l/6s
 kwxEt5GopmKwCdtnjGkLYZcg13OWottzmFoyn/koKCXFq7PwfGQdLzhwIQUpsXgG
 MxOk1Iv9TbACzz4k5aG866yhJu6cWDRSdC3cfv7F4xn+Z3GWggzCpW7fknXy66cJ
 iVsdUGZVz5O5jVJAFqzERZHBJQpraozjkKr3lprCdHuXa/EEAYQuuYG5WBxggYaQ
 eJ1my2p5MKkxORz1Nk9cGuFa6DW35spn9+iOOyTt6sRU/8tijGxTPLNWtKfJcVQ=
 =fbRU
 -----END PGP SIGNATURE-----

Merge tag 'trace-v4.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace

Pull tracing fixes from Steven Rostedt:
 "A few updates and fixes:

   - move the suppressing of the __builtin_return_address >0 warning to
     the tracing directory only.

   - metag recordmcount fix for newer glibc's

   - two tracing histogram fixes that were reported by KASAN"

* tag 'trace-v4.8-1' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace:
  tracing: Fix use-after-free in hist_register_trigger()
  tracing: Fix use-after-free in hist_unreg_all/hist_enable_unreg_all
  Makefile: Mute warning for __builtin_return_address(>0) for tracing only
  ftrace/recordmcount: Work around for addition of metag magic but not relocations

Linus Torvalds   commited 2016-08-03 12:50:06 -04:00
bf0f500bd0
Merge branch 'akpm' (patches from Andrew)
Merge yet more updates from Andrew Morton:

 - the rest of ocfs2

 - various hotfixes, mainly MM

 - quite a bit of misc stuff - drivers, fork, exec, signals, etc.

 - printk updates

 - firmware

 - checkpatch

 - nilfs2

 - more kexec stuff than usual

 - rapidio updates

 - w1 things

* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (111 commits)
  ipc: delete "nr_ipc_ns"
  kcov: allow more fine-grained coverage instrumentation
  init/Kconfig: add clarification for out-of-tree modules
  config: add android config fragments
  init/Kconfig: ban CONFIG_LOCALVERSION_AUTO with allmodconfig
  relay: add global mode support for buffer-only channels
  init: allow blacklisting of module_init functions
  w1:omap_hdq: fix regression
  w1: add helper macro module_w1_family
  w1: remove need for ida and use PLATFORM_DEVID_AUTO
  rapidio/switches: add driver for IDT gen3 switches
  powerpc/fsl_rio: apply changes for RIO spec rev 3
  rapidio: modify for rev.3 specification changes
  rapidio: change inbound window size type to u64
  rapidio/idt_gen2: fix locking warning
  rapidio: fix error handling in mbox request/release functions
  rapidio/tsi721_dma: advance queue processing from transfer submit call
  rapidio/tsi721: add messaging mbox selector parameter
  rapidio/tsi721: add PCIe MRRS override parameter
  rapidio/tsi721_dma: add channel mask and queue size parameters
  ...

Linus Torvalds   commited 2016-08-02 21:08:07 -04:00
d52bd54db8
kcov: allow more fine-grained coverage instrumentation
For more targeted fuzzing, it's better to disable kernel-wide
instrumentation and instead enable it on a per-subsystem basis.  This
follows the pattern of UBSAN and allows you to compile in the kcov
driver without instrumenting the whole kernel.

To instrument a part of the kernel, you can use either

    # for a single file in the current directory
    KCOV_INSTRUMENT_filename.o := y

or

    # for all the files in the current directory (excluding subdirectories)
    KCOV_INSTRUMENT := y

or

    # (same as above)
    ccflags-y += $(CFLAGS_KCOV)

or

    # for all the files in the current directory (including subdirectories)
    subdir-ccflags-y += $(CFLAGS_KCOV)

Link: http://lkml.kernel.org/r/1464008380-11405-1-git-send-email-vegard.nossum@oracle.com
Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com>
Cc: Dmitry Vyukov <dvyukov@google.com>
Cc: Quentin Casasnovas <quentin.casasnovas@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Vegard Nossum   authored and   Linus Torvalds   commited 2016-08-02 19:35:43 -04:00
a4691deabf
checkpatch: if no filenames then read stdin
If no filenames are given, then read the patch from stdin.

Link: http://lkml.kernel.org/r/a8784f291ccb5067361992bf5d41ff6cfb0ce5cb.1469830917.git.allenbh@gmail.com
Signed-off-by: Allen Hubbe <allenbh@gmail.com>
Acked-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Allen Hubbe   authored and   Linus Torvalds   commited 2016-08-02 19:35:13 -04:00
45107ff6d5
checkpatch: check signoff when reading stdin
Signoff was not checked if the filename is '-', indicating reading the
patch from stdin.  Commands such as the below would not warn about a
missing signoff, because the patch filename is '-'.  This change allows
checkpatch to warn about a missing signoff, even if the input filename
is '-', but only if the patch has a commit message.

  git show --pretty=email | scripts/checkpatch.pl -

A more common use of checkpatch with stdin is for piping git diff
through checkpatch.  The diff output would not contain a commit message,
and therefore it would not contain a signoff line.  For this common use
case, a warning should not be printed about the missing signoff.  With
this change we will only warn about a missing signoff if the input
contains a commit message.

  git diff | scripts/checkpatch.pl -

Before this patch, a workaround for the first command was to refer to
stdin by a name other than '-'.  The workaround is not an elegant
solution, because elsewhere checkpatch uses the fact that filename
equals '-', such as in setting '$vname' to 'Your patch' for stdin.  The
command below would report "/dev/stdin has style problems" instead of
"Your patch has style problems."

  git show --pretty=email | scripts/checkpatch.pl /dev/stdin

Link: http://lkml.kernel.org/r/48be31e414bddc65bccfa6b1322359be9ba032eb.1469670589.git.allenbh@gmail.com
Signed-off-by: Allen Hubbe <allenbh@gmail.com>
Acked-by: Joe Perches <joe@perches.com>
Cc: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Allen Hubbe   authored and   Linus Torvalds   commited 2016-08-02 19:35:13 -04:00
ed43c4e58a
checkpatch: improve 'bare use of' signed/unsigned types warning
Fix false positive warning of identifiers ending in signed with an =
assignment of WARNING: Prefer 'signed int' to bare use of 'signed'.

Link: http://lkml.kernel.org/r/6a0e24c3e9102337528ecfcbbe91a0eb5b4820ed.1469529497.git.joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Reported-by: Alan Douglas <alanjhd@gmail.com>
Acked-by: Andy Whitcroft <apw@canonical.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Joe Perches   authored and   Linus Torvalds   commited 2016-08-02 19:35:12 -04:00
c844711575
checkpatch: don't complain about BIT macro in uapi
BIT macro cannot be exported to UAPI, don't complain about it.

Link: http://lkml.kernel.org/r/1468707033-16173-1-git-send-email-tomas.winkler@intel.com
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Acked-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Tomas Winkler   authored and   Linus Torvalds   commited 2016-08-02 19:35:12 -04:00
cec3aaa566
checkpatch: yet another commit id improvement
Using \b isn't good enough to isolate what appears to be a commit id in
a commit message.

Make sure there is a space or a quote like character after a continuous
run of hexadecimal characters that could be a commit id.

Link: http://lkml.kernel.org/r/fdd22b47463a21c21132edbb8aa35e372950a1e6.1468869915.git.joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Cc: "Zhuo, Qiuxu" <qiuxu.zhuo@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Joe Perches   authored and   Linus Torvalds   commited 2016-08-02 19:35:11 -04:00
aab38f516a
checkpatch: allow c99 style // comments
Sanitise the lines that contain c99 comments so that the error doesn't
get emitted.

Link: http://lkml.kernel.org/r/d4d22c34ad7bcc1bceb52f0742f76b7a6d585235.1468368420.git.joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Joe Perches   authored and   Linus Torvalds   commited 2016-08-02 19:35:11 -04:00
dadf680de3
checkpatch: skip long lines that use an EFI_GUID macro
These are also possible single line uses that exceed the generic maximum
line length (typically 80 columns)

Link: http://lkml.kernel.org/r/32a6a85fbd6161f1bb55ce176a464e44591afc5b.1468368420.git.joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Joe Perches   authored and   Linus Torvalds   commited 2016-08-02 19:35:10 -04:00
d560a5f8a4
get_maintainer.pl: reduce need for command-line option -f
If a vcs is used, look to see if the vcs tracks the file specified and
so the -f option becomes optional.

Link: http://lkml.kernel.org/r/7c86a8df0d48770c45778a43b6b3e4627b2a90ee.1469746395.git.joe@perches.com
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Joe Perches   authored and   Linus Torvalds   commited 2016-08-02 19:35:07 -04:00
4cad35a7ca
Merge branch 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
Pull misc kbuild updates from Michal Marek:

 - coccicheck script improvements by Luis Rodriguez and Deepa Dinamani

 - new coccinelle patches by Yann Droneaud and Vaishali Thakkar

 - debian packaging fixes by Wilfried Klaebe, Henning Schild and Marcin
   Mielniczuk

* 'misc' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
  Fix the Debian packaging script on systems with no codename
  builddeb: fix file permissions before packaging
  scripts/coccinelle: require coccinelle >= 1.0.4 on device_node_continue.cocci
  coccicheck: refer to Documentation/coccinelle.txt and wiki
  coccicheck: add support for requring a coccinelle version
  scripts: add Linux .cocciconfig for coccinelle
  coccicheck: replace --very-quiet with --quiet when debugging
  coccicheck: add support for DEBUG_FILE
  coccicheck: enable parmap support
  coccicheck: make SPFLAGS more useful
  coccicheck: move spatch binary check up
  builddeb: really include objtool binary in headers package
  coccinelle: catch krealloc() on devm_*() allocated memory
  coccinelle: recognize more devm_* memory allocation functions
  coccinelle: also catch kzfree() issues
  coccicheck: Allow for overriding spatch flags
  Coccinelle: noderef: Add new rules and correct the old rule

Linus Torvalds   commited 2016-08-02 16:48:52 -04:00
44cee85a88
Merge branch 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild
Pull kbuild updates from Michal Marek:

 - GCC plugin support by Emese Revfy from grsecurity, with a fixup from
   Kees Cook.  The plugins are meant to be used for static analysis of
   the kernel code.  Two plugins are provided already.

 - reduction of the gcc commandline by Arnd Bergmann.

 - IS_ENABLED / IS_REACHABLE macro enhancements by Masahiro Yamada

 - bin2c fix by Michael Tautschnig

 - setlocalversion fix by Wolfram Sang

* 'kbuild' of git://git.kernel.org/pub/scm/linux/kernel/git/mmarek/kbuild:
  gcc-plugins: disable under COMPILE_TEST
  kbuild: Abort build on bad stack protector flag
  scripts: Fix size mismatch of kexec_purgatory_size
  kbuild: make samples depend on headers_install
  Kbuild: don't add obj tree in additional includes
  Kbuild: arch: look for generated headers in obtree
  Kbuild: always prefix objtree in LINUXINCLUDE
  Kbuild: avoid duplicate include path
  Kbuild: don't add ../../ to include path
  vmlinux.lds.h: replace config_enabled() with IS_ENABLED()
  kconfig.h: allow to use IS_{ENABLE,REACHABLE} in macro expansion
  kconfig.h: use already defined macros for IS_REACHABLE() define
  export.h: use __is_defined() to check if __KSYM_* is defined
  kconfig.h: use __is_defined() to check if MODULE is defined
  kbuild: setlocalversion: print error to STDERR
  Add sancov plugin
  Add Cyclomatic complexity GCC plugin
  GCC plugin infrastructure
  Shared library support

Linus Torvalds   commited 2016-08-02 16:37:12 -04:00
f716a85cd6
ftrace/recordmcount: Work around for addition of metag magic but not relocations
glibc recently did a sync up (94e73c95d9b5 "elf.h: Sync with the gabi
webpage") that added a #define for EM_METAG but did not add relocations

This triggers build errors:

scripts/recordmcount.c: In function 'do_file':
scripts/recordmcount.c:466:28: error: 'R_METAG_ADDR32' undeclared (first use in this function)
  case EM_METAG:  reltype = R_METAG_ADDR32;
                            ^~~~~~~~~~~~~~
scripts/recordmcount.c:466:28: note: each undeclared identifier is reported only once for each function it appears in
scripts/recordmcount.c:468:20: error: 'R_METAG_NONE' undeclared (first use in this function)
     rel_type_nop = R_METAG_NONE;
                    ^~~~~~~~~~~~

Work around this change with some more #ifdefery for the relocations.

Fedora Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1354034

Link: http://lkml.kernel.org/r/1468005530-14757-1-git-send-email-labbott@redhat.com

Cc: stable@vger.kernel.org # v3.9+
Cc: James Hogan <james.hogan@imgtec.com>
Fixes: 00512bdd45 ("metag: ftrace support")
Reported-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Laura Abbott <labbott@redhat.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>

Laura Abbott   authored and   Steven Rostedt   commited 2016-08-02 12:57:24 -04:00
b2e1c26f0b
DeviceTree update for 4.8:
- Removal of most of_platform_populate() calls in arch code. Now the DT
 core code calls it in the default case and platforms only need to call
 it if they have special needs.
 
 - Use pr_fmt on all the DT core print statements.
 
 - CoreSight binding doc improvements to block name descriptions.
 
 - Add dt_to_config script which can parse dts files and list
 corresponding kernel config options.
 
 - Fix memory leak hit with a PowerMac DT.
 
 - Correct a bunch of STMicro compatible strings to use the correct
 vendor prefix.
 
 - Fix DA9052 PMIC binding doc to match what is actually used in dts
 files.
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1
 
 iQIcBAABAgAGBQJXm9KcAAoJEPr7XbWNvGHDRT4QAIIIOSB4AWHardnMLROgGge9
 aOQKZ/05O9feOcxYKe8FkQbcH+IujJjrUL+yrRD36yGQPAyBP21gtcmmfrkCcwFM
 kH915f/JbGvXpfwEf8dcarHhzYH6FFJiQGduPpWfwSSWynx+xq5EKPwCqYzMg8bN
 SExxt7vUx1MKFOExZ0K8BNCo8VMVLUWQoJ1DNeJDuL25Op4EU3i2l1HQNYV/3XDk
 BSA3x7Lw3GjrWEH20VWYn2Azq1OFLY+E2FC2lnG4nbkk5X8dZbUH9PR1Sk7uTQDj
 uxTjWe59NBpliCxKSAbMbTAU/WwSB1pJ0I+zDJBiQsdFT+nb5F4zOrs3qSKHa/A9
 Rv6AC8k5gdSMrDB1dOspfF2vWvOOInXgNV4/Kza0D92mbCpwyUuF+vhE6rfcMrZU
 OiD7rj2/fvO7Y9fUAhrp6zrfrOfH9B1Z9vS+940AlK96YwPE2+J0SA2vBxR/wg8H
 7fj4Ud5X+SFisXWQhh5Wlv0W9o6e7C7fsi8vpkQ7gufmezLFWVnJKsUfQaxGEwhG
 Hkhm9kuSHHMd+6dEnn2756DnNfJAtQv6rSR0/QR4Lf9y5L4dvR3kAQIci8X/nx4P
 sIk+IJWGZG6wziZq59hh+SO6HEqdSNuvh+5sbR0iUimdE/1HsDBdPiocXf/r8iwK
 NY9nGeZPRrXmFgdpoZfm
 =wLMr
 -----END PGP SIGNATURE-----

Merge tag 'devicetree-for-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux

Pull DeviceTree updates from Rob Herring:

 - remove most of_platform_populate() calls in arch code.  Now the DT
   core code calls it in the default case and platforms only need to
   call it if they have special needs

 - use pr_fmt on all the DT core print statements

 - CoreSight binding doc improvements to block name descriptions

 - add dt_to_config script which can parse dts files and list
   corresponding kernel config options

 - fix memory leak hit with a PowerMac DT

 - correct a bunch of STMicro compatible strings to use the correct
   vendor prefix

 - fix DA9052 PMIC binding doc to match what is actually used in dts
   files

* tag 'devicetree-for-4.8' of git://git.kernel.org/pub/scm/linux/kernel/git/robh/linux: (35 commits)
  documentation: da9052: Update regulator bindings names to match DA9052/53 DTS expectations
  xtensa: Partially Revert "xtensa: Remove unnecessary of_platform_populate with default match table"
  xtensa: Fix build error due to missing include file
  MIPS: ath79: Add missing include file
  Fix spelling errors in Documentation/devicetree
  ARM: dts: fix STMicroelectronics compatible strings
  powerpc/dts: fix STMicroelectronics compatible strings
  Documentation: dt: i2c: use correct STMicroelectronics vendor prefix
  scripts/dtc: dt_to_config - kernel config options for a devicetree
  of: fdt: mark unflattened tree as detached
  of: overlay: add resolver error prints
  coresight: document binding acronyms
  Documentation/devicetree: document cavium-pip rx-delay/tx-delay properties
  of: use pr_fmt prefix for all console printing
  of/irq: Mark initialised interrupt controllers as populated
  of: fix memory leak related to safe_name()
  Revert "of/platform: export of_default_bus_match_table"
  of: unittest: use of_platform_default_populate() to populate default bus
  memory: omap-gpmc: use of_platform_default_populate() to populate default bus
  bus: uniphier-system-bus: use of_platform_default_populate() to populate default bus
  ...

Linus Torvalds   commited 2016-07-30 11:32:01 -07:00
f64d6e2aaa
Merge branch 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security
Pull security subsystem updates from James Morris:
 "Highlights:

   - TPM core and driver updates/fixes
   - IPv6 security labeling (CALIPSO)
   - Lots of Apparmor fixes
   - Seccomp: remove 2-phase API, close hole where ptrace can change
     syscall #"

* 'next' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security: (156 commits)
  apparmor: fix SECURITY_APPARMOR_HASH_DEFAULT parameter handling
  tpm: Add TPM 2.0 support to the Nuvoton i2c driver (NPCT6xx family)
  tpm: Factor out common startup code
  tpm: use devm_add_action_or_reset
  tpm2_i2c_nuvoton: add irq validity check
  tpm: read burstcount from TPM_STS in one 32-bit transaction
  tpm: fix byte-order for the value read by tpm2_get_tpm_pt
  tpm_tis_core: convert max timeouts from msec to jiffies
  apparmor: fix arg_size computation for when setprocattr is null terminated
  apparmor: fix oops, validate buffer size in apparmor_setprocattr()
  apparmor: do not expose kernel stack
  apparmor: fix module parameters can be changed after policy is locked
  apparmor: fix oops in profile_unpack() when policy_db is not present
  apparmor: don't check for vmalloc_addr if kvzalloc() failed
  apparmor: add missing id bounds check on dfa verification
  apparmor: allow SYS_CAP_RESOURCE to be sufficient to prlimit another task
  apparmor: use list_next_entry instead of list_entry_next
  apparmor: fix refcount race when finding a child profile
  apparmor: fix ref count leak when profile sha1 hash is read
  apparmor: check that xindex is in trans_table bounds
  ...

Linus Torvalds   commited 2016-07-29 17:38:46 -07:00
7a1e8b80fb