[lkml]   [2020]   [May]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH -next] block: add another struct gendisk to <linux/blkdev.h>
On 5/28/20 11:21 AM, Randy Dunlap wrote:
> From: Randy Dunlap <>
> Add a forward declaration for struct gendisk when CONFIG_BLOCK is
> not set/enabled to prevent multiple (30 - 50) build warnings.
> In file included from ../kernel/sched/sched.h:39:0,
> from ../kernel/sched/core.c:9:
> ../include/linux/blkdev.h:1895:41: warning: 'struct gendisk' declared inside parameter list will not be visible outside of this definition or declaration
> unsigned long disk_start_io_acct(struct gendisk *disk, unsigned int sectors,

Should be fixed already:

Jens Axboe

 \ /
  Last update: 2020-05-28 21:46    [W:0.049 / U:2.844 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site