Re: [PATCH net-next 2/4] net: dsa: Add wrappers for overloaded ndo_ops
by kernel test robot
Hi Florian,
I love your patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
url: https://github.com/0day-ci/linux/commits/Florian-Fainelli/net-dsa-Setup-d...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git dcc82bb0727c08f93a91fa7532b950bafa2598f2
config: i386-allyesconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
# 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 >>):
In file included from drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c:18:
>> include/net/dsa.h:720:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration]
720 | dsa_build_ndo_op(ndo_do_ioctl, struct ifreq *, ifr, int, cmd);
| ^~~~~~~~~~~~~~~~
include/net/dsa.h:721:1: warning: 'inline' is not at beginning of declaration [-Wold-style-declaration]
721 | dsa_build_ndo_op(ndo_get_phys_port_name, char *, name, size_t, len);
| ^~~~~~~~~~~~~~~~
vim +/inline +720 include/net/dsa.h
719
> 720 dsa_build_ndo_op(ndo_do_ioctl, struct ifreq *, ifr, int, cmd);
721 dsa_build_ndo_op(ndo_get_phys_port_name, char *, name, size_t, len);
722
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[rppt:secretmemfd/v0 6/6] ld: secretmem.c:undefined reference to `gen_pool_avail'
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/rppt/linux.git secretmemfd/v0
head: 1326697aa18ea5ff8a6bf71797e79bee601afcba
commit: 1326697aa18ea5ff8a6bf71797e79bee601afcba [6/6] mm: secretmem: add ability to reserve memory at boot
config: i386-tinyconfig (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
git checkout 1326697aa18ea5ff8a6bf71797e79bee601afcba
# 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 >>):
ld: mm/secretmem.o: in function `secretmem_freepage':
secretmem.c:(.text+0x2a): undefined reference to `gen_pool_free_owner'
ld: mm/secretmem.o: in function `secretmem_evict_inode':
secretmem.c:(.text+0x70): undefined reference to `gen_pool_for_each_chunk'
ld: secretmem.c:(.text+0x78): undefined reference to `gen_pool_destroy'
ld: mm/secretmem.o: in function `secretmem_init':
secretmem.c:(.text+0x115): undefined reference to `gen_pool_create'
ld: secretmem.c:(.text+0x13c): undefined reference to `gen_pool_add_owner'
ld: secretmem.c:(.text+0x152): undefined reference to `gen_pool_destroy'
ld: secretmem.c:(.text+0x1d2): undefined reference to `gen_pool_destroy'
ld: mm/secretmem.o: in function `secretmem_cleanup_chunk':
secretmem.c:(.text+0x210): undefined reference to `gen_pool_free_owner'
ld: mm/secretmem.o: in function `secretmem_fault':
secretmem.c:(.text+0x2c5): undefined reference to `gen_pool_avail'
>> ld: secretmem.c:(.text+0x2e7): undefined reference to `gen_pool_avail'
ld: secretmem.c:(.text+0x306): undefined reference to `gen_pool_alloc_algo_owner'
ld: secretmem.c:(.text+0x37b): undefined reference to `gen_pool_add_owner'
ld: secretmem.c:(.text+0x3b5): undefined reference to `gen_pool_alloc_algo_owner'
ld: mm/secretmem.o: in function `__ia32_sys_secretmemfd':
secretmem.c:(.text+0x4db): undefined reference to `gen_pool_create'
ld: secretmem.c:(.text+0x50d): undefined reference to `gen_pool_destroy'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [RFC PATCH 5/5] keys: Implement a 'container' keyring
by kernel test robot
Hi David,
[FYI, it's a private test report for your RFC patch.]
[auto build test ERROR on cifs/for-next]
[also build test ERROR on dm/for-next linus/master v5.8-rc5 next-20200717]
[cannot apply to security/next-testing pcmoore-selinux/next]
[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/David-Howells/keys-Security-chan...
base: git://git.samba.org/sfrench/cifs-2.6.git for-next
config: i386-randconfig-r032-20200719 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-14) 9.3.0
reproduce (this is a W=1 build):
# 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 >>):
>> security/keys/keyctl.c:1823:6: error: redefinition of 'keyctl_get_container_keyring'
1823 | long keyctl_get_container_keyring(int container_fd, key_serial_t destringid)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from security/keys/keyctl.c:29:
security/keys/internal.h:393:20: note: previous definition of 'keyctl_get_container_keyring' was here
393 | static inline long keyctl_get_container_keyring(int container_fd, key_serial_t destringid)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/keyctl_get_container_keyring +1823 security/keys/keyctl.c
1818
1819 /*
1820 * Get the container keyring attached to a container. The container is
1821 * referenced by a file descriptor referring to, say, a user_namespace.
1822 */
> 1823 long keyctl_get_container_keyring(int container_fd, key_serial_t destringid)
1824 {
1825 struct user_namespace *user_ns;
1826 struct ns_common *ns;
1827 struct file *f;
1828 struct key *keyring;
1829 key_ref_t dest_ref;
1830 int ret = -EINVAL;
1831
1832 f = fget(container_fd);
1833 if (!f)
1834 return -EBADF;
1835
1836 if (!proc_ns_file(f))
1837 goto error_file;
1838 ns = get_proc_ns(file_inode(f));
1839 if (ns->ops->type != CLONE_NEWUSER)
1840 goto error_file;
1841 user_ns = container_of(ns, struct user_namespace, ns);
1842
1843 keyring = key_get(READ_ONCE(user_ns->container_keyring));
1844 if (!keyring) {
1845 down_write(&user_ns->keyring_sem);
1846 keyring = key_create_container_keyring(user_ns);
1847 up_write(&user_ns->keyring_sem);
1848 if (IS_ERR(keyring)) {
1849 ret = PTR_ERR(keyring);
1850 goto error_file;
1851 }
1852 }
1853
1854 /* Get the destination keyring if specified. We don't need LINK
1855 * permission on the container keyring as having the container fd is
1856 * sufficient to grant us that.
1857 */
1858 dest_ref = NULL;
1859 if (destringid) {
1860 dest_ref = lookup_user_key(destringid, KEY_LOOKUP_CREATE,
1861 KEY_NEED_KEYRING_ADD);
1862 if (IS_ERR(dest_ref)) {
1863 ret = PTR_ERR(dest_ref);
1864 goto error_keyring;
1865 }
1866
1867 ret = key_link(key_ref_to_ptr(dest_ref), keyring);
1868 if (ret < 0)
1869 goto error_dest;
1870 }
1871
1872 ret = key_serial(keyring);
1873
1874 error_dest:
1875 key_ref_put(dest_ref);
1876 error_keyring:
1877 key_put(keyring);
1878 error_file:
1879 fput(f);
1880 return ret;
1881 }
1882 #endif
1883
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH 3/4] staging: rtl8188eu: include: enclosed macros in do-while loops
by kernel test robot
Hi K,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on staging/staging-testing]
url: https://github.com/0day-ci/linux/commits/B-K-Karthik/staging-rtl8188eu-in...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 9d5d041eebe3dcf7591ff7004896c329eb841ca6
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ed6b578040a85977026c93bf4188f996148f3218)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from drivers/staging/rtl8188eu/core/rtw_sreset.c:8:
In file included from drivers/staging/rtl8188eu/include/rtw_sreset.h:17:
In file included from drivers/staging/rtl8188eu/include/rtl8188e_hal.h:21:
In file included from drivers/staging/rtl8188eu/include/odm_precomp.h:26:
>> drivers/staging/rtl8188eu/include/odm_debug.h:80:3: error: expected identifier or '('
if (((comp) & pDM_Odm->DebugComponents) && \
^
>> drivers/staging/rtl8188eu/include/odm_debug.h:85:2: error: extraneous closing brace ('}')
} while (0)
^
drivers/staging/rtl8188eu/include/odm_debug.h:85:4: error: expected identifier or '('
} while (0)
^
drivers/staging/rtl8188eu/include/odm_debug.h:96:2: error: extraneous closing brace ('}')
} while (0)
^
drivers/staging/rtl8188eu/include/odm_debug.h:96:4: error: expected identifier or '('
} while (0)
^
5 errors generated.
--
In file included from drivers/staging/rtl8188eu/hal/hal8188e_rate_adaptive.c:6:
In file included from drivers/staging/rtl8188eu/include/odm_precomp.h:26:
>> drivers/staging/rtl8188eu/include/odm_debug.h:80:3: error: expected identifier or '('
if (((comp) & pDM_Odm->DebugComponents) && \
^
>> drivers/staging/rtl8188eu/include/odm_debug.h:85:2: error: extraneous closing brace ('}')
} while (0)
^
drivers/staging/rtl8188eu/include/odm_debug.h:85:4: error: expected identifier or '('
} while (0)
^
drivers/staging/rtl8188eu/include/odm_debug.h:96:2: error: extraneous closing brace ('}')
} while (0)
^
drivers/staging/rtl8188eu/include/odm_debug.h:96:4: error: expected identifier or '('
} while (0)
^
>> drivers/staging/rtl8188eu/hal/hal8188e_rate_adaptive.c:109:1: error: expected 'while' in do/while loop
static int odm_RateDown_8188E(struct odm_dm_struct *dm_odm,
^
drivers/staging/rtl8188eu/hal/hal8188e_rate_adaptive.c:105:2: note: to match this 'do'
ODM_RT_TRACE(dm_odm, ODM_COMP_RATE_ADAPTIVE, ODM_DBG_LOUD,
^
drivers/staging/rtl8188eu/include/odm_debug.h:79:2: note: expanded from macro 'ODM_RT_TRACE'
do {
^
>> drivers/staging/rtl8188eu/hal/hal8188e_rate_adaptive.c:761:2: error: expected '}'
}
^
drivers/staging/rtl8188eu/hal/hal8188e_rate_adaptive.c:86:1: note: to match this '{'
{
^
7 errors generated.
--
In file included from drivers/staging/rtl8188eu/hal/odm.c:8:
In file included from drivers/staging/rtl8188eu/include/odm_precomp.h:26:
>> drivers/staging/rtl8188eu/include/odm_debug.h:80:3: error: expected identifier or '('
if (((comp) & pDM_Odm->DebugComponents) && \
^
>> drivers/staging/rtl8188eu/include/odm_debug.h:85:2: error: extraneous closing brace ('}')
} while (0)
^
drivers/staging/rtl8188eu/include/odm_debug.h:85:4: error: expected identifier or '('
} while (0)
^
drivers/staging/rtl8188eu/include/odm_debug.h:96:2: error: extraneous closing brace ('}')
} while (0)
^
drivers/staging/rtl8188eu/include/odm_debug.h:96:4: error: expected identifier or '('
} while (0)
^
>> drivers/staging/rtl8188eu/hal/odm.c:150:6: warning: no previous prototype for function 'ODM_InitDebugSetting' [-Wmissing-prototypes]
void ODM_InitDebugSetting(struct odm_dm_struct *pDM_Odm)
^
drivers/staging/rtl8188eu/hal/odm.c:150:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void ODM_InitDebugSetting(struct odm_dm_struct *pDM_Odm)
^
static
>> drivers/staging/rtl8188eu/hal/odm.c:268:1: error: expected 'while' in do/while loop
void odm_CmnInfoHook_Debug(struct odm_dm_struct *pDM_Odm)
^
drivers/staging/rtl8188eu/hal/odm.c:265:2: note: to match this 'do'
ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("bDualMacSmartConcurrent=%d\n", pDM_Odm->bDualMacSmartConcurrent));
^
drivers/staging/rtl8188eu/include/odm_debug.h:79:2: note: expanded from macro 'ODM_RT_TRACE'
do {
^
>> drivers/staging/rtl8188eu/hal/odm.c:1100:2: error: expected '}'
}
^
drivers/staging/rtl8188eu/hal/odm.c:264:2: note: to match this '{'
ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("bWIFITest=%d\n", pDM_Odm->bWIFITest));
^
drivers/staging/rtl8188eu/include/odm_debug.h:79:5: note: expanded from macro 'ODM_RT_TRACE'
do {
^
drivers/staging/rtl8188eu/hal/odm.c:1100:2: error: expected 'while' in do/while loop
}
^
drivers/staging/rtl8188eu/hal/odm.c:264:2: note: to match this 'do'
ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("bWIFITest=%d\n", pDM_Odm->bWIFITest));
^
drivers/staging/rtl8188eu/include/odm_debug.h:79:2: note: expanded from macro 'ODM_RT_TRACE'
do {
^
>> drivers/staging/rtl8188eu/hal/odm.c:1100:2: error: expected '}'
}
^
drivers/staging/rtl8188eu/hal/odm.c:263:2: note: to match this '{'
ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("bInHctTest=%d\n", pDM_Odm->bInHctTest));
^
drivers/staging/rtl8188eu/include/odm_debug.h:79:5: note: expanded from macro 'ODM_RT_TRACE'
do {
^
drivers/staging/rtl8188eu/hal/odm.c:1100:2: error: expected 'while' in do/while loop
}
^
drivers/staging/rtl8188eu/hal/odm.c:263:2: note: to match this 'do'
ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("bInHctTest=%d\n", pDM_Odm->bInHctTest));
^
drivers/staging/rtl8188eu/include/odm_debug.h:79:2: note: expanded from macro 'ODM_RT_TRACE'
do {
^
>> drivers/staging/rtl8188eu/hal/odm.c:1100:2: error: expected '}'
}
^
drivers/staging/rtl8188eu/hal/odm.c:262:2: note: to match this '{'
ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("PatchID=%d\n", pDM_Odm->PatchID));
^
drivers/staging/rtl8188eu/include/odm_debug.h:79:5: note: expanded from macro 'ODM_RT_TRACE'
do {
^
drivers/staging/rtl8188eu/hal/odm.c:1100:2: error: expected 'while' in do/while loop
}
^
drivers/staging/rtl8188eu/hal/odm.c:262:2: note: to match this 'do'
ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("PatchID=%d\n", pDM_Odm->PatchID));
^
drivers/staging/rtl8188eu/include/odm_debug.h:79:2: note: expanded from macro 'ODM_RT_TRACE'
do {
^
>> drivers/staging/rtl8188eu/hal/odm.c:1100:2: error: expected '}'
}
^
drivers/staging/rtl8188eu/hal/odm.c:261:2: note: to match this '{'
ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("ExtTRSW=%d\n", pDM_Odm->ExtTRSW));
^
drivers/staging/rtl8188eu/include/odm_debug.h:79:5: note: expanded from macro 'ODM_RT_TRACE'
do {
^
drivers/staging/rtl8188eu/hal/odm.c:1100:2: error: expected 'while' in do/while loop
}
^
drivers/staging/rtl8188eu/hal/odm.c:261:2: note: to match this 'do'
ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("ExtTRSW=%d\n", pDM_Odm->ExtTRSW));
^
drivers/staging/rtl8188eu/include/odm_debug.h:79:2: note: expanded from macro 'ODM_RT_TRACE'
do {
^
>> drivers/staging/rtl8188eu/hal/odm.c:1100:2: error: expected '}'
}
^
drivers/staging/rtl8188eu/hal/odm.c:260:2: note: to match this '{'
ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("ExtPA=%d\n", pDM_Odm->ExtPA));
^
drivers/staging/rtl8188eu/include/odm_debug.h:79:5: note: expanded from macro 'ODM_RT_TRACE'
do {
^
drivers/staging/rtl8188eu/hal/odm.c:1100:2: error: expected 'while' in do/while loop
}
^
drivers/staging/rtl8188eu/hal/odm.c:260:2: note: to match this 'do'
ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("ExtPA=%d\n", pDM_Odm->ExtPA));
^
drivers/staging/rtl8188eu/include/odm_debug.h:79:2: note: expanded from macro 'ODM_RT_TRACE'
do {
^
>> drivers/staging/rtl8188eu/hal/odm.c:1100:2: error: expected '}'
}
^
drivers/staging/rtl8188eu/hal/odm.c:259:2: note: to match this '{'
ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("ExtLNA=%d\n", pDM_Odm->ExtLNA));
^
drivers/staging/rtl8188eu/include/odm_debug.h:79:5: note: expanded from macro 'ODM_RT_TRACE'
do {
^
drivers/staging/rtl8188eu/hal/odm.c:1100:2: error: expected 'while' in do/while loop
}
^
drivers/staging/rtl8188eu/hal/odm.c:259:2: note: to match this 'do'
ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("ExtLNA=%d\n", pDM_Odm->ExtLNA));
^
drivers/staging/rtl8188eu/include/odm_debug.h:79:2: note: expanded from macro 'ODM_RT_TRACE'
do {
^
>> drivers/staging/rtl8188eu/hal/odm.c:1100:2: error: expected '}'
}
^
drivers/staging/rtl8188eu/hal/odm.c:258:2: note: to match this '{'
ODM_RT_TRACE(pDM_Odm, ODM_COMP_COMMON, ODM_DBG_LOUD, ("BoardType=%d\n", pDM_Odm->BoardType));
^
drivers/staging/rtl8188eu/include/odm_debug.h:79:5: note: expanded from macro 'ODM_RT_TRACE'
do {
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
1 warning and 20 errors generated.
--
In file included from drivers/staging/rtl8188eu/hal/odm_rtl8188e.c:8:
In file included from drivers/staging/rtl8188eu/include/odm_precomp.h:26:
>> drivers/staging/rtl8188eu/include/odm_debug.h:80:3: error: expected identifier or '('
if (((comp) & pDM_Odm->DebugComponents) && \
^
>> drivers/staging/rtl8188eu/include/odm_debug.h:85:2: error: extraneous closing brace ('}')
} while (0)
^
drivers/staging/rtl8188eu/include/odm_debug.h:85:4: error: expected identifier or '('
} while (0)
^
drivers/staging/rtl8188eu/include/odm_debug.h:96:2: error: extraneous closing brace ('}')
} while (0)
^
drivers/staging/rtl8188eu/include/odm_debug.h:96:4: error: expected identifier or '('
} while (0)
^
>> drivers/staging/rtl8188eu/hal/odm_rtl8188e.c:323:3: error: expected 'while' in do/while loop
return;
^
drivers/staging/rtl8188eu/hal/odm_rtl8188e.c:313:4: note: to match this 'do'
ODM_RT_TRACE(dm_odm, ODM_COMP_ANT_DIV, ODM_DBG_LOUD,
^
drivers/staging/rtl8188eu/include/odm_debug.h:79:2: note: expanded from macro 'ODM_RT_TRACE'
do {
^
drivers/staging/rtl8188eu/hal/odm_rtl8188e.c:338:2: error: expected 'while' in do/while loop
if ((dm_odm->AntDivType == CG_TRX_HW_ANTDIV) ||
^
drivers/staging/rtl8188eu/hal/odm_rtl8188e.c:327:3: note: to match this 'do'
ODM_RT_TRACE(dm_odm, ODM_COMP_ANT_DIV, ODM_DBG_LOUD,
^
drivers/staging/rtl8188eu/include/odm_debug.h:79:2: note: expanded from macro 'ODM_RT_TRACE'
do {
^
>> drivers/staging/rtl8188eu/hal/odm_rtl8188e.c:341:2: error: expected '}'
}
^
drivers/staging/rtl8188eu/hal/odm_rtl8188e.c:310:3: note: to match this '{'
ODM_RT_TRACE(dm_odm, ODM_COMP_ANT_DIV, ODM_DBG_LOUD,
^
drivers/staging/rtl8188eu/include/odm_debug.h:79:5: note: expanded from macro 'ODM_RT_TRACE'
do {
^
drivers/staging/rtl8188eu/hal/odm_rtl8188e.c:341:2: error: expected 'while' in do/while loop
}
^
drivers/staging/rtl8188eu/hal/odm_rtl8188e.c:310:3: note: to match this 'do'
ODM_RT_TRACE(dm_odm, ODM_COMP_ANT_DIV, ODM_DBG_LOUD,
^
drivers/staging/rtl8188eu/include/odm_debug.h:79:2: note: expanded from macro 'ODM_RT_TRACE'
do {
^
>> drivers/staging/rtl8188eu/hal/odm_rtl8188e.c:341:2: error: expected '}'
}
^
drivers/staging/rtl8188eu/hal/odm_rtl8188e.c:309:24: note: to match this '{'
if (!dm_odm->bLinked) {
^
>> drivers/staging/rtl8188eu/hal/odm_rtl8188e.c:341:2: error: expected '}'
}
^
drivers/staging/rtl8188eu/hal/odm_rtl8188e.c:302:1: note: to match this '{'
{
^
11 errors generated.
--
In file included from drivers/staging/rtl8188eu/hal/rtl8188e_dm.c:19:
In file included from drivers/staging/rtl8188eu/include/rtl8188e_hal.h:21:
In file included from drivers/staging/rtl8188eu/include/odm_precomp.h:26:
>> drivers/staging/rtl8188eu/include/odm_debug.h:80:3: error: expected identifier or '('
if (((comp) & pDM_Odm->DebugComponents) && \
^
>> drivers/staging/rtl8188eu/include/odm_debug.h:85:2: error: extraneous closing brace ('}')
} while (0)
^
drivers/staging/rtl8188eu/include/odm_debug.h:85:4: error: expected identifier or '('
} while (0)
^
drivers/staging/rtl8188eu/include/odm_debug.h:96:2: error: extraneous closing brace ('}')
} while (0)
^
drivers/staging/rtl8188eu/include/odm_debug.h:96:4: error: expected identifier or '('
} while (0)
^
>> drivers/staging/rtl8188eu/hal/rtl8188e_dm.c:172:2: error: implicit declaration of function 'ODM_InitDebugSetting' [-Werror,-Wimplicit-function-declaration]
ODM_InitDebugSetting(podmpriv);
^
6 errors generated.
--
In file included from drivers/staging/rtl8188eu/hal/phy.c:11:
In file included from drivers/staging/rtl8188eu/include/rtl8188e_hal.h:21:
In file included from drivers/staging/rtl8188eu/include/odm_precomp.h:26:
>> drivers/staging/rtl8188eu/include/odm_debug.h:80:3: error: expected identifier or '('
if (((comp) & pDM_Odm->DebugComponents) && \
^
>> drivers/staging/rtl8188eu/include/odm_debug.h:85:2: error: extraneous closing brace ('}')
} while (0)
^
drivers/staging/rtl8188eu/include/odm_debug.h:85:4: error: expected identifier or '('
} while (0)
^
drivers/staging/rtl8188eu/include/odm_debug.h:96:2: error: extraneous closing brace ('}')
} while (0)
^
drivers/staging/rtl8188eu/include/odm_debug.h:96:4: error: expected identifier or '('
} while (0)
^
>> drivers/staging/rtl8188eu/hal/phy.c:321:4: error: expected 'while' in do/while loop
} else if (type == 1) { /* For CCK adjust. */
^
drivers/staging/rtl8188eu/hal/phy.c:307:3: note: to match this 'do'
ODM_RT_TRACE(dm_odm, ODM_COMP_TX_PWR_TRACK, ODM_DBG_LOUD,
^
drivers/staging/rtl8188eu/include/odm_debug.h:79:2: note: expanded from macro 'ODM_RT_TRACE'
do {
^
>> drivers/staging/rtl8188eu/hal/phy.c:1335:2: error: expected '}'
}
^
drivers/staging/rtl8188eu/hal/phy.c:306:17: note: to match this '{'
if (type == 0) { /* For OFDM adjust */
^
>> drivers/staging/rtl8188eu/hal/phy.c:1335:2: error: expected '}'
}
^
drivers/staging/rtl8188eu/hal/phy.c:303:1: note: to match this '{'
{
^
8 errors generated.
vim +80 drivers/staging/rtl8188eu/include/odm_debug.h
f9f08d70b0081c Larry Finger 2013-08-21 77
f9f08d70b0081c Larry Finger 2013-08-21 78 #define ODM_RT_TRACE(pDM_Odm, comp, level, fmt) \
14200067aff819 B K Karthik 2020-07-18 79 do {
f9f08d70b0081c Larry Finger 2013-08-21 @80 if (((comp) & pDM_Odm->DebugComponents) && \
f9f08d70b0081c Larry Finger 2013-08-21 81 (level <= pDM_Odm->DebugLevel)) { \
c9e27530b25fd8 Mahati Chamarthy 2014-10-04 82 pr_info("[ODM-8188E] "); \
f9f08d70b0081c Larry Finger 2013-08-21 83 RT_PRINTK fmt; \
f9f08d70b0081c Larry Finger 2013-08-21 84 }
14200067aff819 B K Karthik 2020-07-18 @85 } while (0)
f9f08d70b0081c Larry Finger 2013-08-21 86
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[linux-stable-rc:linux-4.19.y 4822/9999] arm-linux-gnueabi-ld: section .exit.data VMA overlaps section __ksymtab VMA
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable-rc.git linux-4.19.y
head: e864f43593ccf9180c61738abdf1c1dde091367d
commit: e6c540bf97860b1256ea623f4257743ea22268df [4822/9999] net: sched: avoid writing on noop_qdisc
config: arm-randconfig-r015-20200717 (attached as .config)
compiler: arm-linux-gnueabi-gcc (GCC) 9.3.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 checkout e6c540bf97860b1256ea623f4257743ea22268df
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=arm
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 >>):
arm-linux-gnueabi-ld: section .data VMA [0000000040008000,0000000040386827] overlaps section .text VMA [000000003f080180,000000004010c2cf]
arm-linux-gnueabi-ld: section .fixup VMA [000000004010c2d0,000000004010c2eb] overlaps section .data VMA [0000000040008000,0000000040386827]
arm-linux-gnueabi-ld: section __bug_table VMA [0000000040386828,000000004038b8a3] overlaps section .rodata VMA [000000004010d000,00000000403914df]
arm-linux-gnueabi-ld: section .pci_fixup VMA [00000000403914e0,00000000403934cf] overlaps section .init.data VMA [000000004038d000,000000004039b48b]
>> arm-linux-gnueabi-ld: section .exit.data VMA [000000004039b48c,000000004039d9cf] overlaps section __ksymtab VMA [00000000403934d0,000000004039b49f]
arm-linux-gnueabi-ld: section __ksymtab_gpl VMA [000000004039b4a0,00000000403a352f] overlaps section .exit.data VMA [000000004039b48c,000000004039d9cf]
arm-linux-gnueabi-ld: section .bss VMA [000000004039e000,00000000411c1b5f] overlaps section __ksymtab_gpl VMA [000000004039b4a0,00000000403a352f]
arm-linux-gnueabi-ld: section __ksymtab_strings VMA [00000000403a3530,00000000403c9e54] overlaps section .bss VMA [000000004039e000,00000000411c1b5f]
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH v6 03/10] dmaengine: Actions: Add support for S700 DMA engine
by kernel test robot
Hi Amit,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on robh/for-next]
[also build test WARNING on clk/clk-next pza/reset/next linus/master v5.8-rc5 next-20200717]
[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/Amit-Singh-Tomar/Add-MMC-and-DMA...
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: arm64-randconfig-r014-20200717 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ed6b578040a85977026c93bf4188f996148f3218)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64
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/dma/owl-dma.c:1117:14: warning: cast to smaller integer type 'enum owl_dma_id' from 'const void *' [-Wvoid-pointer-to-enum-cast]
od->devid = (enum owl_dma_id)of_device_get_match_data(&pdev->dev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.
vim +1117 drivers/dma/owl-dma.c
1087
1088 static int owl_dma_probe(struct platform_device *pdev)
1089 {
1090 struct device_node *np = pdev->dev.of_node;
1091 struct owl_dma *od;
1092 int ret, i, nr_channels, nr_requests;
1093
1094 od = devm_kzalloc(&pdev->dev, sizeof(*od), GFP_KERNEL);
1095 if (!od)
1096 return -ENOMEM;
1097
1098 od->base = devm_platform_ioremap_resource(pdev, 0);
1099 if (IS_ERR(od->base))
1100 return PTR_ERR(od->base);
1101
1102 ret = of_property_read_u32(np, "dma-channels", &nr_channels);
1103 if (ret) {
1104 dev_err(&pdev->dev, "can't get dma-channels\n");
1105 return ret;
1106 }
1107
1108 ret = of_property_read_u32(np, "dma-requests", &nr_requests);
1109 if (ret) {
1110 dev_err(&pdev->dev, "can't get dma-requests\n");
1111 return ret;
1112 }
1113
1114 dev_info(&pdev->dev, "dma-channels %d, dma-requests %d\n",
1115 nr_channels, nr_requests);
1116
> 1117 od->devid = (enum owl_dma_id)of_device_get_match_data(&pdev->dev);
1118
1119 od->nr_pchans = nr_channels;
1120 od->nr_vchans = nr_requests;
1121
1122 pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32);
1123
1124 platform_set_drvdata(pdev, od);
1125 spin_lock_init(&od->lock);
1126
1127 dma_cap_set(DMA_MEMCPY, od->dma.cap_mask);
1128 dma_cap_set(DMA_SLAVE, od->dma.cap_mask);
1129 dma_cap_set(DMA_CYCLIC, od->dma.cap_mask);
1130
1131 od->dma.dev = &pdev->dev;
1132 od->dma.device_free_chan_resources = owl_dma_free_chan_resources;
1133 od->dma.device_tx_status = owl_dma_tx_status;
1134 od->dma.device_issue_pending = owl_dma_issue_pending;
1135 od->dma.device_prep_dma_memcpy = owl_dma_prep_memcpy;
1136 od->dma.device_prep_slave_sg = owl_dma_prep_slave_sg;
1137 od->dma.device_prep_dma_cyclic = owl_prep_dma_cyclic;
1138 od->dma.device_config = owl_dma_config;
1139 od->dma.device_pause = owl_dma_pause;
1140 od->dma.device_resume = owl_dma_resume;
1141 od->dma.device_terminate_all = owl_dma_terminate_all;
1142 od->dma.src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES);
1143 od->dma.dst_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_4_BYTES);
1144 od->dma.directions = BIT(DMA_MEM_TO_MEM);
1145 od->dma.residue_granularity = DMA_RESIDUE_GRANULARITY_BURST;
1146
1147 INIT_LIST_HEAD(&od->dma.channels);
1148
1149 od->clk = devm_clk_get(&pdev->dev, NULL);
1150 if (IS_ERR(od->clk)) {
1151 dev_err(&pdev->dev, "unable to get clock\n");
1152 return PTR_ERR(od->clk);
1153 }
1154
1155 /*
1156 * Eventhough the DMA controller is capable of generating 4
1157 * IRQ's for DMA priority feature, we only use 1 IRQ for
1158 * simplification.
1159 */
1160 od->irq = platform_get_irq(pdev, 0);
1161 ret = devm_request_irq(&pdev->dev, od->irq, owl_dma_interrupt, 0,
1162 dev_name(&pdev->dev), od);
1163 if (ret) {
1164 dev_err(&pdev->dev, "unable to request IRQ\n");
1165 return ret;
1166 }
1167
1168 /* Init physical channel */
1169 od->pchans = devm_kcalloc(&pdev->dev, od->nr_pchans,
1170 sizeof(struct owl_dma_pchan), GFP_KERNEL);
1171 if (!od->pchans)
1172 return -ENOMEM;
1173
1174 for (i = 0; i < od->nr_pchans; i++) {
1175 struct owl_dma_pchan *pchan = &od->pchans[i];
1176
1177 pchan->id = i;
1178 pchan->base = od->base + OWL_DMA_CHAN_BASE(i);
1179 }
1180
1181 /* Init virtual channel */
1182 od->vchans = devm_kcalloc(&pdev->dev, od->nr_vchans,
1183 sizeof(struct owl_dma_vchan), GFP_KERNEL);
1184 if (!od->vchans)
1185 return -ENOMEM;
1186
1187 for (i = 0; i < od->nr_vchans; i++) {
1188 struct owl_dma_vchan *vchan = &od->vchans[i];
1189
1190 vchan->vc.desc_free = owl_dma_desc_free;
1191 vchan_init(&vchan->vc, &od->dma);
1192 }
1193
1194 /* Create a pool of consistent memory blocks for hardware descriptors */
1195 od->lli_pool = dma_pool_create(dev_name(od->dma.dev), od->dma.dev,
1196 sizeof(struct owl_dma_lli),
1197 __alignof__(struct owl_dma_lli),
1198 0);
1199 if (!od->lli_pool) {
1200 dev_err(&pdev->dev, "unable to allocate DMA descriptor pool\n");
1201 return -ENOMEM;
1202 }
1203
1204 clk_prepare_enable(od->clk);
1205
1206 ret = dma_async_device_register(&od->dma);
1207 if (ret) {
1208 dev_err(&pdev->dev, "failed to register DMA engine device\n");
1209 goto err_pool_free;
1210 }
1211
1212 /* Device-tree DMA controller registration */
1213 ret = of_dma_controller_register(pdev->dev.of_node,
1214 owl_dma_of_xlate, od);
1215 if (ret) {
1216 dev_err(&pdev->dev, "of_dma_controller_register failed\n");
1217 goto err_dma_unregister;
1218 }
1219
1220 return 0;
1221
1222 err_dma_unregister:
1223 dma_async_device_unregister(&od->dma);
1224 err_pool_free:
1225 clk_disable_unprepare(od->clk);
1226 dma_pool_destroy(od->lli_pool);
1227
1228 return ret;
1229 }
1230
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
Re: [PATCH 2/4] staging: rtl8188eu: include: fixed multiple parentheses coding style issues
by kernel test robot
Hi K,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on staging/staging-testing]
url: https://github.com/0day-ci/linux/commits/B-K-Karthik/staging-rtl8188eu-in...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git 9d5d041eebe3dcf7591ff7004896c329eb841ca6
config: x86_64-allyesconfig (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project ed6b578040a85977026c93bf4188f996148f3218)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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/staging/rtl8188eu/core/rtw_ap.c:1606:29: warning: expression result unused [-Wunused-value]
DBG_88E(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(padapter->pnetdev));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/osdep_service.h:79:30: note: expanded from macro 'FUNC_NDEV_ARG'
#define FUNC_NDEV_ARG(ndev) (__func__, (ndev)->name)
^~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
>> drivers/staging/rtl8188eu/core/rtw_ap.c:1606:10: warning: more '%' conversions than data arguments [-Wformat]
DBG_88E(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(padapter->pnetdev));
^~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/osdep_service.h:78:28: note: expanded from macro 'FUNC_NDEV_FMT'
#define FUNC_NDEV_FMT "%s(%s)"
~^
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~
include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
2 warnings generated.
--
drivers/staging/rtl8188eu/core/rtw_ioctl_set.c:427:42: warning: expression result unused [-Wunused-value]
DBG_88E(FUNC_ADPT_FMT": scan deny\n", FUNC_ADPT_ARG(padapter));
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/osdep_service.h:81:33: note: expanded from macro 'FUNC_ADPT_ARG'
#define FUNC_ADPT_ARG(adapter) (__func__, (adapter)->pnetdev->name)
^~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
>> drivers/staging/rtl8188eu/core/rtw_ioctl_set.c:427:12: warning: more '%' conversions than data arguments [-Wformat]
DBG_88E(FUNC_ADPT_FMT": scan deny\n", FUNC_ADPT_ARG(padapter));
^~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/osdep_service.h:80:28: note: expanded from macro 'FUNC_ADPT_FMT'
#define FUNC_ADPT_FMT "%s(%s)"
~^
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~
include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
2 warnings generated.
--
drivers/staging/rtl8188eu/core/rtw_mlme.c:1345:41: warning: expression result unused [-Wunused-value]
DBG_88E(FUNC_ADPT_FMT" fw_state=%x\n", FUNC_ADPT_ARG(adapter), get_fwstate(pmlmepriv));
^~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/osdep_service.h:81:33: note: expanded from macro 'FUNC_ADPT_ARG'
#define FUNC_ADPT_ARG(adapter) (__func__, (adapter)->pnetdev->name)
^~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
>> drivers/staging/rtl8188eu/core/rtw_mlme.c:1345:65: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
DBG_88E(FUNC_ADPT_FMT" fw_state=%x\n", FUNC_ADPT_ARG(adapter), get_fwstate(pmlmepriv));
~~~~~~~~~~~~~ ^~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
>> drivers/staging/rtl8188eu/core/rtw_mlme.c:1345:35: warning: more '%' conversions than data arguments [-Wformat]
DBG_88E(FUNC_ADPT_FMT" fw_state=%x\n", FUNC_ADPT_ARG(adapter), get_fwstate(pmlmepriv));
~^
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~
include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
3 warnings generated.
--
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:720:5: warning: expression result unused [-Wunused-value]
FUNC_ADPT_ARG(padapter), da, rtw_get_oper_ch(padapter),
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/osdep_service.h:81:33: note: expanded from macro 'FUNC_ADPT_ARG'
#define FUNC_ADPT_ARG(adapter) (__func__, (adapter)->pnetdev->name)
^~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
>> drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:720:34: warning: format specifies type 'void *' but the argument has type 'u8' (aka 'unsigned char') [-Wformat]
FUNC_ADPT_ARG(padapter), da, rtw_get_oper_ch(padapter),
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
>> drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:721:5: warning: format specifies type 'unsigned int' but the argument has type 'char *' [-Wformat]
ret == _SUCCESS ? ", acked" : "", i, try_cnt,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
>> drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:721:39: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
ret == _SUCCESS ? ", acked" : "", i, try_cnt,
^
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
>> drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:719:54: warning: more '%' conversions than data arguments [-Wformat]
DBG_88E(FUNC_ADPT_FMT" to %pM, ch:%u%s, %d/%d in %u ms\n",
~^
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~
include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:725:5: warning: expression result unused [-Wunused-value]
FUNC_ADPT_ARG(padapter), rtw_get_oper_ch(padapter),
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/osdep_service.h:81:33: note: expanded from macro 'FUNC_ADPT_ARG'
#define FUNC_ADPT_ARG(adapter) (__func__, (adapter)->pnetdev->name)
^~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
>> drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:725:30: warning: format specifies type 'char *' but the argument has type 'u8' (aka 'unsigned char') [-Wformat]
FUNC_ADPT_ARG(padapter), rtw_get_oper_ch(padapter),
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:726:5: warning: format specifies type 'unsigned int' but the argument has type 'char *' [-Wformat]
ret == _SUCCESS ? ", acked" : "", i, try_cnt,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:726:39: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
ret == _SUCCESS ? ", acked" : "", i, try_cnt,
^
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:724:47: warning: more '%' conversions than data arguments [-Wformat]
DBG_88E(FUNC_ADPT_FMT", ch:%u%s, %d/%d in %u ms\n",
~^
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~
include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1289:5: warning: expression result unused [-Wunused-value]
FUNC_ADPT_ARG(padapter), da, rtw_get_oper_ch(padapter),
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/osdep_service.h:81:33: note: expanded from macro 'FUNC_ADPT_ARG'
#define FUNC_ADPT_ARG(adapter) (__func__, (adapter)->pnetdev->name)
^~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1289:34: warning: format specifies type 'void *' but the argument has type 'u8' (aka 'unsigned char') [-Wformat]
FUNC_ADPT_ARG(padapter), da, rtw_get_oper_ch(padapter),
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1290:5: warning: format specifies type 'unsigned int' but the argument has type 'char *' [-Wformat]
ret == _SUCCESS ? ", acked" : "", i, try_cnt,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1290:39: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
ret == _SUCCESS ? ", acked" : "", i, try_cnt,
^
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1288:54: warning: more '%' conversions than data arguments [-Wformat]
DBG_88E(FUNC_ADPT_FMT" to %pM, ch:%u%s, %d/%d in %u ms\n",
~^
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~
include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1294:5: warning: expression result unused [-Wunused-value]
FUNC_ADPT_ARG(padapter), rtw_get_oper_ch(padapter),
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/osdep_service.h:81:33: note: expanded from macro 'FUNC_ADPT_ARG'
#define FUNC_ADPT_ARG(adapter) (__func__, (adapter)->pnetdev->name)
^~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
--
~^
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~
include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1531:5: warning: expression result unused [-Wunused-value]
FUNC_ADPT_ARG(padapter), rtw_get_oper_ch(padapter),
^~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/osdep_service.h:81:33: note: expanded from macro 'FUNC_ADPT_ARG'
#define FUNC_ADPT_ARG(adapter) (__func__, (adapter)->pnetdev->name)
^~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1531:30: warning: format specifies type 'char *' but the argument has type 'u8' (aka 'unsigned char') [-Wformat]
FUNC_ADPT_ARG(padapter), rtw_get_oper_ch(padapter),
^~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1532:5: warning: format specifies type 'unsigned int' but the argument has type 'char *' [-Wformat]
ret == _SUCCESS ? ", acked" : "", i, try_cnt,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1532:39: warning: format specifies type 'char *' but the argument has type 'int' [-Wformat]
ret == _SUCCESS ? ", acked" : "", i, try_cnt,
^
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:1530:47: warning: more '%' conversions than data arguments [-Wformat]
DBG_88E(FUNC_ADPT_FMT", ch:%u%s, %d/%d in %u ms\n",
~^
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~
include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:3536:29: warning: expression result unused [-Wunused-value]
DBG_88E(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(padapter->pnetdev));
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/osdep_service.h:79:30: note: expanded from macro 'FUNC_NDEV_ARG'
#define FUNC_NDEV_ARG(ndev) (__func__, (ndev)->name)
^~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:3536:10: warning: more '%' conversions than data arguments [-Wformat]
DBG_88E(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(padapter->pnetdev));
^~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/osdep_service.h:78:28: note: expanded from macro 'FUNC_NDEV_FMT'
#define FUNC_NDEV_FMT "%s(%s)"
~^
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~
include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:3669:6: warning: expression result unused [-Wunused-value]
FUNC_ADPT_ARG(adapter), seq_ctrl, mlmeext->action_public_rxseq, token);
^~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/osdep_service.h:81:33: note: expanded from macro 'FUNC_ADPT_ARG'
#define FUNC_ADPT_ARG(adapter) (__func__, (adapter)->pnetdev->name)
^~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
>> drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:3669:30: warning: format specifies type 'char *' but the argument has type 'u16' (aka 'unsigned short') [-Wformat]
FUNC_ADPT_ARG(adapter), seq_ctrl, mlmeext->action_public_rxseq, token);
^~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:3668:66: warning: more '%' conversions than data arguments [-Wformat]
DBG_88E(FUNC_ADPT_FMT" seq_ctrl = 0x%x, rxseq = 0x%x, token:%d\n",
~^
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~
include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:3675:6: warning: expression result unused [-Wunused-value]
FUNC_ADPT_ARG(adapter), seq_ctrl, mlmeext->action_public_rxseq);
^~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/osdep_service.h:81:33: note: expanded from macro 'FUNC_ADPT_ARG'
#define FUNC_ADPT_ARG(adapter) (__func__, (adapter)->pnetdev->name)
^~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:3675:30: warning: format specifies type 'char *' but the argument has type 'u16' (aka 'unsigned short') [-Wformat]
FUNC_ADPT_ARG(adapter), seq_ctrl, mlmeext->action_public_rxseq);
^~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:3674:56: warning: more '%' conversions than data arguments [-Wformat]
DBG_88E(FUNC_ADPT_FMT" seq_ctrl = 0x%x, rxseq = 0x%x\n",
~^
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~
include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:4692:34: warning: more '%' conversions than data arguments [-Wformat]
DBG_88E_LEVEL(_drv_always_, FUNC_ADPT_FMT" disconnect or roaming\n",
^~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/osdep_service.h:80:28: note: expanded from macro 'FUNC_ADPT_FMT'
#define FUNC_ADPT_FMT "%s(%s)"
~^
drivers/staging/rtl8188eu/include/rtw_debug.h:64:26: note: expanded from macro 'DBG_88E_LEVEL'
pr_info(DRIVER_PREFIX fmt, ##arg); \
^~~
include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~
include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:5451:3: warning: expression result unused [-Wunused-value]
FUNC_NDEV_ARG(padapter->pnetdev),
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/osdep_service.h:79:30: note: expanded from macro 'FUNC_NDEV_ARG'
#define FUNC_NDEV_ARG(ndev) (__func__, (ndev)->name)
^~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~~~~~~~~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:5452:3: warning: format specifies type 'char *' but the argument has type 'u8' (aka 'unsigned char') [-Wformat]
set_ch_parm->ch, set_ch_parm->bw, set_ch_parm->ch_offset);
^~~~~~~~~~~~~~~
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:34: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
drivers/staging/rtl8188eu/core/rtw_mlme_ext.c:5450:50: warning: more '%' conversions than data arguments [-Wformat]
DBG_88E(FUNC_NDEV_FMT" ch:%u, bw:%u, ch_offset:%u\n",
~^
drivers/staging/rtl8188eu/include/rtw_debug.h:70:26: note: expanded from macro 'DBG_88E'
pr_info(DRIVER_PREFIX __VA_ARGS__); \
^~~~~~~~~~~
include/linux/printk.h:368:26: note: expanded from macro 'pr_info'
printk(KERN_INFO pr_fmt(fmt), ##__VA_ARGS__)
^~~
include/linux/printk.h:296:21: note: expanded from macro 'pr_fmt'
#define pr_fmt(fmt) fmt
vim +1606 drivers/staging/rtl8188eu/core/rtw_ap.c
9a7fe54ddc3a70 Larry Finger 2013-08-21 1596
9a7fe54ddc3a70 Larry Finger 2013-08-21 1597 int rtw_sta_flush(struct adapter *padapter)
9a7fe54ddc3a70 Larry Finger 2013-08-21 1598 {
9a7fe54ddc3a70 Larry Finger 2013-08-21 1599 struct list_head *phead, *plist;
9a7fe54ddc3a70 Larry Finger 2013-08-21 1600 struct sta_info *psta = NULL;
9a7fe54ddc3a70 Larry Finger 2013-08-21 1601 struct sta_priv *pstapriv = &padapter->stapriv;
9a7fe54ddc3a70 Larry Finger 2013-08-21 1602 struct mlme_ext_priv *pmlmeext = &padapter->mlmeextpriv;
8943880eff435a Scott Matheina 2017-01-05 1603 struct mlme_ext_info *pmlmeinfo = &pmlmeext->mlmext_info;
9a7fe54ddc3a70 Larry Finger 2013-08-21 1604 u8 bc_addr[ETH_ALEN] = {0xff, 0xff, 0xff, 0xff, 0xff, 0xff};
9a7fe54ddc3a70 Larry Finger 2013-08-21 1605
9a7fe54ddc3a70 Larry Finger 2013-08-21 @1606 DBG_88E(FUNC_NDEV_FMT"\n", FUNC_NDEV_ARG(padapter->pnetdev));
9a7fe54ddc3a70 Larry Finger 2013-08-21 1607
9a7fe54ddc3a70 Larry Finger 2013-08-21 1608 if ((pmlmeinfo->state & 0x03) != WIFI_FW_AP_STATE)
9cc56fa8276520 Heena Sirwani 2014-10-06 1609 return 0;
9a7fe54ddc3a70 Larry Finger 2013-08-21 1610
7057dcb3afa294 Larry Finger 2013-12-19 1611 spin_lock_bh(&pstapriv->asoc_list_lock);
9a7fe54ddc3a70 Larry Finger 2013-08-21 1612 phead = &pstapriv->asoc_list;
c44e5e39c3d168 Larry Finger 2014-02-09 1613 plist = phead->next;
9a7fe54ddc3a70 Larry Finger 2013-08-21 1614
9a7fe54ddc3a70 Larry Finger 2013-08-21 1615 /* free sta asoc_queue */
84660700807cbc navin patidar 2014-06-22 1616 while (phead != plist) {
bea8810043b9a6 Larry Finger 2014-02-09 1617 psta = container_of(plist, struct sta_info, asoc_list);
9a7fe54ddc3a70 Larry Finger 2013-08-21 1618
c44e5e39c3d168 Larry Finger 2014-02-09 1619 plist = plist->next;
9a7fe54ddc3a70 Larry Finger 2013-08-21 1620
8d5bdece42d9cb navin patidar 2014-06-22 1621 list_del_init(&psta->asoc_list);
9a7fe54ddc3a70 Larry Finger 2013-08-21 1622 pstapriv->asoc_list_cnt--;
9a7fe54ddc3a70 Larry Finger 2013-08-21 1623
9a7fe54ddc3a70 Larry Finger 2013-08-21 1624 ap_free_sta(padapter, psta, true, WLAN_REASON_DEAUTH_LEAVING);
9a7fe54ddc3a70 Larry Finger 2013-08-21 1625 }
e02bcf6126fa59 Larry Finger 2013-12-19 1626 spin_unlock_bh(&pstapriv->asoc_list_lock);
9a7fe54ddc3a70 Larry Finger 2013-08-21 1627
9a7fe54ddc3a70 Larry Finger 2013-08-21 1628 issue_deauth(padapter, bc_addr, WLAN_REASON_DEAUTH_LEAVING);
9a7fe54ddc3a70 Larry Finger 2013-08-21 1629
9a7fe54ddc3a70 Larry Finger 2013-08-21 1630 associated_clients_update(padapter, true);
9a7fe54ddc3a70 Larry Finger 2013-08-21 1631
9cc56fa8276520 Heena Sirwani 2014-10-06 1632 return 0;
9a7fe54ddc3a70 Larry Finger 2013-08-21 1633 }
9a7fe54ddc3a70 Larry Finger 2013-08-21 1634
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[lkp] [+4218 bytes kernel size regression] [i386-tinyconfig] [6586858d09] linux-next
by kernel test robot
FYI, we noticed a +4218 bytes kernel size regression due to commit:
commit: 6586858d0945ab79b145ad68094637e1f52dc599 (linux-next)
https://github.com/hnaz/linux-mm master
Details as below (size data is obtained by `nm --size-sort vmlinux`):
afb40b92: ipc/shm.c: Remove the superfluous break
6586858d: linux-next
+------------------------------------------+----------+----------+-------+
| symbol | afb40b92 | 6586858d | delta |
+------------------------------------------+----------+----------+-------+
| bzImage | 442688 | 445184 | 2496 |
| nm.t.do_execveat_common | 0 | 1462 | 1462 |
| nm.T.__ia32_sys_ioctl | 13 | 1193 | 1180 |
| nm.T.seq_read_iter | 0 | 774 | 774 |
| nm.T.__xas_store | 0 | 765 | 765 |
| nm.T.intel_pmu_lbr_read_64 | 0 | 718 | 718 |
| nm.T.intel_pmu_arch_lbr_init | 0 | 619 | 619 |
| nm.t.intel_pmu_store_lbr | 0 | 485 | 485 |
| nm.t.bdi_init | 0 | 381 | 381 |
| nm.T.vfs_utimes | 0 | 322 | 322 |
| nm.T.mul_u64_u64_div_u64 | 0 | 259 | 259 |
| nm.T.copy_thread | 0 | 238 | 238 |
| nm.T.intel_pmu_lbr_restore | 0 | 223 | 223 |
| nm.t.perf_event_text_poke_output | 0 | 219 | 219 |
| nm.T.__close_range | 0 | 201 | 201 |
| nm.t.__intel_pmu_lbr_restore | 0 | 199 | 199 |
| nm.T.dma_map_page_attrs | 0 | 170 | 170 |
| nm.T.device_link_add | 556 | 715 | 159 |
| nm.T.intel_pmu_lbr_read_32 | 0 | 156 | 156 |
| nm.T._anon_inode_getfile | 0 | 148 | 148 |
| nm.t.devlink_add_symlinks | 0 | 141 | 141 |
| nm.t.devlink_remove_symlinks | 0 | 138 | 138 |
| nm.T.__ia32_sys_getdents64 | 13 | 150 | 137 |
| nm.T.intel_pmu_lbr_save | 0 | 131 | 131 |
| nm.T.intel_pmu_lbr_enable_all | 117 | 241 | 124 |
| nm.T.intel_pmu_init | 4080 | 4203 | 123 |
| nm.t.__wait_on_page_locked_async | 0 | 121 | 121 |
| nm.t.text_poke_bp_batch | 242 | 363 | 121 |
| nm.T.get_callchain_entry | 0 | 120 | 120 |
| nm.T.perf_event_text_poke | 0 | 119 | 119 |
| nm.T.__receive_fd | 0 | 118 | 118 |
| nm.T.vfs_read | 148 | 265 | 117 |
| nm.t.rdlbr_all | 0 | 115 | 115 |
| nm.T.vfs_write | 194 | 305 | 111 |
| nm.T.dma_coherent_ok | 0 | 104 | 104 |
| nm.t._anon_inode_getfd | 0 | 98 | 98 |
| nm.T.device_is_dependent | 0 | 98 | 98 |
| nm.T.vfs_generate_unique_id | 0 | 92 | 92 |
| nm.T.generic_file_buffered_read | 1275 | 1362 | 87 |
| nm.T.copy_fpregs_to_fpstate | 0 | 82 | 82 |
| nm.t.wrlbr_all | 0 | 82 | 82 |
| nm.t.vfs_readv | 0 | 81 | 81 |
| nm.T.__ia32_sys_lseek | 10 | 91 | 81 |
| nm.T.intel_pmu_lbr_add | 152 | 232 | 80 |
| nm.t.intel_get_event_constraints | 446 | 526 | 80 |
| nm.t.intel_pmu_arch_lbr_save | 0 | 76 | 76 |
| nm.T.intel_pmu_lbr_reset_64 | 0 | 75 | 75 |
| nm.t.__schedule | 567 | 640 | 73 |
| nm.d.arch_lbr_ctl_map | 0 | 72 | 72 |
| nm.t.intel_pmu_arch_lbr_restore | 0 | 70 | 70 |
| nm.t.__devm_ioremap_resource | 131 | 200 | 69 |
| nm.T.sched_dl_overflow | 587 | 655 | 68 |
| nm.t.really_probe | 485 | 550 | 65 |
| nm.r.arch_lbr_br_type_map | 0 | 64 | 64 |
| nm.T.clear_bdi_congested | 0 | 64 | 64 |
| nm.T.unshare_fd | 0 | 64 | 64 |
| nm.T.release_lbr_buffers | 0 | 62 | 62 |
| nm.d.devlink_class | 0 | 60 | 60 |
| nm.t.state_synced_show | 0 | 59 | 59 |
| nm.T.vm_area_dup | 58 | 117 | 59 |
| nm.T.vfs_fchown | 0 | 57 | 57 |
| nm.t.__kobject_del | 0 | 55 | 55 |
| nm.T.__checkparam_dl | 92 | 147 | 55 |
| nm.T.x86_perf_get_lbr | 0 | 54 | 54 |
| nm.t.inode_io_list_del_locked | 0 | 53 | 53 |
| nm.t.devlink_class_init | 0 | 52 | 52 |
| nm.W.memcmp_pages | 0 | 51 | 51 |
| nm.T.thread_group_exited | 0 | 51 | 51 |
| nm.T.__ia32_sys_fchmod | 8 | 59 | 51 |
| nm.T.console_on_rootfs | 37 | 88 | 51 |
| nm.T.__ia32_sys_dup | 4 | 54 | 50 |
| nm.t.intel_set_masks | 0 | 49 | 49 |
| nm.t.auto_remove_on_show | 0 | 48 | 48 |
| nm.t.redirty_tail_locked | 0 | 48 | 48 |
| nm.t.intel_pmu_arch_lbr_read_xsave | 0 | 46 | 46 |
| nm.T.dma_direct_map_sg | 81 | 127 | 46 |
| nm.T._do_fork | 298 | 344 | 46 |
| nm.T.sched_init | 304 | 348 | 44 |
| nm.T.sched_set_normal | 0 | 42 | 42 |
| nm.t.status_show | 0 | 42 | 42 |
| nm.D.vlbr_constraint | 0 | 40 | 40 |
| nm.t.x86_nofsgsbase_setup | 0 | 40 | 40 |
| nm.t.is_sb_event | 0 | 38 | 38 |
| nm.t.pick_file | 0 | 37 | 37 |
| nm.T.get_fs_root_rcu | 0 | 35 | 35 |
| nm.T.tasklet_setup | 0 | 35 | 35 |
| nm.T.dma_map_resource | 0 | 34 | 34 |
| nm.T.intel_pmu_lbr_init_skl | 71 | 105 | 34 |
| nm.T.copy_dynamic_supervisor_to_kernel | 0 | 33 | 33 |
| nm.T.copy_kernel_to_dynamic_supervisor | 0 | 33 | 33 |
| nm.T.dma_map_sg_attrs | 0 | 32 | 32 |
| nm.T.idtentry_enter_nmi | 0 | 32 | 32 |
| nm.T.intel_pmu_lbr_reset_32 | 0 | 32 | 32 |
| nm.T.intel_pmu_lbr_disable_all | 39 | 71 | 32 |
| nm.T.intel_pmu_lbr_swap_task_ctx | 65 | 97 | 32 |
| nm.t.queue_io | 104 | 135 | 31 |
| nm.T.find_get_pages_range_tag | 326 | 357 | 31 |
| nm.T.dup_fd | 357 | 388 | 31 |
| nm.t.intel_pmu_lbr_filter | 388 | 419 | 31 |
| nm.T.__kernel_write | 127 | 156 | 29 |
| nm.t.runtime_pm_show | 0 | 28 | 28 |
| nm.t.sync_state_only_show | 0 | 28 | 28 |
| nm.T.__kernel_read | 122 | 149 | 27 |
| nm.T.xas_find_marked | 395 | 422 | 27 |
| nm.T.sched_set_fifo | 0 | 26 | 26 |
| nm.T.sched_set_fifo_low | 0 | 26 | 26 |
| nm.T.idtentry_exit_nmi | 0 | 25 | 25 |
| nm.T.intel_pmu_lbr_del | 98 | 123 | 25 |
| nm.T.intel_pmu_lbr_init_hsw | 136 | 161 | 25 |
| nm.T.set_bdi_congested | 0 | 24 | 24 |
| nm.d.xstate_comp_offsets | 40 | 64 | 24 |
| nm.d.xstate_offsets | 40 | 64 | 24 |
| nm.d.xstate_sizes | 40 | 64 | 24 |
| nm.T.fpu__init_system_xstate | 1140 | 1164 | 24 |
| nm.t.prepare_exit_to_usermode | 0 | 22 | 22 |
| nm.t.direct_splice_actor | 23 | 45 | 22 |
| nm.T.vfs_create_mount | 140 | 162 | 22 |
| nm.t.create_lbr_kmem_cache | 0 | 21 | 21 |
| nm.d.devlink_attrs | 0 | 20 | 20 |
| nm.d.devlink_class_intf | 0 | 20 | 20 |
| nm.r.devlink_group | 0 | 20 | 20 |
| nm.d.platform_dev_group | 0 | 20 | 20 |
| nm.t.free_vmap_block | 57 | 77 | 20 |
| nm.t.try_to_wake_up | 203 | 223 | 20 |
| nm.D.x86_pmu | 336 | 356 | 20 |
| nm.t.find_get_context | 407 | 427 | 20 |
| nm.T.device_del | 494 | 514 | 20 |
| nm.d.cpuhp_hp_states | 4280 | 4300 | 20 |
| nm.T.anon_inode_getfd_secure | 0 | 19 | 19 |
| nm.T.anon_inode_getfile_secure | 0 | 19 | 19 |
| nm.t.sw_perf_event_destroy | 75 | 94 | 19 |
| nm.t.intel_pmu_arch_lbr_reset | 0 | 18 | 18 |
| nm.t.__device_link_del | 54 | 72 | 18 |
| nm.T.device_links_check_suppliers | 188 | 206 | 18 |
| nm.t.clone_mnt | 420 | 438 | 18 |
| nm.T.idtentry_exit | 0 | 17 | 17 |
| nm.t.numa_node_show | 0 | 17 | 17 |
| nm.t.do_splice_to | 117 | 134 | 17 |
| nm.t.x86_pmu_enable | 497 | 514 | 17 |
| nm.t.identify_cpu | 737 | 754 | 17 |
| nm.d.dev_attr_auto_remove_on | 0 | 16 | 16 |
| nm.d.dev_attr_numa_node | 0 | 16 | 16 |
| nm.d.dev_attr_runtime_pm | 0 | 16 | 16 |
| nm.d.dev_attr_state_synced | 0 | 16 | 16 |
| nm.d.dev_attr_status | 0 | 16 | 16 |
| nm.d.dev_attr_sync_state_only | 0 | 16 | 16 |
| nm.T.release_dentry_name_snapshot | 35 | 51 | 16 |
| nm.T.tag_pages_for_writeback | 207 | 223 | 16 |
| nm.t.cr4_set_bits | 0 | 15 | 15 |
| nm.t.intel_pmu_arch_lbr_xrstors | 0 | 15 | 15 |
| nm.t.intel_pmu_arch_lbr_xsaves | 0 | 15 | 15 |
| nm.t.platform_dev_attrs_visible | 0 | 15 | 15 |
| nm.T.device_links_driver_bound | 253 | 268 | 15 |
| nm.t.free_task_ctx_data | 0 | 14 | 14 |
| nm.T.bdi_put | 22 | 36 | 14 |
| nm.t._free_event | 431 | 445 | 14 |
| nm.T.check_bugs | 1443 | 1457 | 14 |
| nm.t.perf_event_alloc | 1637 | 1651 | 14 |
| nm.T.__ia32_sys_close_range | 0 | 13 | 13 |
| nm.T.xa_extract | 493 | 506 | 13 |
| nm.t.__setup_x86_nofsgsbase_setup | 0 | 12 | 12 |
| nm.T.xfeature_size | 0 | 12 | 12 |
| nm.t.device_link_drop_managed | 33 | 45 | 12 |
| nm.t.__device_links_no_driver | 101 | 113 | 12 |
| nm.T.device_release_driver_internal | 272 | 284 | 12 |
| nm.T.do_splice | 1162 | 1174 | 12 |
| nm.R.sys_call_table | 1760 | 1772 | 12 |
| nm.t.__setup_str_x86_nofsgsbase_setup | 0 | 11 | 11 |
| nm.T.sched_trace_rq_nr_running | 0 | 11 | 11 |
| nm.T.vfs_fchmod | 0 | 11 | 11 |
| nm.T.fpu__resume_cpu | 49 | 60 | 11 |
| nm.t.kobject_release | 57 | 68 | 11 |
| nm.T.fpu__init_cpu_xstate | 90 | 101 | 11 |
| nm.T.perf_event_ksymbol | 167 | 178 | 11 |
| nm.T.intel_pmu_setup_lbr_filter | 467 | 478 | 11 |
| nm.t.writeback_sb_inodes | 628 | 639 | 11 |
| nm.T.__lock_page_async | 0 | 10 | 10 |
| nm.T.dma_sync_sg_for_cpu | 0 | 10 | 10 |
| nm.T.dma_sync_sg_for_device | 0 | 10 | 10 |
| nm.T.dma_sync_single_for_cpu | 0 | 10 | 10 |
| nm.T.dma_sync_single_for_device | 0 | 10 | 10 |
| nm.T.dma_unmap_page_attrs | 0 | 10 | 10 |
| nm.T.dma_unmap_resource | 0 | 10 | 10 |
| nm.T.dma_unmap_sg_attrs | 0 | 10 | 10 |
| nm.T.find_vm_area | 13 | 22 | 9 |
| nm.t.free_ctx | 23 | 32 | 9 |
| nm.T.remove_vm_area | 55 | 64 | 9 |
| nm.T.device_links_no_driver | 73 | 82 | 9 |
| nm.T.devm_kmalloc | 74 | 83 | 9 |
| nm.T.device_links_busy | 86 | 95 | 9 |
| nm.T.device_links_driver_cleanup | 95 | 104 | 9 |
| nm.T.device_links_unbind_consumers | 122 | 131 | 9 |
| nm.t.inherit_event | 378 | 387 | 9 |
| nm.T.copy_fpstate_to_sigframe | 527 | 536 | 9 |
| nm.t.devlink_dev_release | 0 | 8 | 8 |
| nm.d.devlink_groups | 0 | 8 | 8 |
| nm.T.put_callchain_entry | 0 | 8 | 8 |
| nm.b.vfs_identifier_offset | 0 | 8 | 8 |
| nm.b.vfs_last_identifier | 0 | 8 | 8 |
| nm.d.mnt_id_ida | 8 | 16 | 8 |
| nm.T.exc_page_fault | 100 | 108 | 8 |
| nm.t.alloc_super | 563 | 571 | 8 |
| nm.D.cpu_hw_events | 3800 | 3808 | 8 |
| nm.t.intel_pmu_arch_lbr_read | 0 | 7 | 7 |
| nm.T.vmalloc_init | 277 | 284 | 7 |
| nm.T.ida_alloc_range | 638 | 645 | 7 |
| nm.W.__ia32_sys_fsinfo | 0 | 6 | 6 |
| nm.W.__ia32_sys_watch_mount | 0 | 6 | 6 |
| nm.W.__ia32_sys_watch_sb | 0 | 6 | 6 |
| nm.r.idt_descr | 0 | 6 | 6 |
| nm.t.device_link_put_kref | 29 | 35 | 6 |
| nm.t.tasklet_action_common | 93 | 99 | 6 |
| nm.t.__device_links_queue_sync_state | 103 | 109 | 6 |
| nm.T.wb_workfn | 538 | 544 | 6 |
| nm.T.devm_kfree | 34 | 39 | 5 |
| nm.T.x86_release_hardware | 35 | 40 | 5 |
| nm.T.exit_mmap | 204 | 209 | 5 |
| nm.t.alloc_vfsmnt | 264 | 269 | 5 |
| nm.t.perf_read | 489 | 494 | 5 |
| nm.d.nr_text_poke_events | 0 | 4 | 4 |
| nm.D.sysctl_sched_dl_period_max | 0 | 4 | 4 |
| nm.D.sysctl_sched_dl_period_min | 0 | 4 | 4 |
| nm.d.platform_dev_attrs | 12 | 16 | 4 |
| nm.d.resend_tasklet | 20 | 24 | 4 |
| nm.T.tasklet_init | 27 | 31 | 4 |
| nm.T.exc_invalid_tss | 54 | 58 | 4 |
| nm.T.exc_segment_not_present | 54 | 58 | 4 |
| nm.T.exc_stack_segment | 54 | 58 | 4 |
| nm.T.exc_alignment_check | 127 | 131 | 4 |
| nm.t.__get_vm_area_node | 220 | 224 | 4 |
| nm.T.x86_perf_event_set_period | 442 | 446 | 4 |
| nm.T.idtentry_enter | 0 | 3 | 3 |
| nm.T.exc_coprocessor_error | 35 | 38 | 3 |
| nm.T.exc_simd_coprocessor_error | 35 | 38 | 3 |
| nm.T.sysvec_kvm_posted_intr_wakeup_ipi | 38 | 41 | 3 |
| nm.T.exc_device_not_available | 54 | 57 | 3 |
| nm.T.unshare_files | 69 | 72 | 3 |
| nm.t.device_reorder_to_tail | 82 | 85 | 3 |
| nm.T.iret_error | 88 | 91 | 3 |
| nm.T.exc_bounds | 127 | 130 | 3 |
| nm.T.ksys_unshare | 421 | 424 | 3 |
| nm.t.copy_process | 3366 | 3369 | 3 |
| nm.t.__device_link_free_srcu | 44 | 46 | 2 |
| nm.T.exc_coproc_segment_overrun | 48 | 50 | 2 |
| nm.T.exc_overflow | 48 | 50 | 2 |
| nm.T.exc_divide_error | 49 | 51 | 2 |
| nm.T.exc_invalid_op | 76 | 78 | 2 |
| nm.T.vread | 412 | 414 | 2 |
| nm.T.call_trace_sched_update_nr_running | 0 | 1 | 1 |
| nm.T.__wait_rcu_gp | 159 | 160 | 1 |
| nm.T.__mark_inode_dirty | 292 | 293 | 1 |
| nm.T.exc_spurious_interrupt_bug | 19 | 18 | -1 |
| nm.T.sysvec_kvm_posted_intr_ipi | 45 | 44 | -1 |
| nm.T.sysvec_kvm_posted_intr_nested_ipi | 45 | 44 | -1 |
| nm.t.enqueue_task | 47 | 46 | -1 |
| nm.T.common_interrupt | 102 | 101 | -1 |
| nm.T.exc_general_protection | 336 | 335 | -1 |
| nm.T.vwrite | 368 | 367 | -1 |
| nm.W.mem_encrypt_free_decrypted_mem | 1 | 0 | -1 |
| nm.T.do_execve | 23 | 20 | -3 |
| nm.T.resume_console | 35 | 32 | -3 |
| nm.t.dma_dummy_map_sg | 3 | 0 | -3 |
| nm.t.dma_dummy_supported | 3 | 0 | -3 |
| nm.t.get_rr_interval_idle | 3 | 0 | -3 |
| nm.T.idtentry_enter_cond_rcu | 3 | 0 | -3 |
| nm.R.dl_sched_class | 68 | 64 | -4 |
| nm.R.fair_sched_class | 68 | 64 | -4 |
| nm.R.idle_sched_class | 68 | 64 | -4 |
| nm.R.rt_sched_class | 68 | 64 | -4 |
| nm.D.platform_bus | 240 | 236 | -4 |
| nm.d.cpu_devices | 248 | 244 | -4 |
| nm.d.rtc_device | 288 | 284 | -4 |
| nm.t.pebs_update_state | 541 | 537 | -4 |
| nm.t.dma_dummy_map_page | 4 | 0 | -4 |
| nm.b.exclusive_console | 4 | 0 | -4 |
| nm.T.rd_doload | 4 | 0 | -4 |
| nm.T.free_initmem | 30 | 25 | -5 |
| nm.t.__writeback_single_inode | 221 | 216 | -5 |
| nm.T.__ia32_sys_pidfd_getfd | 260 | 255 | -5 |
| nm.t.shrink_node | 553 | 548 | -5 |
| nm.T.account_page_redirty | 66 | 60 | -6 |
| nm.T.account_page_dirtied | 111 | 105 | -6 |
| nm.t.dma_dummy_mmap | 6 | 0 | -6 |
| nm.R.idt_descr | 6 | 0 | -6 |
| nm.T.yield_to | 114 | 107 | -7 |
| nm.t.try_enable_new_console | 210 | 203 | -7 |
| nm.b.exclusive_console_stop_seq | 8 | 0 | -8 |
| nm.d.umh_list | 8 | 0 | -8 |
| nm.T.software_node_unregister_node_group | 38 | 26 | -12 |
| nm.t.wb_writeback | 249 | 237 | -12 |
| nm.D.noop_backing_dev_info | 372 | 360 | -12 |
| nm.d.umh_list_lock | 12 | 0 | -12 |
| nm.T.do_exit | 1521 | 1508 | -13 |
| nm.T.do_execveat | 19 | 5 | -14 |
| nm.t.shrink_page_list | 1922 | 1908 | -14 |
| nm.T.legacy_clone_args_valid | 16 | 0 | -16 |
| nm.t.load_ramdisk | 23 | 6 | -17 |
| nm.T.idtentry_exit_cond_rcu | 17 | 0 | -17 |
| nm.T.__ia32_sys_clone | 116 | 98 | -18 |
| nm.T.ksys_fchown | 81 | 62 | -19 |
| nm.t.release_bdi | 86 | 67 | -19 |
| nm.T.copy_mount_options | 134 | 115 | -19 |
| nm.r.platform_dev_group | 20 | 0 | -20 |
| nm.T.set_wb_congested | 20 | 0 | -20 |
| nm.T.check_preempt_curr | 87 | 66 | -21 |
| nm.T.do_execve_file | 22 | 0 | -22 |
| nm.T.prepare_exit_to_usermode | 22 | 0 | -22 |
| nm.T.exc_double_fault | 104 | 80 | -24 |
| nm.t.wb_congested_put | 25 | 0 | -25 |
| nm.T.__close_fd | 54 | 27 | -27 |
| nm.T.dma_can_mmap | 33 | 5 | -28 |
| nm.T.register_console | 440 | 412 | -28 |
| nm.t.wb_congested | 28 | 0 | -28 |
| nm.T.dma_get_merge_boundary | 32 | 3 | -29 |
| nm.T.deactivate_task | 56 | 27 | -29 |
| nm.T.d_path | 198 | 168 | -30 |
| nm.T.activate_task | 52 | 21 | -31 |
| nm.T.exc_int3 | 223 | 192 | -31 |
| nm.t.rdlbr_from | 32 | 0 | -32 |
| nm.T.dma_max_mapping_size | 38 | 5 | -33 |
| nm.T.page_cache_async_readahead | 148 | 115 | -33 |
| nm.t.wrlbr_from | 33 | 0 | -33 |
| nm.t.pidfd_poll | 81 | 46 | -35 |
| nm.T.dma_free_attrs | 73 | 37 | -36 |
| nm.T.generic_fadvise | 528 | 492 | -36 |
| nm.T.dma_get_required_mask | 46 | 9 | -37 |
| nm.t.redirty_tail | 37 | 0 | -37 |
| nm.t.setup_irq_thread | 145 | 107 | -38 |
| nm.t.writeback_single_inode | 184 | 146 | -38 |
| nm.T.inode_io_list_del | 63 | 24 | -39 |
| nm.T.exc_debug | 222 | 182 | -40 |
| nm.T.exc_nmi | 240 | 200 | -40 |
| nm.T.dma_need_sync | 48 | 5 | -43 |
| nm.T.dma_supported | 50 | 5 | -45 |
| nm.T.dma_cache_sync | 56 | 10 | -46 |
| nm.T.kobject_del | 63 | 17 | -46 |
| nm.t.call_usermodehelper_exec_async | 244 | 193 | -51 |
| nm.T.memcmp_pages | 51 | 0 | -51 |
| nm.T.ksys_dup | 52 | 0 | -52 |
| nm.t.umh_clean_and_save_pid | 52 | 0 | -52 |
| nm.t.intel_pmu_disable_event | 274 | 221 | -53 |
| nm.T.dma_direct_map_page | 55 | 0 | -55 |
| nm.T.ksys_fchmod | 56 | 0 | -56 |
| nm.t.move_expired_inodes | 305 | 245 | -60 |
| nm.T.clear_wb_congested | 60 | 0 | -60 |
| nm.t.unshare_fd | 62 | 0 | -62 |
| nm.t.write_pipe_buf | 62 | 0 | -62 |
| nm.T.dma_alloc_attrs | 75 | 10 | -65 |
| nm.T.anon_inode_getfd | 84 | 17 | -67 |
| nm.T.__switch_to | 336 | 268 | -68 |
| nm.t.do_splice_from | 71 | 0 | -71 |
| nm.T.do_utimes | 265 | 190 | -75 |
| nm.t.copy_fpregs_to_fpstate | 76 | 0 | -76 |
| nm.R.dma_dummy_ops | 76 | 0 | -76 |
| nm.T.dma_get_sgtable_attrs | 83 | 5 | -78 |
| nm.T.dma_mmap_attrs | 83 | 5 | -78 |
| nm.T.vfs_readv | 81 | 0 | -81 |
| nm.T.anon_inode_getfile | 101 | 17 | -84 |
| nm.T.bdi_alloc | 132 | 44 | -88 |
| nm.T.ksys_lseek | 89 | 0 | -89 |
| nm.T.get_perf_callchain | 389 | 296 | -93 |
| nm.t.device_is_dependent | 95 | 0 | -95 |
| nm.t.intel_pmu_enable_event | 528 | 432 | -96 |
| nm.T.__exit_umh | 102 | 0 | -102 |
| nm.T.intel_pmu_lbr_reset | 142 | 36 | -106 |
| nm.T.dma_direct_alloc_pages | 316 | 208 | -108 |
| nm.t.default_bdi_init | 152 | 42 | -110 |
| nm.T.console_unlock | 168 | 47 | -121 |
| nm.t.new_sync_read | 122 | 0 | -122 |
| nm.T.cputime_adjust | 395 | 269 | -126 |
| nm.t.new_sync_write | 129 | 0 | -129 |
| nm.T.call_usermodehelper_setup_file | 136 | 0 | -136 |
| nm.T.ksys_getdents64 | 146 | 0 | -146 |
| nm.T.intel_pmu_store_pebs_lbrs | 258 | 84 | -174 |
| nm.t.umh_pipe_setup | 187 | 0 | -187 |
| nm.T.fork_usermode_blob | 191 | 0 | -191 |
| nm.T.copy_thread_tls | 238 | 0 | -238 |
| nm.t.utimes_common | 262 | 0 | -262 |
| nm.T.intel_pmu_lbr_sched_task | 554 | 149 | -405 |
| nm.t.cgwb_bdi_init | 409 | 0 | -409 |
| nm.t.default_file_splice_read | 451 | 0 | -451 |
| nm.T.seq_read | 709 | 236 | -473 |
| nm.T.xas_store | 783 | 31 | -752 |
| nm.T.intel_pmu_lbr_read | 833 | 46 | -787 |
| nm.T.ksys_ioctl | 1187 | 0 | -1187 |
| nm.t.__do_execve_file | 1520 | 0 | -1520 |
+------------------------------------------+----------+----------+-------+
Thanks
2 years, 2 months
Re: [RFC PATCH v4 03/12] security: add ipe lsm policy parser and policy loading
by kernel test robot
Hi Deven,
[FYI, it's a private test report for your RFC patch.]
[auto build test WARNING on dm/for-next]
[also build test WARNING on pcmoore-selinux/next linus/master v5.8-rc5 next-20200717]
[cannot apply to security/next-testing]
[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/Deven-Bowers/Integrity-Policy-En...
base: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git for-next
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=m68k
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 >>):
In file included from arch/m68k/include/asm/io_mm.h:25,
from arch/m68k/include/asm/io.h:8,
from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:11,
from include/linux/skbuff.h:31,
from include/linux/lsm_audit.h:24,
from security/ipe/ipe-property.h:9,
from security/ipe/ipe-policy.h:7,
from security/ipe/ipe-parse.h:6,
from security/ipe/ipe-secfs.c:7:
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsb':
arch/m68k/include/asm/raw_io.h:83:7: warning: variable '__w' set but not used [-Wunused-but-set-variable]
83 | ({u8 __w, __v = (b); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:430:3: note: in expansion of macro 'rom_out_8'
430 | rom_out_8(port, *buf++);
| ^~~~~~~~~
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw':
arch/m68k/include/asm/raw_io.h:86:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
86 | ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:448:3: note: in expansion of macro 'rom_out_be16'
448 | rom_out_be16(port, *buf++);
| ^~~~~~~~~~~~
arch/m68k/include/asm/raw_io.h: In function 'raw_rom_outsw_swapw':
arch/m68k/include/asm/raw_io.h:90:8: warning: variable '__w' set but not used [-Wunused-but-set-variable]
90 | ({u16 __w, __v = (w); u32 _addr = ((u32) (addr)); \
| ^~~
arch/m68k/include/asm/raw_io.h:466:3: note: in expansion of macro 'rom_out_le16'
466 | rom_out_le16(port, *buf++);
| ^~~~~~~~~~~~
In file included from include/linux/kernel.h:11,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from security/ipe/ipe.h:12,
from security/ipe/ipe-secfs.c:6:
include/linux/scatterlist.h: In function 'sg_set_buf':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
| ^~
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
78 | # define unlikely(x) __builtin_expect(!!(x), 0)
| ^
include/linux/scatterlist.h:143:2: note: in expansion of macro 'BUG_ON'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~
include/linux/scatterlist.h:143:10: note: in expansion of macro 'virt_addr_valid'
143 | BUG_ON(!virt_addr_valid(buf));
| ^~~~~~~~~~~~~~~
In file included from arch/m68k/include/asm/bug.h:32,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/preempt.h:5,
from ./arch/m68k/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/wait.h:9,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from security/ipe/ipe.h:12,
from security/ipe/ipe-secfs.c:6:
include/linux/dma-mapping.h: In function 'dma_map_resource':
arch/m68k/include/asm/page_mm.h:169:49: warning: ordered comparison of pointer with null pointer [-Wextra]
169 | #define virt_addr_valid(kaddr) ((void *)(kaddr) >= (void *)PAGE_OFFSET && (void *)(kaddr) < high_memory)
| ^~
include/asm-generic/bug.h:144:27: note: in definition of macro 'WARN_ON_ONCE'
144 | int __ret_warn_once = !!(condition); \
| ^~~~~~~~~
arch/m68k/include/asm/page_mm.h:170:25: note: in expansion of macro 'virt_addr_valid'
170 | #define pfn_valid(pfn) virt_addr_valid(pfn_to_virt(pfn))
| ^~~~~~~~~~~~~~~
include/linux/dma-mapping.h:352:19: note: in expansion of macro 'pfn_valid'
352 | if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))))
| ^~~~~~~~~
security/ipe/ipe-secfs.c: At top level:
>> security/ipe/ipe-secfs.c:1021:5: warning: no previous prototype for 'ipe_build_policy_secfs_node' [-Wmissing-prototypes]
1021 | int ipe_build_policy_secfs_node(const u8 *data, size_t len)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
>> security/ipe/ipe-secfs.c:1116:12: warning: no previous prototype for 'ipe_build_secfs_root' [-Wmissing-prototypes]
1116 | int __init ipe_build_secfs_root(void)
| ^~~~~~~~~~~~~~~~~~~~
>> security/ipe/ipe-secfs.c:1290:12: warning: no previous prototype for 'ipe_securityfs_init' [-Wmissing-prototypes]
1290 | int __init ipe_securityfs_init(void)
| ^~~~~~~~~~~~~~~~~~~
vim +/ipe_build_policy_secfs_node +1021 security/ipe/ipe-secfs.c
1009
1010 /**
1011 * ipe_build_policy_secfs_node: Build a new securityfs node for IPE policies.
1012 * @data: Raw enveloped PKCS#7 data that represents the policy.
1013 * @len: Length of @data.
1014 *
1015 * Return:
1016 * 0 - OK
1017 * -EEXIST - Policy already exists
1018 * -EBADMSG - Invalid policy syntax
1019 * -ENOMEM - Out of memory
1020 */
> 1021 int ipe_build_policy_secfs_node(const u8 *data, size_t len)
1022 {
1023 int rc = 0;
1024 struct dentry *root = NULL;
1025 struct inode *root_i = NULL;
1026 struct crypto_shash *tfm = NULL;
1027 struct ipe_policy_node *node = NULL;
1028
1029 tfm = crypto_alloc_shash("sha1", 0, 0);
1030 if (IS_ERR(tfm)) {
1031 rc = PTR_ERR(tfm);
1032 goto out;
1033 }
1034
1035 node = ipe_alloc_policy_node(data, len);
1036 if (IS_ERR(node)) {
1037 rc = PTR_ERR(node);
1038 goto free_hash;
1039 }
1040
1041 root = securityfs_create_dir(node->parsed->policy_name,
1042 policies_root);
1043 if (IS_ERR(root)) {
1044 rc = PTR_ERR(root);
1045 goto free_private;
1046 }
1047
1048 root_i = d_inode(root);
1049
1050 inode_lock(root_i);
1051 root_i->i_private = node;
1052 ipe_audit_policy_load(node->parsed, node->data, node->data_len, tfm);
1053 inode_unlock(root_i);
1054
1055 rc = ipe_alloc_policy_tree(root);
1056 if (rc)
1057 goto free_secfs;
1058
1059 crypto_free_shash(tfm);
1060 return rc;
1061
1062 free_secfs:
1063 securityfs_remove(root);
1064 free_private:
1065 ipe_free_policy_node(node);
1066 free_hash:
1067 crypto_free_shash(tfm);
1068 out:
1069 return rc;
1070 }
1071
1072 /**
1073 * ipe_new_policy: Entry point of the securityfs node, "ipe/new_policy".
1074 * @f: File representing the securityfs entry.
1075 * @data: Raw enveloped PKCS#7 data that represents the policy.
1076 * @len: Length of @data.
1077 * @offset: Offset for @data.
1078 *
1079 * Return:
1080 * > 0 - OK
1081 * -EEXIST - Policy already exists
1082 * -EBADMSG - Invalid policy syntax
1083 * -ENOMEM - Out of memory
1084 * -EPERM - if a MAC subsystem is enabled, missing CAP_MAC_ADMIN
1085 */
1086 static ssize_t ipe_new_policy(struct file *f, const char __user *data,
1087 size_t len, loff_t *offset)
1088 {
1089 ssize_t rc = 0;
1090 u8 *cpy = NULL;
1091
1092 if (!file_ns_capable(f, &init_user_ns, CAP_MAC_ADMIN))
1093 return -EPERM;
1094
1095 cpy = memdup_user(data, len);
1096 if (IS_ERR(cpy))
1097 return PTR_ERR(cpy);
1098
1099 rc = ipe_build_policy_secfs_node(cpy, len);
1100
1101 kfree(cpy);
1102 return rc < 0 ? rc : len;
1103 }
1104
1105 static const struct file_operations new_policy_ops = {
1106 .write = ipe_new_policy
1107 };
1108
1109 /**
1110 * ipe_build_secfs_root: Build the root of securityfs for IPE.
1111 *
1112 * Return:
1113 * 0 - OK
1114 * !0 - See securityfs_create_dir and securityfs_create_file
1115 */
> 1116 int __init ipe_build_secfs_root(void)
1117 {
1118 int rc = 0;
1119 struct dentry *new = NULL;
1120 struct dentry *cfg = NULL;
1121 struct dentry *root = NULL;
1122 struct dentry *audit = NULL;
1123 struct dentry *enforce = NULL;
1124 struct dentry *policies = NULL;
1125
1126 root = securityfs_create_dir(IPE_ROOT, NULL);
1127 if (IS_ERR(root)) {
1128 rc = PTR_ERR(root);
1129 goto out;
1130 }
1131
1132 new = securityfs_create_file(NEW_POLICY, 0644, root, NULL,
1133 &new_policy_ops);
1134 if (IS_ERR(new)) {
1135 rc = PTR_ERR(new);
1136 goto out_free_root;
1137 }
1138
1139 policies = securityfs_create_dir(IPE_POLICIES, root);
1140 if (IS_ERR(policies)) {
1141 rc = PTR_ERR(policies);
1142 goto out_free_new;
1143 }
1144
1145 cfg = securityfs_create_file(IPE_PROPERTY_CFG, 0444, root, NULL,
1146 &prop_cfg_ops);
1147 if (IS_ERR(cfg)) {
1148 rc = PTR_ERR(cfg);
1149 goto out_free_policies;
1150 }
1151
1152 audit = securityfs_create_file(IPE_SUCCESS_AUDIT, 0644, root, NULL,
1153 &audit_ops);
1154 if (IS_ERR(cfg)) {
1155 rc = PTR_ERR(audit);
1156 goto out_free_cfg;
1157 }
1158
1159 enforce = ipe_init_enforce_node(root);
1160 if (IS_ERR(enforce)) {
1161 rc = PTR_ERR(audit);
1162 goto out_free_audit;
1163 }
1164
1165 securityfs_root = root;
1166 new_policy_node = new;
1167 policies_root = policies;
1168 property_cfg_node = cfg;
1169 success_audit_node = audit;
1170 enforce_node = enforce;
1171
1172 return rc;
1173
1174 out_free_audit:
1175 securityfs_remove(audit);
1176 out_free_cfg:
1177 securityfs_remove(cfg);
1178 out_free_policies:
1179 securityfs_remove(policies);
1180 out_free_new:
1181 securityfs_remove(new);
1182 out_free_root:
1183 securityfs_remove(root);
1184 out:
1185 return rc;
1186 }
1187
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 2 months
[RFC PATCH] LSM: security_read_selinux_policy() can be static
by kernel test robot
Signed-off-by: kernel test robot <lkp(a)intel.com>
---
services.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/security/selinux/ss/services.c b/security/selinux/ss/services.c
index 79a6b462f1fe9..4374c75f91a21 100644
--- a/security/selinux/ss/services.c
+++ b/security/selinux/ss/services.c
@@ -3734,8 +3734,8 @@ static int security_read_policy_len(struct selinux_state *state, size_t *len)
* @data: binary policy data
* @len: length of data in bytes
*/
-int security_read_selinux_policy(struct selinux_state *state,
- void **data, size_t *len)
+static int security_read_selinux_policy(struct selinux_state *state,
+ void **data, size_t *len)
{
struct policydb *policydb = &state->ss->policydb;
int rc;
2 years, 2 months