[android-common:android-4.4-p 5/9] net/xfrm/xfrm_compat.c:126:16: warning: no previous declaration for '__nla_reserve_64bit'
by kernel test robot
tree: https://android.googlesource.com/kernel/common android-4.4-p
head: 1c23a26139e11ca31b16f6e15d41282e9421d717
commit: 947341f3907b8d0827cc2aa3b9e53de776cb402e [5/9] BACKPORT: xfrm/compat: Add 64=>32-bit messages translator
config: x86_64-randconfig-a004-20210818 (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce (this is a W=1 build):
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android-4.4-p
git checkout 947341f3907b8d0827cc2aa3b9e53de776cb402e
# save the attached .config to linux build tree
make W=1 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 >>):
In file included from arch/x86/include/asm/compat.h:8:0,
from include/linux/compat.h:19,
from net/xfrm/xfrm_compat.c:7:
include/linux/sched.h:1211:1: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
const struct sched_group_energy * const(*sched_domain_energy_f)(int cpu);
^~~~~
>> net/xfrm/xfrm_compat.c:126:16: warning: no previous declaration for '__nla_reserve_64bit' [-Wmissing-declarations]
struct nlattr *__nla_reserve_64bit(struct sk_buff *skb, int attrtype,
^~~~~~~~~~~~~~~~~~~
vim +/__nla_reserve_64bit +126 net/xfrm/xfrm_compat.c
125
> 126 struct nlattr *__nla_reserve_64bit(struct sk_buff *skb, int attrtype,
127 int attrlen, int padattr)
128 {
129 nla_align_64bit(skb, padattr);
130
131 return __nla_reserve(skb, attrtype, attrlen);
132 }
133
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
sound/soc/fsl/fsl_xcvr.c:1048:17: warning: Value stored to 'dev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d992fe5318d8d7af9510b879439a3c7f283da442
commit: 28564486866fa889b78264360022c94836fa8072 ASoC: fsl_xcvr: Add XCVR ASoC CPU DAI driver
date: 10 months ago
config: arm-randconfig-c002-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 44d0a99a12ec7ead4d2f5ef649ba05b40f6d463d)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 28564486866fa889b78264360022c94836fa8072
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm clang-analyzer
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
clang-analyzer warnings: (new ones prefixed by >>)
include/linux/minmax.h:130:36: note: expanded from macro 'clamp_t'
#define clamp_t(type, val, lo, hi) min_t(type, max_t(type, val, lo), hi)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:110:27: note: expanded from macro 'min_t'
#define min_t(type, x, y) __careful_cmp((type)(x), (type)(y), <)
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:44:3: note: expanded from macro '__careful_cmp'
__cmp_once(x, y, __UNIQUE_ID(__x), __UNIQUE_ID(__y), op))
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:39:3: note: expanded from macro '__cmp_once'
__cmp(unique_x, unique_y, op); })
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/minmax.h:34:26: note: expanded from macro '__cmp'
#define __cmp(x, y, op) ((x) op (y) ? (x) : (y))
^~~
drivers/hwmon/lm75.h:27:14: note: '?' condition is true
int ntemp = clamp_val(temp, LM75_TEMP_MIN, LM75_TEMP_MAX);
^
include/linux/minmax.h:143:32: note: expanded from macro 'clamp_val'
#define clamp_val(val, lo, hi) clamp_t(typeof(val), val, lo, hi)
^
include/linux/minmax.h:130:36: note: expanded from macro 'clamp_t'
#define clamp_t(type, val, lo, hi) min_t(type, max_t(type, val, lo), hi)
^
include/linux/minmax.h:110:27: note: expanded from macro 'min_t'
#define min_t(type, x, y) __careful_cmp((type)(x), (type)(y), <)
^
include/linux/minmax.h:44:3: note: expanded from macro '__careful_cmp'
__cmp_once(x, y, __UNIQUE_ID(__x), __UNIQUE_ID(__y), op))
^
include/linux/minmax.h:39:3: note: expanded from macro '__cmp_once'
__cmp(unique_x, unique_y, op); })
^
include/linux/minmax.h:34:26: note: expanded from macro '__cmp'
#define __cmp(x, y, op) ((x) op (y) ? (x) : (y))
^
drivers/hwmon/lm75.h:29:12: note: 'ntemp' is < 0
ntemp += (ntemp < 0 ? -250 : 250);
^~~~~
drivers/hwmon/lm75.h:29:12: note: '?' condition is true
drivers/hwmon/lm75.h:30:29: note: The result of the left shift is undefined because the left operand is negative
return (u16)((ntemp / 500) << 7);
~~~~~~~~~~~~~ ^
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
2 warnings generated.
Suppressed 2 warnings (2 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
10 warnings generated.
sound/soc/fsl/fsl_spdif.c:153:26: warning: Value stored to 'pdev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct platform_device *pdev = spdif_priv->pdev;
^~~~ ~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_spdif.c:153:26: note: Value stored to 'pdev' during its initialization is never read
struct platform_device *pdev = spdif_priv->pdev;
^~~~ ~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_spdif.c:169:26: warning: Value stored to 'pdev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct platform_device *pdev = spdif_priv->pdev;
^~~~ ~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_spdif.c:169:26: note: Value stored to 'pdev' during its initialization is never read
struct platform_device *pdev = spdif_priv->pdev;
^~~~ ~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_spdif.c:221:26: warning: Value stored to 'pdev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct platform_device *pdev = spdif_priv->pdev;
^~~~ ~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_spdif.c:221:26: note: Value stored to 'pdev' during its initialization is never read
struct platform_device *pdev = spdif_priv->pdev;
^~~~ ~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_spdif.c:238:26: warning: Value stored to 'pdev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct platform_device *pdev = spdif_priv->pdev;
^~~~ ~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_spdif.c:238:26: note: Value stored to 'pdev' during its initialization is never read
struct platform_device *pdev = spdif_priv->pdev;
^~~~ ~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_spdif.c:270:26: warning: Value stored to 'pdev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct platform_device *pdev = spdif_priv->pdev;
^~~~ ~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_spdif.c:270:26: note: Value stored to 'pdev' during its initialization is never read
struct platform_device *pdev = spdif_priv->pdev;
^~~~ ~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_spdif.c:372:26: warning: Value stored to 'pdev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct platform_device *pdev = spdif_priv->pdev;
^~~~ ~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_spdif.c:372:26: note: Value stored to 'pdev' during its initialization is never read
struct platform_device *pdev = spdif_priv->pdev;
^~~~ ~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_spdif.c:844:26: warning: Value stored to 'pdev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct platform_device *pdev = spdif_priv->pdev;
^~~~ ~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_spdif.c:844:26: note: Value stored to 'pdev' during its initialization is never read
struct platform_device *pdev = spdif_priv->pdev;
^~~~ ~~~~~~~~~~~~~~~~
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
4 warnings generated.
>> sound/soc/fsl/fsl_xcvr.c:1048:17: warning: Value stored to 'dev' during its initialization is never read [clang-analyzer-deadcode.DeadStores]
struct device *dev = &xcvr->pdev->dev;
^~~ ~~~~~~~~~~~~~~~~
sound/soc/fsl/fsl_xcvr.c:1048:17: note: Value stored to 'dev' during its initialization is never read
struct device *dev = &xcvr->pdev->dev;
^~~ ~~~~~~~~~~~~~~~~
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
3 warnings generated.
Suppressed 3 warnings (3 in non-user code).
Use -header-filter=.* to display errors from all non-system headers. Use -system-headers to display errors from system headers as well.
4 warnings generated.
sound/soc/img/img-spdif-in.c:787:30: warning: The result of the left shift is undefined because the left operand is negative [clang-analyzer-core.UndefinedBinaryOperatorResult]
reg |= (spdif->lock_release << IMG_SPDIF_IN_CTL_LOCKLO_SHIFT) &
~~~~~~~~~~~~~~~~~~~ ^
sound/soc/img/img-spdif-in.c:728:6: note: Assuming 'spdif' is non-null
if (!spdif)
^~~~~~
sound/soc/img/img-spdif-in.c:728:2: note: Taking false branch
if (!spdif)
^
sound/soc/img/img-spdif-in.c:731:2: note: Calling 'platform_set_drvdata'
platform_set_drvdata(pdev, spdif);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/platform_device.h:239:2: note: Calling 'dev_set_drvdata'
dev_set_drvdata(&pdev->dev, data);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/device.h:663:1: note: Returning without writing to 'data->lock_release'
}
^
include/linux/platform_device.h:239:2: note: Returning from 'dev_set_drvdata'
dev_set_drvdata(&pdev->dev, data);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/platform_device.h:240:1: note: Returning without writing to 'data->lock_release'
}
^
sound/soc/img/img-spdif-in.c:731:2: note: Returning from 'platform_set_drvdata'
platform_set_drvdata(pdev, spdif);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/img/img-spdif-in.c:737:6: note: Calling 'IS_ERR'
if (IS_ERR(base))
^~~~~~~~~~~~
include/linux/err.h:36:9: note: Assuming the condition is false
return IS_ERR_VALUE((unsigned long)ptr);
^
include/linux/err.h:22:34: note: expanded from macro 'IS_ERR_VALUE'
#define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:78:42: note: expanded from macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
include/linux/err.h:36:2: note: Returning zero, which participates in a condition later
return IS_ERR_VALUE((unsigned long)ptr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/img/img-spdif-in.c:737:6: note: Returning from 'IS_ERR'
if (IS_ERR(base))
^~~~~~~~~~~~
sound/soc/img/img-spdif-in.c:737:2: note: Taking false branch
if (IS_ERR(base))
^
sound/soc/img/img-spdif-in.c:743:6: note: Calling 'IS_ERR'
if (IS_ERR(spdif->clk_sys)) {
^~~~~~~~~~~~~~~~~~~~~~
include/linux/err.h:36:9: note: Assuming the condition is false
return IS_ERR_VALUE((unsigned long)ptr);
^
include/linux/err.h:22:34: note: expanded from macro 'IS_ERR_VALUE'
#define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/compiler.h:78:42: note: expanded from macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
include/linux/err.h:36:2: note: Returning zero, which participates in a condition later
return IS_ERR_VALUE((unsigned long)ptr);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/img/img-spdif-in.c:743:6: note: Returning from 'IS_ERR'
if (IS_ERR(spdif->clk_sys)) {
^~~~~~~~~~~~~~~~~~~~~~
sound/soc/img/img-spdif-in.c:743:2: note: Taking false branch
if (IS_ERR(spdif->clk_sys)) {
^
sound/soc/img/img-spdif-in.c:750:7: note: Calling 'pm_runtime_enabled'
if (!pm_runtime_enabled(&pdev->dev)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/pm_runtime.h:263:61: note: Returning zero, which participates in a condition later
static inline bool pm_runtime_enabled(struct device *dev) { return false; }
^~~~~~~~~~~~
sound/soc/img/img-spdif-in.c:750:7: note: Returning from 'pm_runtime_enabled'
if (!pm_runtime_enabled(&pdev->dev)) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/img/img-spdif-in.c:750:2: note: Taking true branch
if (!pm_runtime_enabled(&pdev->dev)) {
^
sound/soc/img/img-spdif-in.c:751:9: note: Calling 'img_spdif_in_runtime_resume'
ret = img_spdif_in_runtime_resume(&pdev->dev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
sound/soc/img/img-spdif-in.c:104:8: note: Calling 'clk_prepare_enable'
ret = clk_prepare_enable(spdif->clk_sys);
vim +/dev +1048 sound/soc/fsl/fsl_xcvr.c
1044
1045 static irqreturn_t irq0_isr(int irq, void *devid)
1046 {
1047 struct fsl_xcvr *xcvr = (struct fsl_xcvr *)devid;
> 1048 struct device *dev = &xcvr->pdev->dev;
1049 struct regmap *regmap = xcvr->regmap;
1050 void __iomem *reg_ctrl, *reg_buff;
1051 u32 isr, isr_clr = 0, val, i;
1052
1053 regmap_read(regmap, FSL_XCVR_EXT_ISR, &isr);
1054
1055 if (isr & FSL_XCVR_IRQ_NEW_CS) {
1056 dev_dbg(dev, "Received new CS block\n");
1057 isr_clr |= FSL_XCVR_IRQ_NEW_CS;
1058 /* Data RAM is 4KiB, last two pages: 8 and 9. Select page 8. */
1059 regmap_update_bits(xcvr->regmap, FSL_XCVR_EXT_CTRL,
1060 FSL_XCVR_EXT_CTRL_PAGE_MASK,
1061 FSL_XCVR_EXT_CTRL_PAGE(8));
1062
1063 /* Find updated CS buffer */
1064 reg_ctrl = xcvr->ram_addr + FSL_XCVR_RX_CS_CTRL_0;
1065 reg_buff = xcvr->ram_addr + FSL_XCVR_RX_CS_BUFF_0;
1066 memcpy_fromio(&val, reg_ctrl, sizeof(val));
1067 if (!val) {
1068 reg_ctrl = xcvr->ram_addr + FSL_XCVR_RX_CS_CTRL_1;
1069 reg_buff = xcvr->ram_addr + FSL_XCVR_RX_CS_BUFF_1;
1070 memcpy_fromio(&val, reg_ctrl, sizeof(val));
1071 }
1072
1073 if (val) {
1074 /* copy CS buffer */
1075 memcpy_fromio(&xcvr->rx_iec958.status, reg_buff,
1076 sizeof(xcvr->rx_iec958.status));
1077 for (i = 0; i < 6; i++) {
1078 val = *(u32 *)(xcvr->rx_iec958.status + i*4);
1079 *(u32 *)(xcvr->rx_iec958.status + i*4) =
1080 bitrev32(val);
1081 }
1082 /* clear CS control register */
1083 memset_io(reg_ctrl, 0, sizeof(val));
1084 }
1085 }
1086 if (isr & FSL_XCVR_IRQ_NEW_UD) {
1087 dev_dbg(dev, "Received new UD block\n");
1088 isr_clr |= FSL_XCVR_IRQ_NEW_UD;
1089 }
1090 if (isr & FSL_XCVR_IRQ_MUTE) {
1091 dev_dbg(dev, "HW mute bit detected\n");
1092 isr_clr |= FSL_XCVR_IRQ_MUTE;
1093 }
1094 if (isr & FSL_XCVR_IRQ_FIFO_UOFL_ERR) {
1095 dev_dbg(dev, "RX/TX FIFO full/empty\n");
1096 isr_clr |= FSL_XCVR_IRQ_FIFO_UOFL_ERR;
1097 }
1098 if (isr & FSL_XCVR_IRQ_ARC_MODE) {
1099 dev_dbg(dev, "CMDC SM falls out of eARC mode\n");
1100 isr_clr |= FSL_XCVR_IRQ_ARC_MODE;
1101 }
1102 if (isr & FSL_XCVR_IRQ_DMA_RD_REQ) {
1103 dev_dbg(dev, "DMA read request\n");
1104 isr_clr |= FSL_XCVR_IRQ_DMA_RD_REQ;
1105 }
1106 if (isr & FSL_XCVR_IRQ_DMA_WR_REQ) {
1107 dev_dbg(dev, "DMA write request\n");
1108 isr_clr |= FSL_XCVR_IRQ_DMA_WR_REQ;
1109 }
1110
1111 if (isr_clr) {
1112 regmap_write(regmap, FSL_XCVR_EXT_ISR_CLR, isr_clr);
1113 return IRQ_HANDLED;
1114 }
1115
1116 return IRQ_NONE;
1117 }
1118
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH] cifs: fork arc4 and add a private copy in fs/cifs
by kernel test robot
Hi Ronnie,
Thank you for the patch! Yet something to improve:
[auto build test ERROR on cifs/for-next]
[also build test ERROR on next-20210819]
[cannot apply to v5.14-rc6]
[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/Ronnie-Sahlberg/cifs-fork-arc4-a...
base: git://git.samba.org/sfrench/cifs-2.6.git for-next
config: x86_64-randconfig-a001-20210818 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/370a85a8919b6e79ab8f83007d030b157...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Ronnie-Sahlberg/cifs-fork-arc4-and-add-a-private-copy-in-fs-cifs/20210819-112323
git checkout 370a85a8919b6e79ab8f83007d030b157981b7cf
# save the attached .config to linux build tree
make W=1 ARCH=x86_64
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: lib/crypto/arc4.o: in function `arc4_setkey':
>> lib/crypto/arc4.c:14: multiple definition of `arc4_setkey'; fs/cifs/arc4.o:fs/cifs/arc4.c:13: first defined here
ld: lib/crypto/arc4.o: in function `arc4_crypt':
>> lib/crypto/arc4.c:43: multiple definition of `arc4_crypt'; fs/cifs/arc4.o:fs/cifs/arc4.c:41: first defined here
vim +14 lib/crypto/arc4.c
dc51f25752bfcb Ard Biesheuvel 2019-06-12 12
dc51f25752bfcb Ard Biesheuvel 2019-06-12 13 int arc4_setkey(struct arc4_ctx *ctx, const u8 *in_key, unsigned int key_len)
dc51f25752bfcb Ard Biesheuvel 2019-06-12 @14 {
dc51f25752bfcb Ard Biesheuvel 2019-06-12 15 int i, j = 0, k = 0;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 16
dc51f25752bfcb Ard Biesheuvel 2019-06-12 17 ctx->x = 1;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 18 ctx->y = 0;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 19
dc51f25752bfcb Ard Biesheuvel 2019-06-12 20 for (i = 0; i < 256; i++)
dc51f25752bfcb Ard Biesheuvel 2019-06-12 21 ctx->S[i] = i;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 22
dc51f25752bfcb Ard Biesheuvel 2019-06-12 23 for (i = 0; i < 256; i++) {
dc51f25752bfcb Ard Biesheuvel 2019-06-12 24 u32 a = ctx->S[i];
dc51f25752bfcb Ard Biesheuvel 2019-06-12 25
dc51f25752bfcb Ard Biesheuvel 2019-06-12 26 j = (j + in_key[k] + a) & 0xff;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 27 ctx->S[i] = ctx->S[j];
dc51f25752bfcb Ard Biesheuvel 2019-06-12 28 ctx->S[j] = a;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 29 if (++k >= key_len)
dc51f25752bfcb Ard Biesheuvel 2019-06-12 30 k = 0;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 31 }
dc51f25752bfcb Ard Biesheuvel 2019-06-12 32
dc51f25752bfcb Ard Biesheuvel 2019-06-12 33 return 0;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 34 }
dc51f25752bfcb Ard Biesheuvel 2019-06-12 35 EXPORT_SYMBOL(arc4_setkey);
dc51f25752bfcb Ard Biesheuvel 2019-06-12 36
dc51f25752bfcb Ard Biesheuvel 2019-06-12 37 void arc4_crypt(struct arc4_ctx *ctx, u8 *out, const u8 *in, unsigned int len)
dc51f25752bfcb Ard Biesheuvel 2019-06-12 38 {
dc51f25752bfcb Ard Biesheuvel 2019-06-12 39 u32 *const S = ctx->S;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 40 u32 x, y, a, b;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 41 u32 ty, ta, tb;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 42
dc51f25752bfcb Ard Biesheuvel 2019-06-12 @43 if (len == 0)
dc51f25752bfcb Ard Biesheuvel 2019-06-12 44 return;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 45
dc51f25752bfcb Ard Biesheuvel 2019-06-12 46 x = ctx->x;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 47 y = ctx->y;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 48
dc51f25752bfcb Ard Biesheuvel 2019-06-12 49 a = S[x];
dc51f25752bfcb Ard Biesheuvel 2019-06-12 50 y = (y + a) & 0xff;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 51 b = S[y];
dc51f25752bfcb Ard Biesheuvel 2019-06-12 52
dc51f25752bfcb Ard Biesheuvel 2019-06-12 53 do {
dc51f25752bfcb Ard Biesheuvel 2019-06-12 54 S[y] = a;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 55 a = (a + b) & 0xff;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 56 S[x] = b;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 57 x = (x + 1) & 0xff;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 58 ta = S[x];
dc51f25752bfcb Ard Biesheuvel 2019-06-12 59 ty = (y + ta) & 0xff;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 60 tb = S[ty];
dc51f25752bfcb Ard Biesheuvel 2019-06-12 61 *out++ = *in++ ^ S[a];
dc51f25752bfcb Ard Biesheuvel 2019-06-12 62 if (--len == 0)
dc51f25752bfcb Ard Biesheuvel 2019-06-12 63 break;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 64 y = ty;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 65 a = ta;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 66 b = tb;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 67 } while (true);
dc51f25752bfcb Ard Biesheuvel 2019-06-12 68
dc51f25752bfcb Ard Biesheuvel 2019-06-12 69 ctx->x = x;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 70 ctx->y = y;
dc51f25752bfcb Ard Biesheuvel 2019-06-12 71 }
dc51f25752bfcb Ard Biesheuvel 2019-06-12 72 EXPORT_SYMBOL(arc4_crypt);
dc51f25752bfcb Ard Biesheuvel 2019-06-12 73
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[dhowells-fs:netfs-folio-regions 11/28] fs/netfs/read_helper.c:979:13: warning: variable 'folio' is uninitialized when used here
by kernel test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git netfs-folio-regions
head: 215a4ee495a95cc73256ed76f91cb78bcabd6b8e
commit: 90417b52931da8cb4eb670c3cc22bfa12aabe55c [11/28] netfs: Use a buffer in netfs_read_request and add pages to it
config: hexagon-randconfig-r041-20210818 (attached as .config)
compiler: clang version 12.0.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/dhowells/linux-fs.git/com...
git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
git fetch --no-tags dhowells-fs netfs-folio-regions
git checkout 90417b52931da8cb4eb670c3cc22bfa12aabe55c
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=hexagon SHELL=/bin/bash fs/netfs/
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 >>):
>> fs/netfs/read_helper.c:979:13: warning: variable 'folio' is uninitialized when used here
folio_get(folio);
^~~~~
fs/netfs/read_helper.c:932:21: note: initialize the variable 'folio' to silence this warning
struct folio
^
= NULL
fatal error: error in backend: Misaligned constant address: 0x0000001b has alignment 1, but the memory access requires 4
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0. Program arguments: clang -Wp,-MMD,fs/netfs/.read_helper.o.d -nostdinc -isystem /opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/lib/clang/12.0.0/include -Iarch/hexagon/include -I./arch/hexagon/include/generated -Iinclude -I./include -Iarch/hexagon/include/uapi -I./arch/hexagon/include/generated/uapi -Iinclude/uapi -I./include/generated/uapi -include include/linux/compiler-version.h -include include/linux/kconfig.h -include include/linux/compiler_types.h -D__KERNEL__ -Qunused-arguments -fmacro-prefix-map== -DKBUILD_EXTRA_WARN1 -Wall -Wundef -Werror=strict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fshort-wchar -fno-PIE -Werror=implicit-function-declaration -Werror=implicit-int -Werror=return-type -Wno-format-security -std=gnu89 --target=hexagon-unknown-linux-musl -integrated-as -Werror=unknown-warning-option -G0 -fno-short-enums -mlong-calls -ffixed-r19 -DTHREADINFO_REG=r19 -D__linux__ -fno-delete-null-pointer-checks -Wno-frame-address -Wno-address-of-packed-member -O2 -Wframe-larger-than=1024 -fno-stack-protector -Wno-format-invalid-specifier -Wno-gnu -mno-global-merge -Wno-unused-const-variable -fno-omit-frame-pointer -fno-optimize-sibling-calls -ftrivial-auto-var-init=pattern -fno-stack-clash-protection -falign-functions=64 -Wdeclaration-after-statement -Wvla -Wno-pointer-sign -Wno-array-bounds -fno-strict-overflow -fno-stack-check -Werror=date-time -Werror=incompatible-pointer-types -Wextra -Wunused -Wno-unused-parameter -Wmissing-declarations -Wmissing-format-attribute -Wmissing-prototypes -Wold-style-definition -Wmissing-include-dirs -Wunused-const-variable -Wno-missing-field-initializers -Wno-sign-compare -Wno-type-limits -I fs/netfs -I ./fs/netfs -DKBUILD_MODFILE="fs/netfs/netfs" -DKBUILD_BASENAME="read_helper" -DKBUILD_MODNAME="netfs" -D__KBUILD_MODNAME=kmod_netfs -c -o fs/netfs/read_helper.o fs/netfs/read_helper.c
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'fs/netfs/read_helper.c'.
4. Running pass 'Hexagon DAG->DAG Pattern Instruction Selection' on function '@netfs_rreq_set_up_buffer'
#0 0x000000000355d1fc llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x355d1fc)
#1 0x000000000355afbe llvm::sys::RunSignalHandlers() (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x355afbe)
#2 0x000000000355c55d llvm::sys::CleanupOnSignal(unsigned long) (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x355c55d)
#3 0x00000000034d5aed (anonymous namespace)::CrashRecoveryContextImpl::HandleCrash(int, unsigned long) (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x34d5aed)
#4 0x00000000034d5a79 llvm::CrashRecoveryContext::HandleExit(int) (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x34d5a79)
#5 0x0000000003557e07 llvm::sys::Process::Exit(int, bool) (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x3557e07)
#6 0x0000000002107e10 llvm::DenseMapBase<llvm::DenseMap<llvm::AliasSetTracker::ASTCallbackVH, llvm::AliasSetTracker::ASTCallbackVHDenseMapInfo, llvm::detail::DenseMapPair<llvm::AliasSetTracker::ASTCallbackVH, >, llvm::AliasSetTracker::ASTCallbackVH, llvm::AliasSetTracker::ASTCallbackVHDenseMapInfo, llvm::detail::DenseMapPair<llvm::AliasSetTracker::ASTCallbackVH, >::destroyAll() (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x2107e10)
#7 0x00000000034da319 llvm::report_fatal_error(llvm::Twine const&, bool) (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x34da319)
#8 0x00000000034da3e7 (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x34da3e7)
#9 0x0000000002411b46 (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x2411b46)
#10 0x00000000024183c0 llvm::HexagonTargetLowering::LowerLoad(llvm::SDValue, llvm::SelectionDAG&) const (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x24183c0)
#11 0x0000000002419cbb llvm::HexagonTargetLowering::LowerOperation(llvm::SDValue, llvm::SelectionDAG&) const (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x2419cbb)
#12 0x00000000042c3b6a (anonymous (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x42c3b6a)
#13 0x00000000042a61af (anonymous (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x42a61af)
#14 0x00000000042a5443 llvm::SelectionDAG::Legalize() (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x42a5443)
#15 0x0000000004375361 llvm::SelectionDAGISel::CodeGenAndEmitDAG() (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x4375361)
#16 0x0000000004373545 llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&) (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x4373545)
#17 0x00000000043703b7 llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x43703b7)
#18 0x00000000024690c4 llvm::HexagonDAGToDAGISel::runOnMachineFunction(llvm::MachineFunction&) (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x24690c4)
#19 0x000000000290c1bd llvm::MachineFunctionPass::runOnFunction(llvm::Function&) (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x290c1bd)
#20 0x0000000002d6a745 llvm::FPPassManager::runOnFunction(llvm::Function&) (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x2d6a745)
#21 0x0000000002d70c51 llvm::FPPassManager::runOnModule(llvm::Module&) (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x2d70c51)
#22 0x0000000002d6adaa llvm::legacy::PassManagerImpl::run(llvm::Module&) (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x2d6adaa)
#23 0x000000000378e9a0 clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::DataLayout const&, clang::BackendAction, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream> >) (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x378e9a0)
#24 0x0000000003ebec56 clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x3ebec56)
#25 0x0000000004dbbc84 clang::ParseAST(clang::Sema&, bool, bool) (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x4dbbc84)
#26 0x0000000003e0d560 clang::FrontendAction::Execute() (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x3e0d560)
#27 0x0000000003d596da clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x3d596da)
#28 0x0000000003eb890e (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x3eb890e)
#29 0x0000000002107abe cc1_main(llvm::ArrayRef<char char (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x2107abe)
#30 0x00000000021054ee ExecuteCC1Tool(llvm::SmallVectorImpl<char (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x21054ee)
#31 0x0000000003c04bd2 void llvm::function_ref<void ()>::callback_fn<clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> const::$_1>(long) (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x3c04bd2)
#32 0x00000000034d5a2b llvm::CrashRecoveryContext::RunSafely(llvm::function_ref<void ()>) (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x34d5a2b)
#33 0x0000000003c043c5 clang::driver::CC1Command::Execute(llvm::ArrayRef<llvm::Optional<llvm::StringRef> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> const (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x3c043c5)
#34 0x0000000003bcc196 clang::driver::Compilation::ExecuteCommand(clang::driver::Command const&, clang::driver::Command const (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x3bcc196)
#35 0x0000000003bcc617 clang::driver::Compilation::ExecuteJobs(clang::driver::JobList const&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command >&) const (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x3bcc617)
#36 0x0000000003be5a81 clang::driver::Driver::ExecuteCompilation(clang::driver::Compilation&, llvm::SmallVectorImpl<std::__1::pair<int, clang::driver::Command >&) (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x3be5a81)
#37 0x0000000002104e21 main (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x2104e21)
#38 0x00007f04bb011d0a __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x26d0a)
#39 0x0000000002102299 _start (/opt/cross/clang+llvm-12.0.0-cross-hexagon-unknown-linux-musl/x86_64-linux-gnu/bin/clang-12+0x2102299)
clang-12: error: clang frontend command failed with exit code 70 (use -v to see invocation)
clang version 12.0.0
Target: hexagon-unknown-linux-musl
Thread model: posix
InstalledDir: /opt/cross/clang_hexagon/x86_64-linux-gnu/bin
clang-12: note: diagnostic msg:
Makefile arch fs include kernel nr_bisected scripts source usr
vim +/folio +979 fs/netfs/read_helper.c
947
948 ret = netfs_rreq_add_folios_to_buffer(rreq, want_index, have_index - 1,
949 gfp_mask);
950 if (ret < 0)
951 return ret;
952 have_folios += have_index - want_index;
953
954 ret = netfs_rreq_add_folios_to_buffer(rreq, have_index + have_folios,
955 want_index + want_folios - 1,
956 gfp_mask);
957 if (ret < 0)
958 return ret;
959
960 /* Transfer the folios proposed by the VM into the buffer and take refs
961 * on them. The locks will be dropped in netfs_rreq_unlock().
962 */
963 if (ractl) {
964 while ((folio = readahead_folio(ractl))) {
965 folio_get(folio);
966 if (folio == keep)
967 folio_get(folio);
968 ret = xa_insert_set_mark(&rreq->buffer,
969 folio_index(folio), folio,
970 XA_MARK_0, gfp_mask);
971 if (ret < 0) {
972 if (folio != keep)
973 folio_unlock(folio);
974 folio_put(folio);
975 return ret;
976 }
977 }
978 } else {
> 979 folio_get(folio);
980 ret = xa_insert_set_mark(&rreq->buffer, keep->index, keep,
981 XA_MARK_0, gfp_mask);
982 if (ret < 0) {
983 folio_put(folio);
984 return ret;
985 }
986 }
987 return 0;
988 }
989
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH v2 6/6] ASoC: Intel: bytcr_rt5640: Add support for HP Elite Pad 1000G2 jack-detect
by kernel test robot
Hi Hans,
I love your patch! Perhaps something to improve:
[auto build test WARNING on asoc/for-next]
[also build test WARNING on next-20210819]
[cannot apply to v5.14-rc6]
[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/Hans-de-Goede/ASoC-Intel-rt5640-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: x86_64-randconfig-a002-20210818 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce (this is a W=1 build):
# https://github.com/0day-ci/linux/commit/d447b4929d9936f4c0eeacdffeb8ed9ff...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Hans-de-Goede/ASoC-Intel-rt5640-Add-support-for-HP-Elite-Pad-1000G2-jack-detect/20210820-031104
git checkout d447b4929d9936f4c0eeacdffeb8ed9ff09fe01b
# save the attached .config to linux build tree
make W=1 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 >>):
>> sound/soc/intel/boards/bytcr_rt5640.c:493:5: warning: no previous prototype for 'byt_rt5640_hp_elitepad_1000g2_jack1_check' [-Wmissing-prototypes]
493 | int byt_rt5640_hp_elitepad_1000g2_jack1_check(void *data)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> sound/soc/intel/boards/bytcr_rt5640.c:509:5: warning: no previous prototype for 'byt_rt5640_hp_elitepad_1000g2_jack2_check' [-Wmissing-prototypes]
509 | int byt_rt5640_hp_elitepad_1000g2_jack2_check(void *data)
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +/byt_rt5640_hp_elitepad_1000g2_jack1_check +493 sound/soc/intel/boards/bytcr_rt5640.c
492
> 493 int byt_rt5640_hp_elitepad_1000g2_jack1_check(void *data)
494 {
495 struct byt_rt5640_private *priv = data;
496 int jack_status, mic_status;
497
498 jack_status = gpiod_get_value_cansleep(rt5640_jack_gpio.desc);
499 if (jack_status)
500 return 0;
501
502 mic_status = gpiod_get_value_cansleep(priv->hsmic_detect);
503 if (mic_status)
504 return SND_JACK_HEADPHONE;
505 else
506 return SND_JACK_HEADSET;
507 }
508
> 509 int byt_rt5640_hp_elitepad_1000g2_jack2_check(void *data)
510 {
511 struct snd_soc_component *component = data;
512 int jack_status, report;
513
514 jack_status = gpiod_get_value_cansleep(rt5640_jack2_gpio.desc);
515 if (jack_status)
516 return 0;
517
518 rt5640_enable_micbias1_for_ovcd(component);
519 report = rt5640_detect_headset(component, rt5640_jack2_gpio.desc);
520 rt5640_disable_micbias1_for_ovcd(component);
521
522 return report;
523 }
524
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
[android-common:android12-5.10 1/13] include/linux/page_pinner.h:39:51: warning: unused parameter 'page'
by kernel test robot
tree: https://android.googlesource.com/kernel/common android12-5.10
head: 25a0835d5ec1cc4462d853326945cd4dfec4fe17
commit: 6e12c5b7d418afe6670097dd6d214c55a6592c5a [1/13] ANDROID: mm: introduce page_pinner
config: i386-randconfig-r021-20210816 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 2c6448cdc2f68f8c28fd0bd9404182b81306e6e6)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git remote add android-common https://android.googlesource.com/kernel/common
git fetch --no-tags android-common android12-5.10
git checkout 6e12c5b7d418afe6670097dd6d214c55a6592c5a
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross 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 >>):
^
include/linux/pgtable.h:609:56: warning: unused parameter 'mm' [-Wunused-parameter]
static inline void arch_do_swap_page(struct mm_struct *mm,
^
include/linux/pgtable.h:610:33: warning: unused parameter 'vma' [-Wunused-parameter]
struct vm_area_struct *vma,
^
include/linux/pgtable.h:611:24: warning: unused parameter 'addr' [-Wunused-parameter]
unsigned long addr,
^
include/linux/pgtable.h:612:16: warning: unused parameter 'pte' [-Wunused-parameter]
pte_t pte, pte_t oldpte)
^
include/linux/pgtable.h:612:27: warning: unused parameter 'oldpte' [-Wunused-parameter]
pte_t pte, pte_t oldpte)
^
include/linux/pgtable.h:627:52: warning: unused parameter 'mm' [-Wunused-parameter]
static inline int arch_unmap_one(struct mm_struct *mm,
^
include/linux/pgtable.h:628:30: warning: unused parameter 'vma' [-Wunused-parameter]
struct vm_area_struct *vma,
^
include/linux/pgtable.h:629:21: warning: unused parameter 'addr' [-Wunused-parameter]
unsigned long addr,
^
include/linux/pgtable.h:630:13: warning: unused parameter 'orig_pte' [-Wunused-parameter]
pte_t orig_pte)
^
include/linux/pgtable.h:642:53: warning: unused parameter 'page' [-Wunused-parameter]
static inline int arch_prepare_to_swap(struct page *page)
^
include/linux/pgtable.h:649:50: warning: unused parameter 'type' [-Wunused-parameter]
static inline void arch_swap_invalidate_page(int type, pgoff_t offset)
^
include/linux/pgtable.h:649:64: warning: unused parameter 'offset' [-Wunused-parameter]
static inline void arch_swap_invalidate_page(int type, pgoff_t offset)
^
include/linux/pgtable.h:653:50: warning: unused parameter 'type' [-Wunused-parameter]
static inline void arch_swap_invalidate_area(int type)
^
include/linux/pgtable.h:659:50: warning: unused parameter 'entry' [-Wunused-parameter]
static inline void arch_swap_restore(swp_entry_t entry, struct page *page)
^
include/linux/pgtable.h:659:70: warning: unused parameter 'page' [-Wunused-parameter]
static inline void arch_swap_restore(swp_entry_t entry, struct page *page)
^
include/linux/pgtable.h:828:28: warning: unused parameter 'old_pte' [-Wunused-parameter]
pte_t *ptep, pte_t old_pte, pte_t pte)
^
include/linux/pgtable.h:942:40: warning: unused parameter 'pte' [-Wunused-parameter]
static inline int pte_soft_dirty(pte_t pte)
^
include/linux/pgtable.h:947:40: warning: unused parameter 'pmd' [-Wunused-parameter]
static inline int pmd_soft_dirty(pmd_t pmd)
^
include/linux/pgtable.h:977:44: warning: unused parameter 'pte' [-Wunused-parameter]
static inline int pte_swp_soft_dirty(pte_t pte)
^
include/linux/pgtable.h:992:44: warning: unused parameter 'pmd' [-Wunused-parameter]
static inline int pmd_swp_soft_dirty(pmd_t pmd)
^
include/linux/pgtable.h:1084:55: warning: unused parameter 'addr' [-Wunused-parameter]
static inline unsigned long my_zero_pfn(unsigned long addr)
^
include/linux/pgtable.h:1116:36: warning: unused parameter 'pmd' [-Wunused-parameter]
static inline int pmd_devmap(pmd_t pmd)
^
include/linux/pgtable.h:1120:36: warning: unused parameter 'pud' [-Wunused-parameter]
static inline int pud_devmap(pud_t pud)
^
include/linux/pgtable.h:1124:36: warning: unused parameter 'pgd' [-Wunused-parameter]
static inline int pgd_devmap(pgd_t pgd)
^
include/linux/pgtable.h:1133:40: warning: unused parameter 'pud' [-Wunused-parameter]
static inline int pud_trans_huge(pud_t pud)
^
include/linux/pgtable.h:1154:45: warning: unused parameter 'pud' [-Wunused-parameter]
static inline int pud_trans_unstable(pud_t *pud)
^
include/linux/pgtable.h:1286:38: warning: unused parameter 'pte' [-Wunused-parameter]
static inline int pte_protnone(pte_t pte)
^
include/linux/pgtable.h:1291:38: warning: unused parameter 'pmd' [-Wunused-parameter]
static inline int pmd_protnone(pmd_t pmd)
^
include/linux/pgtable.h:1305:39: warning: unused parameter 'p4d' [-Wunused-parameter]
static inline int p4d_set_huge(p4d_t *p4d, phys_addr_t addr, pgprot_t prot)
^
include/linux/pgtable.h:1305:56: warning: unused parameter 'addr' [-Wunused-parameter]
static inline int p4d_set_huge(p4d_t *p4d, phys_addr_t addr, pgprot_t prot)
^
include/linux/pgtable.h:1305:71: warning: unused parameter 'prot' [-Wunused-parameter]
static inline int p4d_set_huge(p4d_t *p4d, phys_addr_t addr, pgprot_t prot)
^
include/linux/pgtable.h:1309:41: warning: unused parameter 'p4d' [-Wunused-parameter]
static inline int p4d_clear_huge(p4d_t *p4d)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:32:
In file included from include/linux/oom.h:11:
In file included from include/linux/mm.h:35:
>> include/linux/page_pinner.h:39:51: warning: unused parameter 'page' [-Wunused-parameter]
static inline void reset_page_pinner(struct page *page, unsigned int order)
^
>> include/linux/page_pinner.h:39:70: warning: unused parameter 'order' [-Wunused-parameter]
static inline void reset_page_pinner(struct page *page, unsigned int order)
^
include/linux/page_pinner.h:42:50: warning: unused parameter 'page' [-Wunused-parameter]
static inline void free_page_pinner(struct page *page, unsigned int order)
^
include/linux/page_pinner.h:42:69: warning: unused parameter 'order' [-Wunused-parameter]
static inline void free_page_pinner(struct page *page, unsigned int order)
^
include/linux/page_pinner.h:45:49: warning: unused parameter 'page' [-Wunused-parameter]
static inline void set_page_pinner(struct page *page, unsigned int order)
^
include/linux/page_pinner.h:45:68: warning: unused parameter 'order' [-Wunused-parameter]
static inline void set_page_pinner(struct page *page, unsigned int order)
^
include/linux/page_pinner.h:48:50: warning: unused parameter 'page' [-Wunused-parameter]
static inline void dump_page_pinner(struct page *page)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:32:
In file included from include/linux/oom.h:11:
In file included from include/linux/mm.h:738:
In file included from include/linux/huge_mm.h:8:
In file included from include/linux/fs.h:33:
include/linux/percpu-rwsem.h:142:11: warning: unused parameter 'read' [-Wunused-parameter]
bool read, unsigned long ip)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:32:
In file included from include/linux/oom.h:11:
In file included from include/linux/mm.h:738:
In file included from include/linux/huge_mm.h:8:
In file included from include/linux/fs.h:240:
In file included from include/linux/quota.h:40:
include/linux/percpu_counter.h:102:17: warning: unused parameter 'gfp' [-Wunused-parameter]
gfp_t gfp)
^
include/linux/percpu_counter.h:108:66: warning: unused parameter 'fbc' [-Wunused-parameter]
static inline void percpu_counter_destroy(struct percpu_counter *fbc)
^
include/linux/percpu_counter.h:128:67: warning: unused parameter 'batch' [-Wunused-parameter]
__percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch)
^
include/linux/percpu_counter.h:142:70: warning: unused parameter 'batch' [-Wunused-parameter]
percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch)
^
include/linux/percpu_counter.h:171:70: warning: unused parameter 'fbc' [-Wunused-parameter]
static inline bool percpu_counter_initialized(struct percpu_counter *fbc)
^
include/linux/percpu_counter.h:176:63: warning: unused parameter 'fbc' [-Wunused-parameter]
static inline void percpu_counter_sync(struct percpu_counter *fbc)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:32:
In file included from include/linux/oom.h:11:
In file included from include/linux/mm.h:738:
In file included from include/linux/huge_mm.h:8:
In file included from include/linux/fs.h:240:
include/linux/quota.h:520:51: warning: unused parameter 'qid' [-Wunused-parameter]
static inline void quota_send_warning(struct kqid qid, dev_t dev,
^
include/linux/quota.h:520:62: warning: unused parameter 'dev' [-Wunused-parameter]
static inline void quota_send_warning(struct kqid qid, dev_t dev,
^
include/linux/quota.h:521:22: warning: unused parameter 'warntype' [-Wunused-parameter]
const char warntype)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:32:
In file included from include/linux/oom.h:11:
In file included from include/linux/mm.h:738:
In file included from include/linux/huge_mm.h:8:
include/linux/fs.h:3350:45: warning: unused parameter 'fmt' [-Wunused-parameter]
void __simple_attr_check_format(const char *fmt, ...)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:32:
In file included from include/linux/oom.h:11:
In file included from include/linux/mm.h:738:
include/linux/huge_mm.h:22:59: warning: unused parameter 'vmf' [-Wunused-parameter]
static inline void huge_pud_set_accessed(struct vm_fault *vmf, pud_t orig_pud)
^
include/linux/huge_mm.h:22:70: warning: unused parameter 'orig_pud' [-Wunused-parameter]
static inline void huge_pud_set_accessed(struct vm_fault *vmf, pud_t orig_pud)
^
include/linux/huge_mm.h:311:43: warning: unused parameter 'pud' [-Wunused-parameter]
static inline bool is_huge_zero_pud(pud_t pud)
^
In file included from drivers/gpu/drm/i915/i915_drv.c:32:
In file included from include/linux/oom.h:11:
include/linux/mm.h:1150:59: warning: unused parameter 'page' [-Wunused-parameter]
static inline bool is_zone_device_page(const struct page *page)
^
include/linux/mm.h:1179:56: warning: unused parameter 'page' [-Wunused-parameter]
static inline bool page_is_devmap_managed(struct page *page)
^
include/linux/mm.h:1184:57: warning: unused parameter 'page' [-Wunused-parameter]
static inline void put_devmap_managed_page(struct page *page)
^
include/linux/mm.h:1425:64: warning: unused parameter 'cpupid' [-Wunused-parameter]
static inline int page_cpupid_xchg_last(struct page *page, int cpupid)
^
include/linux/mm.h:1435:37: warning: unused parameter 'cpupid' [-Wunused-parameter]
static inline int cpupid_to_nid(int cpupid)
^
include/linux/mm.h:1440:37: warning: unused parameter 'cpupid' [-Wunused-parameter]
--
include/linux/percpu-rwsem.h:142:11: warning: unused parameter 'read' [-Wunused-parameter]
bool read, unsigned long ip)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:38:
In file included from include/linux/io-mapping.h:33:
In file included from arch/x86/include/asm/iomap.h:9:
In file included from include/linux/fs.h:240:
In file included from include/linux/quota.h:40:
include/linux/percpu_counter.h:102:17: warning: unused parameter 'gfp' [-Wunused-parameter]
gfp_t gfp)
^
include/linux/percpu_counter.h:108:66: warning: unused parameter 'fbc' [-Wunused-parameter]
static inline void percpu_counter_destroy(struct percpu_counter *fbc)
^
include/linux/percpu_counter.h:128:67: warning: unused parameter 'batch' [-Wunused-parameter]
__percpu_counter_compare(struct percpu_counter *fbc, s64 rhs, s32 batch)
^
include/linux/percpu_counter.h:142:70: warning: unused parameter 'batch' [-Wunused-parameter]
percpu_counter_add_batch(struct percpu_counter *fbc, s64 amount, s32 batch)
^
include/linux/percpu_counter.h:171:70: warning: unused parameter 'fbc' [-Wunused-parameter]
static inline bool percpu_counter_initialized(struct percpu_counter *fbc)
^
include/linux/percpu_counter.h:176:63: warning: unused parameter 'fbc' [-Wunused-parameter]
static inline void percpu_counter_sync(struct percpu_counter *fbc)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:38:
In file included from include/linux/io-mapping.h:33:
In file included from arch/x86/include/asm/iomap.h:9:
In file included from include/linux/fs.h:240:
include/linux/quota.h:520:51: warning: unused parameter 'qid' [-Wunused-parameter]
static inline void quota_send_warning(struct kqid qid, dev_t dev,
^
include/linux/quota.h:520:62: warning: unused parameter 'dev' [-Wunused-parameter]
static inline void quota_send_warning(struct kqid qid, dev_t dev,
^
include/linux/quota.h:521:22: warning: unused parameter 'warntype' [-Wunused-parameter]
const char warntype)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:38:
In file included from include/linux/io-mapping.h:33:
In file included from arch/x86/include/asm/iomap.h:9:
include/linux/fs.h:3350:45: warning: unused parameter 'fmt' [-Wunused-parameter]
void __simple_attr_check_format(const char *fmt, ...)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:38:
In file included from include/linux/io-mapping.h:33:
In file included from arch/x86/include/asm/iomap.h:10:
In file included from include/linux/mm.h:29:
In file included from include/linux/memremap.h:5:
include/linux/ioport.h:319:51: warning: unused parameter 'res' [-Wunused-parameter]
static inline void revoke_devmem(struct resource *res) { };
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:38:
In file included from include/linux/io-mapping.h:33:
In file included from arch/x86/include/asm/iomap.h:10:
In file included from include/linux/mm.h:29:
include/linux/memremap.h:146:56: warning: unused parameter 'dev' [-Wunused-parameter]
static inline void *devm_memremap_pages(struct device *dev,
^
include/linux/memremap.h:147:23: warning: unused parameter 'pgmap' [-Wunused-parameter]
struct dev_pagemap *pgmap)
^
include/linux/memremap.h:158:55: warning: unused parameter 'dev' [-Wunused-parameter]
static inline void devm_memunmap_pages(struct device *dev,
^
include/linux/memremap.h:159:23: warning: unused parameter 'pgmap' [-Wunused-parameter]
struct dev_pagemap *pgmap)
^
include/linux/memremap.h:163:65: warning: unused parameter 'pfn' [-Wunused-parameter]
static inline struct dev_pagemap *get_dev_pagemap(unsigned long pfn,
^
include/linux/memremap.h:164:23: warning: unused parameter 'pgmap' [-Wunused-parameter]
struct dev_pagemap *pgmap)
^
include/linux/memremap.h:169:56: warning: unused parameter 'pgmap' [-Wunused-parameter]
static inline bool pgmap_pfn_valid(struct dev_pagemap *pgmap, unsigned long pfn)
^
include/linux/memremap.h:169:77: warning: unused parameter 'pfn' [-Wunused-parameter]
static inline bool pgmap_pfn_valid(struct dev_pagemap *pgmap, unsigned long pfn)
^
include/linux/memremap.h:174:68: warning: unused parameter 'altmap' [-Wunused-parameter]
static inline unsigned long vmem_altmap_offset(struct vmem_altmap *altmap)
^
include/linux/memremap.h:179:57: warning: unused parameter 'altmap' [-Wunused-parameter]
static inline void vmem_altmap_free(struct vmem_altmap *altmap,
^
include/linux/memremap.h:180:17: warning: unused parameter 'nr_pfns' [-Wunused-parameter]
unsigned long nr_pfns)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:38:
In file included from include/linux/io-mapping.h:33:
In file included from arch/x86/include/asm/iomap.h:10:
In file included from include/linux/mm.h:35:
>> include/linux/page_pinner.h:39:51: warning: unused parameter 'page' [-Wunused-parameter]
static inline void reset_page_pinner(struct page *page, unsigned int order)
^
>> include/linux/page_pinner.h:39:70: warning: unused parameter 'order' [-Wunused-parameter]
static inline void reset_page_pinner(struct page *page, unsigned int order)
^
include/linux/page_pinner.h:42:50: warning: unused parameter 'page' [-Wunused-parameter]
static inline void free_page_pinner(struct page *page, unsigned int order)
^
include/linux/page_pinner.h:42:69: warning: unused parameter 'order' [-Wunused-parameter]
static inline void free_page_pinner(struct page *page, unsigned int order)
^
include/linux/page_pinner.h:45:49: warning: unused parameter 'page' [-Wunused-parameter]
static inline void set_page_pinner(struct page *page, unsigned int order)
^
include/linux/page_pinner.h:45:68: warning: unused parameter 'order' [-Wunused-parameter]
static inline void set_page_pinner(struct page *page, unsigned int order)
^
include/linux/page_pinner.h:48:50: warning: unused parameter 'page' [-Wunused-parameter]
static inline void dump_page_pinner(struct page *page)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:38:
In file included from include/linux/io-mapping.h:33:
In file included from arch/x86/include/asm/iomap.h:10:
In file included from include/linux/mm.h:738:
include/linux/huge_mm.h:22:59: warning: unused parameter 'vmf' [-Wunused-parameter]
static inline void huge_pud_set_accessed(struct vm_fault *vmf, pud_t orig_pud)
^
include/linux/huge_mm.h:22:70: warning: unused parameter 'orig_pud' [-Wunused-parameter]
static inline void huge_pud_set_accessed(struct vm_fault *vmf, pud_t orig_pud)
^
include/linux/huge_mm.h:311:43: warning: unused parameter 'pud' [-Wunused-parameter]
static inline bool is_huge_zero_pud(pud_t pud)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:38:
In file included from include/linux/io-mapping.h:33:
In file included from arch/x86/include/asm/iomap.h:10:
include/linux/mm.h:1150:59: warning: unused parameter 'page' [-Wunused-parameter]
static inline bool is_zone_device_page(const struct page *page)
^
include/linux/mm.h:1179:56: warning: unused parameter 'page' [-Wunused-parameter]
static inline bool page_is_devmap_managed(struct page *page)
^
include/linux/mm.h:1184:57: warning: unused parameter 'page' [-Wunused-parameter]
static inline void put_devmap_managed_page(struct page *page)
^
include/linux/mm.h:1425:64: warning: unused parameter 'cpupid' [-Wunused-parameter]
static inline int page_cpupid_xchg_last(struct page *page, int cpupid)
^
include/linux/mm.h:1435:37: warning: unused parameter 'cpupid' [-Wunused-parameter]
static inline int cpupid_to_nid(int cpupid)
^
include/linux/mm.h:1440:37: warning: unused parameter 'cpupid' [-Wunused-parameter]
static inline int cpupid_to_pid(int cpupid)
^
include/linux/mm.h:1445:37: warning: unused parameter 'cpupid' [-Wunused-parameter]
static inline int cpupid_to_cpu(int cpupid)
^
include/linux/mm.h:1450:41: warning: unused parameter 'nid' [-Wunused-parameter]
static inline int cpu_pid_to_cpupid(int nid, int pid)
^
include/linux/mm.h:1450:50: warning: unused parameter 'pid' [-Wunused-parameter]
static inline int cpu_pid_to_cpupid(int nid, int pid)
^
include/linux/mm.h:1455:41: warning: unused parameter 'cpupid' [-Wunused-parameter]
static inline bool cpupid_pid_unset(int cpupid)
^
include/linux/mm.h:1460:56: warning: unused parameter 'page' [-Wunused-parameter]
static inline void page_cpupid_reset_last(struct page *page)
^
include/linux/mm.h:1464:57: warning: unused parameter 'task' [-Wunused-parameter]
static inline bool cpupid_match_pid(struct task_struct *task, int cpupid)
^
include/linux/mm.h:1464:67: warning: unused parameter 'cpupid' [-Wunused-parameter]
static inline bool cpupid_match_pid(struct task_struct *task, int cpupid)
^
include/linux/mm.h:1507:52: warning: unused parameter 'page' [-Wunused-parameter]
static inline u8 page_kasan_tag(const struct page *page)
^
include/linux/mm.h:1512:52: warning: unused parameter 'page' [-Wunused-parameter]
static inline void page_kasan_tag_set(struct page *page, u8 tag) { }
^
include/linux/mm.h:1512:61: warning: unused parameter 'tag' [-Wunused-parameter]
static inline void page_kasan_tag_set(struct page *page, u8 tag) { }
^
include/linux/mm.h:1513:54: warning: unused parameter 'page' [-Wunused-parameter]
static inline void page_kasan_tag_reset(struct page *page) { }
^
include/linux/mm.h:1522:56: warning: unused parameter 'page' [-Wunused-parameter]
static inline pg_data_t *page_pgdat(const struct page *page)
^
include/linux/mm.h:1553:36: warning: unused parameter 'pfn' [-Wunused-parameter]
unsigned long node, unsigned long pfn)
^
include/linux/mm.h:1573:58: warning: unused parameter 'page' [-Wunused-parameter]
static inline struct mem_cgroup *page_memcg(struct page *page)
^
include/linux/mm.h:1577:62: warning: unused parameter 'page' [-Wunused-parameter]
static inline struct mem_cgroup *page_memcg_rcu(struct page *page)
^
In file included from drivers/gpu/drm/i915/i915_config.c:6:
In file included from drivers/gpu/drm/i915/i915_drv.h:38:
..
vim +/page +39 include/linux/page_pinner.h
32
33 static inline void dump_page_pinner(struct page *page)
34 {
35 if (static_branch_unlikely(&page_pinner_inited))
36 __dump_page_pinner(page);
37 }
38 #else
> 39 static inline void reset_page_pinner(struct page *page, unsigned int order)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH v3 2/4] remoteproc: Add a remoteproc driver for the MT8183's APU
by kernel test robot
Hi Alexandre,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on robh/for-next]
[also build test WARNING on linus/master v5.14-rc6 next-20210819]
[cannot apply to remoteproc/for-next rpmsg/for-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/Alexandre-Bailon/Add-support-of-...
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: arm-allyesconfig (attached as .config)
compiler: arm-linux-gnueabi-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://github.com/0day-ci/linux/commit/c161c7d11a0fdf701085657c15f949f39...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Alexandre-Bailon/Add-support-of-mt8183-APU/20210819-231419
git checkout c161c7d11a0fdf701085657c15f949f397ade5be
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.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 warnings (new ones prefixed by >>):
In file included from include/linux/device.h:15,
from include/linux/iommu.h:11,
from drivers/remoteproc/mtk_apu.c:10:
drivers/remoteproc/mtk_apu.c: In function 'mtk_apu_iommu_map':
>> drivers/remoteproc/mtk_apu.c:83:38: warning: format '%lx' expects argument of type 'long unsigned int', but argument 4 has type 'size_t' {aka 'unsigned int'} [-Wformat=]
83 | dev_err(dev, "Unable to map memory region: %pa+%lx\n",
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/dev_printk.h:19:22: note: in definition of macro 'dev_fmt'
19 | #define dev_fmt(fmt) fmt
| ^~~
drivers/remoteproc/mtk_apu.c:83:25: note: in expansion of macro 'dev_err'
83 | dev_err(dev, "Unable to map memory region: %pa+%lx\n",
| ^~~~~~~
drivers/remoteproc/mtk_apu.c:83:74: note: format string is defined here
83 | dev_err(dev, "Unable to map memory region: %pa+%lx\n",
| ~~^
| |
| long unsigned int
| %x
vim +83 drivers/remoteproc/mtk_apu.c
60
61 static int mtk_apu_iommu_map(struct rproc *rproc, struct rproc_mem_entry *entry)
62 {
63 struct mtk_apu_rproc *apu_rproc = rproc->priv;
64 struct device *dev = rproc->dev.parent;
65 struct rproc_mem_entry *mapping;
66 struct iommu_domain *domain;
67 int ret;
68 u64 pa;
69
70 mapping = kzalloc(sizeof(*mapping), GFP_KERNEL);
71 if (!mapping)
72 return -ENOMEM;
73
74 if (!entry->va)
75 pa = entry->dma;
76 else
77 pa = rproc_va_to_pa(entry->va);
78
79 if ((strcmp(entry->name, "vdev0vring0") == 0 ||
80 strcmp(entry->name, "vdev0vring1") == 0)) {
81 entry->va = memremap(entry->dma, entry->len, MEMREMAP_WC);
82 if (IS_ERR_OR_NULL(entry->va)) {
> 83 dev_err(dev, "Unable to map memory region: %pa+%lx\n",
84 &entry->dma, entry->len);
85 ret = PTR_ERR(mapping->va);
86 goto free_mapping;
87 }
88 mapping->va = entry->va;
89 }
90
91 domain = iommu_get_domain_for_dev(dev);
92 ret = iommu_map(domain, entry->da, pa, entry->len, entry->flags);
93 if (ret) {
94 dev_err(dev, "iommu_map failed: %d\n", ret);
95 goto err_memunmap;
96 }
97
98 mapping->da = entry->da;
99 mapping->len = entry->len;
100 list_add_tail(&mapping->node, &apu_rproc->mappings);
101
102 return 0;
103
104 err_memunmap:
105 memunmap(mapping->va);
106 free_mapping:
107 kfree(mapping);
108
109 return ret;
110 }
111
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month
Re: [PATCH v2] mei: improve Denverton HSM & IFSI support
by kernel test robot
Hi Lukas,
I love your patch! Yet something to improve:
[auto build test ERROR on char-misc/char-misc-testing]
[also build test ERROR on pci/next soc/for-next v5.14-rc6 next-20210819]
[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/Lukas-Bulwahn/mei-improve-Denver...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git b2159182dd498fdb0f49e371ccc94efbc12d1f8e
config: i386-randconfig-c001-20210818 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d2b574a4dea5b718e4386bf2e26af0126e5978ce)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/0day-ci/linux/commit/2b98fe0ded99ab7eaf389fa1c91b3d9aa...
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review Lukas-Bulwahn/mei-improve-Denverton-HSM-IFSI-support/20210819-230718
git checkout 2b98fe0ded99ab7eaf389fa1c91b3d9aad7c93a3
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=i386 SHELL=/bin/bash drivers/misc/mei/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
drivers/misc/mei/pci-me.c:80:39: error: use of undeclared identifier 'MEI_ME_PCH8_SPS_CFG'
{MEI_PCI_DEVICE(MEI_DEV_ID_DNV_IE_2, MEI_ME_PCH8_SPS_CFG)},
^
>> drivers/misc/mei/pci-me.c:121:1: error: definition of variable with array type needs an explicit size or an initializer
MODULE_DEVICE_TABLE(pci, mei_me_pci_tbl);
^
include/linux/module.h:244:21: note: expanded from macro 'MODULE_DEVICE_TABLE'
extern typeof(name) __mod_##type##__##name##_device_table \
^
<scratch space>:74:1: note: expanded from here
__mod_pci__mei_me_pci_tbl_device_table
^
drivers/misc/mei/pci-me.c:195:31: warning: shift count >= width of type [-Wshift-count-overflow]
if (dma_set_mask(&pdev->dev, DMA_BIT_MASK(64)) ||
^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^ ~~~
drivers/misc/mei/pci-me.c:196:40: warning: shift count >= width of type [-Wshift-count-overflow]
dma_set_coherent_mask(&pdev->dev, DMA_BIT_MASK(64))) {
^~~~~~~~~~~~~~~~
include/linux/dma-mapping.h:76:54: note: expanded from macro 'DMA_BIT_MASK'
#define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1))
^ ~~~
2 warnings and 2 errors generated.
vim +121 drivers/misc/mei/pci-me.c
2703d4b2e673cc Tomas Winkler 2013-02-06 120
b68301e9acd30f Tomas Winkler 2013-03-27 @121 MODULE_DEVICE_TABLE(pci, mei_me_pci_tbl);
2703d4b2e673cc Tomas Winkler 2013-02-06 122
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
1 year, 1 month