lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202203301144.4U0W3gWI-lkp@intel.com>
Date:   Wed, 30 Mar 2022 11:48:05 +0800
From:   kernel test robot <lkp@...el.com>
To:     Wei Xiao <xiaowei66@...wei.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
        Luis Chamberlain <mcgrof@...nel.org>
Subject: [mcgrof:sysctl-next 18/18] kernel/sysctl.c:1767:36: error: 'C_A_D'
 undeclared here (not in a function)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git sysctl-next
head:   84053cc7ef2f2f86caeea6a8c0944b2f0b3f33ca
commit: 84053cc7ef2f2f86caeea6a8c0944b2f0b3f33ca [18/18] ftrace: move sysctl_ftrace_enabled to ftrace.c
config: powerpc-allnoconfig (https://download.01.org/0day-ci/archive/20220330/202203301144.4U0W3gWI-lkp@intel.com/config)
compiler: powerpc-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.git/commit/?id=84053cc7ef2f2f86caeea6a8c0944b2f0b3f33ca
        git remote add mcgrof https://git.kernel.org/pub/scm/linux/kernel/git/mcgrof/linux.git
        git fetch --no-tags mcgrof sysctl-next
        git checkout 84053cc7ef2f2f86caeea6a8c0944b2f0b3f33ca
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross O=build_dir ARCH=powerpc SHELL=/bin/bash

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>

All errors (new ones prefixed by >>):

>> kernel/sysctl.c:1767:36: error: 'C_A_D' undeclared here (not in a function)
    1767 |                 .data           = &C_A_D,
         |                                    ^~~~~


vim +/C_A_D +1767 kernel/sysctl.c

  1651	
  1652	static struct ctl_table kern_table[] = {
  1653	#ifdef CONFIG_NUMA_BALANCING
  1654		{
  1655			.procname	= "numa_balancing",
  1656			.data		= NULL, /* filled in by handler */
  1657			.maxlen		= sizeof(unsigned int),
  1658			.mode		= 0644,
  1659			.proc_handler	= sysctl_numa_balancing,
  1660			.extra1		= SYSCTL_ZERO,
  1661			.extra2		= SYSCTL_FOUR,
  1662		},
  1663	#endif /* CONFIG_NUMA_BALANCING */
  1664	#ifdef CONFIG_SCHED_AUTOGROUP
  1665		{
  1666			.procname	= "sched_autogroup_enabled",
  1667			.data		= &sysctl_sched_autogroup_enabled,
  1668			.maxlen		= sizeof(unsigned int),
  1669			.mode		= 0644,
  1670			.proc_handler	= proc_dointvec_minmax,
  1671			.extra1		= SYSCTL_ZERO,
  1672			.extra2		= SYSCTL_ONE,
  1673		},
  1674	#endif
  1675		{
  1676			.procname	= "panic",
  1677			.data		= &panic_timeout,
  1678			.maxlen		= sizeof(int),
  1679			.mode		= 0644,
  1680			.proc_handler	= proc_dointvec,
  1681		},
  1682	#ifdef CONFIG_PROC_SYSCTL
  1683		{
  1684			.procname	= "tainted",
  1685			.maxlen 	= sizeof(long),
  1686			.mode		= 0644,
  1687			.proc_handler	= proc_taint,
  1688		},
  1689		{
  1690			.procname	= "sysctl_writes_strict",
  1691			.data		= &sysctl_writes_strict,
  1692			.maxlen		= sizeof(int),
  1693			.mode		= 0644,
  1694			.proc_handler	= proc_dointvec_minmax,
  1695			.extra1		= SYSCTL_NEG_ONE,
  1696			.extra2		= SYSCTL_ONE,
  1697		},
  1698	#endif
  1699	#ifdef CONFIG_LATENCYTOP
  1700		{
  1701			.procname	= "latencytop",
  1702			.data		= &latencytop_enabled,
  1703			.maxlen		= sizeof(int),
  1704			.mode		= 0644,
  1705			.proc_handler	= sysctl_latencytop,
  1706		},
  1707	#endif
  1708		{
  1709			.procname	= "print-fatal-signals",
  1710			.data		= &print_fatal_signals,
  1711			.maxlen		= sizeof(int),
  1712			.mode		= 0644,
  1713			.proc_handler	= proc_dointvec,
  1714		},
  1715	#ifdef CONFIG_SPARC
  1716		{
  1717			.procname	= "reboot-cmd",
  1718			.data		= reboot_command,
  1719			.maxlen		= 256,
  1720			.mode		= 0644,
  1721			.proc_handler	= proc_dostring,
  1722		},
  1723		{
  1724			.procname	= "stop-a",
  1725			.data		= &stop_a_enabled,
  1726			.maxlen		= sizeof (int),
  1727			.mode		= 0644,
  1728			.proc_handler	= proc_dointvec,
  1729		},
  1730		{
  1731			.procname	= "scons-poweroff",
  1732			.data		= &scons_pwroff,
  1733			.maxlen		= sizeof (int),
  1734			.mode		= 0644,
  1735			.proc_handler	= proc_dointvec,
  1736		},
  1737	#endif
  1738	#ifdef CONFIG_SPARC64
  1739		{
  1740			.procname	= "tsb-ratio",
  1741			.data		= &sysctl_tsb_ratio,
  1742			.maxlen		= sizeof (int),
  1743			.mode		= 0644,
  1744			.proc_handler	= proc_dointvec,
  1745		},
  1746	#endif
  1747	#ifdef CONFIG_PARISC
  1748		{
  1749			.procname	= "soft-power",
  1750			.data		= &pwrsw_enabled,
  1751			.maxlen		= sizeof (int),
  1752			.mode		= 0644,
  1753			.proc_handler	= proc_dointvec,
  1754		},
  1755	#endif
  1756	#ifdef CONFIG_SYSCTL_ARCH_UNALIGN_ALLOW
  1757		{
  1758			.procname	= "unaligned-trap",
  1759			.data		= &unaligned_enabled,
  1760			.maxlen		= sizeof (int),
  1761			.mode		= 0644,
  1762			.proc_handler	= proc_dointvec,
  1763		},
  1764	#endif
  1765		{
  1766			.procname	= "ctrl-alt-del",
> 1767			.data		= &C_A_D,
  1768			.maxlen		= sizeof(int),
  1769			.mode		= 0644,
  1770			.proc_handler	= proc_dointvec,
  1771		},
  1772	#ifdef CONFIG_STACK_TRACER
  1773		{
  1774			.procname	= "stack_tracer_enabled",
  1775			.data		= &stack_tracer_enabled,
  1776			.maxlen		= sizeof(int),
  1777			.mode		= 0644,
  1778			.proc_handler	= stack_trace_sysctl,
  1779		},
  1780	#endif
  1781	#ifdef CONFIG_TRACING
  1782		{
  1783			.procname	= "ftrace_dump_on_oops",
  1784			.data		= &ftrace_dump_on_oops,
  1785			.maxlen		= sizeof(int),
  1786			.mode		= 0644,
  1787			.proc_handler	= proc_dointvec,
  1788		},
  1789		{
  1790			.procname	= "traceoff_on_warning",
  1791			.data		= &__disable_trace_on_warning,
  1792			.maxlen		= sizeof(__disable_trace_on_warning),
  1793			.mode		= 0644,
  1794			.proc_handler	= proc_dointvec,
  1795		},
  1796		{
  1797			.procname	= "tracepoint_printk",
  1798			.data		= &tracepoint_printk,
  1799			.maxlen		= sizeof(tracepoint_printk),
  1800			.mode		= 0644,
  1801			.proc_handler	= tracepoint_printk_sysctl,
  1802		},
  1803	#endif
  1804	#ifdef CONFIG_KEXEC_CORE
  1805		{
  1806			.procname	= "kexec_load_disabled",
  1807			.data		= &kexec_load_disabled,
  1808			.maxlen		= sizeof(int),
  1809			.mode		= 0644,
  1810			/* only handle a transition from default "0" to "1" */
  1811			.proc_handler	= proc_dointvec_minmax,
  1812			.extra1		= SYSCTL_ONE,
  1813			.extra2		= SYSCTL_ONE,
  1814		},
  1815	#endif
  1816	#ifdef CONFIG_MODULES
  1817		{
  1818			.procname	= "modprobe",
  1819			.data		= &modprobe_path,
  1820			.maxlen		= KMOD_PATH_LEN,
  1821			.mode		= 0644,
  1822			.proc_handler	= proc_dostring,
  1823		},
  1824		{
  1825			.procname	= "modules_disabled",
  1826			.data		= &modules_disabled,
  1827			.maxlen		= sizeof(int),
  1828			.mode		= 0644,
  1829			/* only handle a transition from default "0" to "1" */
  1830			.proc_handler	= proc_dointvec_minmax,
  1831			.extra1		= SYSCTL_ONE,
  1832			.extra2		= SYSCTL_ONE,
  1833		},
  1834	#endif
  1835	#ifdef CONFIG_UEVENT_HELPER
  1836		{
  1837			.procname	= "hotplug",
  1838			.data		= &uevent_helper,
  1839			.maxlen		= UEVENT_HELPER_PATH_LEN,
  1840			.mode		= 0644,
  1841			.proc_handler	= proc_dostring,
  1842		},
  1843	#endif
  1844	#ifdef CONFIG_MAGIC_SYSRQ
  1845		{
  1846			.procname	= "sysrq",
  1847			.data		= NULL,
  1848			.maxlen		= sizeof (int),
  1849			.mode		= 0644,
  1850			.proc_handler	= sysrq_sysctl_handler,
  1851		},
  1852	#endif
  1853	#ifdef CONFIG_PROC_SYSCTL
  1854		{
  1855			.procname	= "cad_pid",
  1856			.data		= NULL,
  1857			.maxlen		= sizeof (int),
  1858			.mode		= 0600,
  1859			.proc_handler	= proc_do_cad_pid,
  1860		},
  1861	#endif
  1862		{
  1863			.procname	= "threads-max",
  1864			.data		= NULL,
  1865			.maxlen		= sizeof(int),
  1866			.mode		= 0644,
  1867			.proc_handler	= sysctl_max_threads,
  1868		},
  1869		{
  1870			.procname	= "usermodehelper",
  1871			.mode		= 0555,
  1872			.child		= usermodehelper_table,
  1873		},
  1874		{
  1875			.procname	= "overflowuid",
  1876			.data		= &overflowuid,
  1877			.maxlen		= sizeof(int),
  1878			.mode		= 0644,
  1879			.proc_handler	= proc_dointvec_minmax,
  1880			.extra1		= SYSCTL_ZERO,
  1881			.extra2		= SYSCTL_MAXOLDUID,
  1882		},
  1883		{
  1884			.procname	= "overflowgid",
  1885			.data		= &overflowgid,
  1886			.maxlen		= sizeof(int),
  1887			.mode		= 0644,
  1888			.proc_handler	= proc_dointvec_minmax,
  1889			.extra1		= SYSCTL_ZERO,
  1890			.extra2		= SYSCTL_MAXOLDUID,
  1891		},
  1892	#ifdef CONFIG_S390
  1893		{
  1894			.procname	= "userprocess_debug",
  1895			.data		= &show_unhandled_signals,
  1896			.maxlen		= sizeof(int),
  1897			.mode		= 0644,
  1898			.proc_handler	= proc_dointvec,
  1899		},
  1900	#endif
  1901		{
  1902			.procname	= "pid_max",
  1903			.data		= &pid_max,
  1904			.maxlen		= sizeof (int),
  1905			.mode		= 0644,
  1906			.proc_handler	= proc_dointvec_minmax,
  1907			.extra1		= &pid_max_min,
  1908			.extra2		= &pid_max_max,
  1909		},
  1910		{
  1911			.procname	= "panic_on_oops",
  1912			.data		= &panic_on_oops,
  1913			.maxlen		= sizeof(int),
  1914			.mode		= 0644,
  1915			.proc_handler	= proc_dointvec,
  1916		},
  1917		{
  1918			.procname	= "panic_print",
  1919			.data		= &panic_print,
  1920			.maxlen		= sizeof(unsigned long),
  1921			.mode		= 0644,
  1922			.proc_handler	= proc_doulongvec_minmax,
  1923		},
  1924		{
  1925			.procname	= "ngroups_max",
  1926			.data		= (void *)&ngroups_max,
  1927			.maxlen		= sizeof (int),
  1928			.mode		= 0444,
  1929			.proc_handler	= proc_dointvec,
  1930		},
  1931		{
  1932			.procname	= "cap_last_cap",
  1933			.data		= (void *)&cap_last_cap,
  1934			.maxlen		= sizeof(int),
  1935			.mode		= 0444,
  1936			.proc_handler	= proc_dointvec,
  1937		},
  1938	#if defined(CONFIG_X86_LOCAL_APIC) && defined(CONFIG_X86)
  1939		{
  1940			.procname       = "unknown_nmi_panic",
  1941			.data           = &unknown_nmi_panic,
  1942			.maxlen         = sizeof (int),
  1943			.mode           = 0644,
  1944			.proc_handler   = proc_dointvec,
  1945		},
  1946	#endif
  1947	

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ