[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CA+r1Zhi0VpZdiqW3VWEBmNf891VwZjFqTgBgOvreCOxWLELFWg@mail.gmail.com>
Date: Mon, 12 Oct 2015 10:19:29 -0700
From: Jim Davis <jim.epost@...il.com>
To: Stephen Rothwell <sfr@...b.auug.org.au>,
linux-next <linux-next@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
willy@...ux.intel.com, linux-nvme@...ts.infradead.org
Subject: randconfig build error with next-20151012, in drivers/nvme/host/pci.c
Building with the attached random configuration file,
In file included from drivers/nvme/host/pci.c:17:0:
include/linux/blk-mq.h:61:18: error: field ‘kobj’ has incomplete type
struct kobject kobj;
^
include/linux/blk-mq.h:117:2: error: unknown type name ‘softirq_done_fn’
softirq_done_fn *complete;
^
include/linux/blk-mq.h:170:33: warning: ‘struct gendisk’ declared
inside parameter list
int blk_mq_register_disk(struct gendisk *);
^
include/linux/blk-mq.h:170:33: warning: its scope is only this
definition or declaration, which is probably not what you want
include/linux/blk-mq.h:171:36: warning: ‘struct gendisk’ declared
inside parameter list
void blk_mq_unregister_disk(struct gendisk *);
^
include/linux/blk-mq.h: In function ‘blk_mq_rq_from_pdu’:
include/linux/blk-mq.h:238:22: error: invalid application of ‘sizeof’
to incomplete type ‘struct request’
return pdu - sizeof(struct request);
^
include/linux/blk-mq.h: In function ‘blk_mq_rq_to_pdu’:
include/linux/blk-mq.h:242:2: error: invalid use of undefined type
‘struct request’
return rq + 1;
^
drivers/nvme/host/pci.c: In function ‘nvme_alloc_iod’:
drivers/nvme/host/pci.c:446:22: error: dereferencing pointer to incomplete type
unsigned size = !(rq->cmd_flags & REQ_DISCARD) ? blk_rq_bytes(rq) :
^
drivers/nvme/host/pci.c:446:2: error: implicit declaration of function
‘blk_rq_bytes’ [-Werror=implicit-function-declaration]
unsigned size = !(rq->cmd_flags & REQ_DISCARD) ? blk_rq_bytes(rq) :
^
drivers/nvme/host/pci.c:450:8: error: dereferencing pointer to incomplete type
if (rq->nr_phys_segments <= NVME_INT_PAGES &&
^
LD drivers/net/can/usb/built-in.o
drivers/nvme/host/pci.c:455:25: error: dereferencing pointer to incomplete type
iod_init(iod, size, rq->nr_phys_segments,
^
drivers/nvme/host/pci.c:460:28: error: dereferencing pointer to incomplete type
return __nvme_alloc_iod(rq->nr_phys_segments, size, dev,
^
drivers/nvme/host/pci.c: In function ‘req_completion’:
drivers/nvme/host/pci.c:613:3: error: implicit declaration of function
‘blk_noretry_request’ [-Werror=implicit-function-declaration]
if (!(status & NVME_SC_DNR || blk_noretry_request(req))
^
drivers/nvme/host/pci.c:614:24: error: dereferencing pointer to incomplete type
&& (jiffies - req->start_time) < req->timeout) {
^
drivers/nvme/host/pci.c:614:43: error: dereferencing pointer to incomplete type
&& (jiffies - req->start_time) < req->timeout) {
^
In file included from include/linux/seqlock.h:35:0,
from include/linux/time.h:5,
from include/uapi/linux/timex.h:56,
from include/linux/timex.h:56,
from include/linux/sched.h:19,
from include/linux/blkdev.h:4,
from drivers/nvme/host/pci.c:16:
drivers/nvme/host/pci.c:618:25: error: dereferencing pointer to incomplete type
spin_lock_irqsave(req->q->queue_lock, flags);
^
include/linux/spinlock.h:208:34: note: in definition of macro
‘raw_spin_lock_irqsave’
flags = _raw_spin_lock_irqsave(lock); \
^
drivers/nvme/host/pci.c:618:4: note: in expansion of macro ‘spin_lock_irqsave’
spin_lock_irqsave(req->q->queue_lock, flags);
^
drivers/nvme/host/pci.c:619:4: error: implicit declaration of function
‘blk_queue_stopped’ [-Werror=implicit-function-declaration]
if (!blk_queue_stopped(req->q))
^
drivers/nvme/host/pci.c:619:30: error: dereferencing pointer to incomplete type
if (!blk_queue_stopped(req->q))
^
drivers/nvme/host/pci.c:620:33: error: dereferencing pointer to incomplete type
blk_mq_kick_requeue_list(req->q);
^
drivers/nvme/host/pci.c:621:30: error: dereferencing pointer to incomplete type
spin_unlock_irqrestore(req->q->queue_lock, flags);
^
drivers/nvme/host/pci.c:625:10: error: dereferencing pointer to incomplete type
if (req->cmd_type == REQ_TYPE_DRV_PRIV) {
^
drivers/nvme/host/pci.c:625:24: error: ‘REQ_TYPE_DRV_PRIV’ undeclared
(first use in this function)
if (req->cmd_type == REQ_TYPE_DRV_PRIV) {
^
drivers/nvme/host/pci.c:625:24: note: each undeclared identifier is
reported only once for each function it appears in
drivers/nvme/host/pci.c:633:9: error: dereferencing pointer to incomplete type
if (req->cmd_type == REQ_TYPE_DRV_PRIV) {
^
drivers/nvme/host/pci.c:635:6: error: dereferencing pointer to incomplete type
req->special = (void *)(uintptr_t)result;
^
drivers/nvme/host/pci.c:644:3: error: implicit declaration of function
‘rq_data_dir’ [-Werror=implicit-function-declaration]
dma_unmap_sg(nvmeq->dev->dev, iod->sg, iod->nents,
^
drivers/nvme/host/pci.c:646:3: error: implicit declaration of function
‘blk_integrity_rq’ [-Werror=implicit-function-declaration]
if (blk_integrity_rq(req)) {
^
drivers/nvme/host/pci.c: In function ‘nvme_submit_priv’:
drivers/nvme/host/pci.c:743:19: error: dereferencing pointer to incomplete type
memcpy(&cmnd, req->cmd, sizeof(cmnd));
^
drivers/nvme/host/pci.c:744:26: error: dereferencing pointer to incomplete type
cmnd.rw.command_id = req->tag;
^
drivers/nvme/host/pci.c:745:9: error: dereferencing pointer to incomplete type
if (req->nr_phys_segments) {
^
drivers/nvme/host/pci.c: In function ‘nvme_submit_discard’:
drivers/nvme/host/pci.c:767:2: error: implicit declaration of function
‘blk_rq_pos’ [-Werror=implicit-function-declaration]
range->slba = cpu_to_le64(nvme_block_nr(ns, blk_rq_pos(req)));
^
drivers/nvme/host/pci.c:771:27: error: dereferencing pointer to incomplete type
cmnd.dsm.command_id = req->tag;
^
drivers/nvme/host/pci.c: In function ‘nvme_submit_iod’:
drivers/nvme/host/pci.c:801:9: error: dereferencing pointer to incomplete type
if (req->cmd_flags & REQ_FUA)
^
drivers/nvme/host/pci.c:803:9: error: dereferencing pointer to incomplete type
if (req->cmd_flags & (REQ_FAILFAST_DEV | REQ_RAHEAD))
^
drivers/nvme/host/pci.c:806:9: error: dereferencing pointer to incomplete type
if (req->cmd_flags & REQ_RAHEAD)
^
drivers/nvme/host/pci.c:811:26: error: dereferencing pointer to incomplete type
cmnd.rw.command_id = req->tag;
^
drivers/nvme/host/pci.c: In function ‘nvme_queue_rq’:
drivers/nvme/host/pci.c:852:34: error: dereferencing pointer to incomplete type
struct nvme_ns *ns = hctx->queue->queuedata;
^
drivers/nvme/host/pci.c:867:9: error: dereferencing pointer to incomplete type
req->cmd_type != REQ_TYPE_DRV_PRIV) {
^
drivers/nvme/host/pci.c:867:23: error: ‘REQ_TYPE_DRV_PRIV’ undeclared
(first use in this function)
req->cmd_type != REQ_TYPE_DRV_PRIV) {
^
drivers/nvme/host/pci.c:877:9: error: dereferencing pointer to incomplete type
if (req->cmd_flags & REQ_DISCARD) {
^
drivers/nvme/host/pci.c:890:16: error: dereferencing pointer to incomplete type
} else if (req->nr_phys_segments) {
^
drivers/nvme/host/pci.c:893:29: error: dereferencing pointer to incomplete type
sg_init_table(iod->sg, req->nr_phys_segments);
^
drivers/nvme/host/pci.c:894:3: error: implicit declaration of function
‘blk_rq_map_sg’ [-Werror=implicit-function-declaration]
iod->nents = blk_rq_map_sg(req->q, req, iod->sg);
^
drivers/nvme/host/pci.c:894:33: error: dereferencing pointer to incomplete type
iod->nents = blk_rq_map_sg(req->q, req, iod->sg);
^
drivers/nvme/host/pci.c:907:4: error: implicit declaration of function
‘blk_rq_count_integrity_sg’ [-Werror=implicit-function-declaration]
if (blk_rq_count_integrity_sg(req->q, req->bio) != 1)
^
drivers/nvme/host/pci.c:907:37: error: dereferencing pointer to incomplete type
if (blk_rq_count_integrity_sg(req->q, req->bio) != 1)
^
drivers/nvme/host/pci.c:907:45: error: dereferencing pointer to incomplete type
if (blk_rq_count_integrity_sg(req->q, req->bio) != 1)
^
drivers/nvme/host/pci.c:911:4: error: implicit declaration of function
‘blk_rq_map_integrity_sg’ [-Werror=implicit-function-declaration]
if (blk_rq_map_integrity_sg(
^
drivers/nvme/host/pci.c:912:9: error: dereferencing pointer to incomplete type
req->q, req->bio, iod->meta_sg) != 1)
^
drivers/nvme/host/pci.c:912:17: error: dereferencing pointer to incomplete type
req->q, req->bio, iod->meta_sg) != 1)
^
drivers/nvme/host/pci.c:925:9: error: dereferencing pointer to incomplete type
if (req->cmd_type == REQ_TYPE_DRV_PRIV)
^
drivers/nvme/host/pci.c:927:14: error: dereferencing pointer to incomplete type
else if (req->cmd_flags & REQ_DISCARD)
^
drivers/nvme/host/pci.c:929:14: error: dereferencing pointer to incomplete type
else if (req->cmd_flags & REQ_FLUSH)
^
drivers/nvme/host/pci.c:930:35: error: dereferencing pointer to incomplete type
nvme_submit_flush(nvmeq, ns, req->tag);
^
drivers/nvme/host/pci.c: In function ‘__nvme_submit_sync_cmd’:
drivers/nvme/host/pci.c:1023:5: error: dereferencing pointer to incomplete type
req->cmd_type = REQ_TYPE_DRV_PRIV;
^
drivers/nvme/host/pci.c:1023:18: error: ‘REQ_TYPE_DRV_PRIV’ undeclared
(first use in this function)
req->cmd_type = REQ_TYPE_DRV_PRIV;
^
drivers/nvme/host/pci.c:1024:5: error: dereferencing pointer to incomplete type
req->cmd_flags |= REQ_FAILFAST_DRIVER;
^
drivers/nvme/host/pci.c:1025:5: error: dereferencing pointer to incomplete type
req->__data_len = 0;
^
drivers/nvme/host/pci.c:1026:5: error: dereferencing pointer to incomplete type
req->__sector = (sector_t) -1;
^
drivers/nvme/host/pci.c:1027:5: error: dereferencing pointer to incomplete type
req->bio = req->biotail = NULL;
^
drivers/nvme/host/pci.c:1027:16: error: dereferencing pointer to incomplete type
req->bio = req->biotail = NULL;
^
drivers/nvme/host/pci.c:1029:5: error: dereferencing pointer to incomplete type
req->timeout = timeout ? timeout : ADMIN_TIMEOUT;
^
drivers/nvme/host/pci.c:1031:5: error: dereferencing pointer to incomplete type
req->cmd = (unsigned char *)cmd;
^
drivers/nvme/host/pci.c:1032:5: error: dereferencing pointer to incomplete type
req->cmd_len = sizeof(struct nvme_command);
^
drivers/nvme/host/pci.c:1033:5: error: dereferencing pointer to incomplete type
req->special = (void *)0;
^
drivers/nvme/host/pci.c:1036:3: error: implicit declaration of
function ‘blk_rq_map_kern’ [-Werror=implicit-function-declaration]
ret = blk_rq_map_kern(q, req, buffer, bufflen, __GFP_RECLAIM);
^
drivers/nvme/host/pci.c:1040:3: error: implicit declaration of
function ‘blk_rq_map_user’ [-Werror=implicit-function-declaration]
ret = blk_rq_map_user(q, req, NULL, ubuffer, bufflen, __GFP_RECLAIM);
^
drivers/nvme/host/pci.c:1043:12: error: dereferencing pointer to incomplete type
bio = req->bio;
^
drivers/nvme/host/pci.c:1046:2: error: implicit declaration of
function ‘blk_execute_rq’ [-Werror=implicit-function-declaration]
blk_execute_rq(req->q, NULL, req, 0);
^
drivers/nvme/host/pci.c:1046:20: error: dereferencing pointer to incomplete type
blk_execute_rq(req->q, NULL, req, 0);
^
drivers/nvme/host/pci.c:1048:3: error: implicit declaration of
function ‘blk_rq_unmap_user’ [-Werror=implicit-function-declaration]
blk_rq_unmap_user(bio);
^
drivers/nvme/host/pci.c:1050:32: error: dereferencing pointer to incomplete type
*result = (u32)(uintptr_t)req->special;
^
drivers/nvme/host/pci.c:1051:11: error: dereferencing pointer to incomplete type
ret = req->errors;
^
drivers/nvme/host/pci.c: In function ‘nvme_submit_async_admin_req’:
drivers/nvme/host/pci.c:1074:5: error: dereferencing pointer to incomplete type
req->cmd_flags |= REQ_NO_TIMEOUT;
^
drivers/nvme/host/pci.c:1080:27: error: dereferencing pointer to incomplete type
c.common.command_id = req->tag;
^
drivers/nvme/host/pci.c: In function ‘nvme_submit_admin_async_cmd’:
drivers/nvme/host/pci.c:1099:5: error: dereferencing pointer to incomplete type
req->timeout = timeout;
^
drivers/nvme/host/pci.c:1105:30: error: dereferencing pointer to incomplete type
cmd->common.command_id = req->tag;
^
drivers/nvme/host/pci.c: In function ‘nvme_abort_req’:
drivers/nvme/host/pci.c:1287:9: error: dereferencing pointer to incomplete type
req->tag, nvmeq->qid);
^
drivers/nvme/host/pci.c:1306:21: error: dereferencing pointer to incomplete type
cmd.abort.cid = req->tag;
^
drivers/nvme/host/pci.c:1308:34: error: dereferencing pointer to incomplete type
cmd.abort.command_id = abort_req->tag;
^
drivers/nvme/host/pci.c:1313:59: error: dereferencing pointer to incomplete type
dev_warn(nvmeq->q_dmadev, "Aborting I/O %d QID %d\n", req->tag,
^
drivers/nvme/host/pci.c: In function ‘nvme_cancel_queue_ios’:
drivers/nvme/host/pci.c:1334:2: error: implicit declaration of
function ‘blk_queue_dying’ [-Werror=implicit-function-declaration]
if (blk_queue_dying(req->q))
^
drivers/nvme/host/pci.c:1334:25: error: dereferencing pointer to incomplete type
if (blk_queue_dying(req->q))
^
drivers/nvme/host/pci.c:1341:10: error: dereferencing pointer to incomplete type
req->tag, nvmeq->qid);
^
drivers/nvme/host/pci.c: At top level:
drivers/nvme/host/pci.c:1346:33: error: return type is an incomplete type
static enum blk_eh_timer_return nvme_timeout(struct request *req,
bool reserved)
^
drivers/nvme/host/pci.c: In function ‘nvme_timeout’:
drivers/nvme/host/pci.c:1351:58: error: dereferencing pointer to incomplete type
dev_warn(nvmeq->q_dmadev, "Timeout I/O %d QID %d\n", req->tag,
^
drivers/nvme/host/pci.c:1362:9: error: ‘BLK_EH_RESET_TIMER’ undeclared
(first use in this function)
return BLK_EH_RESET_TIMER;
^
drivers/nvme/host/pci.c:1362:2: warning: ‘return’ with a value, in
function returning void
return BLK_EH_RESET_TIMER;
^
drivers/nvme/host/pci.c: At top level:
drivers/nvme/host/pci.c:1656:2: warning: initialization from
incompatible pointer type
.timeout = nvme_timeout,
^
drivers/nvme/host/pci.c:1656:2: warning: (near initialization for
‘nvme_mq_admin_ops.timeout’)
drivers/nvme/host/pci.c:1664:2: warning: initialization from
incompatible pointer type
.timeout = nvme_timeout,
^
drivers/nvme/host/pci.c:1664:2: warning: (near initialization for
‘nvme_mq_ops.timeout’)
drivers/nvme/host/pci.c: In function ‘nvme_dev_remove_admin’:
drivers/nvme/host/pci.c:1670:3: error: implicit declaration of
function ‘blk_cleanup_queue’ [-Werror=implicit-function-declaration]
blk_cleanup_queue(dev->admin_q);
^
drivers/nvme/host/pci.c: In function ‘nvme_alloc_admin_tags’:
drivers/nvme/host/pci.c:1695:3: error: implicit declaration of
function ‘blk_get_queue’ [-Werror=implicit-function-declaration]
if (!blk_get_queue(dev->admin_q)) {
^
drivers/nvme/host/pci.c: In function ‘nvme_ioctl’:
drivers/nvme/host/pci.c:1909:36: error: dereferencing pointer to incomplete type
struct nvme_ns *ns = bdev->bd_disk->private_data;
^
drivers/nvme/host/pci.c: In function ‘nvme_free_ns’:
drivers/nvme/host/pci.c:1950:10: error: dereferencing pointer to incomplete type
ns->disk->private_data = NULL;
^
drivers/nvme/host/pci.c:1954:2: error: implicit declaration of
function ‘put_disk’ [-Werror=implicit-function-declaration]
put_disk(ns->disk);
^
drivers/nvme/host/pci.c: In function ‘nvme_open’:
drivers/nvme/host/pci.c:1964:20: error: dereferencing pointer to incomplete type
ns = bdev->bd_disk->private_data;
^
drivers/nvme/host/pci.c: In function ‘nvme_release’:
drivers/nvme/host/pci.c:1976:27: error: dereferencing pointer to incomplete type
struct nvme_ns *ns = disk->private_data;
^
drivers/nvme/host/pci.c: In function ‘nvme_getgeo’:
drivers/nvme/host/pci.c:1985:2: error: implicit declaration of
function ‘get_capacity’ [-Werror=implicit-function-declaration]
geo->cylinders = get_capacity(bd->bd_disk) >> 11;
^
drivers/nvme/host/pci.c: In function ‘nvme_config_discard’:
drivers/nvme/host/pci.c:1991:2: error: implicit declaration of
function ‘queue_logical_block_size’
[-Werror=implicit-function-declaration]
u32 logical_block_size = queue_logical_block_size(ns->queue);
^
drivers/nvme/host/pci.c:1992:11: error: dereferencing pointer to incomplete type
ns->queue->limits.discard_zeroes_data = 0;
^
drivers/nvme/host/pci.c:1993:11: error: dereferencing pointer to incomplete type
ns->queue->limits.discard_alignment = logical_block_size;
^
drivers/nvme/host/pci.c:1994:11: error: dereferencing pointer to incomplete type
ns->queue->limits.discard_granularity = logical_block_size;
^
drivers/nvme/host/pci.c:1995:2: error: implicit declaration of
function ‘blk_queue_max_discard_sectors’
[-Werror=implicit-function-declaration]
blk_queue_max_discard_sectors(ns->queue, 0xffffffff);
^
drivers/nvme/host/pci.c:1996:2: error: implicit declaration of
function ‘queue_flag_set_unlocked’
[-Werror=implicit-function-declaration]
queue_flag_set_unlocked(QUEUE_FLAG_DISCARD, ns->queue);
^
drivers/nvme/host/pci.c:1996:26: error: ‘QUEUE_FLAG_DISCARD’
undeclared (first use in this function)
queue_flag_set_unlocked(QUEUE_FLAG_DISCARD, ns->queue);
^
drivers/nvme/host/pci.c: In function ‘nvme_revalidate_disk’:
drivers/nvme/host/pci.c:2001:27: error: dereferencing pointer to incomplete type
struct nvme_ns *ns = disk->private_data;
^
drivers/nvme/host/pci.c:2036:2: error: implicit declaration of
function ‘blk_get_integrity’ [-Werror=implicit-function-declaration]
if (blk_get_integrity(disk) && (ns->pi_type != pi_type ||
^
drivers/nvme/host/pci.c:2038:40: error: dereferencing pointer to incomplete type
bs != queue_logical_block_size(disk->queue) ||
^
drivers/nvme/host/pci.c:2040:3: error: implicit declaration of
function ‘blk_integrity_unregister’
[-Werror=implicit-function-declaration]
blk_integrity_unregister(disk);
^
drivers/nvme/host/pci.c:2043:2: error: implicit declaration of
function ‘blk_queue_logical_block_size’
[-Werror=implicit-function-declaration]
blk_queue_logical_block_size(ns->queue, bs);
^
drivers/nvme/host/pci.c:2045:49: error: dereferencing pointer to incomplete type
if (ns->ms && !blk_get_integrity(disk) && (disk->flags & GENHD_FL_UP) &&
^
drivers/nvme/host/pci.c:2045:59: error: ‘GENHD_FL_UP’ undeclared
(first use in this function)
if (ns->ms && !blk_get_integrity(disk) && (disk->flags & GENHD_FL_UP) &&
^
drivers/nvme/host/pci.c:2050:3: error: implicit declaration of
function ‘set_capacity’ [-Werror=implicit-function-declaration]
set_capacity(disk, 0);
^
drivers/nvme/host/pci.c: At top level:
drivers/nvme/host/pci.c:2061:21: error: variable ‘nvme_fops’ has
initializer but incomplete type
static const struct block_device_operations nvme_fops = {
^
drivers/nvme/host/pci.c:2062:2: error: unknown field ‘owner’ specified
in initializer
.owner = THIS_MODULE,
^
In file included from include/linux/linkage.h:6:0,
from ./arch/x86/include/asm/cache.h:4,
from ./arch/x86/include/asm/segment.h:155,
from ./arch/x86/include/asm/ptrace.h:4,
from ./arch/x86/include/asm/alternative.h:8,
from ./arch/x86/include/asm/bitops.h:16,
from include/linux/bitops.h:36,
from drivers/nvme/host/pci.c:15:
include/linux/export.h:36:30: warning: excess elements in struct initializer
#define THIS_MODULE ((struct module *)0)
^
drivers/nvme/host/pci.c:2062:12: note: in expansion of macro ‘THIS_MODULE’
.owner = THIS_MODULE,
^
include/linux/export.h:36:30: warning: (near initialization for ‘nvme_fops’)
#define THIS_MODULE ((struct module *)0)
^
drivers/nvme/host/pci.c:2062:12: note: in expansion of macro ‘THIS_MODULE’
.owner = THIS_MODULE,
^
drivers/nvme/host/pci.c:2063:2: error: unknown field ‘ioctl’ specified
in initializer
.ioctl = nvme_ioctl,
^
drivers/nvme/host/pci.c:2063:2: warning: excess elements in struct initializer
drivers/nvme/host/pci.c:2063:2: warning: (near initialization for ‘nvme_fops’)
drivers/nvme/host/pci.c:2064:2: error: unknown field ‘compat_ioctl’
specified in initializer
.compat_ioctl = nvme_compat_ioctl,
^
drivers/nvme/host/pci.c:2064:2: warning: excess elements in struct initializer
drivers/nvme/host/pci.c:2064:2: warning: (near initialization for ‘nvme_fops’)
drivers/nvme/host/pci.c:2065:2: error: unknown field ‘open’ specified
in initializer
.open = nvme_open,
^
drivers/nvme/host/pci.c:2065:2: warning: excess elements in struct initializer
drivers/nvme/host/pci.c:2065:2: warning: (near initialization for ‘nvme_fops’)
drivers/nvme/host/pci.c:2066:2: error: unknown field ‘release’
specified in initializer
.release = nvme_release,
^
drivers/nvme/host/pci.c:2066:2: warning: excess elements in struct initializer
drivers/nvme/host/pci.c:2066:2: warning: (near initialization for ‘nvme_fops’)
drivers/nvme/host/pci.c:2067:2: error: unknown field ‘getgeo’
specified in initializer
.getgeo = nvme_getgeo,
^
drivers/nvme/host/pci.c:2067:2: warning: excess elements in struct initializer
drivers/nvme/host/pci.c:2067:2: warning: (near initialization for ‘nvme_fops’)
drivers/nvme/host/pci.c:2068:2: error: unknown field ‘revalidate_disk’
specified in initializer
.revalidate_disk= nvme_revalidate_disk,
^
drivers/nvme/host/pci.c:2068:2: warning: excess elements in struct initializer
drivers/nvme/host/pci.c:2068:2: warning: (near initialization for ‘nvme_fops’)
drivers/nvme/host/pci.c: In function ‘nvme_alloc_ns’:
drivers/nvme/host/pci.c:2125:26: error: ‘QUEUE_FLAG_NOMERGES’
undeclared (first use in this function)
queue_flag_set_unlocked(QUEUE_FLAG_NOMERGES, ns->queue);
^
drivers/nvme/host/pci.c:2126:26: error: ‘QUEUE_FLAG_NONROT’ undeclared
(first use in this function)
queue_flag_set_unlocked(QUEUE_FLAG_NONROT, ns->queue);
^
drivers/nvme/host/pci.c:2128:11: error: dereferencing pointer to incomplete type
ns->queue->queuedata = ns;
^
drivers/nvme/host/pci.c:2130:2: error: implicit declaration of
function ‘alloc_disk_node’ [-Werror=implicit-function-declaration]
disk = alloc_disk_node(0, node);
^
drivers/nvme/host/pci.c:2130:7: warning: assignment makes pointer from
integer without a cast
disk = alloc_disk_node(0, node);
^
drivers/nvme/host/pci.c:2142:3: error: implicit declaration of
function ‘blk_queue_max_hw_sectors’
[-Werror=implicit-function-declaration]
blk_queue_max_hw_sectors(ns->queue, dev->max_hw_sectors);
^
drivers/nvme/host/pci.c:2143:3: error: implicit declaration of
function ‘blk_queue_max_segments’
[-Werror=implicit-function-declaration]
blk_queue_max_segments(ns->queue,
^
drivers/nvme/host/pci.c:2147:3: error: implicit declaration of
function ‘blk_queue_chunk_sectors’
[-Werror=implicit-function-declaration]
blk_queue_chunk_sectors(ns->queue, dev->stripe_size >> 9);
^
drivers/nvme/host/pci.c:2149:3: error: implicit declaration of
function ‘blk_queue_flush’ [-Werror=implicit-function-declaration]
blk_queue_flush(ns->queue, REQ_FLUSH | REQ_FUA);
^
drivers/nvme/host/pci.c:2150:2: error: implicit declaration of
function ‘blk_queue_virt_boundary’
[-Werror=implicit-function-declaration]
blk_queue_virt_boundary(ns->queue, dev->page_size - 1);
^
drivers/nvme/host/pci.c:2152:6: error: dereferencing pointer to incomplete type
disk->major = nvme_major;
^
drivers/nvme/host/pci.c:2153:6: error: dereferencing pointer to incomplete type
disk->first_minor = 0;
^
drivers/nvme/host/pci.c:2154:6: error: dereferencing pointer to incomplete type
disk->fops = &nvme_fops;
^
drivers/nvme/host/pci.c:2155:6: error: dereferencing pointer to incomplete type
disk->private_data = ns;
^
drivers/nvme/host/pci.c:2156:6: error: dereferencing pointer to incomplete type
disk->queue = ns->queue;
^
drivers/nvme/host/pci.c:2157:6: error: dereferencing pointer to incomplete type
disk->driverfs_dev = dev->device;
^
drivers/nvme/host/pci.c:2158:6: error: dereferencing pointer to incomplete type
disk->flags = GENHD_FL_EXT_DEVT;
^
drivers/nvme/host/pci.c:2158:16: error: ‘GENHD_FL_EXT_DEVT’ undeclared
(first use in this function)
disk->flags = GENHD_FL_EXT_DEVT;
^
drivers/nvme/host/pci.c:2159:14: error: dereferencing pointer to incomplete type
sprintf(disk->disk_name, "nvme%dn%d", dev->instance, nsid);
^
drivers/nvme/host/pci.c:2172:2: error: implicit declaration of
function ‘add_disk’ [-Werror=implicit-function-declaration]
add_disk(ns->disk);
^
drivers/nvme/host/pci.c:2174:10: error: implicit declaration of
function ‘bdget_disk’ [-Werror=implicit-function-declaration]
struct block_device *bd = bdget_disk(ns->disk, 0);
^
drivers/nvme/host/pci.c:2174:29: warning: initialization makes pointer
from integer without a cast
struct block_device *bd = bdget_disk(ns->disk, 0);
^
drivers/nvme/host/pci.c:2177:3: error: implicit declaration of
function ‘blkdev_get’ [-Werror=implicit-function-declaration]
if (blkdev_get(bd, FMODE_READ, NULL)) {
^
drivers/nvme/host/pci.c:2178:4: error: implicit declaration of
function ‘bdput’ [-Werror=implicit-function-declaration]
bdput(bd);
^
drivers/nvme/host/pci.c:2181:3: error: implicit declaration of
function ‘blkdev_reread_part’ [-Werror=implicit-function-declaration]
blkdev_reread_part(bd);
^
drivers/nvme/host/pci.c:2182:3: error: implicit declaration of
function ‘blkdev_put’ [-Werror=implicit-function-declaration]
blkdev_put(bd, FMODE_READ);
^
drivers/nvme/host/pci.c: In function ‘nvme_ns_remove’:
drivers/nvme/host/pci.c:2408:3: error: implicit declaration of
function ‘blk_set_queue_dying’ [-Werror=implicit-function-declaration]
blk_set_queue_dying(ns->queue);
^
drivers/nvme/host/pci.c:2409:14: error: dereferencing pointer to incomplete type
if (ns->disk->flags & GENHD_FL_UP) {
^
drivers/nvme/host/pci.c:2409:24: error: ‘GENHD_FL_UP’ undeclared
(first use in this function)
if (ns->disk->flags & GENHD_FL_UP) {
^
drivers/nvme/host/pci.c:2412:3: error: implicit declaration of
function ‘del_gendisk’ [-Werror=implicit-function-declaration]
del_gendisk(ns->disk);
^
drivers/nvme/host/pci.c: In function ‘nvme_scan_namespaces’:
drivers/nvme/host/pci.c:2430:4: error: implicit declaration of
function ‘revalidate_disk’ [-Werror=implicit-function-declaration]
if (revalidate_disk(ns->disk))
^
drivers/nvme/host/pci.c: In function ‘nvme_freeze_queues’:
drivers/nvme/host/pci.c:2777:26: error: dereferencing pointer to incomplete type
spin_lock_irq(ns->queue->queue_lock);
^
drivers/nvme/host/pci.c:2778:3: error: implicit declaration of
function ‘queue_flag_set’ [-Werror=implicit-function-declaration]
queue_flag_set(QUEUE_FLAG_STOPPED, ns->queue);
^
drivers/nvme/host/pci.c:2778:18: error: ‘QUEUE_FLAG_STOPPED’
undeclared (first use in this function)
queue_flag_set(QUEUE_FLAG_STOPPED, ns->queue);
^
drivers/nvme/host/pci.c:2779:28: error: dereferencing pointer to incomplete type
spin_unlock_irq(ns->queue->queue_lock);
^
drivers/nvme/host/pci.c: In function ‘nvme_unfreeze_queues’:
drivers/nvme/host/pci.c:2791:3: error: implicit declaration of
function ‘queue_flag_clear_unlocked’
[-Werror=implicit-function-declaration]
queue_flag_clear_unlocked(QUEUE_FLAG_STOPPED, ns->queue);
^
drivers/nvme/host/pci.c:2791:29: error: ‘QUEUE_FLAG_STOPPED’
undeclared (first use in this function)
queue_flag_clear_unlocked(QUEUE_FLAG_STOPPED, ns->queue);
^
drivers/nvme/host/pci.c: In function ‘nvme_free_dev’:
drivers/nvme/host/pci.c:2895:3: error: implicit declaration of
function ‘blk_put_queue’ [-Werror=implicit-function-declaration]
blk_put_queue(dev->admin_q);
^
drivers/nvme/host/pci.c: In function ‘nvme_init’:
drivers/nvme/host/pci.c:3304:2: error: implicit declaration of
function ‘register_blkdev’ [-Werror=implicit-function-declaration]
result = register_blkdev(nvme_major, "nvme");
^
drivers/nvme/host/pci.c:3333:2: error: implicit declaration of
function ‘unregister_blkdev’ [-Werror=implicit-function-declaration]
unregister_blkdev(nvme_major, "nvme");
^
CC drivers/net/can/at91_can.o
LD [M] drivers/media/dvb-frontends/stb0899.o
In file included from drivers/nvme/host/pci.c:17:0:
include/linux/blk-mq.h: In function ‘blk_mq_rq_from_pdu’:
include/linux/blk-mq.h:239:1: warning: control reaches end of non-void
function [-Wreturn-type]
}
^
LD [M] drivers/media/dvb-frontends/drxd.o
drivers/nvme/host/pci.c: In function ‘nvme_alloc_iod’:
drivers/nvme/host/pci.c:462:1: warning: control reaches end of
non-void function [-Wreturn-type]
}
^
--
Jim
View attachment "randconfig-1444640655.txt" of type "text/plain" (93098 bytes)
Powered by blists - more mailing lists