1 diff -urNp -x '*.orig' linux-4.4/Makefile linux-4.4/Makefile
2 --- linux-4.4/Makefile 2021-02-24 17:41:14.010620493 +0100
3 +++ linux-4.4/Makefile 2021-02-24 17:41:27.804397388 +0100
4 @@ -837,6 +837,9 @@ KBUILD_CFLAGS += $(call cc-option,-Wer
5 # Prohibit date/time macros, which would make the build non-deterministic
6 KBUILD_CFLAGS += $(call cc-option,-Werror=date-time)
8 +# enforce correct pointer usage
9 +KBUILD_CFLAGS += $(call cc-option,-Werror=incompatible-pointer-types)
11 # use the deterministic mode of AR if available
12 KBUILD_ARFLAGS := $(call ar-option,D)
14 diff -urNp -x '*.orig' linux-4.4/scripts/kconfig/lxdialog/check-lxdialog.sh linux-4.4/scripts/kconfig/lxdialog/check-lxdialog.sh
15 --- linux-4.4/scripts/kconfig/lxdialog/check-lxdialog.sh 2016-01-11 00:01:32.000000000 +0100
16 +++ linux-4.4/scripts/kconfig/lxdialog/check-lxdialog.sh 2021-02-24 17:41:27.804397388 +0100
17 @@ -11,6 +11,12 @@ ldflags()
18 $cc -print-file-name=lib${lib}.${ext} | grep -q /
21 + for libt in tinfow tinfo ; do
22 + $cc -print-file-name=lib${libt}.${ext} | grep -q /
23 + if [ $? -eq 0 ]; then
30 diff -urNp -x '*.orig' linux-4.4/scripts/mod/modpost.c linux-4.4/scripts/mod/modpost.c
31 --- linux-4.4/scripts/mod/modpost.c 2021-02-24 17:41:15.860679986 +0100
32 +++ linux-4.4/scripts/mod/modpost.c 2021-02-24 17:41:27.804397388 +0100
37 -#include "../../include/generated/autoconf.h"
38 +// PLD architectures don't use CONFIG_SYMBOL_PREFIX
39 +//#include "../../include/generated/autoconf.h"
40 #include "../../include/linux/license.h"
41 #include "../../include/linux/export.h"
43 --- linux-4.4/drivers/extcon/extcon-adc-jack.c.org 2016-01-11 00:01:32.000000000 +0100
44 +++ linux-4.4/drivers/extcon/extcon-adc-jack.c 2021-08-09 08:44:14.895794160 +0200
45 @@ -105,7 +105,7 @@ static int adc_jack_probe(struct platfor
49 - data->edev = devm_extcon_dev_allocate(&pdev->dev, pdata->cable_names);
50 + data->edev = devm_extcon_dev_allocate(&pdev->dev, (const unsigned int *)pdata->cable_names);
51 if (IS_ERR(data->edev)) {
52 dev_err(&pdev->dev, "failed to allocate extcon device\n");