From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kamalesh Babulal Subject: [BUILD-FAILURE] next-20081230 - S390 - tape drive fails to build with !CONFIG_BLOCK Date: Wed, 31 Dec 2008 16:51:32 +0530 Message-ID: <20081231112132.GA4268@linux.vnet.ibm.com> References: <20081231033039.f203b59c.sfr@canb.auug.org.au> Reply-To: Kamalesh Babulal Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Return-path: Received: from E23SMTP01.au.ibm.com ([202.81.18.162]:56352 "EHLO e23smtp01.au.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752832AbYLaL2A (ORCPT ); Wed, 31 Dec 2008 06:28:00 -0500 Content-Disposition: inline In-Reply-To: <20081231033039.f203b59c.sfr@canb.auug.org.au> Sender: linux-next-owner@vger.kernel.org List-ID: To: Stephen Rothwell Cc: linux-next@vger.kernel.org, LKML , linux-s390@vger.kernel.org, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com Hi, next-20081230 randconfig build fails on S390, with CONFIG_BLOCK=n CC drivers/s390/char/tape_block.o In file included from drivers/s390/char/tape_block.c:24: drivers/s390/char/tape.h:159: warning: 'struct request' declared inside parameter list drivers/s390/char/tape.h:159: warning: its scope is only this definition or declaration, which is probably not what you want drivers/s390/char/tape_block.c:53: error: variable 'tapeblock_fops' has initializer but incomplete type drivers/s390/char/tape_block.c:54: error: unknown field 'owner' specified in initializer drivers/s390/char/tape_block.c:54: warning: excess elements in struct initializer drivers/s390/char/tape_block.c:54: warning: (near initialization for 'tapeblock_fops') drivers/s390/char/tape_block.c:55: error: unknown field 'open' specified in initializer drivers/s390/char/tape_block.c:55: warning: excess elements in struct initializer drivers/s390/char/tape_block.c:55: warning: (near initialization for 'tapeblock_fops') drivers/s390/char/tape_block.c:56: error: unknown field 'release' specified in initializer drivers/s390/char/tape_block.c:56: warning: excess elements in struct initializer drivers/s390/char/tape_block.c:56: warning: (near initialization for 'tapeblock_fops') drivers/s390/char/tape_block.c:57: error: unknown field 'locked_ioctl' specified in initializer drivers/s390/char/tape_block.c:57: warning: excess elements in struct initializer drivers/s390/char/tape_block.c:57: warning: (near initialization for 'tapeblock_fops') drivers/s390/char/tape_block.c:58: error: unknown field 'media_changed' specified in initializer drivers/s390/char/tape_block.c:58: warning: excess elements in struct initializer drivers/s390/char/tape_block.c:58: warning: (near initialization for 'tapeblock_fops') drivers/s390/char/tape_block.c:59: error: unknown field 'revalidate_disk' specified in initializer drivers/s390/char/tape_block.c:59: warning: excess elements in struct initializer drivers/s390/char/tape_block.c:59: warning: (near initialization for 'tapeblock_fops') drivers/s390/char/tape_block.c:77: warning: 'struct request' declared inside parameter list drivers/s390/char/tape_block.c: In function 'tapeblock_end_request': drivers/s390/char/tape_block.c:79: error: implicit declaration of function 'blk_end_request' drivers/s390/char/tape_block.c:79: error: implicit declaration of function 'blk_rq_bytes' drivers/s390/char/tape_block.c: In function '__tapeblock_end_request': drivers/s390/char/tape_block.c:93: warning: passing argument 1 of 'tapeblock_end_request' from incompatible pointer type drivers/s390/char/tape_block.c:97: error: dereferencing pointer to incomplete type drivers/s390/char/tape_block.c:97: error: dereferencing pointer to incomplete type drivers/s390/char/tape_block.c:103: error: implicit declaration of function 'elv_next_request' drivers/s390/char/tape_block.c: At top level: drivers/s390/char/tape_block.c:111: warning: 'struct request' declared inside parameter list drivers/s390/char/tape_block.c: In function 'tapeblock_start_request': drivers/s390/char/tape_block.c:118: warning: passing argument 2 of 'device->discipline->bread' from incompatible pointer type drivers/s390/char/tape_block.c:121: warning: passing argument 1 of 'tapeblock_end_request' from incompatible pointer type drivers/s390/char/tape_block.c:134: warning: passing argument 1 of 'tapeblock_end_request' from incompatible pointer type drivers/s390/char/tape_block.c: In function 'tapeblock_requeue': drivers/s390/char/tape_block.c:171: error: implicit declaration of function 'blk_queue_plugged' drivers/s390/char/tape_block.c:175: warning: assignment makes pointer from integer without a cast drivers/s390/char/tape_block.c:176: error: implicit declaration of function 'rq_data_dir' drivers/s390/char/tape_block.c:178: error: implicit declaration of function 'blkdev_dequeue_request' drivers/s390/char/tape_block.c:180: warning: passing argument 1 of 'tapeblock_end_request' from incompatible pointer type drivers/s390/char/tape_block.c:187: warning: passing argument 2 of 'tapeblock_start_request' from incompatible pointer type drivers/s390/char/tape_block.c: In function 'tapeblock_request_fn': drivers/s390/char/tape_block.c:202: error: dereferencing pointer to incomplete type drivers/s390/char/tape_block.c: In function 'tapeblock_setup_device': drivers/s390/char/tape_block.c:223: error: implicit declaration of function 'blk_init_queue' drivers/s390/char/tape_block.c:226: warning: assignment makes pointer from integer without a cast drivers/s390/char/tape_block.c:230: error: implicit declaration of function 'elevator_exit' drivers/s390/char/tape_block.c:230: error: dereferencing pointer to incomplete type drivers/s390/char/tape_block.c:231: error: implicit declaration of function 'elevator_init' drivers/s390/char/tape_block.c:235: error: implicit declaration of function 'blk_queue_hardsect_size' drivers/s390/char/tape_block.c:236: error: implicit declaration of function 'blk_queue_max_sectors' drivers/s390/char/tape_block.c:237: error: implicit declaration of function 'blk_queue_max_phys_segments' drivers/s390/char/tape_block.c:238: error: implicit declaration of function 'blk_queue_max_hw_segments' drivers/s390/char/tape_block.c:239: error: implicit declaration of function 'blk_queue_max_segment_size' drivers/s390/char/tape_block.c:240: error: implicit declaration of function 'blk_queue_segment_boundary' drivers/s390/char/tape_block.c:242: error: implicit declaration of function 'alloc_disk' drivers/s390/char/tape_block.c:242: warning: assignment makes pointer from integer without a cast drivers/s390/char/tape_block.c:248: error: dereferencing pointer to incomplete type drivers/s390/char/tape_block.c:249: error: dereferencing pointer to incomplete type drivers/s390/char/tape_block.c:250: error: dereferencing pointer to incomplete type drivers/s390/char/tape_block.c:251: error: dereferencing pointer to incomplete type drivers/s390/char/tape_block.c:252: error: dereferencing pointer to incomplete type drivers/s390/char/tape_block.c:253: error: implicit declaration of function 'set_capacity' drivers/s390/char/tape_block.c:254: error: dereferencing pointer to incomplete type drivers/s390/char/tape_block.c:259: error: dereferencing pointer to incomplete type drivers/s390/char/tape_block.c:261: error: implicit declaration of function 'add_disk' drivers/s390/char/tape_block.c:269: error: implicit declaration of function 'blk_cleanup_queue' drivers/s390/char/tape_block.c: In function 'tapeblock_cleanup_device': drivers/s390/char/tape_block.c:287: error: implicit declaration of function 'del_gendisk' drivers/s390/char/tape_block.c:288: error: dereferencing pointer to incomplete type drivers/s390/char/tape_block.c:289: error: dereferencing pointer to incomplete type drivers/s390/char/tape_block.c:290: error: implicit declaration of function 'put_disk' drivers/s390/char/tape_block.c:294: error: dereferencing pointer to incomplete type drivers/s390/char/tape_block.c: In function 'tapeblock_revalidate_disk': drivers/s390/char/tape_block.c:311: error: dereferencing pointer to incomplete type drivers/s390/char/tape_block.c: In function 'tapeblock_medium_changed': drivers/s390/char/tape_block.c:358: error: dereferencing pointer to incomplete type drivers/s390/char/tape_block.c: In function 'tapeblock_open': drivers/s390/char/tape_block.c:375: error: dereferencing pointer to incomplete type drivers/s390/char/tape_block.c: In function 'tapeblock_release': drivers/s390/char/tape_block.c:416: error: dereferencing pointer to incomplete type drivers/s390/char/tape_block.c: In function 'tapeblock_ioctl': drivers/s390/char/tape_block.c:442: error: dereferencing pointer to incomplete type drivers/s390/char/tape_block.c: In function 'tapeblock_init': drivers/s390/char/tape_block.c:471: error: implicit declaration of function 'register_blkdev' drivers/s390/char/tape_block.c: In function 'tapeblock_exit': drivers/s390/char/tape_block.c:487: error: implicit declaration of function 'unregister_blkdev' make[2]: *** [drivers/s390/char/tape_block.o] Error 1 Adding the dependency of CONFIG_BLOCK to CONFIG_S390_TAPE_BLOCK Signed-off-by: Kamalesh Babulal