drivers/firmware/efi/sysfb_efi.c:70:6: warning: no previous prototype for 'efifb_setup_from_dmi'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 136057256686de39cc3a07c2e39ef6bc43003ff6
commit: d391c58271072d0b0fad93c82018d495b2633448 drivers/firmware: move x86 Generic System Framebuffers support
date: 4 months ago
config: i386-randconfig-r036-20210927 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout d391c58271072d0b0fad93c82018d495b2633448
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/firmware/efi/sysfb_efi.c:70:6: warning: no previous prototype for 'efifb_setup_from_dmi' [-Wmissing-prototypes]
70 | void efifb_setup_from_dmi(struct screen_info *si, const char *opt)
| ^~~~~~~~~~~~~~~~~~~~
drivers/firmware/efi/sysfb_efi.c:270:13: error: redefinition of 'sysfb_apply_efi_quirks'
270 | __init void sysfb_apply_efi_quirks(void)
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/firmware/efi/sysfb_efi.c:24:
include/linux/sysfb.h:65:20: note: previous definition of 'sysfb_apply_efi_quirks' was here
65 | static inline void sysfb_apply_efi_quirks(void)
| ^~~~~~~~~~~~~~~~~~~~~~
vim +/efifb_setup_from_dmi +70 drivers/firmware/efi/sysfb_efi.c
2995e506276bfd arch/x86/kernel/sysfb_efi.c David Herrmann 2013-08-02 69
21289ec02b41c4 arch/x86/kernel/sysfb_efi.c Ard Biesheuvel 2016-04-25 @70 void efifb_setup_from_dmi(struct screen_info *si, const char *opt)
21289ec02b41c4 arch/x86/kernel/sysfb_efi.c Ard Biesheuvel 2016-04-25 71 {
21289ec02b41c4 arch/x86/kernel/sysfb_efi.c Ard Biesheuvel 2016-04-25 72 int i;
21289ec02b41c4 arch/x86/kernel/sysfb_efi.c Ard Biesheuvel 2016-04-25 73
21289ec02b41c4 arch/x86/kernel/sysfb_efi.c Ard Biesheuvel 2016-04-25 74 for (i = 0; i < M_UNKNOWN; i++) {
21289ec02b41c4 arch/x86/kernel/sysfb_efi.c Ard Biesheuvel 2016-04-25 75 if (efifb_dmi_list[i].base != 0 &&
21289ec02b41c4 arch/x86/kernel/sysfb_efi.c Ard Biesheuvel 2016-04-25 76 !strcmp(opt, efifb_dmi_list[i].optname)) {
21289ec02b41c4 arch/x86/kernel/sysfb_efi.c Ard Biesheuvel 2016-04-25 77 si->lfb_base = efifb_dmi_list[i].base;
21289ec02b41c4 arch/x86/kernel/sysfb_efi.c Ard Biesheuvel 2016-04-25 78 si->lfb_linelength = efifb_dmi_list[i].stride;
21289ec02b41c4 arch/x86/kernel/sysfb_efi.c Ard Biesheuvel 2016-04-25 79 si->lfb_width = efifb_dmi_list[i].width;
21289ec02b41c4 arch/x86/kernel/sysfb_efi.c Ard Biesheuvel 2016-04-25 80 si->lfb_height = efifb_dmi_list[i].height;
21289ec02b41c4 arch/x86/kernel/sysfb_efi.c Ard Biesheuvel 2016-04-25 81 }
21289ec02b41c4 arch/x86/kernel/sysfb_efi.c Ard Biesheuvel 2016-04-25 82 }
21289ec02b41c4 arch/x86/kernel/sysfb_efi.c Ard Biesheuvel 2016-04-25 83 }
21289ec02b41c4 arch/x86/kernel/sysfb_efi.c Ard Biesheuvel 2016-04-25 84
:::::: The code at line 70 was first introduced by commit
:::::: 21289ec02b41c4b928a0b3de1778b325d714eea3 x86/efi/efifb: Move DMI based quirks handling out of generic code
:::::: TO: Ard Biesheuvel <ard.biesheuvel(a)linaro.org>
:::::: CC: Ingo Molnar <mingo(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[mcgrof-next:20211116-sysctl-cleanups-v4 3/35] kernel/hung_task.c:69:8: error: redefinition of 'sysctl_hung_task_timeout_secs'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211116-sysctl-cleanups-v4
head: 5347239461f25fc50aa761923245b9ec4a4aafec
commit: e854631643628749ab037f54ca9c26d69ffabb3e [3/35] hung_task: Move hung_task sysctl interface to hung_task.c
config: x86_64-randconfig-a003-20211116 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 4c2cf3a314d9131b1b288e7c8ab0c75ac1b2be1d)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/com...
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20211116-sysctl-cleanups-v4
git checkout e854631643628749ab037f54ca9c26d69ffabb3e
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> kernel/hung_task.c:69:8: error: redefinition of 'sysctl_hung_task_timeout_secs'
enum { sysctl_hung_task_timeout_secs = 0 };
^
kernel/hung_task.c:45:29: note: previous definition is here
unsigned long __read_mostly sysctl_hung_task_timeout_secs = CONFIG_DEFAULT_HUNG_TASK_TIMEOUT;
^
>> kernel/hung_task.c:144:7: error: use of undeclared identifier 'sysctl_hung_task_all_cpu_backtrace'
if (sysctl_hung_task_all_cpu_backtrace)
^
2 errors generated.
vim +/sysctl_hung_task_timeout_secs +69 kernel/hung_task.c
60
61 #ifdef CONFIG_SMP
62 /*
63 * Should we dump all CPUs backtraces in a hung task event?
64 * Defaults to 0, can be changed via sysctl.
65 */
66 unsigned int __read_mostly sysctl_hung_task_all_cpu_backtrace;
67 #else
68 /* Avoid need for ifdefs elsewhere in the code */
> 69 enum { sysctl_hung_task_timeout_secs = 0 };
70 #endif /* CONFIG_SMP */
71
72 /*
73 * Should we panic (and reboot, if panic_timeout= is set) when a
74 * hung task is detected:
75 */
76 unsigned int __read_mostly sysctl_hung_task_panic =
77 CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE;
78
79 static int
80 hung_task_panic(struct notifier_block *this, unsigned long event, void *ptr)
81 {
82 did_panic = 1;
83
84 return NOTIFY_DONE;
85 }
86
87 static struct notifier_block panic_block = {
88 .notifier_call = hung_task_panic,
89 };
90
91 static void check_hung_task(struct task_struct *t, unsigned long timeout)
92 {
93 unsigned long switch_count = t->nvcsw + t->nivcsw;
94
95 /*
96 * Ensure the task is not frozen.
97 * Also, skip vfork and any other user process that freezer should skip.
98 */
99 if (unlikely(t->flags & (PF_FROZEN | PF_FREEZER_SKIP)))
100 return;
101
102 /*
103 * When a freshly created task is scheduled once, changes its state to
104 * TASK_UNINTERRUPTIBLE without having ever been switched out once, it
105 * musn't be checked.
106 */
107 if (unlikely(!switch_count))
108 return;
109
110 if (switch_count != t->last_switch_count) {
111 t->last_switch_count = switch_count;
112 t->last_switch_time = jiffies;
113 return;
114 }
115 if (time_is_after_jiffies(t->last_switch_time + timeout * HZ))
116 return;
117
118 trace_sched_process_hang(t);
119
120 if (sysctl_hung_task_panic) {
121 console_verbose();
122 hung_task_show_lock = true;
123 hung_task_call_panic = true;
124 }
125
126 /*
127 * Ok, the task did not get scheduled for more than 2 minutes,
128 * complain:
129 */
130 if (sysctl_hung_task_warnings) {
131 if (sysctl_hung_task_warnings > 0)
132 sysctl_hung_task_warnings--;
133 pr_err("INFO: task %s:%d blocked for more than %ld seconds.\n",
134 t->comm, t->pid, (jiffies - t->last_switch_time) / HZ);
135 pr_err(" %s %s %.*s\n",
136 print_tainted(), init_utsname()->release,
137 (int)strcspn(init_utsname()->version, " "),
138 init_utsname()->version);
139 pr_err("\"echo 0 > /proc/sys/kernel/hung_task_timeout_secs\""
140 " disables this message.\n");
141 sched_show_task(t);
142 hung_task_show_lock = true;
143
> 144 if (sysctl_hung_task_all_cpu_backtrace)
145 hung_task_show_all_bt = true;
146 }
147
148 touch_nmi_watchdog();
149 }
150
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[rmk-arm:zii 131/148] drivers/net/dsa/mt7530.c:2703:43: error: passing argument 3 of 'dsa_port_phylink_set_pcs' from incompatible pointer type
by kernel test robot
tree: git://git.armlinux.org.uk/~rmk/linux-arm zii
head: 0beed941d41c6668ce945aeab374fc7e1ba652a8
commit: be290dbacc27ecb335b6317742d2230818f7c3f6 [131/148] net: dsa: mt7530: partially convert to phylink_pcs *EXPERIMENTAL*
config: i386-randconfig-r011-20211122 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
git remote add rmk-arm git://git.armlinux.org.uk/~rmk/linux-arm
git fetch --no-tags rmk-arm zii
git checkout be290dbacc27ecb335b6317742d2230818f7c3f6
# save the attached .config to linux build tree
make W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/net/dsa/mt7530.c: In function 'mt753x_phylink_mac_prepare':
>> drivers/net/dsa/mt7530.c:2703:43: error: passing argument 3 of 'dsa_port_phylink_set_pcs' from incompatible pointer type [-Werror=incompatible-pointer-types]
2703 | dsa_port_phylink_set_pcs(priv->ds, port, &priv->pcs[port]);
| ^~~~~~~~~~~~~~~~
| |
| struct mt753x_pcs *
In file included from drivers/net/dsa/mt7530.c:23:
include/net/dsa.h:1096:30: note: expected 'struct phylink_pcs *' but argument is of type 'struct mt753x_pcs *'
1096 | struct phylink_pcs *pcs);
| ~~~~~~~~~~~~~~~~~~~~^~~
drivers/net/dsa/mt7530.c: In function 'mt7531_cpu_port_config':
>> drivers/net/dsa/mt7530.c:2874:45: error: 'struct mt753x_pcs' has no member named 'phylink_pcs'
2874 | mt753x_phylink_pcs_link_up(&priv->pcs[port].phylink_pcs, MLO_AN_FIXED,
| ^
drivers/net/dsa/mt7530.c: At top level:
>> drivers/net/dsa/mt7530.c:3016:18: error: initialization of 'int (*)(struct phylink_pcs *, long unsigned int *, struct phylink_link_state *)' from incompatible pointer type 'void (*)(struct phylink_pcs *, long unsigned int *, struct phylink_link_state *)' [-Werror=incompatible-pointer-types]
3016 | .pcs_validate = mt753x_pcs_validate,
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/mt7530.c:3016:18: note: (near initialization for 'mt7530_pcs_ops.pcs_validate')
drivers/net/dsa/mt7530.c:3023:18: error: initialization of 'int (*)(struct phylink_pcs *, long unsigned int *, struct phylink_link_state *)' from incompatible pointer type 'void (*)(struct phylink_pcs *, long unsigned int *, struct phylink_link_state *)' [-Werror=incompatible-pointer-types]
3023 | .pcs_validate = mt753x_pcs_validate,
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/mt7530.c:3023:18: note: (near initialization for 'mt7531_pcs_ops.pcs_validate')
drivers/net/dsa/mt7530.c: In function 'mt753x_setup':
>> drivers/net/dsa/mt7530.c:3050:19: error: 'priv->pcs[i].pcs' is a pointer; did you mean to use '->'?
3050 | priv->pcs[i].pcs.ops = priv->pcs_ops;
| ^
| ->
>> drivers/net/dsa/mt7530.c:3050:30: error: 'struct mt7530_priv' has no member named 'pcs_ops'
3050 | priv->pcs[i].pcs.ops = priv->pcs_ops;
| ^~
drivers/net/dsa/mt7530.c: At top level:
>> drivers/net/dsa/mt7530.c:3116:25: error: initialization of 'int (*)(struct dsa_switch *, int, unsigned int, phy_interface_t)' {aka 'int (*)(struct dsa_switch *, int, unsigned int, enum <anonymous>)'} from incompatible pointer type 'void (*)(struct dsa_switch *, int, unsigned int, phy_interface_t)' {aka 'void (*)(struct dsa_switch *, int, unsigned int, enum <anonymous>)'} [-Werror=incompatible-pointer-types]
3116 | .phylink_mac_prepare = mt753x_phylink_mac_prepare,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/mt7530.c:3116:25: note: (near initialization for 'mt7530_switch_ops.phylink_mac_prepare')
cc1: some warnings being treated as errors
vim +/dsa_port_phylink_set_pcs +2703 drivers/net/dsa/mt7530.c
2695
2696 static void
2697 mt753x_phylink_mac_prepare(struct dsa_switch *ds, int port, unsigned int mode,
2698 phy_interface_t interface)
2699 {
2700 struct mt7530_priv *priv = ds->priv;
2701
2702 /* Attach our PCS */
> 2703 dsa_port_phylink_set_pcs(priv->ds, port, &priv->pcs[port]);
2704 }
2705
2706 static void
2707 mt753x_phylink_mac_config(struct dsa_switch *ds, int port, unsigned int mode,
2708 const struct phylink_link_state *state)
2709 {
2710 struct mt7530_priv *priv = ds->priv;
2711 u32 mcr_cur, mcr_new;
2712
2713 switch (port) {
2714 case 0 ... 4: /* Internal phy */
2715 if (state->interface != PHY_INTERFACE_MODE_GMII)
2716 goto unsupported;
2717 break;
2718 case 5: /* 2nd cpu port with phy of port 0 or 4 / external phy */
2719 if (priv->p5_interface == state->interface)
2720 break;
2721
2722 if (mt753x_mac_config(ds, port, mode, state) < 0)
2723 goto unsupported;
2724
2725 if (priv->p5_intf_sel != P5_DISABLED)
2726 priv->p5_interface = state->interface;
2727 break;
2728 case 6: /* 1st cpu port */
2729 if (priv->p6_interface == state->interface)
2730 break;
2731
2732 mt753x_pad_setup(ds, state);
2733
2734 if (mt753x_mac_config(ds, port, mode, state) < 0)
2735 goto unsupported;
2736
2737 priv->p6_interface = state->interface;
2738 break;
2739 default:
2740 unsupported:
2741 dev_err(ds->dev, "%s: unsupported %s port: %i\n",
2742 __func__, phy_modes(state->interface), port);
2743 return;
2744 }
2745
2746 if (phylink_autoneg_inband(mode) &&
2747 state->interface != PHY_INTERFACE_MODE_SGMII) {
2748 dev_err(ds->dev, "%s: in-band negotiation unsupported\n",
2749 __func__);
2750 return;
2751 }
2752
2753 mcr_cur = mt7530_read(priv, MT7530_PMCR_P(port));
2754 mcr_new = mcr_cur;
2755 mcr_new &= ~PMCR_LINK_SETTINGS_MASK;
2756 mcr_new |= PMCR_IFG_XMIT(1) | PMCR_MAC_MODE | PMCR_BACKOFF_EN |
2757 PMCR_BACKPR_EN | PMCR_FORCE_MODE_ID(priv->id);
2758
2759 /* Are we connected to external phy */
2760 if (port == 5 && dsa_is_user_port(ds, 5))
2761 mcr_new |= PMCR_EXT_PHY;
2762
2763 if (mcr_new != mcr_cur)
2764 mt7530_write(priv, MT7530_PMCR_P(port), mcr_new);
2765 }
2766
2767 static void mt753x_phylink_mac_link_down(struct dsa_switch *ds, int port,
2768 unsigned int mode,
2769 phy_interface_t interface)
2770 {
2771 struct mt7530_priv *priv = ds->priv;
2772
2773 mt7530_clear(priv, MT7530_PMCR_P(port), PMCR_LINK_SETTINGS_MASK);
2774 }
2775
2776 static void mt753x_phylink_mac_link_up(struct dsa_switch *ds, int port,
2777 unsigned int mode,
2778 phy_interface_t interface,
2779 struct phy_device *phydev,
2780 int speed, int duplex,
2781 bool tx_pause, bool rx_pause)
2782 {
2783 struct mt7530_priv *priv = ds->priv;
2784 u32 mcr;
2785
2786 mcr = PMCR_RX_EN | PMCR_TX_EN | PMCR_FORCE_LNK;
2787
2788 /* MT753x MAC works in 1G full duplex mode for all up-clocked
2789 * variants.
2790 */
2791 if (interface == PHY_INTERFACE_MODE_TRGMII ||
2792 (phy_interface_mode_is_8023z(interface))) {
2793 speed = SPEED_1000;
2794 duplex = DUPLEX_FULL;
2795 }
2796
2797 switch (speed) {
2798 case SPEED_1000:
2799 mcr |= PMCR_FORCE_SPEED_1000;
2800 break;
2801 case SPEED_100:
2802 mcr |= PMCR_FORCE_SPEED_100;
2803 break;
2804 }
2805 if (duplex == DUPLEX_FULL) {
2806 mcr |= PMCR_FORCE_FDX;
2807 if (tx_pause)
2808 mcr |= PMCR_TX_FC_EN;
2809 if (rx_pause)
2810 mcr |= PMCR_RX_FC_EN;
2811 }
2812
2813 if (mode == MLO_AN_PHY && phydev && phy_init_eee(phydev, 0) >= 0) {
2814 switch (speed) {
2815 case SPEED_1000:
2816 mcr |= PMCR_FORCE_EEE1G;
2817 break;
2818 case SPEED_100:
2819 mcr |= PMCR_FORCE_EEE100;
2820 break;
2821 }
2822 }
2823
2824 mt7530_set(priv, MT7530_PMCR_P(port), mcr);
2825 }
2826
2827 static void mt753x_phylink_pcs_link_up(struct phylink_pcs *pcs,
2828 unsigned int mode,
2829 phy_interface_t interface,
2830 int speed, int duplex)
2831 {
2832 if (pcs->ops->pcs_link_up)
2833 pcs->ops->pcs_link_up(pcs, mode, interface, speed, duplex);
2834 }
2835
2836 static int
2837 mt7531_cpu_port_config(struct dsa_switch *ds, int port)
2838 {
2839 struct mt7530_priv *priv = ds->priv;
2840 phy_interface_t interface;
2841 int speed;
2842 int ret;
2843
2844 switch (port) {
2845 case 5:
2846 if (mt7531_is_rgmii_port(priv, port))
2847 interface = PHY_INTERFACE_MODE_RGMII;
2848 else
2849 interface = PHY_INTERFACE_MODE_2500BASEX;
2850
2851 priv->p5_interface = interface;
2852 break;
2853 case 6:
2854 interface = PHY_INTERFACE_MODE_2500BASEX;
2855
2856 mt7531_pad_setup(ds, interface);
2857
2858 priv->p6_interface = interface;
2859 break;
2860 default:
2861 return -EINVAL;
2862 }
2863
2864 if (interface == PHY_INTERFACE_MODE_2500BASEX)
2865 speed = SPEED_2500;
2866 else
2867 speed = SPEED_1000;
2868
2869 ret = mt7531_mac_config(ds, port, MLO_AN_FIXED, interface);
2870 if (ret)
2871 return ret;
2872 mt7530_write(priv, MT7530_PMCR_P(port),
2873 PMCR_CPU_PORT_SETTING(priv->id));
> 2874 mt753x_phylink_pcs_link_up(&priv->pcs[port].phylink_pcs, MLO_AN_FIXED,
2875 interface, speed, DUPLEX_FULL);
2876 mt753x_phylink_mac_link_up(ds, port, MLO_AN_FIXED, interface, NULL,
2877 speed, DUPLEX_FULL, true, true);
2878
2879 return 0;
2880 }
2881
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[mcgrof-next:20211116-sysctl-cleanups-v4 3/35] kernel/hung_task.c:69:8: error: 'sysctl_hung_task_timeout_secs' redeclared as different kind of symbol
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211116-sysctl-cleanups-v4
head: 5347239461f25fc50aa761923245b9ec4a4aafec
commit: e854631643628749ab037f54ca9c26d69ffabb3e [3/35] hung_task: Move hung_task sysctl interface to hung_task.c
config: x86_64-randconfig-a013-20211116 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/com...
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20211116-sysctl-cleanups-v4
git checkout e854631643628749ab037f54ca9c26d69ffabb3e
# save the attached .config to linux build tree
mkdir build_dir
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> kernel/hung_task.c:69:8: error: 'sysctl_hung_task_timeout_secs' redeclared as different kind of symbol
69 | enum { sysctl_hung_task_timeout_secs = 0 };
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/hung_task.c:45:29: note: previous definition of 'sysctl_hung_task_timeout_secs' was here
45 | unsigned long __read_mostly sysctl_hung_task_timeout_secs = CONFIG_DEFAULT_HUNG_TASK_TIMEOUT;
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
kernel/hung_task.c: In function 'check_hung_task':
>> kernel/hung_task.c:144:7: error: 'sysctl_hung_task_all_cpu_backtrace' undeclared (first use in this function); did you mean 'sysctl_oops_all_cpu_backtrace'?
144 | if (sysctl_hung_task_all_cpu_backtrace)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| sysctl_oops_all_cpu_backtrace
kernel/hung_task.c:144:7: note: each undeclared identifier is reported only once for each function it appears in
kernel/hung_task.c: At top level:
>> kernel/hung_task.c:329:12: error: lvalue required as unary '&' operand
329 | .data = &sysctl_hung_task_timeout_secs,
| ^
vim +/sysctl_hung_task_timeout_secs +69 kernel/hung_task.c
60
61 #ifdef CONFIG_SMP
62 /*
63 * Should we dump all CPUs backtraces in a hung task event?
64 * Defaults to 0, can be changed via sysctl.
65 */
66 unsigned int __read_mostly sysctl_hung_task_all_cpu_backtrace;
67 #else
68 /* Avoid need for ifdefs elsewhere in the code */
> 69 enum { sysctl_hung_task_timeout_secs = 0 };
70 #endif /* CONFIG_SMP */
71
72 /*
73 * Should we panic (and reboot, if panic_timeout= is set) when a
74 * hung task is detected:
75 */
76 unsigned int __read_mostly sysctl_hung_task_panic =
77 CONFIG_BOOTPARAM_HUNG_TASK_PANIC_VALUE;
78
79 static int
80 hung_task_panic(struct notifier_block *this, unsigned long event, void *ptr)
81 {
82 did_panic = 1;
83
84 return NOTIFY_DONE;
85 }
86
87 static struct notifier_block panic_block = {
88 .notifier_call = hung_task_panic,
89 };
90
91 static void check_hung_task(struct task_struct *t, unsigned long timeout)
92 {
93 unsigned long switch_count = t->nvcsw + t->nivcsw;
94
95 /*
96 * Ensure the task is not frozen.
97 * Also, skip vfork and any other user process that freezer should skip.
98 */
99 if (unlikely(t->flags & (PF_FROZEN | PF_FREEZER_SKIP)))
100 return;
101
102 /*
103 * When a freshly created task is scheduled once, changes its state to
104 * TASK_UNINTERRUPTIBLE without having ever been switched out once, it
105 * musn't be checked.
106 */
107 if (unlikely(!switch_count))
108 return;
109
110 if (switch_count != t->last_switch_count) {
111 t->last_switch_count = switch_count;
112 t->last_switch_time = jiffies;
113 return;
114 }
115 if (time_is_after_jiffies(t->last_switch_time + timeout * HZ))
116 return;
117
118 trace_sched_process_hang(t);
119
120 if (sysctl_hung_task_panic) {
121 console_verbose();
122 hung_task_show_lock = true;
123 hung_task_call_panic = true;
124 }
125
126 /*
127 * Ok, the task did not get scheduled for more than 2 minutes,
128 * complain:
129 */
130 if (sysctl_hung_task_warnings) {
131 if (sysctl_hung_task_warnings > 0)
132 sysctl_hung_task_warnings--;
133 pr_err("INFO: task %s:%d blocked for more than %ld seconds.\n",
134 t->comm, t->pid, (jiffies - t->last_switch_time) / HZ);
135 pr_err(" %s %s %.*s\n",
136 print_tainted(), init_utsname()->release,
137 (int)strcspn(init_utsname()->version, " "),
138 init_utsname()->version);
139 pr_err("\"echo 0 > /proc/sys/kernel/hung_task_timeout_secs\""
140 " disables this message.\n");
141 sched_show_task(t);
142 hung_task_show_lock = true;
143
> 144 if (sysctl_hung_task_all_cpu_backtrace)
145 hung_task_show_all_bt = true;
146 }
147
148 touch_nmi_watchdog();
149 }
150
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[rmk-arm:zii 131/148] drivers/net/dsa/mt7530.c:2703:50: error: passing argument 3 of 'dsa_port_phylink_set_pcs' from incompatible pointer type
by kernel test robot
tree: git://git.armlinux.org.uk/~rmk/linux-arm zii
head: 0beed941d41c6668ce945aeab374fc7e1ba652a8
commit: be290dbacc27ecb335b6317742d2230818f7c3f6 [131/148] net: dsa: mt7530: partially convert to phylink_pcs *EXPERIMENTAL*
config: nds32-randconfig-r036-20211122 (attached as .config)
compiler: nds32le-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add rmk-arm git://git.armlinux.org.uk/~rmk/linux-arm
git fetch --no-tags rmk-arm zii
git checkout be290dbacc27ecb335b6317742d2230818f7c3f6
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross ARCH=nds32
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/net/dsa/mt7530.c: In function 'mt753x_phylink_mac_prepare':
>> drivers/net/dsa/mt7530.c:2703:50: error: passing argument 3 of 'dsa_port_phylink_set_pcs' from incompatible pointer type [-Werror=incompatible-pointer-types]
2703 | dsa_port_phylink_set_pcs(priv->ds, port, &priv->pcs[port]);
| ^~~~~~~~~~~~~~~~
| |
| struct mt753x_pcs *
In file included from drivers/net/dsa/mt7530.c:23:
include/net/dsa.h:1096:51: note: expected 'struct phylink_pcs *' but argument is of type 'struct mt753x_pcs *'
1096 | struct phylink_pcs *pcs);
| ~~~~~~~~~~~~~~~~~~~~^~~
drivers/net/dsa/mt7530.c: In function 'mt7531_cpu_port_config':
>> drivers/net/dsa/mt7530.c:2874:52: error: 'struct mt753x_pcs' has no member named 'phylink_pcs'
2874 | mt753x_phylink_pcs_link_up(&priv->pcs[port].phylink_pcs, MLO_AN_FIXED,
| ^
drivers/net/dsa/mt7530.c: At top level:
>> drivers/net/dsa/mt7530.c:3016:25: error: initialization of 'int (*)(struct phylink_pcs *, long unsigned int *, struct phylink_link_state *)' from incompatible pointer type 'void (*)(struct phylink_pcs *, long unsigned int *, struct phylink_link_state *)' [-Werror=incompatible-pointer-types]
3016 | .pcs_validate = mt753x_pcs_validate,
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/mt7530.c:3016:25: note: (near initialization for 'mt7530_pcs_ops.pcs_validate')
drivers/net/dsa/mt7530.c:3023:25: error: initialization of 'int (*)(struct phylink_pcs *, long unsigned int *, struct phylink_link_state *)' from incompatible pointer type 'void (*)(struct phylink_pcs *, long unsigned int *, struct phylink_link_state *)' [-Werror=incompatible-pointer-types]
3023 | .pcs_validate = mt753x_pcs_validate,
| ^~~~~~~~~~~~~~~~~~~
drivers/net/dsa/mt7530.c:3023:25: note: (near initialization for 'mt7531_pcs_ops.pcs_validate')
drivers/net/dsa/mt7530.c: In function 'mt753x_setup':
>> drivers/net/dsa/mt7530.c:3050:33: error: 'priv->pcs[i].pcs' is a pointer; did you mean to use '->'?
3050 | priv->pcs[i].pcs.ops = priv->pcs_ops;
| ^
| ->
>> drivers/net/dsa/mt7530.c:3050:44: error: 'struct mt7530_priv' has no member named 'pcs_ops'
3050 | priv->pcs[i].pcs.ops = priv->pcs_ops;
| ^~
drivers/net/dsa/mt7530.c: At top level:
>> drivers/net/dsa/mt7530.c:3116:35: error: initialization of 'int (*)(struct dsa_switch *, int, unsigned int, phy_interface_t)' from incompatible pointer type 'void (*)(struct dsa_switch *, int, unsigned int, phy_interface_t)' [-Werror=incompatible-pointer-types]
3116 | .phylink_mac_prepare = mt753x_phylink_mac_prepare,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/net/dsa/mt7530.c:3116:35: note: (near initialization for 'mt7530_switch_ops.phylink_mac_prepare')
cc1: some warnings being treated as errors
vim +/dsa_port_phylink_set_pcs +2703 drivers/net/dsa/mt7530.c
2695
2696 static void
2697 mt753x_phylink_mac_prepare(struct dsa_switch *ds, int port, unsigned int mode,
2698 phy_interface_t interface)
2699 {
2700 struct mt7530_priv *priv = ds->priv;
2701
2702 /* Attach our PCS */
> 2703 dsa_port_phylink_set_pcs(priv->ds, port, &priv->pcs[port]);
2704 }
2705
2706 static void
2707 mt753x_phylink_mac_config(struct dsa_switch *ds, int port, unsigned int mode,
2708 const struct phylink_link_state *state)
2709 {
2710 struct mt7530_priv *priv = ds->priv;
2711 u32 mcr_cur, mcr_new;
2712
2713 switch (port) {
2714 case 0 ... 4: /* Internal phy */
2715 if (state->interface != PHY_INTERFACE_MODE_GMII)
2716 goto unsupported;
2717 break;
2718 case 5: /* 2nd cpu port with phy of port 0 or 4 / external phy */
2719 if (priv->p5_interface == state->interface)
2720 break;
2721
2722 if (mt753x_mac_config(ds, port, mode, state) < 0)
2723 goto unsupported;
2724
2725 if (priv->p5_intf_sel != P5_DISABLED)
2726 priv->p5_interface = state->interface;
2727 break;
2728 case 6: /* 1st cpu port */
2729 if (priv->p6_interface == state->interface)
2730 break;
2731
2732 mt753x_pad_setup(ds, state);
2733
2734 if (mt753x_mac_config(ds, port, mode, state) < 0)
2735 goto unsupported;
2736
2737 priv->p6_interface = state->interface;
2738 break;
2739 default:
2740 unsupported:
2741 dev_err(ds->dev, "%s: unsupported %s port: %i\n",
2742 __func__, phy_modes(state->interface), port);
2743 return;
2744 }
2745
2746 if (phylink_autoneg_inband(mode) &&
2747 state->interface != PHY_INTERFACE_MODE_SGMII) {
2748 dev_err(ds->dev, "%s: in-band negotiation unsupported\n",
2749 __func__);
2750 return;
2751 }
2752
2753 mcr_cur = mt7530_read(priv, MT7530_PMCR_P(port));
2754 mcr_new = mcr_cur;
2755 mcr_new &= ~PMCR_LINK_SETTINGS_MASK;
2756 mcr_new |= PMCR_IFG_XMIT(1) | PMCR_MAC_MODE | PMCR_BACKOFF_EN |
2757 PMCR_BACKPR_EN | PMCR_FORCE_MODE_ID(priv->id);
2758
2759 /* Are we connected to external phy */
2760 if (port == 5 && dsa_is_user_port(ds, 5))
2761 mcr_new |= PMCR_EXT_PHY;
2762
2763 if (mcr_new != mcr_cur)
2764 mt7530_write(priv, MT7530_PMCR_P(port), mcr_new);
2765 }
2766
2767 static void mt753x_phylink_mac_link_down(struct dsa_switch *ds, int port,
2768 unsigned int mode,
2769 phy_interface_t interface)
2770 {
2771 struct mt7530_priv *priv = ds->priv;
2772
2773 mt7530_clear(priv, MT7530_PMCR_P(port), PMCR_LINK_SETTINGS_MASK);
2774 }
2775
2776 static void mt753x_phylink_mac_link_up(struct dsa_switch *ds, int port,
2777 unsigned int mode,
2778 phy_interface_t interface,
2779 struct phy_device *phydev,
2780 int speed, int duplex,
2781 bool tx_pause, bool rx_pause)
2782 {
2783 struct mt7530_priv *priv = ds->priv;
2784 u32 mcr;
2785
2786 mcr = PMCR_RX_EN | PMCR_TX_EN | PMCR_FORCE_LNK;
2787
2788 /* MT753x MAC works in 1G full duplex mode for all up-clocked
2789 * variants.
2790 */
2791 if (interface == PHY_INTERFACE_MODE_TRGMII ||
2792 (phy_interface_mode_is_8023z(interface))) {
2793 speed = SPEED_1000;
2794 duplex = DUPLEX_FULL;
2795 }
2796
2797 switch (speed) {
2798 case SPEED_1000:
2799 mcr |= PMCR_FORCE_SPEED_1000;
2800 break;
2801 case SPEED_100:
2802 mcr |= PMCR_FORCE_SPEED_100;
2803 break;
2804 }
2805 if (duplex == DUPLEX_FULL) {
2806 mcr |= PMCR_FORCE_FDX;
2807 if (tx_pause)
2808 mcr |= PMCR_TX_FC_EN;
2809 if (rx_pause)
2810 mcr |= PMCR_RX_FC_EN;
2811 }
2812
2813 if (mode == MLO_AN_PHY && phydev && phy_init_eee(phydev, 0) >= 0) {
2814 switch (speed) {
2815 case SPEED_1000:
2816 mcr |= PMCR_FORCE_EEE1G;
2817 break;
2818 case SPEED_100:
2819 mcr |= PMCR_FORCE_EEE100;
2820 break;
2821 }
2822 }
2823
2824 mt7530_set(priv, MT7530_PMCR_P(port), mcr);
2825 }
2826
2827 static void mt753x_phylink_pcs_link_up(struct phylink_pcs *pcs,
2828 unsigned int mode,
2829 phy_interface_t interface,
2830 int speed, int duplex)
2831 {
2832 if (pcs->ops->pcs_link_up)
2833 pcs->ops->pcs_link_up(pcs, mode, interface, speed, duplex);
2834 }
2835
2836 static int
2837 mt7531_cpu_port_config(struct dsa_switch *ds, int port)
2838 {
2839 struct mt7530_priv *priv = ds->priv;
2840 phy_interface_t interface;
2841 int speed;
2842 int ret;
2843
2844 switch (port) {
2845 case 5:
2846 if (mt7531_is_rgmii_port(priv, port))
2847 interface = PHY_INTERFACE_MODE_RGMII;
2848 else
2849 interface = PHY_INTERFACE_MODE_2500BASEX;
2850
2851 priv->p5_interface = interface;
2852 break;
2853 case 6:
2854 interface = PHY_INTERFACE_MODE_2500BASEX;
2855
2856 mt7531_pad_setup(ds, interface);
2857
2858 priv->p6_interface = interface;
2859 break;
2860 default:
2861 return -EINVAL;
2862 }
2863
2864 if (interface == PHY_INTERFACE_MODE_2500BASEX)
2865 speed = SPEED_2500;
2866 else
2867 speed = SPEED_1000;
2868
2869 ret = mt7531_mac_config(ds, port, MLO_AN_FIXED, interface);
2870 if (ret)
2871 return ret;
2872 mt7530_write(priv, MT7530_PMCR_P(port),
2873 PMCR_CPU_PORT_SETTING(priv->id));
> 2874 mt753x_phylink_pcs_link_up(&priv->pcs[port].phylink_pcs, MLO_AN_FIXED,
2875 interface, speed, DUPLEX_FULL);
2876 mt753x_phylink_mac_link_up(ds, port, MLO_AN_FIXED, interface, NULL,
2877 speed, DUPLEX_FULL, true, true);
2878
2879 return 0;
2880 }
2881
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
Re: [PATCH 1/2] drm/amdkfd: Use bitmap_zalloc() when applicable
by kernel test robot
Hi Christophe,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on drm/drm-next]
[also build test ERROR on v5.16-rc2 next-20211118]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url: https://github.com/0day-ci/linux/commits/Christophe-JAILLET/drm-amdkfd-Us...
base: git://anongit.freedesktop.org/drm/drm drm-next
config: x86_64-randconfig-a015-20211121 (attached as .config)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/0f65744094ce515a9dfe6b5e655ad5986...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Christophe-JAILLET/drm-amdkfd-Use-bitmap_zalloc-when-applicable/20211122-014305
git checkout 0f65744094ce515a9dfe6b5e655ad59861eca35b
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
>> drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c:1438:11: error: called object type 'int' is not a function or function pointer
GFP_KERNEL);
^
include/linux/gfp.h:324:20: note: expanded from macro 'GFP_KERNEL'
#define GFP_KERNEL (__GFP_RECLAIM | __GFP_IO | __GFP_FS)
^
1 error generated.
vim +/int +1438 drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c
1426
1427 static int init_doorbell_bitmap(struct qcm_process_device *qpd,
1428 struct kfd_dev *dev)
1429 {
1430 unsigned int i;
1431 int range_start = dev->shared_resources.non_cp_doorbells_start;
1432 int range_end = dev->shared_resources.non_cp_doorbells_end;
1433
1434 if (!KFD_IS_SOC15(dev->device_info->asic_family))
1435 return 0;
1436
1437 qpd->doorbell_bitmap = bitmap_zalloc(KFD_MAX_NUM_OF_QUEUES_PER_PROCESS
> 1438 GFP_KERNEL);
1439 if (!qpd->doorbell_bitmap)
1440 return -ENOMEM;
1441
1442 /* Mask out doorbells reserved for SDMA, IH, and VCN on SOC15. */
1443 pr_debug("reserved doorbell 0x%03x - 0x%03x\n", range_start, range_end);
1444 pr_debug("reserved doorbell 0x%03x - 0x%03x\n",
1445 range_start + KFD_QUEUE_DOORBELL_MIRROR_OFFSET,
1446 range_end + KFD_QUEUE_DOORBELL_MIRROR_OFFSET);
1447
1448 for (i = 0; i < KFD_MAX_NUM_OF_QUEUES_PER_PROCESS / 2; i++) {
1449 if (i >= range_start && i <= range_end) {
1450 set_bit(i, qpd->doorbell_bitmap);
1451 set_bit(i + KFD_QUEUE_DOORBELL_MIRROR_OFFSET,
1452 qpd->doorbell_bitmap);
1453 }
1454 }
1455
1456 return 0;
1457 }
1458
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c:993:44: warning: variable 'size6' set but not used
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 136057256686de39cc3a07c2e39ef6bc43003ff6
commit: 010b430d5df556d5d232e3751ac691ba9e88c041 mptcp: MPTCP_IPV6 should depend on IPV6 instead of selecting it
date: 1 year, 1 month ago
config: i386-randconfig-a016-20211121 (attached as .config)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 010b430d5df556d5d232e3751ac691ba9e88c041
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
>> drivers/scsi/cxgbi/cxgb4i/cxgb4i.c:993:44: warning: variable 'size6' set but not used [-Wunused-but-set-variable]
int t4 = is_t4(lldi->adapter_type), size, size6;
^
drivers/scsi/cxgbi/cxgb4i/cxgb4i.c:1774:21: warning: variable 'size6' set but not used [-Wunused-but-set-variable]
unsigned int size, size6;
^
2 warnings generated.
vim +/size6 +993 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c
7b36b6e03b0d6c kxie(a)chelsio.com 2010-08-16 985
cd07f958e88250 Kees Cook 2017-08-28 986 static void csk_act_open_retry_timer(struct timer_list *t)
7b36b6e03b0d6c kxie(a)chelsio.com 2010-08-16 987 {
001586a737ee8c Anish Bhatt 2014-10-15 988 struct sk_buff *skb = NULL;
cd07f958e88250 Kees Cook 2017-08-28 989 struct cxgbi_sock *csk = from_timer(csk, t, retry_timer);
3bd3e8bf6250f3 Karen Xie 2013-05-29 990 struct cxgb4_lld_info *lldi = cxgbi_cdev_priv(csk->cdev);
759a0cc5a3e1bc Anish Bhatt 2014-07-17 991 void (*send_act_open_func)(struct cxgbi_sock *, struct sk_buff *,
759a0cc5a3e1bc Anish Bhatt 2014-07-17 992 struct l2t_entry *);
759a0cc5a3e1bc Anish Bhatt 2014-07-17 @993 int t4 = is_t4(lldi->adapter_type), size, size6;
7b36b6e03b0d6c kxie(a)chelsio.com 2010-08-16 994
7b36b6e03b0d6c kxie(a)chelsio.com 2010-08-16 995 log_debug(1 << CXGBI_DBG_TOE | 1 << CXGBI_DBG_SOCK,
7b36b6e03b0d6c kxie(a)chelsio.com 2010-08-16 996 "csk 0x%p,%u,0x%lx,%u.\n",
7b36b6e03b0d6c kxie(a)chelsio.com 2010-08-16 997 csk, csk->state, csk->flags, csk->tid);
7b36b6e03b0d6c kxie(a)chelsio.com 2010-08-16 998
7b36b6e03b0d6c kxie(a)chelsio.com 2010-08-16 999 cxgbi_sock_get(csk);
7b36b6e03b0d6c kxie(a)chelsio.com 2010-08-16 1000 spin_lock_bh(&csk->lock);
759a0cc5a3e1bc Anish Bhatt 2014-07-17 1001
759a0cc5a3e1bc Anish Bhatt 2014-07-17 1002 if (t4) {
759a0cc5a3e1bc Anish Bhatt 2014-07-17 1003 size = sizeof(struct cpl_act_open_req);
759a0cc5a3e1bc Anish Bhatt 2014-07-17 1004 size6 = sizeof(struct cpl_act_open_req6);
759a0cc5a3e1bc Anish Bhatt 2014-07-17 1005 } else {
759a0cc5a3e1bc Anish Bhatt 2014-07-17 1006 size = sizeof(struct cpl_t5_act_open_req);
759a0cc5a3e1bc Anish Bhatt 2014-07-17 1007 size6 = sizeof(struct cpl_t5_act_open_req6);
759a0cc5a3e1bc Anish Bhatt 2014-07-17 1008 }
759a0cc5a3e1bc Anish Bhatt 2014-07-17 1009
759a0cc5a3e1bc Anish Bhatt 2014-07-17 1010 if (csk->csk_family == AF_INET) {
759a0cc5a3e1bc Anish Bhatt 2014-07-17 1011 send_act_open_func = send_act_open_req;
759a0cc5a3e1bc Anish Bhatt 2014-07-17 1012 skb = alloc_wr(size, 0, GFP_ATOMIC);
f42bb57c61fd21 Anish Bhatt 2014-10-14 1013 #if IS_ENABLED(CONFIG_IPV6)
759a0cc5a3e1bc Anish Bhatt 2014-07-17 1014 } else {
759a0cc5a3e1bc Anish Bhatt 2014-07-17 1015 send_act_open_func = send_act_open_req6;
759a0cc5a3e1bc Anish Bhatt 2014-07-17 1016 skb = alloc_wr(size6, 0, GFP_ATOMIC);
f42bb57c61fd21 Anish Bhatt 2014-10-14 1017 #endif
759a0cc5a3e1bc Anish Bhatt 2014-07-17 1018 }
759a0cc5a3e1bc Anish Bhatt 2014-07-17 1019
7b36b6e03b0d6c kxie(a)chelsio.com 2010-08-16 1020 if (!skb)
7b36b6e03b0d6c kxie(a)chelsio.com 2010-08-16 1021 cxgbi_sock_fail_act_open(csk, -ENOMEM);
7b36b6e03b0d6c kxie(a)chelsio.com 2010-08-16 1022 else {
7b36b6e03b0d6c kxie(a)chelsio.com 2010-08-16 1023 skb->sk = (struct sock *)csk;
7b36b6e03b0d6c kxie(a)chelsio.com 2010-08-16 1024 t4_set_arp_err_handler(skb, csk,
7b36b6e03b0d6c kxie(a)chelsio.com 2010-08-16 1025 cxgbi_sock_act_open_req_arp_failure);
759a0cc5a3e1bc Anish Bhatt 2014-07-17 1026 send_act_open_func(csk, skb, csk->l2t);
7b36b6e03b0d6c kxie(a)chelsio.com 2010-08-16 1027 }
759a0cc5a3e1bc Anish Bhatt 2014-07-17 1028
7b36b6e03b0d6c kxie(a)chelsio.com 2010-08-16 1029 spin_unlock_bh(&csk->lock);
7b36b6e03b0d6c kxie(a)chelsio.com 2010-08-16 1030 cxgbi_sock_put(csk);
759a0cc5a3e1bc Anish Bhatt 2014-07-17 1031
:::::: The code at line 993 was first introduced by commit
:::::: 759a0cc5a3e1bc2cc48fa3c0b91bdcad8b8f87d6 cxgb4i: Add ipv6 code to driver, call into libcxgbi ipv6 api
:::::: TO: Anish Bhatt <anish(a)chelsio.com>
:::::: CC: David S. Miller <davem(a)davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[mcgrof-next:20211116-sysctl-cleanups-v4 2/35] kernel/sysctl.c:2672:36: error: 'two' undeclared here (not in a function)
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git 20211116-sysctl-cleanups-v4
head: 5347239461f25fc50aa761923245b9ec4a4aafec
commit: 37e460619d410ba6d64ba60869e4883fb0b397ee [2/35] sysctl: Move some boundary constants form sysctl.c to sysctl_vals
config: m68k-defconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 11.2.0
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git/com...
git remote add mcgrof-next https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux-next.git
git fetch --no-tags mcgrof-next 20211116-sysctl-cleanups-v4
git checkout 37e460619d410ba6d64ba60869e4883fb0b397ee
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=m68k SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
Note: the mcgrof-next/20211116-sysctl-cleanups-v4 HEAD 5347239461f25fc50aa761923245b9ec4a4aafec builds fine.
It only hurts bisectability.
All errors (new ones prefixed by >>):
>> kernel/sysctl.c:2672:36: error: 'two' undeclared here (not in a function)
2672 | .extra2 = &two,
| ^~~
vim +/two +2672 kernel/sysctl.c
cb8e59cc87201a Linus Torvalds 2020-06-03 2417
cb8e59cc87201a Linus Torvalds 2020-06-03 2418 #if (defined(CONFIG_X86_32) || defined(CONFIG_PARISC)) && \
cb8e59cc87201a Linus Torvalds 2020-06-03 2419 defined(CONFIG_DEBUG_STACKOVERFLOW)
^1da177e4c3f41 Linus Torvalds 2005-04-16 2420 {
cb8e59cc87201a Linus Torvalds 2020-06-03 2421 .procname = "panic_on_stackoverflow",
cb8e59cc87201a Linus Torvalds 2020-06-03 2422 .data = &sysctl_panic_on_stackoverflow,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2423 .maxlen = sizeof(int),
^1da177e4c3f41 Linus Torvalds 2005-04-16 2424 .mode = 0644,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2425 .proc_handler = proc_dointvec,
^1da177e4c3f41 Linus Torvalds 2005-04-16 2426 },
cb8e59cc87201a Linus Torvalds 2020-06-03 2427 #endif
cb8e59cc87201a Linus Torvalds 2020-06-03 2428 #if defined(CONFIG_X86)
9cfe015aa424b3 Eric Dumazet 2008-02-06 2429 {
cb8e59cc87201a Linus Torvalds 2020-06-03 2430 .procname = "panic_on_unrecovered_nmi",
cb8e59cc87201a Linus Torvalds 2020-06-03 2431 .data = &panic_on_unrecovered_nmi,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2432 .maxlen = sizeof(int),
9cfe015aa424b3 Eric Dumazet 2008-02-06 2433 .mode = 0644,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2434 .proc_handler = proc_dointvec,
9cfe015aa424b3 Eric Dumazet 2008-02-06 2435 },
^1da177e4c3f41 Linus Torvalds 2005-04-16 2436 {
cb8e59cc87201a Linus Torvalds 2020-06-03 2437 .procname = "panic_on_io_nmi",
cb8e59cc87201a Linus Torvalds 2020-06-03 2438 .data = &panic_on_io_nmi,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2439 .maxlen = sizeof(int),
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2440 .mode = 0644,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2441 .proc_handler = proc_dointvec,
^1da177e4c3f41 Linus Torvalds 2005-04-16 2442 },
^1da177e4c3f41 Linus Torvalds 2005-04-16 2443 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2444 .procname = "bootloader_type",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2445 .data = &bootloader_type,
^1da177e4c3f41 Linus Torvalds 2005-04-16 2446 .maxlen = sizeof (int),
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2447 .mode = 0444,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2448 .proc_handler = proc_dointvec,
^1da177e4c3f41 Linus Torvalds 2005-04-16 2449 },
^1da177e4c3f41 Linus Torvalds 2005-04-16 2450 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2451 .procname = "bootloader_version",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2452 .data = &bootloader_version,
^1da177e4c3f41 Linus Torvalds 2005-04-16 2453 .maxlen = sizeof (int),
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2454 .mode = 0444,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2455 .proc_handler = proc_dointvec,
^1da177e4c3f41 Linus Torvalds 2005-04-16 2456 },
^1da177e4c3f41 Linus Torvalds 2005-04-16 2457 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2458 .procname = "io_delay_type",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2459 .data = &io_delay_type,
^1da177e4c3f41 Linus Torvalds 2005-04-16 2460 .maxlen = sizeof(int),
^1da177e4c3f41 Linus Torvalds 2005-04-16 2461 .mode = 0644,
6d4561110a3e9f Eric W. Biederman 2009-11-16 2462 .proc_handler = proc_dointvec,
^1da177e4c3f41 Linus Torvalds 2005-04-16 2463 },
bfcd17a6c5529b Thomas Petazzoni 2008-08-06 2464 #endif
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2465 #if defined(CONFIG_MMU)
^1da177e4c3f41 Linus Torvalds 2005-04-16 2466 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2467 .procname = "randomize_va_space",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2468 .data = &randomize_va_space,
^1da177e4c3f41 Linus Torvalds 2005-04-16 2469 .maxlen = sizeof(int),
^1da177e4c3f41 Linus Torvalds 2005-04-16 2470 .mode = 0644,
6d4561110a3e9f Eric W. Biederman 2009-11-16 2471 .proc_handler = proc_dointvec,
^1da177e4c3f41 Linus Torvalds 2005-04-16 2472 },
^1da177e4c3f41 Linus Torvalds 2005-04-16 2473 #endif
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2474 #if defined(CONFIG_S390) && defined(CONFIG_SMP)
^1da177e4c3f41 Linus Torvalds 2005-04-16 2475 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2476 .procname = "spin_retry",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2477 .data = &spin_retry,
^1da177e4c3f41 Linus Torvalds 2005-04-16 2478 .maxlen = sizeof (int),
^1da177e4c3f41 Linus Torvalds 2005-04-16 2479 .mode = 0644,
6d4561110a3e9f Eric W. Biederman 2009-11-16 2480 .proc_handler = proc_dointvec,
^1da177e4c3f41 Linus Torvalds 2005-04-16 2481 },
bfcd17a6c5529b Thomas Petazzoni 2008-08-06 2482 #endif
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2483 #if defined(CONFIG_ACPI_SLEEP) && defined(CONFIG_X86)
^1da177e4c3f41 Linus Torvalds 2005-04-16 2484 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2485 .procname = "acpi_video_flags",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2486 .data = &acpi_realmode_flags,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2487 .maxlen = sizeof (unsigned long),
^1da177e4c3f41 Linus Torvalds 2005-04-16 2488 .mode = 0644,
6d4561110a3e9f Eric W. Biederman 2009-11-16 2489 .proc_handler = proc_doulongvec_minmax,
^1da177e4c3f41 Linus Torvalds 2005-04-16 2490 },
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2491 #endif
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2492 #ifdef CONFIG_SYSCTL_ARCH_UNALIGN_NO_WARN
0399cb08c54708 Robert Love 2005-07-13 2493 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2494 .procname = "ignore-unaligned-usertrap",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2495 .data = &no_unaligned_warning,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2496 .maxlen = sizeof (int),
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2497 .mode = 0644,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2498 .proc_handler = proc_dointvec,
0399cb08c54708 Robert Love 2005-07-13 2499 },
0399cb08c54708 Robert Love 2005-07-13 2500 #endif
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2501 #ifdef CONFIG_IA64
7ef9964e6d1b91 Davide Libenzi 2008-12-01 2502 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2503 .procname = "unaligned-dump-stack",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2504 .data = &unaligned_dump_stack,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2505 .maxlen = sizeof (int),
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2506 .mode = 0644,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2507 .proc_handler = proc_dointvec,
7ef9964e6d1b91 Davide Libenzi 2008-12-01 2508 },
7ef9964e6d1b91 Davide Libenzi 2008-12-01 2509 #endif
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2510 #ifdef CONFIG_DETECT_HUNG_TASK
0ec9dc9bcba0a6 Guilherme G. Piccoli 2020-06-07 2511 #ifdef CONFIG_SMP
0ec9dc9bcba0a6 Guilherme G. Piccoli 2020-06-07 2512 {
0ec9dc9bcba0a6 Guilherme G. Piccoli 2020-06-07 2513 .procname = "hung_task_all_cpu_backtrace",
0ec9dc9bcba0a6 Guilherme G. Piccoli 2020-06-07 2514 .data = &sysctl_hung_task_all_cpu_backtrace,
0ec9dc9bcba0a6 Guilherme G. Piccoli 2020-06-07 2515 .maxlen = sizeof(int),
0ec9dc9bcba0a6 Guilherme G. Piccoli 2020-06-07 2516 .mode = 0644,
0ec9dc9bcba0a6 Guilherme G. Piccoli 2020-06-07 2517 .proc_handler = proc_dointvec_minmax,
0ec9dc9bcba0a6 Guilherme G. Piccoli 2020-06-07 2518 .extra1 = SYSCTL_ZERO,
0ec9dc9bcba0a6 Guilherme G. Piccoli 2020-06-07 2519 .extra2 = SYSCTL_ONE,
0ec9dc9bcba0a6 Guilherme G. Piccoli 2020-06-07 2520 },
0ec9dc9bcba0a6 Guilherme G. Piccoli 2020-06-07 2521 #endif /* CONFIG_SMP */
800179c9b8a1e7 Kees Cook 2012-07-25 2522 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2523 .procname = "hung_task_panic",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2524 .data = &sysctl_hung_task_panic,
800179c9b8a1e7 Kees Cook 2012-07-25 2525 .maxlen = sizeof(int),
^1da177e4c3f41 Linus Torvalds 2005-04-16 2526 .mode = 0644,
800179c9b8a1e7 Kees Cook 2012-07-25 2527 .proc_handler = proc_dointvec_minmax,
eec4844fae7c03 Matteo Croce 2019-07-18 2528 .extra1 = SYSCTL_ZERO,
eec4844fae7c03 Matteo Croce 2019-07-18 2529 .extra2 = SYSCTL_ONE,
800179c9b8a1e7 Kees Cook 2012-07-25 2530 },
800179c9b8a1e7 Kees Cook 2012-07-25 2531 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2532 .procname = "hung_task_check_count",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2533 .data = &sysctl_hung_task_check_count,
800179c9b8a1e7 Kees Cook 2012-07-25 2534 .maxlen = sizeof(int),
9cfe015aa424b3 Eric Dumazet 2008-02-06 2535 .mode = 0644,
800179c9b8a1e7 Kees Cook 2012-07-25 2536 .proc_handler = proc_dointvec_minmax,
eec4844fae7c03 Matteo Croce 2019-07-18 2537 .extra1 = SYSCTL_ZERO,
800179c9b8a1e7 Kees Cook 2012-07-25 2538 },
30aba6656f61ed Salvatore Mesoraca 2018-08-23 2539 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2540 .procname = "hung_task_timeout_secs",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2541 .data = &sysctl_hung_task_timeout_secs,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2542 .maxlen = sizeof(unsigned long),
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2543 .mode = 0644,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2544 .proc_handler = proc_dohung_task_timeout_secs,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2545 .extra2 = &hung_task_timeout_max,
30aba6656f61ed Salvatore Mesoraca 2018-08-23 2546 },
30aba6656f61ed Salvatore Mesoraca 2018-08-23 2547 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2548 .procname = "hung_task_check_interval_secs",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2549 .data = &sysctl_hung_task_check_interval_secs,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2550 .maxlen = sizeof(unsigned long),
^1da177e4c3f41 Linus Torvalds 2005-04-16 2551 .mode = 0644,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2552 .proc_handler = proc_dohung_task_timeout_secs,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2553 .extra2 = &hung_task_timeout_max,
^1da177e4c3f41 Linus Torvalds 2005-04-16 2554 },
^1da177e4c3f41 Linus Torvalds 2005-04-16 2555 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2556 .procname = "hung_task_warnings",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2557 .data = &sysctl_hung_task_warnings,
30aba6656f61ed Salvatore Mesoraca 2018-08-23 2558 .maxlen = sizeof(int),
^1da177e4c3f41 Linus Torvalds 2005-04-16 2559 .mode = 0644,
30aba6656f61ed Salvatore Mesoraca 2018-08-23 2560 .proc_handler = proc_dointvec_minmax,
37e460619d410b Xiaoming Ni 2020-05-16 2561 .extra1 = SYSCTL_NEG_ONE,
30aba6656f61ed Salvatore Mesoraca 2018-08-23 2562 },
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2563 #endif
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2564 #ifdef CONFIG_RT_MUTEXES
d6e711448137ca Alan Cox 2005-06-23 2565 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2566 .procname = "max_lock_depth",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2567 .data = &max_lock_depth,
d6e711448137ca Alan Cox 2005-06-23 2568 .maxlen = sizeof(int),
d6e711448137ca Alan Cox 2005-06-23 2569 .mode = 0644,
6d4561110a3e9f Eric W. Biederman 2009-11-16 2570 .proc_handler = proc_dointvec,
d6e711448137ca Alan Cox 2005-06-23 2571 },
bfcd17a6c5529b Thomas Petazzoni 2008-08-06 2572 #endif
2abc26fc6b6f60 Eric W. Biederman 2007-02-14 2573 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2574 .procname = "poweroff_cmd",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2575 .data = &poweroff_cmd,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2576 .maxlen = POWEROFF_CMD_PATH_LEN,
^1da177e4c3f41 Linus Torvalds 2005-04-16 2577 .mode = 0644,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2578 .proc_handler = proc_dostring,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2579 },
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2580 #ifdef CONFIG_KEYS
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2581 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2582 .procname = "keys",
2abc26fc6b6f60 Eric W. Biederman 2007-02-14 2583 .mode = 0555,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2584 .child = key_sysctls,
2abc26fc6b6f60 Eric W. Biederman 2007-02-14 2585 },
2abc26fc6b6f60 Eric W. Biederman 2007-02-14 2586 #endif
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2587 #ifdef CONFIG_PERF_EVENTS
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2588 /*
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2589 * User-space scripts rely on the existence of this file
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2590 * as a feature check for perf_events being enabled.
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2591 *
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2592 * So it's an ABI, do not remove!
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2593 */
b492e95be0ae67 Jens Axboe 2010-05-19 2594 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2595 .procname = "perf_event_paranoid",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2596 .data = &sysctl_perf_event_paranoid,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2597 .maxlen = sizeof(sysctl_perf_event_paranoid),
b492e95be0ae67 Jens Axboe 2010-05-19 2598 .mode = 0644,
6d4561110a3e9f Eric W. Biederman 2009-11-16 2599 .proc_handler = proc_dointvec,
b492e95be0ae67 Jens Axboe 2010-05-19 2600 },
759c01142a5d0f Willy Tarreau 2016-01-18 2601 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2602 .procname = "perf_event_mlock_kb",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2603 .data = &sysctl_perf_event_mlock,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2604 .maxlen = sizeof(sysctl_perf_event_mlock),
759c01142a5d0f Willy Tarreau 2016-01-18 2605 .mode = 0644,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2606 .proc_handler = proc_dointvec,
759c01142a5d0f Willy Tarreau 2016-01-18 2607 },
759c01142a5d0f Willy Tarreau 2016-01-18 2608 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2609 .procname = "perf_event_max_sample_rate",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2610 .data = &sysctl_perf_event_sample_rate,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2611 .maxlen = sizeof(sysctl_perf_event_sample_rate),
759c01142a5d0f Willy Tarreau 2016-01-18 2612 .mode = 0644,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2613 .proc_handler = perf_proc_update_handler,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2614 .extra1 = SYSCTL_ONE,
759c01142a5d0f Willy Tarreau 2016-01-18 2615 },
d29216842a85c7 Eric W. Biederman 2016-09-28 2616 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2617 .procname = "perf_cpu_time_max_percent",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2618 .data = &sysctl_perf_cpu_time_max_percent,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2619 .maxlen = sizeof(sysctl_perf_cpu_time_max_percent),
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2620 .mode = 0644,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2621 .proc_handler = perf_cpu_time_max_percent_handler,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2622 .extra1 = SYSCTL_ZERO,
37e460619d410b Xiaoming Ni 2020-05-16 2623 .extra2 = SYSCTL_ONE_HUNDRED,
0399cb08c54708 Robert Love 2005-07-13 2624 },
7ef9964e6d1b91 Davide Libenzi 2008-12-01 2625 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2626 .procname = "perf_event_max_stack",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2627 .data = &sysctl_perf_event_max_stack,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2628 .maxlen = sizeof(sysctl_perf_event_max_stack),
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2629 .mode = 0644,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2630 .proc_handler = perf_event_max_stack_handler,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2631 .extra1 = SYSCTL_ZERO,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2632 .extra2 = &six_hundred_forty_kb,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2633 },
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2634 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2635 .procname = "perf_event_max_contexts_per_stack",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2636 .data = &sysctl_perf_event_max_contexts_per_stack,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2637 .maxlen = sizeof(sysctl_perf_event_max_contexts_per_stack),
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2638 .mode = 0644,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2639 .proc_handler = perf_event_max_stack_handler,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2640 .extra1 = SYSCTL_ZERO,
37e460619d410b Xiaoming Ni 2020-05-16 2641 .extra2 = SYSCTL_ONE_THOUSAND,
7ef9964e6d1b91 Davide Libenzi 2008-12-01 2642 },
^1da177e4c3f41 Linus Torvalds 2005-04-16 2643 #endif
800179c9b8a1e7 Kees Cook 2012-07-25 2644 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2645 .procname = "panic_on_warn",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2646 .data = &panic_on_warn,
800179c9b8a1e7 Kees Cook 2012-07-25 2647 .maxlen = sizeof(int),
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2648 .mode = 0644,
800179c9b8a1e7 Kees Cook 2012-07-25 2649 .proc_handler = proc_dointvec_minmax,
eec4844fae7c03 Matteo Croce 2019-07-18 2650 .extra1 = SYSCTL_ZERO,
eec4844fae7c03 Matteo Croce 2019-07-18 2651 .extra2 = SYSCTL_ONE,
800179c9b8a1e7 Kees Cook 2012-07-25 2652 },
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2653 #if defined(CONFIG_SMP) && defined(CONFIG_NO_HZ_COMMON)
800179c9b8a1e7 Kees Cook 2012-07-25 2654 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2655 .procname = "timer_migration",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2656 .data = &sysctl_timer_migration,
d29216842a85c7 Eric W. Biederman 2016-09-28 2657 .maxlen = sizeof(unsigned int),
d29216842a85c7 Eric W. Biederman 2016-09-28 2658 .mode = 0644,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2659 .proc_handler = timer_migration_handler,
eec4844fae7c03 Matteo Croce 2019-07-18 2660 .extra1 = SYSCTL_ZERO,
eec4844fae7c03 Matteo Croce 2019-07-18 2661 .extra2 = SYSCTL_ONE,
800179c9b8a1e7 Kees Cook 2012-07-25 2662 },
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2663 #endif
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2664 #ifdef CONFIG_BPF_SYSCALL
30aba6656f61ed Salvatore Mesoraca 2018-08-23 2665 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2666 .procname = "unprivileged_bpf_disabled",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2667 .data = &sysctl_unprivileged_bpf_disabled,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2668 .maxlen = sizeof(sysctl_unprivileged_bpf_disabled),
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2669 .mode = 0644,
08389d888287c3 Daniel Borkmann 2021-05-11 2670 .proc_handler = bpf_unpriv_handler,
08389d888287c3 Daniel Borkmann 2021-05-11 2671 .extra1 = SYSCTL_ZERO,
08389d888287c3 Daniel Borkmann 2021-05-11 @2672 .extra2 = &two,
d29216842a85c7 Eric W. Biederman 2016-09-28 2673 },
abd4f7505bafdd Masoud Asgharifard Sharbiani 2007-07-22 2674 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2675 .procname = "bpf_stats_enabled",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2676 .data = &bpf_stats_enabled_key.key,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2677 .maxlen = sizeof(bpf_stats_enabled_key),
abd4f7505bafdd Masoud Asgharifard Sharbiani 2007-07-22 2678 .mode = 0644,
d46edd671a1470 Song Liu 2020-04-30 2679 .proc_handler = bpf_stats_handler,
abd4f7505bafdd Masoud Asgharifard Sharbiani 2007-07-22 2680 },
b2be84df99ebc9 Masami Hiramatsu 2010-02-25 2681 #endif
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2682 #if defined(CONFIG_TREE_RCU)
b2be84df99ebc9 Masami Hiramatsu 2010-02-25 2683 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2684 .procname = "panic_on_rcu_stall",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2685 .data = &sysctl_panic_on_rcu_stall,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2686 .maxlen = sizeof(sysctl_panic_on_rcu_stall),
b2be84df99ebc9 Masami Hiramatsu 2010-02-25 2687 .mode = 0644,
30aba6656f61ed Salvatore Mesoraca 2018-08-23 2688 .proc_handler = proc_dointvec_minmax,
eec4844fae7c03 Matteo Croce 2019-07-18 2689 .extra1 = SYSCTL_ZERO,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2690 .extra2 = SYSCTL_ONE,
30aba6656f61ed Salvatore Mesoraca 2018-08-23 2691 },
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2692 #endif
dfe564045c653d chao 2020-08-30 2693 #if defined(CONFIG_TREE_RCU)
dfe564045c653d chao 2020-08-30 2694 {
dfe564045c653d chao 2020-08-30 2695 .procname = "max_rcu_stall_to_panic",
dfe564045c653d chao 2020-08-30 2696 .data = &sysctl_max_rcu_stall_to_panic,
dfe564045c653d chao 2020-08-30 2697 .maxlen = sizeof(sysctl_max_rcu_stall_to_panic),
dfe564045c653d chao 2020-08-30 2698 .mode = 0644,
dfe564045c653d chao 2020-08-30 2699 .proc_handler = proc_dointvec_minmax,
dfe564045c653d chao 2020-08-30 2700 .extra1 = SYSCTL_ONE,
dfe564045c653d chao 2020-08-30 2701 .extra2 = SYSCTL_INT_MAX,
dfe564045c653d chao 2020-08-30 2702 },
dfe564045c653d chao 2020-08-30 2703 #endif
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2704 #ifdef CONFIG_STACKLEAK_RUNTIME_DISABLE
30aba6656f61ed Salvatore Mesoraca 2018-08-23 2705 {
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2706 .procname = "stack_erasing",
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2707 .data = NULL,
30aba6656f61ed Salvatore Mesoraca 2018-08-23 2708 .maxlen = sizeof(int),
30aba6656f61ed Salvatore Mesoraca 2018-08-23 2709 .mode = 0600,
f461d2dcd511c0 Christoph Hellwig 2020-04-24 2710 .proc_handler = stack_erasing_sysctl,
eec4844fae7c03 Matteo Croce 2019-07-18 2711 .extra1 = SYSCTL_ZERO,
eec4844fae7c03 Matteo Croce 2019-07-18 2712 .extra2 = SYSCTL_ONE,
b2be84df99ebc9 Masami Hiramatsu 2010-02-25 2713 },
abd4f7505bafdd Masoud Asgharifard Sharbiani 2007-07-22 2714 #endif
6fce56ec91b502 Eric W. Biederman 2009-04-03 2715 { }
^1da177e4c3f41 Linus Torvalds 2005-04-16 2716 };
^1da177e4c3f41 Linus Torvalds 2005-04-16 2717
:::::: The code at line 2672 was first introduced by commit
:::::: 08389d888287c3823f80b0216766b71e17f0aba5 bpf: Add kconfig knob for disabling unpriv bpf by default
:::::: TO: Daniel Borkmann <daniel(a)iogearbox.net>
:::::: CC: Alexei Starovoitov <ast(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months
[xilinx-xlnx:master 11230/12535] drivers/remoteproc/ingenic_rproc.c:144:14: error: incompatible function pointer types initializing 'void *(*)(struct rproc *, u64, int)' (aka 'void *(*)(struct rproc *, unsigned long long, int)') with an expression of type 'void *(struct rproc *, u64, siz...
by kernel test robot
tree: https://github.com/Xilinx/linux-xlnx master
head: 0a88ef03d3015782318b4bc94ceb20dca375a01b
commit: a324889a971b8e827c53deaffe630b420bde4067 [11230/12535] remoteproc: Add support for peek from remote and acking kick from remote
config: powerpc-randconfig-r026-20210930 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 28981015526f2192440c18f18e8a20cd11b0779c)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
# https://github.com/Xilinx/linux-xlnx/commit/a324889a971b8e827c53deaffe630...
git remote add xilinx-xlnx https://github.com/Xilinx/linux-xlnx
git fetch --no-tags xilinx-xlnx master
git checkout a324889a971b8e827c53deaffe630b420bde4067
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=powerpc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
In file included from drivers/remoteproc/ingenic_rproc.c:7:
In file included from include/linux/bitops.h:29:
In file included from arch/powerpc/include/asm/bitops.h:62:
arch/powerpc/include/asm/barrier.h:49:9: warning: '__lwsync' macro redefined [-Wmacro-redefined]
#define __lwsync() __asm__ __volatile__ (stringify_in_c(LWSYNC) : : :"memory")
^
<built-in>:310:9: note: previous definition is here
#define __lwsync __builtin_ppc_lwsync
^
>> drivers/remoteproc/ingenic_rproc.c:144:14: error: incompatible function pointer types initializing 'void *(*)(struct rproc *, u64, int)' (aka 'void *(*)(struct rproc *, unsigned long long, int)') with an expression of type 'void *(struct rproc *, u64, size_t)' (aka 'void *(struct rproc *, unsigned long long, unsigned int)') [-Werror,-Wincompatible-function-pointer-types]
.da_to_va = ingenic_rproc_da_to_va,
^~~~~~~~~~~~~~~~~~~~~~
1 warning and 1 error generated.
vim +144 drivers/remoteproc/ingenic_rproc.c
48f0a1bbb7586c Paul Cercueil 2020-05-15 137
48f0a1bbb7586c Paul Cercueil 2020-05-15 138 static struct rproc_ops ingenic_rproc_ops = {
4605ad8f458198 Mathieu Poirier 2020-06-30 139 .prepare = ingenic_rproc_prepare,
4605ad8f458198 Mathieu Poirier 2020-06-30 140 .unprepare = ingenic_rproc_unprepare,
48f0a1bbb7586c Paul Cercueil 2020-05-15 141 .start = ingenic_rproc_start,
48f0a1bbb7586c Paul Cercueil 2020-05-15 142 .stop = ingenic_rproc_stop,
48f0a1bbb7586c Paul Cercueil 2020-05-15 143 .kick = ingenic_rproc_kick,
48f0a1bbb7586c Paul Cercueil 2020-05-15 @144 .da_to_va = ingenic_rproc_da_to_va,
48f0a1bbb7586c Paul Cercueil 2020-05-15 145 };
48f0a1bbb7586c Paul Cercueil 2020-05-15 146
:::::: The code at line 144 was first introduced by commit
:::::: 48f0a1bbb7586c94e0f15116b06f8179df2fd60f remoteproc: ingenic: Added remoteproc driver
:::::: TO: Paul Cercueil <paul(a)crapouillou.net>
:::::: CC: Bjorn Andersson <bjorn.andersson(a)linaro.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
10 months