https://github.com/torvalds/linux
Revision 2d75989d2d92b71f3f34f2704ac109897a87319f authored by Vignesh Raghavendra on 19 July 2019, 08:29:12 UTC, committed by Miquel Raynal on 03 August 2019, 00:11:41 UTC
On x86_64, when CONFIG_OF is not disabled:

WARNING: unmet direct dependencies detected for MUX_MMIO
  Depends on [n]: MULTIPLEXER [=y] && (OF [=n] || COMPILE_TEST [=n])
  Selected by [y]:
  - HBMC_AM654 [=y] && MTD [=y] && MTD_HYPERBUS [=y]

due to
config HBMC_AM654
	tristate "HyperBus controller driver for AM65x SoC"
	select MULTIPLEXER
	select MUX_MMIO

Fix this by making HBMC_AM654 imply MUX_MMIO instead of select so
that dependencies are taken care of. MUX_MMIO is optional for
functioning of driver.

Fixes: b07079f1642c ("mtd: hyperbus: Add driver for TI's HyperBus memory controller")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Vignesh Raghavendra <vigneshr@ti.com>
Acked-by: Randy Dunlap <rdunlap@infradead.org> # build-tested
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
1 parent 8493b2a
Raw File
Tip revision: 2d75989d2d92b71f3f34f2704ac109897a87319f authored by Vignesh Raghavendra on 19 July 2019, 08:29:12 UTC
mtd: hyperbus: Kconfig: Fix HBMC_AM654 dependencies
Tip revision: 2d75989
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