"Fossies" - the Fresh Open Source Software Archive

Member "drbd-9.0.21-1/drbd/drbd-kernel-compat/tests/drbd_release_returns_void.c" (11 Nov 2019, 319 Bytes) of package /linux/misc/drbd-9.0.21-1.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 // #include <linux/kernel.h>
    2 #include <linux/blkdev.h>
    3 
    4 #ifndef __same_type
    5 # define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b))
    6 #endif
    7 
    8 void dummy(void)
    9 {
   10     struct block_device_operations ops;
   11     void (*release) (struct gendisk *, fmode_t);
   12     BUILD_BUG_ON(!(__same_type(ops.release, release)));
   13 }