[lpieralisi:for-review/acpi-iort-id-rework 8/12] include/linux/of_irq.h:89:1: error: expected identifier or '(' before '{' token
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/linux.git for-review/acpi-iort-id-rework
head: b2a8809a420d6d12a92d54c343c360ead32af752
commit: 6b448905a263276e5f0b1f6c677425049c729270 [8/12] of/irq: make of_msi_map_get_device_domain() bus agnostic
config: ia64-defconfig (attached as .config)
compiler: ia64-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 6b448905a263276e5f0b1f6c677425049c729270
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=ia64
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 <<):
In file included from drivers/base/platform.c:15:
>> include/linux/of_irq.h:89:1: error: expected identifier or '(' before '{' token
89 | {
| ^
drivers/base/platform.c:1336:20: warning: no previous prototype for 'early_platform_cleanup' [-Wmissing-prototypes]
1336 | void __weak __init early_platform_cleanup(void) { }
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from drivers/base/platform.c:15:
include/linux/of_irq.h:87:34: warning: 'of_msi_map_get_device_domain' declared 'static' but never defined [-Wunused-function]
87 | static inline struct irq_domain *of_msi_map_get_device_domain(struct device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from drivers/base/property.c:16:
>> include/linux/of_irq.h:89:1: error: expected identifier or '(' before '{' token
89 | {
| ^
include/linux/of_irq.h:87:34: warning: 'of_msi_map_get_device_domain' declared 'static' but never defined [-Wunused-function]
87 | static inline struct irq_domain *of_msi_map_get_device_domain(struct device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
--
In file included from drivers/pci/msi.c:25:
>> include/linux/of_irq.h:89:1: error: expected identifier or '(' before '{' token
89 | {
| ^
include/linux/of_irq.h:87:34: warning: 'of_msi_map_get_device_domain' used but never defined
87 | static inline struct irq_domain *of_msi_map_get_device_domain(struct device *dev,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
vim +89 include/linux/of_irq.h
4c3141e09cfa64 Carlo Caione 2015-12-01 80
48ae34fb39b0c0 Marc Zyngier 2015-09-18 81 static inline struct irq_domain *of_msi_get_domain(struct device *dev,
48ae34fb39b0c0 Marc Zyngier 2015-09-18 82 struct device_node *np,
48ae34fb39b0c0 Marc Zyngier 2015-09-18 83 enum irq_domain_bus_token token)
48ae34fb39b0c0 Marc Zyngier 2015-09-18 84 {
48ae34fb39b0c0 Marc Zyngier 2015-09-18 85 return NULL;
48ae34fb39b0c0 Marc Zyngier 2015-09-18 86 }
82b9b4243c6d99 Marc Zyngier 2015-10-02 87 static inline struct irq_domain *of_msi_map_get_device_domain(struct device *dev,
6b448905a26327 Diana Craciun 2020-04-29 88 u32 id, u32 bus_token);
82b9b4243c6d99 Marc Zyngier 2015-10-02 @89 {
82b9b4243c6d99 Marc Zyngier 2015-10-02 90 return NULL;
82b9b4243c6d99 Marc Zyngier 2015-10-02 91 }
f9f9f11dcf0f3b Jonas Gorski 2015-10-12 92 static inline void of_msi_configure(struct device *dev, struct device_node *np)
f9f9f11dcf0f3b Jonas Gorski 2015-10-12 93 {
f9f9f11dcf0f3b Jonas Gorski 2015-10-12 94 }
eaddb5725357e9 Rob Herring 2015-12-09 95 static inline u32 of_msi_map_rid(struct device *dev,
eaddb5725357e9 Rob Herring 2015-12-09 96 struct device_node *msi_np, u32 rid_in)
eaddb5725357e9 Rob Herring 2015-12-09 97 {
eaddb5725357e9 Rob Herring 2015-12-09 98 return rid_in;
eaddb5725357e9 Rob Herring 2015-12-09 99 }
a8d3f362f52b65 Rob Herring 2013-11-07 100 #endif
a8d3f362f52b65 Rob Herring 2013-11-07 101
:::::: The code at line 89 was first introduced by commit
:::::: 82b9b4243c6d99d9e38087fa89183aa7479185e9 of/irq: Use the msi-map property to provide device-specific MSI domain
:::::: TO: Marc Zyngier <marc.zyngier(a)arm.com>
:::::: CC: Marc Zyngier <marc.zyngier(a)arm.com>
---
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 1/2] optee: do drivers initialization before and after tee-supplicant run
by kbuild test robot
Hi Maxim,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on char-misc/char-misc-testing]
[also build test WARNING on linus/master v5.7-rc6 next-20200519]
[cannot apply to linux/master]
[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/Maxim-Uvarov/optee-register-driv...
base: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc.git 57c76221d5af648c8355a55c09b050c5d8d38189
config: arm64-allyesconfig (attached as .config)
compiler: aarch64-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 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 warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/tee/optee/device.c:90:5: warning: no previous prototype for '__optee_enumerate_devices' [-Wmissing-prototypes]
90 | int __optee_enumerate_devices(u32 func)
| ^~~~~~~~~~~~~~~~~~~~~~~~~
vim +/__optee_enumerate_devices +90 drivers/tee/optee/device.c
89
> 90 int __optee_enumerate_devices(u32 func)
91 {
92 const uuid_t pta_uuid =
93 UUID_INIT(0x7011a688, 0xddde, 0x4053,
94 0xa5, 0xa9, 0x7b, 0x3c, 0x4d, 0xdf, 0x13, 0xb8);
95 struct tee_ioctl_open_session_arg sess_arg;
96 struct tee_shm *device_shm = NULL;
97 const uuid_t *device_uuid = NULL;
98 struct tee_context *ctx = NULL;
99 u32 shm_size = 0, idx, num_devices = 0;
100 int rc;
101
102 memset(&sess_arg, 0, sizeof(sess_arg));
103
104 /* Open context with OP-TEE driver */
105 ctx = tee_client_open_context(NULL, optee_ctx_match, NULL, NULL);
106 if (IS_ERR(ctx))
107 return -ENODEV;
108
109 /* Open session with device enumeration pseudo TA */
110 memcpy(sess_arg.uuid, pta_uuid.b, TEE_IOCTL_UUID_LEN);
111 sess_arg.clnt_login = TEE_IOCTL_LOGIN_PUBLIC;
112 sess_arg.num_params = 0;
113
114 rc = tee_client_open_session(ctx, &sess_arg, NULL);
115 if ((rc < 0) || (sess_arg.ret != TEEC_SUCCESS)) {
116 /* Device enumeration pseudo TA not found */
117 rc = 0;
118 goto out_ctx;
119 }
120
121 rc = get_devices(ctx, sess_arg.session, NULL, &shm_size, func);
122 if (rc < 0 || !shm_size)
123 goto out_sess;
124
125 device_shm = tee_shm_alloc(ctx, shm_size,
126 TEE_SHM_MAPPED | TEE_SHM_DMA_BUF);
127 if (IS_ERR(device_shm)) {
128 pr_err("tee_shm_alloc failed\n");
129 rc = PTR_ERR(device_shm);
130 goto out_sess;
131 }
132
133 rc = get_devices(ctx, sess_arg.session, device_shm, &shm_size, func);
134 if (rc < 0)
135 goto out_shm;
136
137 device_uuid = tee_shm_get_va(device_shm, 0);
138 if (IS_ERR(device_uuid)) {
139 pr_err("tee_shm_get_va failed\n");
140 rc = PTR_ERR(device_uuid);
141 goto out_shm;
142 }
143
144 num_devices = shm_size / sizeof(uuid_t);
145
146 for (idx = 0; idx < num_devices; idx++) {
147 rc = optee_register_device(&device_uuid[idx], idx);
148 if (rc)
149 goto out_shm;
150 }
151
152 out_shm:
153 tee_shm_free(device_shm);
154 out_sess:
155 tee_client_close_session(ctx, sess_arg.session);
156 out_ctx:
157 tee_client_close_context(ctx);
158
159 return rc;
160 }
161
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
Re: [RESET PATCH v5 5/5] mtd: rawnand: micron: Micron SLC NAND filling block
by kbuild test robot
Hi Bean,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on linus/master]
[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/Bean-Huo/Micron-SLC-NAND-filling...
base: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 642b151f45dd54809ea00ecd3976a56c1ec9b53d
config: arm-randconfig-r006-20200519 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 135b877874fae96b4372c8a3fbfaa8ff44ff86e3)
reproduce:
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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang 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 warnings (new ones prefixed by >>, old ones prefixed by <<):
>> drivers/mtd/nand/raw/nand_micron.c:520:3: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
return 0;
^
drivers/mtd/nand/raw/nand_micron.c:517:2: note: previous statement is here
if (remaining_p)
^
1 warning generated.
vim +/if +520 drivers/mtd/nand/raw/nand_micron.c
484
485 static int micron_nand_write_oob(struct nand_chip *chip, loff_t to,
486 struct mtd_oob_ops *ops)
487 {
488 struct micron_nand *micron = nand_get_manufacturer_data(chip);
489 u32 eb_sz = nanddev_eraseblock_size(&chip->base);
490 u32 p_sz = nanddev_page_size(&chip->base);
491 u32 ppeb = nanddev_pages_per_eraseblock(&chip->base);
492 u32 nb_p_tot = ops->len / p_sz;
493 u32 first_eb = DIV_ROUND_DOWN_ULL(to, eb_sz);
494 u32 first_p = DIV_ROUND_UP_ULL(to - (first_eb * eb_sz), p_sz);
495 u32 nb_eb = DIV_ROUND_UP_ULL(first_p + nb_p_tot, ppeb);
496 u32 remaining_p, eb, nb_p;
497 int ret;
498
499 ret = nand_write_oob_nand(chip, to, ops);
500
501 if (ret || ops->len != ops->retlen)
502 return ret;
503
504 /* Mark the last pages of the first erase block to write */
505 nb_p = min(nb_p_tot, ppeb - first_p);
506 micron->writtenp[first_eb] |= GENMASK(first_p + nb_p, 0) &
507 MICRON_PAGE_MASK_TRIGGER;
508 remaining_p = nb_p_tot - nb_p;
509
510 /* Mark all the pages of all "in-the-middle" erase blocks */
511 for (eb = first_eb + 1; eb < first_eb + nb_eb - 1; eb++) {
512 micron->writtenp[eb] |= MICRON_PAGE_MASK_TRIGGER;
513 remaining_p -= ppeb;
514 }
515
516 /* Mark the first pages of the last erase block to write */
517 if (remaining_p)
518 micron->writtenp[eb] |= GENMASK(remaining_p - 1, 0) &
519 MICRON_PAGE_MASK_TRIGGER;
> 520 return 0;
521 }
522
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
[jkirsher-next-queue:dev-queue 105/183] sound/soc/sof/intel/apl.c:167:1: error: type defaults to 'int' in declaration of 'MODULE_IMPORT_NS'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/jkirsher/next-queue.git dev-queue
head: 7c7dd63d321082aff5fb170d27beab8a756e3434
commit: aee46c9d07a0bd4fcc62eeed627fe4f8a0946d50 [105/183] ASoC: SOF: ops: Add new op for client registration
config: sparc64-allyesconfig (attached as .config)
compiler: sparc64-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 aee46c9d07a0bd4fcc62eeed627fe4f8a0946d50
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=sparc64
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 <<):
sound/soc/sof/intel/apl.c:167:1: warning: data definition has no type or storage class
167 | MODULE_IMPORT_NS(SND_SOC_SOF_CLIENT);
| ^~~~~~~~~~~~~~~~
>> sound/soc/sof/intel/apl.c:167:1: error: type defaults to 'int' in declaration of 'MODULE_IMPORT_NS' [-Werror=implicit-int]
sound/soc/sof/intel/apl.c:167:1: warning: parameter names (without types) in function declaration
cc1: some warnings being treated as errors
--
sound/soc/sof/intel/cnl.c:444:1: warning: data definition has no type or storage class
444 | MODULE_IMPORT_NS(SND_SOC_SOF_CLIENT);
| ^~~~~~~~~~~~~~~~
>> sound/soc/sof/intel/cnl.c:444:1: error: type defaults to 'int' in declaration of 'MODULE_IMPORT_NS' [-Werror=implicit-int]
sound/soc/sof/intel/cnl.c:444:1: warning: parameter names (without types) in function declaration
cc1: some warnings being treated as errors
vim +167 sound/soc/sof/intel/apl.c
151
152 const struct sof_intel_dsp_desc apl_chip_info = {
153 /* Apollolake */
154 .cores_num = 2,
155 .init_core_mask = 1,
156 .cores_mask = HDA_DSP_CORE_MASK(0) | HDA_DSP_CORE_MASK(1),
157 .ipc_req = HDA_DSP_REG_HIPCI,
158 .ipc_req_mask = HDA_DSP_REG_HIPCI_BUSY,
159 .ipc_ack = HDA_DSP_REG_HIPCIE,
160 .ipc_ack_mask = HDA_DSP_REG_HIPCIE_DONE,
161 .ipc_ctl = HDA_DSP_REG_HIPCCTL,
162 .rom_init_timeout = 150,
163 .ssp_count = APL_SSP_COUNT,
164 .ssp_base_offset = APL_SSP_BASE_OFFSET,
165 };
166 EXPORT_SYMBOL_NS(apl_chip_info, SND_SOC_SOF_INTEL_HDA_COMMON);
> 167 MODULE_IMPORT_NS(SND_SOC_SOF_CLIENT);
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months
drivers/scsi/bnx2fc/bnx2fc_hwi.c:1011:17: warning: variable 'dummy' set but not used
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 642b151f45dd54809ea00ecd3976a56c1ec9b53d
commit: 77331115e220925af1f52e18ac99e37a0b0c10ad scsi: bnx2fc: Process the RQE with CQE in interrupt context
date: 7 weeks ago
config: i386-randconfig-r012-20200519 (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
git checkout 77331115e220925af1f52e18ac99e37a0b0c10ad
# 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 <<):
drivers/scsi/bnx2fc/bnx2fc_hwi.c: In function 'bnx2fc_process_unsol_compl':
drivers/scsi/bnx2fc/bnx2fc_hwi.c:638:16: warning: variable 'index' set but not used [-Wunused-but-set-variable]
int task_idx, index;
^~~~~
drivers/scsi/bnx2fc/bnx2fc_hwi.c:638:6: warning: variable 'task_idx' set but not used [-Wunused-but-set-variable]
int task_idx, index;
^~~~~~~~
drivers/scsi/bnx2fc/bnx2fc_hwi.c: In function 'bnx2fc_pending_work':
>> drivers/scsi/bnx2fc/bnx2fc_hwi.c:1011:17: warning: variable 'dummy' set but not used [-Wunused-but-set-variable]
unsigned char *dummy;
^~~~~
drivers/scsi/bnx2fc/bnx2fc_hwi.c: In function 'bnx2fc_init_seq_cleanup_task':
drivers/scsi/bnx2fc/bnx2fc_hwi.c:1513:21: warning: variable 'index' set but not used [-Wunused-but-set-variable]
int orig_task_idx, index;
^~~~~
drivers/scsi/bnx2fc/bnx2fc_hwi.c:1513:6: warning: variable 'orig_task_idx' set but not used [-Wunused-but-set-variable]
int orig_task_idx, index;
^~~~~~~~~~~~~
drivers/scsi/bnx2fc/bnx2fc_hwi.c: In function 'bnx2fc_allocate_hash_table':
drivers/scsi/bnx2fc/bnx2fc_hwi.c:2093:7: warning: variable 'hi' set but not used [-Wunused-but-set-variable]
u32 hi;
^~
drivers/scsi/bnx2fc/bnx2fc_hwi.c:2092:7: warning: variable 'lo' set but not used [-Wunused-but-set-variable]
u32 lo;
^~
vim +/dummy +1011 drivers/scsi/bnx2fc/bnx2fc_hwi.c
996
997 /* Pending work request completion */
998 static bool bnx2fc_pending_work(struct bnx2fc_rport *tgt, unsigned int wqe)
999 {
1000 unsigned int cpu = wqe % num_possible_cpus();
1001 struct bnx2fc_percpu_s *fps;
1002 struct bnx2fc_work *work;
1003 struct fcoe_task_ctx_entry *task;
1004 struct fcoe_task_ctx_entry *task_page;
1005 struct fcoe_port *port = tgt->port;
1006 struct bnx2fc_interface *interface = port->priv;
1007 struct bnx2fc_hba *hba = interface->hba;
1008 unsigned char *rq_data = NULL;
1009 unsigned char rq_data_buff[BNX2FC_RQ_BUF_SZ];
1010 int task_idx, index;
> 1011 unsigned char *dummy;
1012 u16 xid;
1013 u8 num_rq;
1014 int i;
1015
1016 xid = wqe & FCOE_PEND_WQ_CQE_TASK_ID;
1017 if (xid >= hba->max_tasks) {
1018 pr_err(PFX "ERROR:xid out of range\n");
1019 return 0;
1020 }
1021
1022 task_idx = xid / BNX2FC_TASKS_PER_PAGE;
1023 index = xid % BNX2FC_TASKS_PER_PAGE;
1024 task_page = (struct fcoe_task_ctx_entry *)hba->task_ctx[task_idx];
1025 task = &task_page[index];
1026
1027 num_rq = ((task->rxwr_txrd.var_ctx.rx_flags &
1028 FCOE_TCE_RX_WR_TX_RD_VAR_NUM_RQ_WQE) >>
1029 FCOE_TCE_RX_WR_TX_RD_VAR_NUM_RQ_WQE_SHIFT);
1030
1031 memset(rq_data_buff, 0, BNX2FC_RQ_BUF_SZ);
1032
1033 if (!num_rq)
1034 goto num_rq_zero;
1035
1036 rq_data = bnx2fc_get_next_rqe(tgt, 1);
1037
1038 if (num_rq > 1) {
1039 /* We do not need extra sense data */
1040 for (i = 1; i < num_rq; i++)
1041 dummy = bnx2fc_get_next_rqe(tgt, 1);
1042 }
1043
1044 if (rq_data)
1045 memcpy(rq_data_buff, rq_data, BNX2FC_RQ_BUF_SZ);
1046
1047 /* return RQ entries */
1048 for (i = 0; i < num_rq; i++)
1049 bnx2fc_return_rqe(tgt, 1);
1050
1051 num_rq_zero:
1052
1053 fps = &per_cpu(bnx2fc_percpu, cpu);
1054 spin_lock_bh(&fps->fp_work_lock);
1055 if (fps->iothread) {
1056 work = bnx2fc_alloc_work(tgt, wqe, rq_data_buff,
1057 num_rq, task);
1058 if (work) {
1059 list_add_tail(&work->list, &fps->work_list);
1060 wake_up_process(fps->iothread);
1061 spin_unlock_bh(&fps->fp_work_lock);
1062 return 1;
1063 }
1064 }
1065 spin_unlock_bh(&fps->fp_work_lock);
1066 bnx2fc_process_cq_compl(tgt, wqe,
1067 rq_data_buff, num_rq, task);
1068
1069 return 1;
1070 }
1071
---
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 2551/10701] arch/x86/mm/init.c:79:22: warning: no previous prototype for function 'pgprot2cachemode'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: fb57b1fabcb28f358901b2df90abd2b48abc1ca8
commit: 7fa3e10f0f3646108a1018004d0f571c3222dc9f [2551/10701] x86/mm: Move pgprot2cachemode out of line
config: x86_64-randconfig-r012-20200519 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 135b877874fae96b4372c8a3fbfaa8ff44ff86e3)
reproduce:
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 7fa3e10f0f3646108a1018004d0f571c3222dc9f
# 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 <<):
arch/x86/mm/init.c:74:6: warning: no previous prototype for function 'x86_has_pat_wp' [-Wmissing-prototypes]
bool x86_has_pat_wp(void)
^
arch/x86/mm/init.c:74:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
bool x86_has_pat_wp(void)
^
static
>> arch/x86/mm/init.c:79:22: warning: no previous prototype for function 'pgprot2cachemode' [-Wmissing-prototypes]
enum page_cache_mode pgprot2cachemode(pgprot_t pgprot)
^
arch/x86/mm/init.c:79:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
enum page_cache_mode pgprot2cachemode(pgprot_t pgprot)
^
static
arch/x86/mm/init.c:875:13: warning: no previous prototype for function 'mem_encrypt_free_decrypted_mem' [-Wmissing-prototypes]
void __weak mem_encrypt_free_decrypted_mem(void) { }
^
arch/x86/mm/init.c:875:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
void __weak mem_encrypt_free_decrypted_mem(void) { }
^
static
3 warnings generated.
vim +/pgprot2cachemode +79 arch/x86/mm/init.c
72
73 /* Check that the write-protect PAT entry is set for write-protect */
> 74 bool x86_has_pat_wp(void)
75 {
76 return __pte2cachemode_tbl[_PAGE_CACHE_MODE_WP] == _PAGE_CACHE_MODE_WP;
77 }
78
> 79 enum page_cache_mode pgprot2cachemode(pgprot_t pgprot)
80 {
81 unsigned long masked;
82
83 masked = pgprot_val(pgprot) & _PAGE_CACHE_MASK;
84 if (likely(masked == 0))
85 return 0;
86 return __pte2cachemode_tbl[__pte2cm_idx(masked)];
87 }
88
---
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 4042/10701] kernel/rcu/rcuperf.c:726:38: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int'
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: fb57b1fabcb28f358901b2df90abd2b48abc1ca8
commit: f87dc808009ac86c790031627698ef1a34c31e25 [4042/10701] rcuperf: Add ability to increase object allocation size
config: powerpc-randconfig-r016-20200519 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 135b877874fae96b4372c8a3fbfaa8ff44ff86e3)
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install powerpc cross compiling tool for clang build
# apt-get install binutils-powerpc-linux-gnu
git checkout f87dc808009ac86c790031627698ef1a34c31e25
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=powerpc
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 <<):
>> kernel/rcu/rcuperf.c:726:38: warning: format specifies type 'unsigned long' but the argument has type 'unsigned int' [-Wformat]
pr_alert("kfree object size=%lun", kfree_mult * sizeof(struct kfree_obj));
~~~ ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
%u
include/linux/printk.h:295:35: note: expanded from macro 'pr_alert'
printk(KERN_ALERT pr_fmt(fmt), ##__VA_ARGS__)
~~~ ^~~~~~~~~~~
1 warning generated.
vim +726 kernel/rcu/rcuperf.c
708
709 static int __init
710 kfree_perf_init(void)
711 {
712 long i;
713 int firsterr = 0;
714
715 kfree_nrealthreads = compute_real(kfree_nthreads);
716 /* Start up the kthreads. */
717 if (shutdown) {
718 init_waitqueue_head(&shutdown_wq);
719 firsterr = torture_create_kthread(kfree_perf_shutdown, NULL,
720 shutdown_task);
721 if (firsterr)
722 goto unwind;
723 schedule_timeout_uninterruptible(1);
724 }
725
> 726 pr_alert("kfree object size=%lu\n", kfree_mult * sizeof(struct kfree_obj));
727
728 kfree_reader_tasks = kcalloc(kfree_nrealthreads, sizeof(kfree_reader_tasks[0]),
729 GFP_KERNEL);
730 if (kfree_reader_tasks == NULL) {
731 firsterr = -ENOMEM;
732 goto unwind;
733 }
734
735 for (i = 0; i < kfree_nrealthreads; i++) {
736 firsterr = torture_create_kthread(kfree_perf_thread, (void *)i,
737 kfree_reader_tasks[i]);
738 if (firsterr)
739 goto unwind;
740 }
741
742 while (atomic_read(&n_kfree_perf_thread_started) < kfree_nrealthreads)
743 schedule_timeout_uninterruptible(1);
744
745 torture_init_end();
746 return 0;
747
748 unwind:
749 torture_init_end();
750 kfree_perf_cleanup();
751 return firsterr;
752 }
753
---
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 net-next 2/4] net: phy: dp83869: Set opmode from straps
by kbuild test robot
Hi Dan,
I love your patch! Perhaps something to improve:
[auto build test WARNING on net-next/master]
[also build test WARNING on robh/for-next sparc-next/master net/master linus/master 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/Dan-Murphy/DP83869-Enhancements/...
base: https://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git 5cdfe8306631b2224e3f81fc5a1e2721c7a1948b
config: sparc64-randconfig-s001-20200519 (attached as .config)
reproduce:
# apt-get install sparse
# sparse version: v0.6.1-193-gb8fad4bc-dirty
# save the attached .config to linux build tree
make C=1 ARCH=sparc64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'
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/build_bug.h:5,
from include/linux/bits.h:23,
from include/linux/bitops.h:5,
from include/linux/bitmap.h:8,
from include/linux/ethtool.h:16,
from drivers/net/phy/dp83869.c:6:
drivers/net/phy/dp83869.c: In function 'dp83869_set_strapped_mode':
drivers/net/phy/dp83869.c:171:10: warning: comparison is always false due to limited range of data type [-Wtype-limits]
171 | if (val < 0)
| ^
include/linux/compiler.h:58:52: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
>> drivers/net/phy/dp83869.c:171:2: note: in expansion of macro 'if'
171 | if (val < 0)
| ^~
drivers/net/phy/dp83869.c:171:10: warning: comparison is always false due to limited range of data type [-Wtype-limits]
171 | if (val < 0)
| ^
include/linux/compiler.h:58:61: note: in definition of macro '__trace_if_var'
58 | #define __trace_if_var(cond) (__builtin_constant_p(cond) ? (cond) : __trace_if_value(cond))
| ^~~~
>> drivers/net/phy/dp83869.c:171:2: note: in expansion of macro 'if'
171 | if (val < 0)
| ^~
drivers/net/phy/dp83869.c:171:10: warning: comparison is always false due to limited range of data type [-Wtype-limits]
171 | if (val < 0)
| ^
include/linux/compiler.h:69:3: note: in definition of macro '__trace_if_value'
69 | (cond) ? | ^~~~
include/linux/compiler.h:56:28: note: in expansion of macro '__trace_if_var'
56 | #define if(cond, ...) if ( __trace_if_var( !!(cond , ## __VA_ARGS__) ) )
| ^~~~~~~~~~~~~~
>> drivers/net/phy/dp83869.c:171:2: note: in expansion of macro 'if'
171 | if (val < 0)
| ^~
vim +/if +171 drivers/net/phy/dp83869.c
164
165 static int dp83869_set_strapped_mode(struct phy_device *phydev)
166 {
167 struct dp83869_private *dp83869 = phydev->priv;
168 u16 val;
169
170 val = phy_read_mmd(phydev, DP83869_DEVADDR, DP83869_STRAP_STS1);
> 171 if (val < 0)
172 return val;
173
174 dp83869->mode = val & DP83869_STRAP_OP_MODE_MASK;
175
176 return 0;
177 }
178
---
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 v8 1/6] MIPS: JZ4780: Introduce SMP support.
by kbuild test robot
Hi "周琰杰,
Thank you for the patch! Perhaps something to improve:
[auto build test WARNING on robh/for-next]
[also build test WARNING on tip/timers/core linus/master v5.7-rc6]
[cannot apply to linux/master next-20200518]
[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/Zhou-Yanjie/Introduce-SMP-suppor...
base: https://git.kernel.org/pub/scm/linux/kernel/git/robh/linux.git for-next
config: mips-allyesconfig (attached as .config)
compiler: mips-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
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross ARCH=mips
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 <<):
>> arch/mips/kernel/idle.c:97:6: warning: no previous prototype for 'jz4780_smp_wait_irqoff' [-Wmissing-prototypes]
97 | void jz4780_smp_wait_irqoff(void)
| ^~~~~~~~~~~~~~~~~~~~~~
arch/mips/kernel/idle.c:155:13: warning: no previous prototype for 'check_wait' [-Wmissing-prototypes]
155 | void __init check_wait(void)
| ^~~~~~~~~~
vim +/jz4780_smp_wait_irqoff +97 arch/mips/kernel/idle.c
90
91 /*
92 * The Ingenic jz4780 SMP variant has to write back dirty cache lines before
93 * executing wait. The CPU & cache clock will be gated until we return from
94 * the wait, and if another core attempts to access data from our data cache
95 * during this time then it will lock up.
96 */
> 97 void jz4780_smp_wait_irqoff(void)
98 {
99 unsigned long pending = read_c0_cause() & read_c0_status() & CAUSEF_IP;
100
101 /*
102 * Going to idle has a significant overhead due to the cache flush so
103 * try to avoid it if we'll immediately be woken again due to an IRQ.
104 */
105 if (!need_resched() && !pending) {
106 r4k_blast_dcache();
107
108 __asm__(
109 " .set push \n"
110 " .set mips3 \n"
111 " sync \n"
112 " wait \n"
113 " .set pop \n");
114 }
115
116 local_irq_enable();
117 }
118
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
2 years, 4 months