https://github.com/torvalds/linux
Revision 6607aa6f6b68fc9b5955755f1b1be125cf2a9d03 authored by Guo Ren on 27 February 2021, 14:00:35 UTC, committed by Guo Ren on 27 February 2021, 14:04:14 UTC
: error: C++ style comments are not allowed in ISO C90
 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd.
 ^
error: (this will be reported only once per input file)

Signed-off-by: Guo Ren <guoren@linux.alibaba.com>
1 parent 5d3f410
Raw File
Tip revision: 6607aa6f6b68fc9b5955755f1b1be125cf2a9d03 authored by Guo Ren on 27 February 2021, 14:00:35 UTC
csky: Fixup compile error
Tip revision: 6607aa6
blk-mq-debugfs-zoned.c
// SPDX-License-Identifier: GPL-2.0
/*
 * Copyright (C) 2017 Western Digital Corporation or its affiliates.
 */

#include <linux/blkdev.h>
#include "blk-mq-debugfs.h"

int queue_zone_wlock_show(void *data, struct seq_file *m)
{
	struct request_queue *q = data;
	unsigned int i;

	if (!q->seq_zones_wlock)
		return 0;

	for (i = 0; i < q->nr_zones; i++)
		if (test_bit(i, q->seq_zones_wlock))
			seq_printf(m, "%u\n", i);

	return 0;
}
back to top