Skip to content

Commit

Permalink
Merge 0bfc6c8 on remote branch
Browse files Browse the repository at this point in the history
Change-Id: If5d18c401514ca14e8c3a65b8ef1d4de3b46163d
  • Loading branch information
Linux Build Service Account committed Jun 3, 2022
2 parents e8cfff1 + 0bfc6c8 commit 140644b
Show file tree
Hide file tree
Showing 16 changed files with 2,167 additions and 32 deletions.
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -760,12 +760,11 @@ KBUILD_CFLAGS += $(call cc-disable-warning, tautological-compare)
# See modpost pattern 2
KBUILD_CFLAGS += $(call cc-option, -mno-global-merge,)
KBUILD_CFLAGS += $(call cc-option, -fcatch-undefined-behavior)
else
endif

# These warnings generated too much noise in a regular build.
# Use make W=1 to enable them (see scripts/Makefile.extrawarn)
KBUILD_CFLAGS += $(call cc-disable-warning, unused-but-set-variable)
endif

KBUILD_CFLAGS += $(call cc-disable-warning, unused-const-variable)
ifdef CONFIG_FRAME_POINTER
Expand Down
1 change: 1 addition & 0 deletions arch/arm64/configs/vendor/bengal-perf_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,7 @@ CONFIG_LEDS_CLASS=y
CONFIG_LEDS_CLASS_FLASH=y
CONFIG_LEDS_AW2016=y
CONFIG_LEDS_QTI_FLASH=y
CONFIG_LEDS_GPIO=y
CONFIG_LEDS_PWM=y
CONFIG_LEDS_QTI_TRI_LED=y
CONFIG_LEDS_QPNP_FLASH_V2=y
Expand Down
1 change: 1 addition & 0 deletions arch/arm64/configs/vendor/bengal_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -505,6 +505,7 @@ CONFIG_LEDS_CLASS=y
CONFIG_LEDS_CLASS_FLASH=y
CONFIG_LEDS_AW2016=y
CONFIG_LEDS_QTI_FLASH=y
CONFIG_LEDS_GPIO=y
CONFIG_LEDS_PWM=y
CONFIG_LEDS_QTI_TRI_LED=y
CONFIG_LEDS_QPNP_FLASH_V2=y
Expand Down
8 changes: 4 additions & 4 deletions drivers/char/adsprpc_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ struct compat_fastrpc_ioctl_dsp_capabilities {
static int compat_get_fastrpc_ioctl_invoke(
struct compat_fastrpc_ioctl_invoke_crc __user *inv32,
struct fastrpc_ioctl_invoke_crc __user **inva,
unsigned int cmd, unsigned int sc)
unsigned int cmd, compat_uint_t sc)
{
compat_uint_t u;
compat_size_t s;
Expand Down Expand Up @@ -520,14 +520,14 @@ long compat_fastrpc_device_ioctl(struct file *filp, unsigned int cmd,
case COMPAT_FASTRPC_IOCTL_INVOKE_ATTRS:
case COMPAT_FASTRPC_IOCTL_INVOKE_CRC:
{
struct compat_fastrpc_ioctl_invoke_crc __user *inv32;
struct fastrpc_ioctl_invoke_crc __user *inv;
struct compat_fastrpc_ioctl_invoke_crc __user *inv32 = NULL;
struct fastrpc_ioctl_invoke_crc __user *inv = NULL;

inv32 = compat_ptr(arg);
err = get_user(sc, &inv32->inv.sc);
if (err)
return err;

inv32 = compat_ptr(arg);
VERIFY(err, 0 == compat_get_fastrpc_ioctl_invoke(inv32,
&inv, cmd, sc));
if (err)
Expand Down
12 changes: 10 additions & 2 deletions drivers/firmware/qcom/tz_log.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-only
/*
* Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
*/
#include <linux/debugfs.h>
#include <linux/errno.h>
Expand Down Expand Up @@ -1238,8 +1239,15 @@ static ssize_t tzdbgfs_read(struct file *file, char __user *buf,
struct seq_file *seq = file->private_data;
int tz_id = TZDBG_STATS_MAX;

if (seq)
tz_id = *(int *)(seq->private);
if (seq) {
if (seq->private)
tz_id = *(int *)(seq->private);
else {
pr_err("%s: Seq data private null unable to proceed\n",
__func__);
return 0;
}
}
else {
pr_err("%s: Seq data null unable to proceed\n", __func__);
return 0;
Expand Down
22 changes: 7 additions & 15 deletions drivers/gpu/msm/kgsl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2677,15 +2677,6 @@ static int kgsl_setup_anon_useraddr(struct kgsl_pagetable *pagetable,
}

#ifdef CONFIG_DMA_SHARED_BUFFER
static int match_file(const void *p, struct file *file, unsigned int fd)
{
/*
* We must return fd + 1 because iterate_fd stops searching on
* non-zero return, but 0 is a valid fd.
*/
return (p == file) ? (fd + 1) : 0;
}

static void _setup_cache_mode(struct kgsl_mem_entry *entry,
struct vm_area_struct *vma)
{
Expand Down Expand Up @@ -2723,8 +2714,6 @@ static int kgsl_setup_dmabuf_useraddr(struct kgsl_device *device,
vma = find_vma(current->mm, hostptr);

if (vma && vma->vm_file) {
int fd;

ret = check_vma_flags(vma, entry->memdesc.flags);
if (ret) {
up_read(&current->mm->mmap_sem);
Expand All @@ -2740,10 +2729,13 @@ static int kgsl_setup_dmabuf_useraddr(struct kgsl_device *device,
return -EFAULT;
}

/* Look for the fd that matches this the vma file */
fd = iterate_fd(current->files, 0, match_file, vma->vm_file);
if (fd != 0)
dmabuf = dma_buf_get(fd - 1);
/*
* Take a refcount because dma_buf_put() decrements the
* refcount
*/
get_file(vma->vm_file);

dmabuf = vma->vm_file->private_data;
}

if (IS_ERR_OR_NULL(dmabuf)) {
Expand Down
1 change: 1 addition & 0 deletions drivers/misc/kxrctrl/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# KXRCtrl
Loading

0 comments on commit 140644b

Please sign in to comment.