]> git.pld-linux.org Git - packages/kernel.git/blob - kernel-small_fixes.patch
- 4.4.283
[packages/kernel.git] / kernel-small_fixes.patch
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)
7  
8 +# enforce correct pointer usage
9 +KBUILD_CFLAGS   += $(call cc-option,-Werror=incompatible-pointer-types)
10 +
11  # use the deterministic mode of AR if available
12  KBUILD_ARFLAGS := $(call ar-option,D)
13  
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 /
19                         if [ $? -eq 0 ]; then
20                                 echo "-l${lib}"
21 +                               for libt in tinfow tinfo ; do
22 +                                       $cc -print-file-name=lib${libt}.${ext} | grep -q /
23 +                                       if [ $? -eq 0 ]; then
24 +                                               echo "-l${libt}"
25 +                                       fi
26 +                               done
27                                 exit
28                         fi
29                 done
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
33 @@ -19,7 +19,8 @@
34  #include <stdbool.h>
35  #include <errno.h>
36  #include "modpost.h"
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"
42  
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
46                 return -EINVAL;
47         }
48  
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");
53                 return -ENOMEM;
This page took 0.029065 seconds and 3 git commands to generate.