[RFC PATCH] scsi: ufs: ufshcd_scale_clks() can be static
by kbuild test robot
Fixes: 9136e6afe1e7 ("scsi: ufs: Fix up clock scaling")
Signed-off-by: kbuild test robot <lkp(a)intel.com>
---
ufshcd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index 3a0b99b624829..54ae6433452f2 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -974,7 +974,7 @@ static int ufshcd_set_clk_freq(struct ufs_hba *hba, bool scale_up)
* Returns 0 if successful
* Returns < 0 for any other errors
*/
-int ufshcd_scale_clks(struct ufs_hba *hba, bool scale_up)
+static int ufshcd_scale_clks(struct ufs_hba *hba, bool scale_up)
{
int ret = 0;
1 year, 4 months
Re: [PATCH 2/2] input: adp5589: Add basic devicetree support
by kbuild test robot
Hi Alexandru,
I love your patch! Perhaps something to improve:
[auto build test WARNING on input/next]
[also build test WARNING on next-20191030]
[cannot apply to v5.4-rc5]
[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/Alexandru-Ardelean/input-adp5589...
base: https://git.kernel.org/pub/scm/linux/kernel/git/dtor/input.git next
config: x86_64-kexec (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
drivers/input/keyboard/adp5589-keys.c: In function 'adp5589_i2c_get_driver_data':
>> drivers/input/keyboard/adp5589-keys.c:1004:10: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
return (int)match->data;
^
vim +1004 drivers/input/keyboard/adp5589-keys.c
989
990 static int adp5589_i2c_get_driver_data(struct i2c_client *i2c,
991 const struct i2c_device_id *id)
992 {
993 const struct of_device_id *match;
994
995 if (id)
996 return id->driver_data;
997
998 if (!IS_ENABLED(CONFIG_OF) || !i2c->dev.of_node)
999 return -ENODEV;
1000
1001 match = of_match_node(i2c->dev.driver->of_match_table,
1002 i2c->dev.of_node);
1003 if (match)
> 1004 return (int)match->data;
1005
1006 return -ENODEV;
1007 }
1008
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
1 year, 4 months
[ast:bpf_tramp 4/6] kernel/bpf/verifier.c:9485:40: error: 'MCOUNT_INSN_SIZE' undeclared; did you mean 'UCOUNT_COUNTS'?
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git bpf_tramp
head: 79342704f7a85cae631373124998449f047fa0f1
commit: 1d5c082bc909135b1e206a34e0cfcd57d29dbd62 [4/6] bpf: introduce BPF trampoline
config: m68k-allyesconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 7.4.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 1d5c082bc909135b1e206a34e0cfcd57d29dbd62
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=m68k
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/bpf/verifier.c: In function 'prepare_bpf_trampoline':
>> kernel/bpf/verifier.c:9485:40: error: 'MCOUNT_INSN_SIZE' undeclared (first use in this function); did you mean 'UCOUNT_COUNTS'?
prog->aux->attach_func_addr + MCOUNT_INSN_SIZE);
^~~~~~~~~~~~~~~~
UCOUNT_COUNTS
kernel/bpf/verifier.c:9485:40: note: each undeclared identifier is reported only once for each function it appears in
vim +9485 kernel/bpf/verifier.c
9467
9468 static int prepare_bpf_trampoline(struct bpf_verifier_env *env)
9469 {
9470 struct bpf_prog *prog = env->prog;
9471 /* flags to attach at fentry */
9472 u32 flags = BPF_TRAMP_F_RESTORE_REGS;
9473 void *tramp;
9474
9475 if (!prog->aux->needs_trampoline)
9476 return 0;
9477
9478 if (prog->expected_attach_type == BPF_TRACE_FEXIT)
9479 /* flags to attach at fentry with kretprobe-like behavior */
9480 flags = BPF_TRAMP_F_CALL_ORIG | BPF_TRAMP_F_SKIP_FRAME;
9481 tramp = arch_prepare_bpf_trampoline(&prog->aux->attach_func_model,
9482 flags,
9483 __bpf_prog_run_from_trampoline,
9484 (long)prog,
> 9485 prog->aux->attach_func_addr + MCOUNT_INSN_SIZE);
9486 if (IS_ERR(tramp))
9487 return PTR_ERR(tramp);
9488 prog->aux->trampoline = tramp;
9489 return 0;
9490 }
9491
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
1 year, 4 months
[ast:bpf_tramp 4/6] kernel/bpf/syscall.c:1822:2: error: implicit declaration of function 'ftrace_arch_code_modify_prepare'; did you mean 'trace_rb_cpu_prepare'?
by kbuild test robot
tree: https://git.kernel.org/pub/scm/linux/kernel/git/ast/bpf.git bpf_tramp
head: 79342704f7a85cae631373124998449f047fa0f1
commit: 1d5c082bc909135b1e206a34e0cfcd57d29dbd62 [4/6] bpf: introduce BPF trampoline
config: xtensa-allyesconfig (attached as .config)
compiler: xtensa-linux-gcc (GCC) 7.4.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 1d5c082bc909135b1e206a34e0cfcd57d29dbd62
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=xtensa
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
kernel/bpf/syscall.c: In function 'fentry_hack':
>> kernel/bpf/syscall.c:1822:2: error: implicit declaration of function 'ftrace_arch_code_modify_prepare'; did you mean 'trace_rb_cpu_prepare'? [-Werror=implicit-function-declaration]
ftrace_arch_code_modify_prepare();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
trace_rb_cpu_prepare
>> kernel/bpf/syscall.c:1825:2: error: implicit declaration of function 'ftrace_arch_code_modify_post_process' [-Werror=implicit-function-declaration]
ftrace_arch_code_modify_post_process();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +1822 kernel/bpf/syscall.c
1816
1817 int ff_update_ftrace_func(unsigned long ip, unsigned long addr);
1818 int fentry_hack(struct bpf_prog *prog)
1819 {
1820 int ret;
1821
> 1822 ftrace_arch_code_modify_prepare();
1823 ret = ff_update_ftrace_func((long)prog->aux->attach_func_addr,
1824 (long)prog->aux->trampoline);
> 1825 ftrace_arch_code_modify_post_process();
1826 return ret;
1827 }
1828
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
1 year, 4 months
[villemoes:ppc-inline 3/5] enetc_ethtool.c:undefined reference to `ioread64'
by kbuild test robot
Hi Rasmus,
It's probably a bug fix that unveils the link errors.
tree: https://github.com/Villemoes/linux ppc-inline
head: c5c9f702825a88a83d986fa6f21f3eef911bc094
commit: 091bbe26f6226ecf5754a2acdeb292d93e5a0477 [3/5] powerpc: move pci_iounmap() from iomap.c to pci-common.c
config: x86_64-allyesconfig (attached as .config)
compiler: gcc-7 (Debian 7.4.0-14) 7.4.0
reproduce:
git checkout 091bbe26f6226ecf5754a2acdeb292d93e5a0477
# save the attached .config to linux build tree
make ARCH=x86_64
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
ld: drivers/net/ethernet/freescale/enetc/enetc_ethtool.o: in function `enetc_get_ethtool_stats':
>> enetc_ethtool.c:(.text+0x11d2): undefined reference to `ioread64'
ld: drivers/vfio/pci/vfio_pci_rdwr.o: in function `vfio_pci_ioeventfd_handler':
>> vfio_pci_rdwr.c:(.text+0x58d): undefined reference to `iowrite64'
ld: drivers/firmware/arm_scmi/perf.o: in function `scmi_perf_fc_ring_db':
>> perf.c:(.text+0x872): undefined reference to `ioread64'
>> ld: perf.c:(.text+0x8aa): undefined reference to `iowrite64'
ld: drivers/ntb/hw/intel/ntb_hw_gen1.o: in function `intel_ntb_mw_set_trans':
>> ntb_hw_gen1.c:(.text+0x1b8f): undefined reference to `ioread64'
>> ld: ntb_hw_gen1.c:(.text+0x1bc9): undefined reference to `iowrite64'
>> ld: ntb_hw_gen1.c:(.text+0x1bd1): undefined reference to `ioread64'
ld: ntb_hw_gen1.c:(.text+0x1bea): undefined reference to `iowrite64'
ld: ntb_hw_gen1.c:(.text+0x1c08): undefined reference to `iowrite64'
ld: ntb_hw_gen1.c:(.text+0x1c10): undefined reference to `ioread64'
ld: ntb_hw_gen1.c:(.text+0x1c2c): undefined reference to `iowrite64'
ld: ntb_hw_gen1.c:(.text+0x1c3b): undefined reference to `iowrite64'
ld: drivers/ntb/hw/intel/ntb_hw_gen1.o: in function `xeon_setup_b2b_mw':
>> ntb_hw_gen1.c:(.text+0x2675): undefined reference to `iowrite64'
ld: ntb_hw_gen1.c:(.text+0x26c3): undefined reference to `iowrite64'
ld: ntb_hw_gen1.c:(.text+0x26d0): undefined reference to `ioread64'
ld: ntb_hw_gen1.c:(.text+0x2776): undefined reference to `iowrite64'
ld: ntb_hw_gen1.c:(.text+0x2783): undefined reference to `ioread64'
ld: ntb_hw_gen1.c:(.text+0x2936): undefined reference to `iowrite64'
ld: ntb_hw_gen1.c:(.text+0x2943): undefined reference to `ioread64'
ld: ntb_hw_gen1.c:(.text+0x29dd): undefined reference to `iowrite64'
ld: ntb_hw_gen1.c:(.text+0x29ea): undefined reference to `ioread64'
ld: ntb_hw_gen1.c:(.text+0x2b4a): undefined reference to `iowrite64'
ld: ntb_hw_gen1.c:(.text+0x2b6b): undefined reference to `iowrite64'
ld: ntb_hw_gen1.c:(.text+0x2b9a): undefined reference to `iowrite64'
ld: ntb_hw_gen1.c:(.text+0x2bbb): undefined reference to `iowrite64'
ld: ntb_hw_gen1.c:(.text+0x2bfd): undefined reference to `iowrite64'
ld: ntb_hw_gen1.c:(.text+0x2c05): undefined reference to `ioread64'
ld: ntb_hw_gen1.c:(.text+0x2c6c): undefined reference to `iowrite64'
ld: ntb_hw_gen1.c:(.text+0x2c74): undefined reference to `ioread64'
ld: drivers/ntb/hw/intel/ntb_hw_gen1.o: in function `ndev_ntb_debugfs_read.isra.11':
ntb_hw_gen1.c:(.text+0x3ee6): undefined reference to `ioread64'
ld: ntb_hw_gen1.c:(.text+0x3ffe): undefined reference to `ioread64'
ld: ntb_hw_gen1.c:(.text+0x4054): undefined reference to `ioread64'
ld: ntb_hw_gen1.c:(.text+0x4159): undefined reference to `ioread64'
ld: drivers/ntb/hw/intel/ntb_hw_gen1.o:ntb_hw_gen1.c:(.text+0x423b): more undefined references to `ioread64' follow
ld: drivers/ntb/hw/intel/ntb_hw_gen3.o: in function `intel_ntb3_mw_set_trans':
>> ntb_hw_gen3.c:(.text+0x93b): undefined reference to `iowrite64'
>> ld: ntb_hw_gen3.c:(.text+0x945): undefined reference to `ioread64'
>> ld: ntb_hw_gen3.c:(.text+0x961): undefined reference to `iowrite64'
ld: ntb_hw_gen3.c:(.text+0x9c9): undefined reference to `iowrite64'
ld: ntb_hw_gen3.c:(.text+0x9d1): undefined reference to `ioread64'
ld: ntb_hw_gen3.c:(.text+0xa76): undefined reference to `ioread64'
ld: ntb_hw_gen3.c:(.text+0xab2): undefined reference to `iowrite64'
ld: ntb_hw_gen3.c:(.text+0xaba): undefined reference to `ioread64'
ld: ntb_hw_gen3.c:(.text+0xacf): undefined reference to `iowrite64'
ld: ntb_hw_gen3.c:(.text+0xae1): undefined reference to `iowrite64'
ld: drivers/ntb/hw/intel/ntb_hw_gen3.o: in function `gen3_setup_b2b_mw.isra.0':
ntb_hw_gen3.c:(.text+0xba7): undefined reference to `iowrite64'
ld: ntb_hw_gen3.c:(.text+0xbaf): undefined reference to `ioread64'
ld: ntb_hw_gen3.c:(.text+0xbfe): undefined reference to `iowrite64'
ld: ntb_hw_gen3.c:(.text+0xc06): undefined reference to `ioread64'
ld: ntb_hw_gen3.c:(.text+0xc47): undefined reference to `iowrite64'
ld: ntb_hw_gen3.c:(.text+0xc52): undefined reference to `iowrite64'
ld: drivers/ntb/hw/intel/ntb_hw_gen3.o: in function `ndev_ntb3_debugfs_read':
>> ntb_hw_gen3.c:(.text+0x15aa): undefined reference to `ioread64'
ld: ntb_hw_gen3.c:(.text+0x15d7): undefined reference to `ioread64'
ld: ntb_hw_gen3.c:(.text+0x1604): undefined reference to `ioread64'
ld: ntb_hw_gen3.c:(.text+0x1631): undefined reference to `ioread64'
ld: ntb_hw_gen3.c:(.text+0x16a7): undefined reference to `ioread64'
ld: drivers/ntb/hw/intel/ntb_hw_gen3.o:ntb_hw_gen3.c:(.text+0x16d6): more undefined references to `ioread64' follow
ld: drivers/ntb/hw/intel/ntb_hw_gen3.o: in function `gen3_db_iowrite':
ntb_hw_gen3.c:(.text+0x16): undefined reference to `iowrite64'
ld: drivers/ntb/hw/intel/ntb_hw_gen3.o: in function `gen3_db_ioread':
ntb_hw_gen3.c:(.text+0x2e): undefined reference to `ioread64'
ld: drivers/ntb/hw/mscc/ntb_hw_switchtec.o: in function `switchtec_ntb_mw_get_align':
>> ntb_hw_switchtec.c:(.text+0xc31): undefined reference to `ioread64'
ld: drivers/ntb/hw/mscc/ntb_hw_switchtec.o: in function `switchtec_ntb_db_read':
ntb_hw_switchtec.c:(.text+0xd0a): undefined reference to `ioread64'
ld: drivers/ntb/hw/mscc/ntb_hw_switchtec.o: in function `switchtec_ntb_db_set_mask':
>> ntb_hw_switchtec.c:(.text+0xe5f): undefined reference to `iowrite64'
ld: drivers/ntb/hw/mscc/ntb_hw_switchtec.o: in function `switchtec_ntb_peer_db_set':
ntb_hw_switchtec.c:(.text+0xeda): undefined reference to `iowrite64'
ld: drivers/ntb/hw/mscc/ntb_hw_switchtec.o: in function `switchtec_ntb_db_clear_mask':
ntb_hw_switchtec.c:(.text+0xf96): undefined reference to `iowrite64'
ld: drivers/ntb/hw/mscc/ntb_hw_switchtec.o: in function `switchtec_ntb_db_clear':
ntb_hw_switchtec.c:(.text+0x100a): undefined reference to `iowrite64'
ld: drivers/ntb/hw/mscc/ntb_hw_switchtec.o: in function `switchtec_ntb_message_isr':
ntb_hw_switchtec.c:(.text+0x1104): undefined reference to `ioread64'
ld: drivers/ntb/hw/mscc/ntb_hw_switchtec.o: in function `config_rsvd_lut_win':
ntb_hw_switchtec.c:(.text+0x1466): undefined reference to `iowrite64'
ld: drivers/ntb/hw/mscc/ntb_hw_switchtec.o: in function `switchtec_ntb_mw_set_trans':
ntb_hw_switchtec.c:(.text+0x1800): undefined reference to `iowrite64'
>> ld: ntb_hw_switchtec.c:(.text+0x1883): undefined reference to `iowrite64'
ld: ntb_hw_switchtec.c:(.text+0x1906): undefined reference to `iowrite64'
ld: drivers/ntb/hw/mscc/ntb_hw_switchtec.o: in function `switchtec_ntb_link_status_update':
ntb_hw_switchtec.c:(.text+0x1c22): undefined reference to `ioread64'
ld: drivers/ntb/hw/mscc/ntb_hw_switchtec.o: in function `switchtec_ntb_add':
ntb_hw_switchtec.c:(.text+0x248f): undefined reference to `ioread64'
ld: ntb_hw_switchtec.c:(.text+0x2a5d): undefined reference to `iowrite64'
>> ld: ntb_hw_switchtec.c:(.text+0x2a65): undefined reference to `ioread64'
ld: ntb_hw_switchtec.c:(.text+0x2c3f): undefined reference to `iowrite64'
ld: ntb_hw_switchtec.c:(.text+0x2e29): undefined reference to `iowrite64'
ld: ntb_hw_switchtec.c:(.text+0x3127): undefined reference to `iowrite64'
ld: ntb_hw_switchtec.c:(.text+0x316a): undefined reference to `iowrite64'
ld: ntb_hw_switchtec.c:(.text+0x3270): undefined reference to `iowrite64'
ld: drivers/ntb/hw/mscc/ntb_hw_switchtec.o:ntb_hw_switchtec.c:(.text+0x10b7): more undefined references to `iowrite64' follow
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
1 year, 4 months
[villemoes:ppc-inline 2/5] arch/alpha/include/asm/io.h:491:0: warning: "ioread16be" redefined
by kbuild test robot
tree: https://github.com/Villemoes/linux ppc-inline
head: c5c9f702825a88a83d986fa6f21f3eef911bc094
commit: 609a5b7b28d526089b06c3c729b8976cc0600df0 [2/5] asm-generic: employ "ifndef foo; define foo foo" idiom in iomap.h
config: alpha-allyesconfig (attached as .config)
compiler: alpha-linux-gcc (GCC) 7.4.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 609a5b7b28d526089b06c3c729b8976cc0600df0
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=alpha
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All warnings (new ones prefixed by >>):
In file included from include/linux/io.h:13:0,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from arch/alpha/include/asm/hardirq.h:8,
from include/linux/hardirq.h:9,
from include/linux/highmem.h:10,
from include/linux/pagemap.h:11,
from include/linux/buffer_head.h:14,
from fs/ext2/balloc.c:20:
>> arch/alpha/include/asm/io.h:491:0: warning: "ioread16be" redefined
#define ioread16be(p) be16_to_cpu(ioread16(p))
In file included from arch/alpha/include/asm/io.h:16:0,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from arch/alpha/include/asm/hardirq.h:8,
from include/linux/hardirq.h:9,
from include/linux/highmem.h:10,
from include/linux/pagemap.h:11,
from include/linux/buffer_head.h:14,
from fs/ext2/balloc.c:20:
include/asm-generic/iomap.h:38:0: note: this is the location of the previous definition
#define ioread16be ioread16be
In file included from include/linux/io.h:13:0,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from arch/alpha/include/asm/hardirq.h:8,
from include/linux/hardirq.h:9,
from include/linux/highmem.h:10,
from include/linux/pagemap.h:11,
from include/linux/buffer_head.h:14,
from fs/ext2/balloc.c:20:
>> arch/alpha/include/asm/io.h:492:0: warning: "ioread32be" redefined
#define ioread32be(p) be32_to_cpu(ioread32(p))
In file included from arch/alpha/include/asm/io.h:16:0,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from arch/alpha/include/asm/hardirq.h:8,
from include/linux/hardirq.h:9,
from include/linux/highmem.h:10,
from include/linux/pagemap.h:11,
from include/linux/buffer_head.h:14,
from fs/ext2/balloc.c:20:
include/asm-generic/iomap.h:46:0: note: this is the location of the previous definition
#define ioread32be ioread32be
In file included from include/linux/io.h:13:0,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from arch/alpha/include/asm/hardirq.h:8,
from include/linux/hardirq.h:9,
from include/linux/highmem.h:10,
from include/linux/pagemap.h:11,
from include/linux/buffer_head.h:14,
from fs/ext2/balloc.c:20:
>> arch/alpha/include/asm/io.h:493:0: warning: "iowrite16be" redefined
#define iowrite16be(v,p) iowrite16(cpu_to_be16(v), (p))
In file included from arch/alpha/include/asm/io.h:16:0,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from arch/alpha/include/asm/hardirq.h:8,
from include/linux/hardirq.h:9,
from include/linux/highmem.h:10,
from include/linux/pagemap.h:11,
from include/linux/buffer_head.h:14,
from fs/ext2/balloc.c:20:
include/asm-generic/iomap.h:88:0: note: this is the location of the previous definition
#define iowrite16be iowrite16be
In file included from include/linux/io.h:13:0,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from arch/alpha/include/asm/hardirq.h:8,
from include/linux/hardirq.h:9,
from include/linux/highmem.h:10,
from include/linux/pagemap.h:11,
from include/linux/buffer_head.h:14,
from fs/ext2/balloc.c:20:
>> arch/alpha/include/asm/io.h:494:0: warning: "iowrite32be" redefined
#define iowrite32be(v,p) iowrite32(cpu_to_be32(v), (p))
In file included from arch/alpha/include/asm/io.h:16:0,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from arch/alpha/include/asm/hardirq.h:8,
from include/linux/hardirq.h:9,
from include/linux/highmem.h:10,
from include/linux/pagemap.h:11,
from include/linux/buffer_head.h:14,
from fs/ext2/balloc.c:20:
include/asm-generic/iomap.h:96:0: note: this is the location of the previous definition
#define iowrite32be iowrite32be
--
In file included from include/linux/scatterlist.h:9:0,
from include/linux/mtd/ubi.h:13,
from fs/ubifs/ubifs.h:24,
from fs/ubifs/orphan.c:10:
>> arch/alpha/include/asm/io.h:491:0: warning: "ioread16be" redefined
#define ioread16be(p) be16_to_cpu(ioread16(p))
In file included from arch/alpha/include/asm/io.h:16:0,
from include/linux/scatterlist.h:9,
from include/linux/mtd/ubi.h:13,
from fs/ubifs/ubifs.h:24,
from fs/ubifs/orphan.c:10:
include/asm-generic/iomap.h:38:0: note: this is the location of the previous definition
#define ioread16be ioread16be
In file included from include/linux/scatterlist.h:9:0,
from include/linux/mtd/ubi.h:13,
from fs/ubifs/ubifs.h:24,
from fs/ubifs/orphan.c:10:
>> arch/alpha/include/asm/io.h:492:0: warning: "ioread32be" redefined
#define ioread32be(p) be32_to_cpu(ioread32(p))
In file included from arch/alpha/include/asm/io.h:16:0,
from include/linux/scatterlist.h:9,
from include/linux/mtd/ubi.h:13,
from fs/ubifs/ubifs.h:24,
from fs/ubifs/orphan.c:10:
include/asm-generic/iomap.h:46:0: note: this is the location of the previous definition
#define ioread32be ioread32be
In file included from include/linux/scatterlist.h:9:0,
from include/linux/mtd/ubi.h:13,
from fs/ubifs/ubifs.h:24,
from fs/ubifs/orphan.c:10:
>> arch/alpha/include/asm/io.h:493:0: warning: "iowrite16be" redefined
#define iowrite16be(v,p) iowrite16(cpu_to_be16(v), (p))
In file included from arch/alpha/include/asm/io.h:16:0,
from include/linux/scatterlist.h:9,
from include/linux/mtd/ubi.h:13,
from fs/ubifs/ubifs.h:24,
from fs/ubifs/orphan.c:10:
include/asm-generic/iomap.h:88:0: note: this is the location of the previous definition
#define iowrite16be iowrite16be
In file included from include/linux/scatterlist.h:9:0,
from include/linux/mtd/ubi.h:13,
from fs/ubifs/ubifs.h:24,
from fs/ubifs/orphan.c:10:
>> arch/alpha/include/asm/io.h:494:0: warning: "iowrite32be" redefined
#define iowrite32be(v,p) iowrite32(cpu_to_be32(v), (p))
In file included from arch/alpha/include/asm/io.h:16:0,
from include/linux/scatterlist.h:9,
from include/linux/mtd/ubi.h:13,
from fs/ubifs/ubifs.h:24,
from fs/ubifs/orphan.c:10:
include/asm-generic/iomap.h:96:0: note: this is the location of the previous definition
#define iowrite32be iowrite32be
In file included from include/linux/kernel.h:15:0,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from fs/ubifs/ubifs.h:16,
from fs/ubifs/orphan.c:10:
fs/ubifs/orphan.c: In function 'orphan_delete':
fs/ubifs/debug.h:158:11: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'ino_t {aka unsigned int}' [-Wformat=]
pr_debug("UBIFS DBG " type " (pid %d): " fmt "\n", current->pid, \
^
include/linux/printk.h:288:21: note: in definition of macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
__dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:153:2: note: in expansion of macro '_dynamic_func_call'
_dynamic_func_call(fmt, __dynamic_pr_debug, \
^~~~~~~~~~~~~~~~~~
include/linux/printk.h:336:2: note: in expansion of macro 'dynamic_pr_debug'
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
fs/ubifs/debug.h:158:2: note: in expansion of macro 'pr_debug'
pr_debug("UBIFS DBG " type " (pid %d): " fmt "\n", current->pid, \
^~~~~~~~
fs/ubifs/debug.h:170:29: note: in expansion of macro 'ubifs_dbg_msg'
#define dbg_gen(fmt, ...) ubifs_dbg_msg("gen", fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~
fs/ubifs/orphan.c:132:3: note: in expansion of macro 'dbg_gen'
dbg_gen("deleted twice ino %lu", orph->inum);
^~~~~~~
fs/ubifs/orphan.c:132:32: note: format string is defined here
dbg_gen("deleted twice ino %lu", orph->inum);
~~^
%u
In file included from include/linux/kernel.h:15:0,
from include/linux/list.h:9,
from include/linux/wait.h:7,
from include/linux/wait_bit.h:8,
from include/linux/fs.h:6,
from fs/ubifs/ubifs.h:16,
from fs/ubifs/orphan.c:10:
fs/ubifs/debug.h:158:11: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'ino_t {aka unsigned int}' [-Wformat=]
pr_debug("UBIFS DBG " type " (pid %d): " fmt "\n", current->pid, \
^
include/linux/printk.h:288:21: note: in definition of macro 'pr_fmt'
#define pr_fmt(fmt) fmt
^~~
include/linux/dynamic_debug.h:143:2: note: in expansion of macro '__dynamic_func_call'
__dynamic_func_call(__UNIQUE_ID(ddebug), fmt, func, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~~~~
include/linux/dynamic_debug.h:153:2: note: in expansion of macro '_dynamic_func_call'
_dynamic_func_call(fmt, __dynamic_pr_debug, \
^~~~~~~~~~~~~~~~~~
include/linux/printk.h:336:2: note: in expansion of macro 'dynamic_pr_debug'
dynamic_pr_debug(fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~~~~
fs/ubifs/debug.h:158:2: note: in expansion of macro 'pr_debug'
pr_debug("UBIFS DBG " type " (pid %d): " fmt "\n", current->pid, \
^~~~~~~~
fs/ubifs/debug.h:170:29: note: in expansion of macro 'ubifs_dbg_msg'
#define dbg_gen(fmt, ...) ubifs_dbg_msg("gen", fmt, ##__VA_ARGS__)
^~~~~~~~~~~~~
fs/ubifs/orphan.c:140:3: note: in expansion of macro 'dbg_gen'
dbg_gen("delete later ino %lu", orph->inum);
^~~~~~~
fs/ubifs/orphan.c:140:31: note: format string is defined here
dbg_gen("delete later ino %lu", orph->inum);
~~^
%u
--
In file included from include/linux/io.h:13:0,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from arch/alpha/include/asm/hardirq.h:8,
from include/linux/hardirq.h:9,
from include/linux/highmem.h:10,
from include/linux/pagemap.h:11,
from include/linux/blkdev.h:16,
from drivers/ide/ht6560b.c:26:
>> arch/alpha/include/asm/io.h:491:0: warning: "ioread16be" redefined
#define ioread16be(p) be16_to_cpu(ioread16(p))
In file included from arch/alpha/include/asm/io.h:16:0,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from arch/alpha/include/asm/hardirq.h:8,
from include/linux/hardirq.h:9,
from include/linux/highmem.h:10,
from include/linux/pagemap.h:11,
from include/linux/blkdev.h:16,
from drivers/ide/ht6560b.c:26:
include/asm-generic/iomap.h:38:0: note: this is the location of the previous definition
#define ioread16be ioread16be
In file included from include/linux/io.h:13:0,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from arch/alpha/include/asm/hardirq.h:8,
from include/linux/hardirq.h:9,
from include/linux/highmem.h:10,
from include/linux/pagemap.h:11,
from include/linux/blkdev.h:16,
from drivers/ide/ht6560b.c:26:
>> arch/alpha/include/asm/io.h:492:0: warning: "ioread32be" redefined
#define ioread32be(p) be32_to_cpu(ioread32(p))
In file included from arch/alpha/include/asm/io.h:16:0,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from arch/alpha/include/asm/hardirq.h:8,
from include/linux/hardirq.h:9,
from include/linux/highmem.h:10,
from include/linux/pagemap.h:11,
from include/linux/blkdev.h:16,
from drivers/ide/ht6560b.c:26:
include/asm-generic/iomap.h:46:0: note: this is the location of the previous definition
#define ioread32be ioread32be
In file included from include/linux/io.h:13:0,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from arch/alpha/include/asm/hardirq.h:8,
from include/linux/hardirq.h:9,
from include/linux/highmem.h:10,
from include/linux/pagemap.h:11,
from include/linux/blkdev.h:16,
from drivers/ide/ht6560b.c:26:
>> arch/alpha/include/asm/io.h:493:0: warning: "iowrite16be" redefined
#define iowrite16be(v,p) iowrite16(cpu_to_be16(v), (p))
In file included from arch/alpha/include/asm/io.h:16:0,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from arch/alpha/include/asm/hardirq.h:8,
from include/linux/hardirq.h:9,
from include/linux/highmem.h:10,
from include/linux/pagemap.h:11,
from include/linux/blkdev.h:16,
from drivers/ide/ht6560b.c:26:
include/asm-generic/iomap.h:88:0: note: this is the location of the previous definition
#define iowrite16be iowrite16be
In file included from include/linux/io.h:13:0,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from arch/alpha/include/asm/hardirq.h:8,
from include/linux/hardirq.h:9,
from include/linux/highmem.h:10,
from include/linux/pagemap.h:11,
from include/linux/blkdev.h:16,
from drivers/ide/ht6560b.c:26:
>> arch/alpha/include/asm/io.h:494:0: warning: "iowrite32be" redefined
#define iowrite32be(v,p) iowrite32(cpu_to_be32(v), (p))
In file included from arch/alpha/include/asm/io.h:16:0,
from include/linux/io.h:13,
from include/linux/irq.h:20,
from include/asm-generic/hardirq.h:13,
from arch/alpha/include/asm/hardirq.h:8,
from include/linux/hardirq.h:9,
from include/linux/highmem.h:10,
from include/linux/pagemap.h:11,
from include/linux/blkdev.h:16,
from drivers/ide/ht6560b.c:26:
include/asm-generic/iomap.h:96:0: note: this is the location of the previous definition
#define iowrite32be iowrite32be
drivers/ide/ht6560b.c: In function 'ht6560b_init_dev':
drivers/ide/ht6560b.c:318:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
ide_set_drivedata(drive, (void *)t);
^
..
vim +/ioread16be +491 arch/alpha/include/asm/io.h
^1da177e4c3f41 include/asm-alpha/io.h Linus Torvalds 2005-04-16 490
25534eb7707821 arch/alpha/include/asm/io.h Michael Cree 2011-11-30 @491 #define ioread16be(p) be16_to_cpu(ioread16(p))
25534eb7707821 arch/alpha/include/asm/io.h Michael Cree 2011-11-30 @492 #define ioread32be(p) be32_to_cpu(ioread32(p))
25534eb7707821 arch/alpha/include/asm/io.h Michael Cree 2011-11-30 @493 #define iowrite16be(v,p) iowrite16(cpu_to_be16(v), (p))
25534eb7707821 arch/alpha/include/asm/io.h Michael Cree 2011-11-30 @494 #define iowrite32be(v,p) iowrite32(cpu_to_be32(v), (p))
25534eb7707821 arch/alpha/include/asm/io.h Michael Cree 2011-11-30 495
:::::: The code at line 491 was first introduced by commit
:::::: 25534eb7707821b796fd84f7115367e02f36aa60 alpha: add io{read,write}{16,32}be functions
:::::: TO: Michael Cree <mcree(a)orcon.net.nz>
:::::: CC: Matt Turner <mattst88(a)gmail.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
1 year, 4 months
[villemoes:ppc-inline 1/5] include/asm-generic/io.h:895:21: error: static declaration of 'pci_iounmap' follows non-static declaration
by kbuild test robot
tree: https://github.com/Villemoes/linux ppc-inline
head: c5c9f702825a88a83d986fa6f21f3eef911bc094
commit: 63f750d2dad4f52b1999c92e2df28b3fee25a3ed [1/5] asm-generic: move pcu_iounmap from iomap.h to pci_iomap.h
config: riscv-defconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 7.4.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 63f750d2dad4f52b1999c92e2df28b3fee25a3ed
# save the attached .config to linux build tree
GCC_VERSION=7.4.0 make.cross ARCH=riscv
If you fix the issue, kindly add following tag
Reported-by: kbuild test robot <lkp(a)intel.com>
All error/warnings (new ones prefixed by >>):
In file included from arch/riscv/include/asm/io.h:280:0,
from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:11,
from include/linux/skbuff.h:31,
from include/linux/icmpv6.h:5,
from include/linux/ipv6.h:86,
from include/net/ipv6.h:12,
from include/linux/sunrpc/addr.h:14,
from fs/nfs/client.c:19:
>> include/asm-generic/io.h:895:21: error: static declaration of 'pci_iounmap' follows non-static declaration
#define pci_iounmap pci_iounmap
^
>> include/asm-generic/io.h:896:20: note: in expansion of macro 'pci_iounmap'
static inline void pci_iounmap(struct pci_dev *dev, void __iomem *p)
^~~~~~~~~~~
In file included from include/asm-generic/io.h:19:0,
from arch/riscv/include/asm/io.h:280,
from include/linux/scatterlist.h:9,
from include/linux/dma-mapping.h:11,
from include/linux/skbuff.h:31,
from include/linux/icmpv6.h:5,
from include/linux/ipv6.h:86,
from include/net/ipv6.h:12,
from include/linux/sunrpc/addr.h:14,
from fs/nfs/client.c:19:
include/asm-generic/pci_iomap.h:22:13: note: previous declaration of 'pci_iounmap' was here
extern void pci_iounmap(struct pci_dev *dev, void __iomem *);
^~~~~~~~~~~
vim +/pci_iounmap +895 include/asm-generic/io.h
cd24834130ac65 Jan Glauber 2012-11-29 893
cd24834130ac65 Jan Glauber 2012-11-29 894 #ifndef pci_iounmap
9216efafc52ff9 Thierry Reding 2014-10-01 @895 #define pci_iounmap pci_iounmap
3f7e212df82ca0 Arnd Bergmann 2009-05-13 @896 static inline void pci_iounmap(struct pci_dev *dev, void __iomem *p)
3f7e212df82ca0 Arnd Bergmann 2009-05-13 897 {
3f7e212df82ca0 Arnd Bergmann 2009-05-13 898 }
cd24834130ac65 Jan Glauber 2012-11-29 899 #endif
3f7e212df82ca0 Arnd Bergmann 2009-05-13 900 #endif /* CONFIG_GENERIC_IOMAP */
3f7e212df82ca0 Arnd Bergmann 2009-05-13 901
:::::: The code at line 895 was first introduced by commit
:::::: 9216efafc52ff99e9351ef60de5fcafc2bc8adb6 asm-generic/io.h: Reconcile I/O accessor overrides
:::::: TO: Thierry Reding <treding(a)nvidia.com>
:::::: CC: Thierry Reding <treding(a)nvidia.com>
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
1 year, 4 months