[dhowells-fs:fscache-iter 21/61] fs/fscache/obj.c:278:27: warning: comparison is always false due to limited range of data type
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-iter
head: 59f33c90ef6c1a75d4af75e5f60d98c0d965b6a2
commit: 667b9011d562075c1d4e831862efa31f2f47fba0 [21/61] fscache: Replace the object management state machine
config: i386-randconfig-a016-20200521 (attached as .config)
compiler: gcc-4.9 (Ubuntu 4.9.3-13ubuntu2) 4.9.3
reproduce (this is a W=1 build):
git checkout 667b9011d562075c1d4e831862efa31f2f47fba0
# save the attached .config to linux build tree
make ARCH=i386
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/export.h:43:0,
from include/linux/linkage.h:7,
from include/linux/kernel.h:8,
from include/linux/list.h:9,
from include/linux/module.h:12,
from fs/fscache/obj.c:12:
fs/fscache/obj.c: In function 'fscache_drop_object':
>> fs/fscache/obj.c:278:27: warning: comparison is always false due to limited range of data type [-Wtype-limits]
ASSERTCMP(cookie->stage, ==, FSCACHE_COOKIE_STAGE_DEAD);
^
include/linux/compiler.h:78:42: note: in definition of macro 'unlikely'
# define unlikely(x) __builtin_expect(!!(x), 0)
^
>> fs/fscache/obj.c:278:2: note: in expansion of macro 'ASSERTCMP'
ASSERTCMP(cookie->stage, ==, FSCACHE_COOKIE_STAGE_DEAD);
^
vim +278 fs/fscache/obj.c
267
268 /*
269 * Drop an object's attachments
270 */
271 void fscache_drop_object(struct fscache_cookie *cookie,
272 struct fscache_object *object,
273 bool invalidate)
274 {
275 struct fscache_object *parent = object->parent;
276 struct fscache_cache *cache = object->cache;
277
> 278 ASSERTCMP(cookie->stage, ==, FSCACHE_COOKIE_STAGE_DEAD);
279
280 _enter("{OBJ%x,%d},%u",
281 object->debug_id, object->n_children, invalidate);
282
283 if (!invalidate &&
284 test_bit(FSCACHE_OBJECT_NEEDS_UPDATE, &object->flags)) {
285 _debug("final update");
286 fscache_do_update_object(object);
287 }
288
289 spin_lock(&cache->object_list_lock);
290 list_del_init(&object->cache_link);
291 spin_unlock(&cache->object_list_lock);
292
293 fscache_do_drop_object(cache, object, invalidate);
294
295 /* The parent object wants to know when all it dependents have gone */
296 if (parent) {
297 _debug("release parent OBJ%x {%d}",
298 parent->debug_id, parent->n_children);
299
300 spin_lock(&parent->lock);
301 parent->n_children--;
302 if (parent->n_children == 0)
303 wake_up_var(&parent->n_children);
304 spin_unlock(&parent->lock);
305 object->parent = NULL;
306 fscache_do_put_object(parent, fscache_obj_put_drop_child);
307 }
308
309 fscache_do_put_object(object, fscache_obj_put_drop_obj);
310 fscache_stat(&fscache_n_object_dead);
311 _leave("");
312 }
313
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[RFC PATCH linus] RISC-V: gp_in_global can be static
by kbuild test robot
Fixes: 52e7c52d2ded ("RISC-V: Stop relying on GCC's register allocator's hueristics")
Signed-off-by: kbuild test robot <lkp(a)intel.com>
---
process.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/riscv/kernel/process.c b/arch/riscv/kernel/process.c
index 610c11e916068..3b2933839d492 100644
--- a/arch/riscv/kernel/process.c
+++ b/arch/riscv/kernel/process.c
@@ -22,7 +22,7 @@
#include <asm/switch_to.h>
#include <asm/thread_info.h>
-unsigned long gp_in_global __asm__("gp");
+static unsigned long gp_in_global __asm__("gp");
extern asmlinkage void ret_from_fork(void);
extern asmlinkage void ret_from_kernel_thread(void);
2 years, 4 months
[linux-nvme:nvme-5.8 26/33] io-cmd-bdev.c:undefined reference to `t10_pi_type1_crc'
by kbuild test robot
tree: git://git.infradead.org/nvme.git nvme-5.8
head: 08b17299f88361a4ad49bf1c7ff9338bbe99ce85
commit: 79250d19e14f25bbd23a5cb0b4c309c4c994d93e [26/33] nvmet: add metadata characteristics for a namespace
config: arm64-randconfig-r005-20200520 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
reproduce:
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
git checkout 79250d19e14f25bbd23a5cb0b4c309c4c994d93e
# 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: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
aarch64-linux-gnu-ld: drivers/nvme/target/io-cmd-bdev.o: in function `nvmet_bdev_ns_enable':
>> io-cmd-bdev.c:(.text+0x16c): undefined reference to `t10_pi_type1_crc'
aarch64-linux-gnu-ld: drivers/nvme/target/io-cmd-bdev.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `t10_pi_type1_crc' which may bind externally can not be used when making a shared object; recompile with -fPIC
io-cmd-bdev.c:(.text+0x16c): dangerous relocation: unsupported relocation
>> aarch64-linux-gnu-ld: io-cmd-bdev.c:(.text+0x170): undefined reference to `t10_pi_type1_crc'
>> aarch64-linux-gnu-ld: io-cmd-bdev.c:(.text+0x17c): undefined reference to `t10_pi_type3_crc'
aarch64-linux-gnu-ld: drivers/nvme/target/io-cmd-bdev.o: relocation R_AARCH64_ADR_PREL_PG_HI21 against symbol `t10_pi_type3_crc' which may bind externally can not be used when making a shared object; recompile with -fPIC
io-cmd-bdev.c:(.text+0x17c): dangerous relocation: unsupported relocation
aarch64-linux-gnu-ld: io-cmd-bdev.c:(.text+0x180): undefined reference to `t10_pi_type3_crc'
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [PATCH v2 6/7] ASoC: soc-link: add snd_soc_link_compr_shutdown()
by kbuild test robot
Hi Kuninori,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on asoc/for-next]
[also build test WARNING on next-20200519]
[cannot apply to sound/for-next v5.7-rc6]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Kuninori-Morimoto/ASoC-add-soc-l...
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
config: x86_64-randconfig-r016-20200521 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
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: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
sound/soc/soc-link.c:28:5: warning: no previous prototype for function 'snd_soc_link_init' [-Wmissing-prototypes]
int snd_soc_link_init(struct snd_soc_pcm_runtime *rtd)
^
sound/soc/soc-link.c:28:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int snd_soc_link_init(struct snd_soc_pcm_runtime *rtd)
^
static
sound/soc/soc-link.c:38:5: warning: no previous prototype for function 'snd_soc_link_be_hw_params_fixup' [-Wmissing-prototypes]
int snd_soc_link_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
^
sound/soc/soc-link.c:38:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int snd_soc_link_be_hw_params_fixup(struct snd_soc_pcm_runtime *rtd,
^
static
sound/soc/soc-link.c:49:5: warning: no previous prototype for function 'snd_soc_link_startup' [-Wmissing-prototypes]
int snd_soc_link_startup(struct snd_pcm_substream *substream)
^
sound/soc/soc-link.c:49:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int snd_soc_link_startup(struct snd_pcm_substream *substream)
^
static
sound/soc/soc-link.c:61:6: warning: no previous prototype for function 'snd_soc_link_shutdown' [-Wmissing-prototypes]
void snd_soc_link_shutdown(struct snd_pcm_substream *substream)
^
sound/soc/soc-link.c:61:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void snd_soc_link_shutdown(struct snd_pcm_substream *substream)
^
static
sound/soc/soc-link.c:70:5: warning: no previous prototype for function 'snd_soc_link_prepare' [-Wmissing-prototypes]
int snd_soc_link_prepare(struct snd_pcm_substream *substream)
^
sound/soc/soc-link.c:70:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int snd_soc_link_prepare(struct snd_pcm_substream *substream)
^
static
sound/soc/soc-link.c:82:5: warning: no previous prototype for function 'snd_soc_link_hw_params' [-Wmissing-prototypes]
int snd_soc_link_hw_params(struct snd_pcm_substream *substream,
^
sound/soc/soc-link.c:82:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int snd_soc_link_hw_params(struct snd_pcm_substream *substream,
^
static
sound/soc/soc-link.c:95:6: warning: no previous prototype for function 'snd_soc_link_hw_free' [-Wmissing-prototypes]
void snd_soc_link_hw_free(struct snd_pcm_substream *substream)
^
sound/soc/soc-link.c:95:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void snd_soc_link_hw_free(struct snd_pcm_substream *substream)
^
static
sound/soc/soc-link.c:104:5: warning: no previous prototype for function 'snd_soc_link_trigger' [-Wmissing-prototypes]
int snd_soc_link_trigger(struct snd_pcm_substream *substream, int cmd)
^
sound/soc/soc-link.c:104:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int snd_soc_link_trigger(struct snd_pcm_substream *substream, int cmd)
^
static
sound/soc/soc-link.c:116:5: warning: no previous prototype for function 'snd_soc_link_compr_startup' [-Wmissing-prototypes]
int snd_soc_link_compr_startup(struct snd_compr_stream *cstream)
^
sound/soc/soc-link.c:116:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
int snd_soc_link_compr_startup(struct snd_compr_stream *cstream)
^
static
>> sound/soc/soc-link.c:129:6: warning: no previous prototype for function 'snd_soc_link_compr_shutdown' [-Wmissing-prototypes]
void snd_soc_link_compr_shutdown(struct snd_compr_stream *cstream)
^
sound/soc/soc-link.c:129:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void snd_soc_link_compr_shutdown(struct snd_compr_stream *cstream)
^
static
10 warnings generated.
vim +/snd_soc_link_compr_shutdown +129 sound/soc/soc-link.c
128
> 129 void snd_soc_link_compr_shutdown(struct snd_compr_stream *cstream)
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[linux-next:master 787/11634] drivers/bluetooth/hci_qca.c:1692:35: warning: unused variable 'qca_soc_data_wcn3990'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: e8f3274774b45b5f4e9e3d5cad7ff9f43ae3add5
commit: e5d6468fe9d8dced9af0c548a359a7dbeb31c931 [787/11634] Bluetooth: hci_qca: Add support for Qualcomm Bluetooth SoC QCA6390
config: x86_64-randconfig-a012-20200521 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 3393cc4cebf9969db94dc424b7a2b6195589c33b)
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
git checkout e5d6468fe9d8dced9af0c548a359a7dbeb31c931
# 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: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/bluetooth/hci_qca.c:1692:35: warning: unused variable 'qca_soc_data_wcn3990' [-Wunused-const-variable]
static const struct qca_vreg_data qca_soc_data_wcn3990 = {
^
>> drivers/bluetooth/hci_qca.c:1703:35: warning: unused variable 'qca_soc_data_wcn3991' [-Wunused-const-variable]
static const struct qca_vreg_data qca_soc_data_wcn3991 = {
^
>> drivers/bluetooth/hci_qca.c:1714:35: warning: unused variable 'qca_soc_data_wcn3998' [-Wunused-const-variable]
static const struct qca_vreg_data qca_soc_data_wcn3998 = {
^
3 warnings generated.
vim +/qca_soc_data_wcn3990 +1692 drivers/bluetooth/hci_qca.c
0ff252c1976da5 Ben Young Tae Kim 2015-08-10 1691
523760b7ff8871 Harish Bandi 2019-04-26 @1692 static const struct qca_vreg_data qca_soc_data_wcn3990 = {
fa9ad876b8e0eb Balakrishna Godavarthi 2018-08-03 1693 .soc_type = QCA_WCN3990,
fa9ad876b8e0eb Balakrishna Godavarthi 2018-08-03 1694 .vregs = (struct qca_vreg []) {
f2edd66e515b99 Bjorn Andersson 2019-10-17 1695 { "vddio", 15000 },
f2edd66e515b99 Bjorn Andersson 2019-10-17 1696 { "vddxo", 80000 },
f2edd66e515b99 Bjorn Andersson 2019-10-17 1697 { "vddrf", 300000 },
f2edd66e515b99 Bjorn Andersson 2019-10-17 1698 { "vddch0", 450000 },
fa9ad876b8e0eb Balakrishna Godavarthi 2018-08-03 1699 },
fa9ad876b8e0eb Balakrishna Godavarthi 2018-08-03 1700 .num_vregs = 4,
fa9ad876b8e0eb Balakrishna Godavarthi 2018-08-03 1701 };
fa9ad876b8e0eb Balakrishna Godavarthi 2018-08-03 1702
7d250a062f75e6 Balakrishna Godavarthi 2019-11-06 @1703 static const struct qca_vreg_data qca_soc_data_wcn3991 = {
7d250a062f75e6 Balakrishna Godavarthi 2019-11-06 1704 .soc_type = QCA_WCN3991,
7d250a062f75e6 Balakrishna Godavarthi 2019-11-06 1705 .vregs = (struct qca_vreg []) {
7d250a062f75e6 Balakrishna Godavarthi 2019-11-06 1706 { "vddio", 15000 },
7d250a062f75e6 Balakrishna Godavarthi 2019-11-06 1707 { "vddxo", 80000 },
7d250a062f75e6 Balakrishna Godavarthi 2019-11-06 1708 { "vddrf", 300000 },
7d250a062f75e6 Balakrishna Godavarthi 2019-11-06 1709 { "vddch0", 450000 },
7d250a062f75e6 Balakrishna Godavarthi 2019-11-06 1710 },
7d250a062f75e6 Balakrishna Godavarthi 2019-11-06 1711 .num_vregs = 4,
7d250a062f75e6 Balakrishna Godavarthi 2019-11-06 1712 };
7d250a062f75e6 Balakrishna Godavarthi 2019-11-06 1713
523760b7ff8871 Harish Bandi 2019-04-26 @1714 static const struct qca_vreg_data qca_soc_data_wcn3998 = {
523760b7ff8871 Harish Bandi 2019-04-26 1715 .soc_type = QCA_WCN3998,
523760b7ff8871 Harish Bandi 2019-04-26 1716 .vregs = (struct qca_vreg []) {
f2edd66e515b99 Bjorn Andersson 2019-10-17 1717 { "vddio", 10000 },
f2edd66e515b99 Bjorn Andersson 2019-10-17 1718 { "vddxo", 80000 },
f2edd66e515b99 Bjorn Andersson 2019-10-17 1719 { "vddrf", 300000 },
f2edd66e515b99 Bjorn Andersson 2019-10-17 1720 { "vddch0", 450000 },
523760b7ff8871 Harish Bandi 2019-04-26 1721 },
523760b7ff8871 Harish Bandi 2019-04-26 1722 .num_vregs = 4,
523760b7ff8871 Harish Bandi 2019-04-26 1723 };
523760b7ff8871 Harish Bandi 2019-04-26 1724
:::::: The code at line 1692 was first introduced by commit
:::::: 523760b7ff8871281aaedc44c305926469ab47f8 Bluetooth: hci_qca: Added support for WCN3998
:::::: TO: Harish Bandi <c-hbandi(a)codeaurora.org>
:::::: CC: Marcel Holtmann <marcel(a)holtmann.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[linux-next:master 10668/10701] include/linux/pgtable.h:203:2: note: in expansion of macro 'pte_clear'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: fb57b1fabcb28f358901b2df90abd2b48abc1ca8
commit: ef03574dee21524cbdbbf2af29fe06a62610570d [10668/10701] mm: introduce include/linux/pgtable.h
config: parisc-randconfig-r011-20200521 (attached as .config)
compiler: hppa-linux-gcc (GCC) 9.3.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
git checkout ef03574dee21524cbdbbf2af29fe06a62610570d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=parisc
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:95,
from include/linux/pid_namespace.h:7,
from include/linux/ptrace.h:10,
from arch/parisc/kernel/asm-offsets.c:20:
include/linux/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
arch/parisc/include/asm/pgtable.h:322:34: note: in expansion of macro 'set_pte_at'
322 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
>> include/linux/pgtable.h:203:2: note: in expansion of macro 'pte_clear'
203 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/linux/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
>> include/linux/pgtable.h:646:2: note: in expansion of macro 'set_pte_at'
646 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
--
In file included from include/linux/pgtable.h:6,
from include/linux/mm.h:95,
from sound/core/pcm_native.c:8:
include/linux/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
arch/parisc/include/asm/pgtable.h:322:34: note: in expansion of macro 'set_pte_at'
322 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
>> include/linux/pgtable.h:203:2: note: in expansion of macro 'pte_clear'
203 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/linux/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
>> include/linux/pgtable.h:646:2: note: in expansion of macro 'set_pte_at'
646 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
sound/core/pcm_native.c: In function 'constrain_mask_params':
sound/core/pcm_native.c:254:18: warning: variable 'old_mask' set but not used [-Wunused-but-set-variable]
254 | struct snd_mask old_mask;
| ^~~~~~~~
sound/core/pcm_native.c: In function 'constrain_interval_params':
sound/core/pcm_native.c:290:22: warning: variable 'old_interval' set but not used [-Wunused-but-set-variable]
290 | struct snd_interval old_interval;
| ^~~~~~~~~~~~
sound/core/pcm_native.c: In function 'constrain_params_by_rules':
sound/core/pcm_native.c:331:22: warning: variable 'old_interval' set but not used [-Wunused-but-set-variable]
331 | struct snd_interval old_interval;
| ^~~~~~~~~~~~
sound/core/pcm_native.c:330:18: warning: variable 'old_mask' set but not used [-Wunused-but-set-variable]
330 | struct snd_mask old_mask;
| ^~~~~~~~
sound/core/pcm_native.c: In function 'snd_pcm_hw_params_choose':
sound/core/pcm_native.c:615:22: warning: variable 'old_interval' set but not used [-Wunused-but-set-variable]
615 | struct snd_interval old_interval;
| ^~~~~~~~~~~~
sound/core/pcm_native.c:614:18: warning: variable 'old_mask' set but not used [-Wunused-but-set-variable]
614 | struct snd_mask old_mask;
| ^~~~~~~~
--
In file included from include/linux/pgtable.h:6,
from arch/parisc/include/asm/io.h:6,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/linux/gpio/driver.h:7,
from include/linux/of_gpio.h:14,
from sound/soc/codecs/ak4118.c:12:
include/linux/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
arch/parisc/include/asm/pgtable.h:322:34: note: in expansion of macro 'set_pte_at'
322 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
>> include/linux/pgtable.h:203:2: note: in expansion of macro 'pte_clear'
203 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/linux/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
>> include/linux/pgtable.h:646:2: note: in expansion of macro 'set_pte_at'
646 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
At top level:
sound/soc/codecs/ak4118.c:407:34: warning: 'ak4118_of_match' defined but not used [-Wunused-const-variable=]
407 | static const struct of_device_id ak4118_of_match[] = {
| ^~~~~~~~~~~~~~~
--
In file included from include/linux/pgtable.h:6,
from arch/parisc/include/asm/io.h:6,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/linux/gpio/driver.h:7,
from include/linux/of_gpio.h:14,
from sound/soc/codecs/ak4458.c:13:
include/linux/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
arch/parisc/include/asm/pgtable.h:322:34: note: in expansion of macro 'set_pte_at'
322 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
>> include/linux/pgtable.h:203:2: note: in expansion of macro 'pte_clear'
203 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/linux/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
>> include/linux/pgtable.h:646:2: note: in expansion of macro 'set_pte_at'
646 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
sound/soc/codecs/ak4458.c: In function 'ak4458_set_dai_mute':
sound/soc/codecs/ak4458.c:408:16: warning: variable 'ret' set but not used [-Wunused-but-set-variable]
408 | int nfs, ndt, ret, reg;
| ^~~
--
In file included from include/linux/pgtable.h:6,
from arch/parisc/include/asm/io.h:6,
from include/linux/io.h:13,
from include/linux/iopoll.h:14,
from include/linux/regmap.h:20,
from sound/soc/codecs/ak5558.c:13:
include/linux/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
arch/parisc/include/asm/pgtable.h:322:34: note: in expansion of macro 'set_pte_at'
322 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
>> include/linux/pgtable.h:203:2: note: in expansion of macro 'pte_clear'
203 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/linux/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
>> include/linux/pgtable.h:646:2: note: in expansion of macro 'set_pte_at'
646 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
At top level:
sound/soc/codecs/ak5558.c:388:34: warning: 'ak5558_i2c_dt_ids' defined but not used [-Wunused-const-variable=]
388 | static const struct of_device_id ak5558_i2c_dt_ids[] = {
| ^~~~~~~~~~~~~~~~~
--
In file included from include/linux/pgtable.h:6,
from arch/parisc/include/asm/io.h:6,
from include/linux/io.h:13,
from include/linux/iopoll.h:14,
from include/linux/regmap.h:20,
from sound/soc/codecs/alc5623.c:19:
include/linux/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
arch/parisc/include/asm/pgtable.h:322:34: note: in expansion of macro 'set_pte_at'
322 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
>> include/linux/pgtable.h:203:2: note: in expansion of macro 'pte_clear'
203 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/linux/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
>> include/linux/pgtable.h:646:2: note: in expansion of macro 'set_pte_at'
646 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
At top level:
sound/soc/codecs/alc5623.c:1070:34: warning: 'alc5623_of_match' defined but not used [-Wunused-const-variable=]
1070 | static const struct of_device_id alc5623_of_match[] = {
| ^~~~~~~~~~~~~~~~
--
In file included from include/linux/pgtable.h:6,
from arch/parisc/include/asm/io.h:6,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/linux/gpio/driver.h:7,
from include/asm-generic/gpio.h:11,
from include/linux/gpio.h:62,
from sound/soc/codecs/cs42l42.c:19:
include/linux/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
arch/parisc/include/asm/pgtable.h:322:34: note: in expansion of macro 'set_pte_at'
322 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
>> include/linux/pgtable.h:203:2: note: in expansion of macro 'pte_clear'
203 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/linux/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
>> include/linux/pgtable.h:646:2: note: in expansion of macro 'set_pte_at'
646 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
sound/soc/codecs/cs42l42.c: In function 'cs42l42_handle_device_data':
sound/soc/codecs/cs42l42.c:1661:12: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
1661 | if ((val >= CS42L42_BTN_DET_INIT_DBNCE_MIN) &&
| ^~
sound/soc/codecs/cs42l42.c:1679:12: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
1679 | if ((val >= CS42L42_BTN_DET_EVENT_DBNCE_MIN) &&
| ^~
sound/soc/codecs/cs42l42.c:1698:23: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
1698 | if ((thresholds[i] >= CS42L42_HS_DET_LEVEL_MIN) &&
| ^~
--
In file included from include/linux/pgtable.h:6,
from arch/parisc/include/asm/io.h:6,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from arch/parisc/include/asm/hardirq.h:13,
from include/linux/hardirq.h:9,
from include/linux/interrupt.h:11,
from include/sound/soc.h:18,
from sound/soc/codecs/es7134.c:9:
include/linux/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
arch/parisc/include/asm/pgtable.h:322:34: note: in expansion of macro 'set_pte_at'
322 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
>> include/linux/pgtable.h:203:2: note: in expansion of macro 'pte_clear'
203 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/linux/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
>> include/linux/pgtable.h:646:2: note: in expansion of macro 'set_pte_at'
646 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
At top level:
sound/soc/codecs/es7134.c:264:33: warning: 'es7154_chip' defined but not used [-Wunused-const-variable=]
264 | static const struct es7134_chip es7154_chip = {
| ^~~~~~~~~~~
sound/soc/codecs/es7134.c:186:33: warning: 'es7134_chip' defined but not used [-Wunused-const-variable=]
186 | static const struct es7134_chip es7134_chip = {
| ^~~~~~~~~~~
--
In file included from include/linux/pgtable.h:6,
from arch/parisc/include/asm/io.h:6,
from include/linux/io.h:13,
from include/linux/iopoll.h:14,
from include/linux/regmap.h:20,
from sound/soc/codecs/es8316.c:17:
include/linux/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
arch/parisc/include/asm/pgtable.h:322:34: note: in expansion of macro 'set_pte_at'
322 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
>> include/linux/pgtable.h:203:2: note: in expansion of macro 'pte_clear'
203 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/linux/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
>> include/linux/pgtable.h:646:2: note: in expansion of macro 'set_pte_at'
646 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
At top level:
sound/soc/codecs/es8316.c:842:36: warning: 'es8316_acpi_match' defined but not used [-Wunused-const-variable=]
842 | static const struct acpi_device_id es8316_acpi_match[] = {
| ^~~~~~~~~~~~~~~~~
sound/soc/codecs/es8316.c:836:34: warning: 'es8316_of_match' defined but not used [-Wunused-const-variable=]
836 | static const struct of_device_id es8316_of_match[] = {
| ^~~~~~~~~~~~~~~
--
In file included from include/linux/pgtable.h:6,
from arch/parisc/include/asm/io.h:6,
from include/linux/io.h:13,
from include/linux/iopoll.h:14,
from include/linux/regmap.h:20,
from sound/soc/codecs/pcm1789-i2c.c:11:
include/linux/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
arch/parisc/include/asm/pgtable.h:322:34: note: in expansion of macro 'set_pte_at'
322 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
>> include/linux/pgtable.h:203:2: note: in expansion of macro 'pte_clear'
203 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/linux/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:96:9: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; | ^~~~~~~
>> include/linux/pgtable.h:646:2: note: in expansion of macro 'set_pte_at'
646 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
At top level:
sound/soc/codecs/pcm1789-i2c.c:36:34: warning: 'pcm1789_of_match' defined but not used [-Wunused-const-variable=]
36 | static const struct of_device_id pcm1789_of_match[] = {
| ^~~~~~~~~~~~~~~~
..
vim +/pte_clear +203 include/linux/pgtable.h
a600388d284193 include/asm-generic/pgtable.h Zachary Amsden 2005-09-03 191
9888a1cae3f859 include/asm-generic/pgtable.h Zachary Amsden 2006-09-30 192 /*
9888a1cae3f859 include/asm-generic/pgtable.h Zachary Amsden 2006-09-30 193 * Some architectures may be able to avoid expensive synchronization
9888a1cae3f859 include/asm-generic/pgtable.h Zachary Amsden 2006-09-30 194 * primitives when modifications are made to PTE's which are already
9888a1cae3f859 include/asm-generic/pgtable.h Zachary Amsden 2006-09-30 195 * not present, or in the process of an address space destruction.
9888a1cae3f859 include/asm-generic/pgtable.h Zachary Amsden 2006-09-30 196 */
9888a1cae3f859 include/asm-generic/pgtable.h Zachary Amsden 2006-09-30 197 #ifndef __HAVE_ARCH_PTE_CLEAR_NOT_PRESENT_FULL
e2cda322648122 include/asm-generic/pgtable.h Andrea Arcangeli 2011-01-13 198 static inline void pte_clear_not_present_full(struct mm_struct *mm,
e2cda322648122 include/asm-generic/pgtable.h Andrea Arcangeli 2011-01-13 199 unsigned long address,
e2cda322648122 include/asm-generic/pgtable.h Andrea Arcangeli 2011-01-13 200 pte_t *ptep,
e2cda322648122 include/asm-generic/pgtable.h Andrea Arcangeli 2011-01-13 201 int full)
e2cda322648122 include/asm-generic/pgtable.h Andrea Arcangeli 2011-01-13 202 {
e2cda322648122 include/asm-generic/pgtable.h Andrea Arcangeli 2011-01-13 @203 pte_clear(mm, address, ptep);
e2cda322648122 include/asm-generic/pgtable.h Andrea Arcangeli 2011-01-13 204 }
a600388d284193 include/asm-generic/pgtable.h Zachary Amsden 2005-09-03 205 #endif
a600388d284193 include/asm-generic/pgtable.h Zachary Amsden 2005-09-03 206
:::::: The code at line 203 was first introduced by commit
:::::: e2cda322648122dc400c85ada80eaddbc612ef6a thp: add pmd mangling generic functions
:::::: TO: Andrea Arcangeli <aarcange(a)redhat.com>
:::::: CC: Linus Torvalds <torvalds(a)linux-foundation.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[linux-next:master 9800/11634] drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c:259: undefined reference to `__aeabi_uldivmod'
by kbuild test robot
Hi Kalyan,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: e8f3274774b45b5f4e9e3d5cad7ff9f43ae3add5
commit: 04d9044f6c577948609c03b4e33b8fbc8b87c4b1 [9800/11634] drm/msm/dpu: add support for clk and bw scaling for display
config: arm-randconfig-r035-20200520 (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 04d9044f6c577948609c03b4e33b8fbc8b87c4b1
# 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: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>, old ones prefixed by <<):
arm-linux-gnueabi-ld: drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.o: in function `_dpu_core_perf_crtc_update_bus':
>> drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c:259: undefined reference to `__aeabi_uldivmod'
arm-linux-gnueabi-ld: drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c:263: undefined reference to `__aeabi_uldivmod'
arm-linux-gnueabi-ld: drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.o: in function `_dpu_core_perf_calc_bw':
drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c:57: undefined reference to `__aeabi_uldivmod'
arm-linux-gnueabi-ld: drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c:57: undefined reference to `__aeabi_uldivmod'
arm-linux-gnueabi-ld: drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c:57: undefined reference to `__aeabi_uldivmod'
arm-linux-gnueabi-ld: drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.o:drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c:93: more undefined references to `__aeabi_uldivmod' follow
vim +259 drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c
229
230 static int _dpu_core_perf_crtc_update_bus(struct dpu_kms *kms,
231 struct drm_crtc *crtc)
232 {
233 struct dpu_core_perf_params perf = { 0 };
234 enum dpu_crtc_client_type curr_client_type
235 = dpu_crtc_get_client_type(crtc);
236 struct drm_crtc *tmp_crtc;
237 struct dpu_crtc_state *dpu_cstate;
238 int i, ret = 0;
239 u64 avg_bw;
240
241 drm_for_each_crtc(tmp_crtc, crtc->dev) {
242 if (tmp_crtc->enabled &&
243 curr_client_type ==
244 dpu_crtc_get_client_type(tmp_crtc)) {
245 dpu_cstate = to_dpu_crtc_state(tmp_crtc->state);
246
247 perf.max_per_pipe_ib = max(perf.max_per_pipe_ib,
248 dpu_cstate->new_perf.max_per_pipe_ib);
249
250 perf.bw_ctl += dpu_cstate->new_perf.bw_ctl;
251
252 DPU_DEBUG("crtc=%d bw=%llu paths:%d\n",
253 tmp_crtc->base.id,
254 dpu_cstate->new_perf.bw_ctl, kms->num_paths);
255 }
256 }
257
258 avg_bw = kms->num_paths ?
> 259 perf.bw_ctl / kms->num_paths : 0;
260
261 for (i = 0; i < kms->num_paths; i++)
262 icc_set_bw(kms->path[i],
263 Bps_to_icc(avg_bw), (perf.max_per_pipe_ib));
264
265 return ret;
266 }
267
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [PATCH] ceph: show max caps in debugfs caps file
by kbuild test robot
Hi Yanhu,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on ceph-client/for-linus]
[also build test WARNING on v5.7-rc6 next-20200519]
[if your patch is applied to the wrong git tree, please drop us a note to help
improve the system. BTW, we also suggest to use '--base' option to specify the
base tree in git format-patch, please see https://stackoverflow.com/a/37406982]
url: https://github.com/0day-ci/linux/commits/Yanhu-Cao/ceph-show-max-caps-in-...
base: https://github.com/ceph/ceph-client.git for-linus
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-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=riscv
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
fs/ceph/debugfs.c: In function 'caps_show':
>> fs/ceph/debugfs.c:146:16: warning: too many arguments for format [-Wformat-extra-args]
146 | seq_printf(s, "totaltt%dn"
| ^~~~~~~~~~~~~~~
vim +146 fs/ceph/debugfs.c
ff4a80bf2d3f80 Jeff Layton 2019-04-24 136
76aa844d5b2fb8 Sage Weil 2009-10-06 137 static int caps_show(struct seq_file *s, void *p)
76aa844d5b2fb8 Sage Weil 2009-10-06 138 {
3d14c5d2b6e15c Yehuda Sadeh 2010-04-06 139 struct ceph_fs_client *fsc = s->private;
ff4a80bf2d3f80 Jeff Layton 2019-04-24 140 struct ceph_mds_client *mdsc = fsc->mdsc;
d35440110f623b Yanhu Cao 2020-05-21 141 int total, avail, used, max, reserved, min, i;
3a3430affce5de Jeff Layton 2019-11-20 142 struct cap_wait *cw;
76aa844d5b2fb8 Sage Weil 2009-10-06 143
d35440110f623b Yanhu Cao 2020-05-21 144 ceph_reservation_status(fsc, &total, &avail, &used, &max,
d35440110f623b Yanhu Cao 2020-05-21 145 &reserved, &min);
76aa844d5b2fb8 Sage Weil 2009-10-06 @146 seq_printf(s, "total\t\t%d\n"
76aa844d5b2fb8 Sage Weil 2009-10-06 147 "avail\t\t%d\n"
76aa844d5b2fb8 Sage Weil 2009-10-06 148 "used\t\t%d\n"
85ccce43a3fc15 Sage Weil 2010-02-17 149 "reserved\t%d\n"
ff4a80bf2d3f80 Jeff Layton 2019-04-24 150 "min\t\t%d\n\n",
d35440110f623b Yanhu Cao 2020-05-21 151 total, avail, used, max, reserved, min);
ff4a80bf2d3f80 Jeff Layton 2019-04-24 152 seq_printf(s, "ino issued implemented\n");
ff4a80bf2d3f80 Jeff Layton 2019-04-24 153 seq_printf(s, "-----------------------------------------------\n");
ff4a80bf2d3f80 Jeff Layton 2019-04-24 154
ff4a80bf2d3f80 Jeff Layton 2019-04-24 155 mutex_lock(&mdsc->mutex);
ff4a80bf2d3f80 Jeff Layton 2019-04-24 156 for (i = 0; i < mdsc->max_sessions; i++) {
ff4a80bf2d3f80 Jeff Layton 2019-04-24 157 struct ceph_mds_session *session;
ff4a80bf2d3f80 Jeff Layton 2019-04-24 158
ff4a80bf2d3f80 Jeff Layton 2019-04-24 159 session = __ceph_lookup_mds_session(mdsc, i);
ff4a80bf2d3f80 Jeff Layton 2019-04-24 160 if (!session)
ff4a80bf2d3f80 Jeff Layton 2019-04-24 161 continue;
ff4a80bf2d3f80 Jeff Layton 2019-04-24 162 mutex_unlock(&mdsc->mutex);
ff4a80bf2d3f80 Jeff Layton 2019-04-24 163 mutex_lock(&session->s_mutex);
ff4a80bf2d3f80 Jeff Layton 2019-04-24 164 ceph_iterate_session_caps(session, caps_show_cb, s);
ff4a80bf2d3f80 Jeff Layton 2019-04-24 165 mutex_unlock(&session->s_mutex);
ff4a80bf2d3f80 Jeff Layton 2019-04-24 166 ceph_put_mds_session(session);
ff4a80bf2d3f80 Jeff Layton 2019-04-24 167 mutex_lock(&mdsc->mutex);
ff4a80bf2d3f80 Jeff Layton 2019-04-24 168 }
ff4a80bf2d3f80 Jeff Layton 2019-04-24 169 mutex_unlock(&mdsc->mutex);
ff4a80bf2d3f80 Jeff Layton 2019-04-24 170
3a3430affce5de Jeff Layton 2019-11-20 171 seq_printf(s, "\n\nWaiters:\n--------\n");
3a3430affce5de Jeff Layton 2019-11-20 172 seq_printf(s, "tgid ino need want\n");
3a3430affce5de Jeff Layton 2019-11-20 173 seq_printf(s, "-----------------------------------------------------\n");
3a3430affce5de Jeff Layton 2019-11-20 174
3a3430affce5de Jeff Layton 2019-11-20 175 spin_lock(&mdsc->caps_list_lock);
3a3430affce5de Jeff Layton 2019-11-20 176 list_for_each_entry(cw, &mdsc->cap_wait_list, list) {
3a3430affce5de Jeff Layton 2019-11-20 177 seq_printf(s, "%-13d0x%-17lx%-17s%-17s\n", cw->tgid, cw->ino,
3a3430affce5de Jeff Layton 2019-11-20 178 ceph_cap_string(cw->need),
3a3430affce5de Jeff Layton 2019-11-20 179 ceph_cap_string(cw->want));
3a3430affce5de Jeff Layton 2019-11-20 180 }
3a3430affce5de Jeff Layton 2019-11-20 181 spin_unlock(&mdsc->caps_list_lock);
3a3430affce5de Jeff Layton 2019-11-20 182
76aa844d5b2fb8 Sage Weil 2009-10-06 183 return 0;
76aa844d5b2fb8 Sage Weil 2009-10-06 184 }
76aa844d5b2fb8 Sage Weil 2009-10-06 185
:::::: The code at line 146 was first introduced by commit
:::::: 76aa844d5b2fb8c839180d3f5874e333b297e5fd ceph: debugfs
:::::: TO: Sage Weil <sage(a)newdream.net>
:::::: CC: Sage Weil <sage(a)newdream.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[stable:linux-5.4.y 2529/5257] drivers/crypto/ccree/cc_cipher.c:539:15: warning: variable 'du_size' set but not used
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git linux-5.4.y
head: 1cdaf895c99d319c0007d0b62818cf85fc4b087f
commit: 5e33535cf13c0a85f2bda324fced2502f9ca82e9 [2529/5257] crypto: ccree - fix FDE descriptor sequence
config: h8300-randconfig-r012-20200521 (attached as .config)
compiler: h8300-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
git checkout 5e33535cf13c0a85f2bda324fced2502f9ca82e9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=h8300
If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
In file included from arch/h8300/include/asm/bug.h:8,
from include/linux/bug.h:5,
from include/linux/thread_info.h:12,
from include/asm-generic/preempt.h:5,
from ./arch/h8300/include/generated/asm/preempt.h:1,
from include/linux/preempt.h:78,
from include/linux/spinlock.h:51,
from include/linux/seqlock.h:36,
from include/linux/time.h:6,
from include/linux/stat.h:19,
from include/linux/module.h:10,
from drivers/crypto/ccree/cc_cipher.c:5:
include/linux/dma-mapping.h: In function 'dma_map_resource':
include/asm-generic/page.h:91:32: warning: comparison of unsigned expression >= 0 is always true [-Wtype-limits]
91 | #define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && ((pfn) - ARCH_PFN_OFFSET) < max_mapnr)
| ^~
include/asm-generic/bug.h:139:27: note: in definition of macro 'WARN_ON_ONCE'
139 | int __ret_warn_once = !!(condition); | ^~~~~~~~~
include/linux/dma-mapping.h:355:19: note: in expansion of macro 'pfn_valid'
355 | if (WARN_ON_ONCE(pfn_valid(PHYS_PFN(phys_addr))))
| ^~~~~~~~~
drivers/crypto/ccree/cc_cipher.c: In function 'cc_slot_to_key_type':
drivers/crypto/ccree/cc_cipher.c:268:15: warning: comparison is always true due to limited range of data type [-Wtype-limits]
268 | if (slot_num >= CC_FIRST_HW_KEY_SLOT && slot_num <= CC_LAST_HW_KEY_SLOT)
| ^~
drivers/crypto/ccree/cc_cipher.c: In function 'cc_setup_state_desc':
<< from drivers/crypto/ccree/cc_cipher.c:5:
>> drivers/crypto/ccree/cc_cipher.c:539:15: warning: variable 'du_size' set but not used [-Wunused-but-set-variable]
539 | unsigned int du_size = nbytes;
| ^~~~~~~
vim +/du_size +539 drivers/crypto/ccree/cc_cipher.c
6f17e00f77d8ab Gilad Ben-Yossef 2019-04-18 525
5e33535cf13c0a Ofir Drang 2020-01-16 526
dd8486c7508550 Gilad Ben-Yossef 2019-04-18 527 static void cc_setup_state_desc(struct crypto_tfm *tfm,
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 528 struct cipher_req_ctx *req_ctx,
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 529 unsigned int ivsize, unsigned int nbytes,
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 530 struct cc_hw_desc desc[],
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 531 unsigned int *seq_size)
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 532 {
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 533 struct cc_cipher_ctx *ctx_p = crypto_tfm_ctx(tfm);
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 534 struct device *dev = drvdata_to_dev(ctx_p->drvdata);
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 535 int cipher_mode = ctx_p->cipher_mode;
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 536 int flow_mode = ctx_p->flow_mode;
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 537 int direction = req_ctx->gen_ctx.op_type;
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 538 dma_addr_t iv_dma_addr = req_ctx->gen_ctx.iv_dma_addr;
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 @539 unsigned int du_size = nbytes;
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 540
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 541 struct cc_crypto_alg *cc_alg =
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 542 container_of(tfm->__crt_alg, struct cc_crypto_alg,
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 543 skcipher_alg.base);
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 544
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 545 if (cc_alg->data_unit)
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 546 du_size = cc_alg->data_unit;
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 547
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 548 switch (cipher_mode) {
dd8486c7508550 Gilad Ben-Yossef 2019-04-18 549 case DRV_CIPHER_ECB:
dd8486c7508550 Gilad Ben-Yossef 2019-04-18 550 break;
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 551 case DRV_CIPHER_CBC:
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 552 case DRV_CIPHER_CBC_CTS:
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 553 case DRV_CIPHER_CTR:
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 554 case DRV_CIPHER_OFB:
dd8486c7508550 Gilad Ben-Yossef 2019-04-18 555 /* Load IV */
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 556 hw_desc_init(&desc[*seq_size]);
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 557 set_din_type(&desc[*seq_size], DMA_DLLI, iv_dma_addr, ivsize,
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 558 NS_BIT);
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 559 set_cipher_config0(&desc[*seq_size], direction);
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 560 set_flow_mode(&desc[*seq_size], flow_mode);
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 561 set_cipher_mode(&desc[*seq_size], cipher_mode);
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 562 if (cipher_mode == DRV_CIPHER_CTR ||
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 563 cipher_mode == DRV_CIPHER_OFB) {
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 564 set_setup_mode(&desc[*seq_size], SETUP_LOAD_STATE1);
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 565 } else {
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 566 set_setup_mode(&desc[*seq_size], SETUP_LOAD_STATE0);
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 567 }
63ee04c8b491ee Gilad Ben-Yossef 2018-01-22 568 (*seq_size)++;
dd8486c7508550 Gilad Ben-Yossef 2019-04-18 569 break;
dd8486c7508550 Gilad Ben-Yossef 2019-04-18 570 case DRV_CIPHER_XTS:
dd8486c7508550 Gilad Ben-Yossef 2019-04-18 571 case DRV_CIPHER_ESSIV:
5e33535cf13c0a Ofir Drang 2020-01-16 572 case DRV_CIPHER_BITLOCKER:
5e33535cf13c0a Ofir Drang 2020-01-16 573 break;
5e33535cf13c0a Ofir Drang 2020-01-16 574 default:
5e33535cf13c0a Ofir Drang 2020-01-16 575 dev_err(dev, "Unsupported cipher mode (%d)\n", cipher_mode);
5e33535cf13c0a Ofir Drang 2020-01-16 576 }
5e33535cf13c0a Ofir Drang 2020-01-16 577 }
5e33535cf13c0a Ofir Drang 2020-01-16 578
:::::: The code at line 539 was first introduced by commit
:::::: 63ee04c8b491ee148489347e7da9fbfd982ca2bb crypto: ccree - add skcipher support
:::::: TO: Gilad Ben-Yossef <gilad(a)benyossef.com>
:::::: CC: Herbert Xu <herbert(a)gondor.apana.org.au>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months