#include <linux/uaccess.h>
#include <linux/slab.h>
#include <linux/err.h>
+#include <wrapper/compiler_attributes.h>
#include <wrapper/vmalloc.h> /* for wrapper_vmalloc_sync_mappings() */
#include <wrapper/ringbuffer/vfs.h>
#include <wrapper/ringbuffer/backend.h>
*/
return -ENOSYS;
}
- case RING_BUFFER_FLUSH_EMPTY: /* Fall-through. */
+ case RING_BUFFER_FLUSH_EMPTY:
+ lttng_fallthrough;
case RING_BUFFER_FLUSH:
{
struct lttng_metadata_stream *stream = filp->private_data;
*/
return -ENOSYS;
}
- case RING_BUFFER_FLUSH_EMPTY: /* Fall-through. */
+ case RING_BUFFER_FLUSH_EMPTY:
+ lttng_fallthrough;
case RING_BUFFER_FLUSH:
{
struct lttng_metadata_stream *stream = filp->private_data;
}
break;
- case LTTNG_KERNEL_TRACEPOINT: /* Fallthrough */
- case LTTNG_KERNEL_KPROBE: /* Fallthrough */
- case LTTNG_KERNEL_KRETPROBE: /* Fallthrough */
- case LTTNG_KERNEL_NOOP: /* Fallthrough */
+ case LTTNG_KERNEL_TRACEPOINT:
+ lttng_fallthrough;
+ case LTTNG_KERNEL_KPROBE:
+ lttng_fallthrough;
+ case LTTNG_KERNEL_KRETPROBE:
+ lttng_fallthrough;
+ case LTTNG_KERNEL_NOOP:
+ lttng_fallthrough;
case LTTNG_KERNEL_UPROBE:
break;
- case LTTNG_KERNEL_FUNCTION: /* Fallthrough */
+ case LTTNG_KERNEL_FUNCTION:
+ lttng_fallthrough;
default:
return -EINVAL;
}