[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <201506111433.eR8aCZeq%fengguang.wu@intel.com>
Date: Thu, 11 Jun 2015 14:12:34 +0800
From: kbuild test robot <fengguang.wu@...el.com>
To: Raghu Vatsavayi <rvatsavayi@...iumnetworks.com>
Cc: kbuild-all@...org,
Derek Chickles <derek.chickles@...iumnetworks.com>,
Satanand Burla <satananda.burla@...iumnetworks.com>,
Felix Manlunas <felix.manlunas@...iumnetworks.com>,
Robert Richter <Robert.Richter@...iumnetworks.com>,
Aleksey Makarov <Aleksey.Makarov@...iumnetworks.com>,
netdev@...r.kernel.org
Subject: [net-next:master 308/311]
drivers/net/ethernet/cavium/liquidio/octeon_device.c:1230:2: error: implicit
declaration of function 'readq'
tree: git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next.git master
head: 1edaa7e8a7e753bd42d795bf289a6488aeae7f56
commit: f21fb3ed364bb83533c5efe19354e337ea9ecda9 [308/311] Add support of Cavium Liquidio ethernet adapters
config: i386-allyesconfig (attached as .config)
reproduce:
git checkout f21fb3ed364bb83533c5efe19354e337ea9ecda9
# save the attached .config to linux build tree
make ARCH=i386
All error/warnings (new ones prefixed by >>):
drivers/net/ethernet/cavium/liquidio/lio_main.c: In function 'send_rx_ctrl_cmd':
>> drivers/net/ethernet/cavium/liquidio/lio_main.c:1169:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
nctrl.netpndev = (u64)lio->netdev;
^
drivers/net/ethernet/cavium/liquidio/lio_main.c: In function 'liquidio_ptp_settime':
>> drivers/net/ethernet/cavium/liquidio/lio_main.c:1558:22: warning: passing argument 1 of 'timespec_to_ns' from incompatible pointer type
ns = timespec_to_ns(ts);
^
In file included from include/linux/stat.h:18:0,
from include/linux/module.h:10,
from drivers/net/ethernet/cavium/liquidio/lio_main.c:23:
include/linux/time.h:191:19: note: expected 'const struct timespec *' but argument is of type 'const struct timespec64 *'
static inline s64 timespec_to_ns(const struct timespec *ts)
^
drivers/net/ethernet/cavium/liquidio/lio_main.c: In function 'liquidio_link_ctrl_cmd_completion':
>> drivers/net/ethernet/cavium/liquidio/lio_main.c:2135:30: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast]
struct net_device *netdev = (struct net_device *)nctrl->netpndev;
^
drivers/net/ethernet/cavium/liquidio/lio_main.c: In function 'liquidio_set_mcast_list':
drivers/net/ethernet/cavium/liquidio/lio_main.c:2255:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
nctrl.netpndev = (u64)netdev;
^
drivers/net/ethernet/cavium/liquidio/lio_main.c: In function 'liquidio_set_mac':
drivers/net/ethernet/cavium/liquidio/lio_main.c:2308:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
nctrl.netpndev = (u64)netdev;
^
drivers/net/ethernet/cavium/liquidio/lio_main.c: In function 'liquidio_change_mtu':
drivers/net/ethernet/cavium/liquidio/lio_main.c:2411:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
nctrl.netpndev = (u64)netdev;
^
drivers/net/ethernet/cavium/liquidio/lio_main.c: In function 'liquidio_set_feature':
drivers/net/ethernet/cavium/liquidio/lio_main.c:2952:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
nctrl.netpndev = (u64)netdev;
^
--
drivers/net/ethernet/cavium/liquidio/lio_ethtool.c: In function 'octnet_gpio_access':
>> drivers/net/ethernet/cavium/liquidio/lio_ethtool.c:237:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
nctrl.netpndev = (u64)netdev;
^
drivers/net/ethernet/cavium/liquidio/lio_ethtool.c: In function 'lio_set_settings':
drivers/net/ethernet/cavium/liquidio/lio_ethtool.c:982:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
nctrl.netpndev = (u64)netdev;
^
--
drivers/net/ethernet/cavium/liquidio/octeon_device.c: In function 'lio_pci_readq':
>> drivers/net/ethernet/cavium/liquidio/octeon_device.c:1230:2: error: implicit declaration of function 'readq' [-Werror=implicit-function-declaration]
val64 = readq(oct->reg_list.pci_win_rd_data);
^
drivers/net/ethernet/cavium/liquidio/octeon_device.c: In function 'lio_pci_writeq':
>> drivers/net/ethernet/cavium/liquidio/octeon_device.c:1246:2: error: implicit declaration of function 'writeq' [-Werror=implicit-function-declaration]
writeq(addr, oct->reg_list.pci_win_wr_addr);
^
cc1: some warnings being treated as errors
--
drivers/net/ethernet/cavium/liquidio/cn66xx_device.c: In function 'lio_cn6xxx_soft_reset':
>> drivers/net/ethernet/cavium/liquidio/cn66xx_device.c:45:2: error: implicit declaration of function 'writeq' [-Werror=implicit-function-declaration]
octeon_write_csr64(oct, CN6XXX_WIN_WR_MASK_REG, 0xFF);
^
>> drivers/net/ethernet/cavium/liquidio/cn66xx_device.c:61:2: error: implicit declaration of function 'readq' [-Werror=implicit-function-declaration]
if (octeon_read_csr64(oct, CN6XXX_SLI_SCRATCH1) == 0x1234ULL) {
^
cc1: some warnings being treated as errors
--
drivers/net/ethernet/cavium/liquidio/cn68xx_device.c: In function 'lio_cn68xx_setup_pkt_ctl_regs':
>> drivers/net/ethernet/cavium/liquidio/cn68xx_device.c:87:2: error: implicit declaration of function 'readq' [-Werror=implicit-function-declaration]
pktctl = octeon_read_csr64(oct, CN6XXX_SLI_PKT_CTL);
^
>> drivers/net/ethernet/cavium/liquidio/cn68xx_device.c:94:2: error: implicit declaration of function 'writeq' [-Werror=implicit-function-declaration]
octeon_write_csr64(oct, CN68XX_SLI_TX_PIPE, tx_pipe);
^
cc1: some warnings being treated as errors
--
drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c: In function 'octeon_pci_fastwrite':
>> drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c:72:3: error: implicit declaration of function 'writeq' [-Werror=implicit-function-declaration]
writeq(*((u64 *)hostbuf), mapped_addr);
^
drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c: In function 'octeon_pci_fastread':
>> drivers/net/ethernet/cavium/liquidio/octeon_mem_ops.c:96:3: error: implicit declaration of function 'readq' [-Werror=implicit-function-declaration]
*((u64 *)hostbuf) = readq(mapped_addr);
^
cc1: some warnings being treated as errors
--
drivers/net/ethernet/cavium/liquidio/octeon_droq.c: In function 'octeon_init_droq':
>> drivers/net/ethernet/cavium/liquidio/octeon_droq.c:281:2: warning: format '%lx' expects argument of type 'long unsigned int', but argument 6 has type 'size_t' [-Wformat=]
dev_dbg(&oct->pci_dev->dev, "droq[%d]: desc_ring: virt: 0x%p, dma: %lx\n",
^
--
drivers/net/ethernet/cavium/liquidio/octeon_console.c: In function 'output_console_line':
>> drivers/net/ethernet/cavium/liquidio/octeon_console.c:470:5: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' [-Wformat=]
dev_info(&oct->pci_dev->dev, "%lu: %s%s\n",
^
drivers/net/ethernet/cavium/liquidio/octeon_console.c:475:5: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' [-Wformat=]
dev_info(&oct->pci_dev->dev, "%lu: %s\n",
^
drivers/net/ethernet/cavium/liquidio/octeon_console.c: In function 'check_console':
drivers/net/ethernet/cavium/liquidio/octeon_console.c:522:5: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' [-Wformat=]
console_num, bytes_read);
^
drivers/net/ethernet/cavium/liquidio/octeon_console.c:533:3: warning: format '%lu' expects argument of type 'long unsigned int', but argument 3 has type 'size_t' [-Wformat=]
dev_info(&oct->pci_dev->dev, "%lu: %s\n",
^
vim +/readq +1230 drivers/net/ethernet/cavium/liquidio/octeon_device.c
1224 /* Read back to preserve ordering of writes */
1225 val32 = readl(oct->reg_list.pci_win_rd_addr_hi);
1226
1227 writel(addr & 0xffffffff, oct->reg_list.pci_win_rd_addr_lo);
1228 val32 = readl(oct->reg_list.pci_win_rd_addr_lo);
1229
> 1230 val64 = readq(oct->reg_list.pci_win_rd_data);
1231
1232 spin_unlock_irqrestore(&oct->pci_win_lock, flags);
1233
1234 return val64;
1235 }
1236
1237 void lio_pci_writeq(struct octeon_device *oct,
1238 u64 val,
1239 u64 addr)
1240 {
1241 u32 val32;
1242 unsigned long flags;
1243
1244 spin_lock_irqsave(&oct->pci_win_lock, flags);
1245
> 1246 writeq(addr, oct->reg_list.pci_win_wr_addr);
1247
1248 /* The write happens when the LSB is written. So write MSB first. */
1249 writel(val >> 32, oct->reg_list.pci_win_wr_data_hi);
---
0-DAY kernel test infrastructure Open Source Technology Center
http://lists.01.org/mailman/listinfo/kbuild Intel Corporation
View attachment ".config" of type "text/plain" (200021 bytes)
Powered by blists - more mailing lists