lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1284113586-25808-1-git-send-email-linus.walleij@stericsson.com>
Date:	Fri, 10 Sep 2010 12:13:06 +0200
From:	Linus Walleij <linus.walleij@...ricsson.com>
To:	Dan Williams <dan.j.williams@...el.com>,
	linux-kernel@...r.kernel.org
Cc:	Linus Walleij <linus.walleij@...ricsson.com>
Subject: [PATCH] DMAENGINE: make sure we can always define platform data

If you try to compile platform data structs for the PL08X without
it being compiled in, symbol resoltion will fail on the filter
function when linking the kernel, so provide a dummy function.

Signed-off-by: Linus Walleij <linus.walleij@...ricsson.com>
---
Dan, this goes on top of the other stuff queued on top of the
PL08X driver merged for next. Feel free to squash this too if
you prefer.
---
 include/linux/amba/pl08x.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/include/linux/amba/pl08x.h b/include/linux/amba/pl08x.h
index 8435f4a..daee6d0 100644
--- a/include/linux/amba/pl08x.h
+++ b/include/linux/amba/pl08x.h
@@ -179,6 +179,13 @@ struct pl08x_platform_data {
 	void (*put_signal)(struct pl08x_dma_chan *);
 };
 
+#ifdef CONFIG_AMBA_PL08X
 bool pl08x_filter_id(struct dma_chan *chan, void *chan_id);
+#else
+static bool pl08x_filter_id(struct dma_chan *chan, void *chan_id)
+{
+	return false;
+}
+#endif
 
 #endif	/* AMBA_PL08X_H */
-- 
1.7.2.2

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ