Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7434f7b7 authored by Neeraj Upadhyay's avatar Neeraj Upadhyay Committed by Georg Veichtlbauer
Browse files

Makefile: Remove -fno-builtin cflag



Remove -fno-builtin cflag, to fix performance regression,
observed with this flag enabled. Also, fix the compilation
errors observed after removing the flag.

Change-Id: I515a4d043639109298008f95a25d8ed70417bdd8
Signed-off-by: default avatarNeeraj Upadhyay <neeraju@codeaurora.org>
parent 834bc3a1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3,7 +3,7 @@
 *
 * Copyright (C) 2012-2016 Synaptics Incorporated. All rights reserved.
 *
 * Copyright (c) 2018 The Linux Foundation. All rights reserved.
 * Copyright (c) 2018,2020 The Linux Foundation. All rights reserved.
 * Copyright (C) 2012 Alexandra Chin <alexandra.chin@tw.synaptics.com>
 * Copyright (C) 2012 Scott Lin <scott.lin@tw.synaptics.com>
 *
@@ -3313,7 +3313,7 @@ static int synaptics_rmi4_gpio_setup(int gpio, bool config, int dir, int state)
	unsigned char buf[16];

	if (config) {
		snprintf(buf, PAGE_SIZE, "dsx_gpio_%u\n", gpio);
		snprintf(buf, sizeof(buf), "dsx_gpio_%u\n", gpio);

		retval = gpio_request(gpio, buf);
		if (retval) {
+2 −1
Original line number Diff line number Diff line
@@ -59,8 +59,9 @@ static int cistpl_vers_1(struct mmc_card *card, struct sdio_func *func,
	string = (char*)(buffer + nr_strings);

	for (i = 0; i < nr_strings; i++) {
		size_t buf_len = strlen(buf);
		buffer[i] = string;
		strlcpy(string, buf, strlen(buf) + 1);
		strlcpy(string, buf, buf_len + 1);
		string += strlen(string) + 1;
		buf += strlen(buf) + 1;
	}
+3 −2
Original line number Diff line number Diff line
/* Copyright (c) 2017,2021, The Linux Foundation. All rights reserved.
/* Copyright (c) 2017,2020,2021 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -239,6 +239,7 @@ static int msm_minidump_add_header(void)
	struct elf_phdr *phdr;
	unsigned int strtbl_off, elfh_size, phdr_off;
	char *banner;
	size_t linux_banner_len = strlen(linux_banner);

	/* Header buffer contains:
	 * elf header, MAX_NUM_ENTRIES+4 of section and program elf headers,
@@ -306,7 +307,7 @@ static int msm_minidump_add_header(void)

	/* 4th section is linux banner */
	banner = (char *)ehdr + strtbl_off + MAX_STRTBL_SIZE;
	strlcpy(banner, linux_banner, strlen(linux_banner) + 1);
	strlcpy(banner, linux_banner, linux_banner_len + 1);

	shdr->sh_type = SHT_PROGBITS;
	shdr->sh_offset = (elf_addr_t)(strtbl_off + MAX_STRTBL_SIZE);
+5 −3
Original line number Diff line number Diff line
/* Copyright (c) 2012-2014, 2016-2017 The Linux Foundation. All rights reserved.
/* Copyright (c) 2012-2014, 2016-2017, 2020 The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -408,15 +408,17 @@ static struct msm_rpm_master_stats_platform_data
	 */
	for (i = 0; i < pdata->num_masters; i++) {
		const char *master_name;
		size_t master_name_len;

		of_property_read_string_index(node, "qcom,masters",
							i, &master_name);
		master_name_len = strlen(master_name);
		pdata->masters[i] = devm_kzalloc(dev, sizeof(char) *
				strlen(master_name) + 1, GFP_KERNEL);
				master_name_len + 1, GFP_KERNEL);
		if (!pdata->masters[i])
			goto err;
		strlcpy(pdata->masters[i], master_name,
					strlen(master_name) + 1);
					master_name_len + 1);
	}
	return pdata;
err: