06 Nov, 2020
1 commit
-
When DMA_RALINK is enabled and DMADEVICES is disabled, it results in the
following Kbuild warnings:WARNING: unmet direct dependencies detected for DMA_ENGINE
Depends on [n]: DMADEVICES [=n]
Selected by [y]:
- DMA_RALINK [=y] && STAGING [=y] && RALINK [=y] && !SOC_RT288X [=n]WARNING: unmet direct dependencies detected for DMA_VIRTUAL_CHANNELS
Depends on [n]: DMADEVICES [=n]
Selected by [y]:
- DMA_RALINK [=y] && STAGING [=y] && RALINK [=y] && !SOC_RT288X [=n]The reason is that DMA_RALINK selects DMA_ENGINE and DMA_VIRTUAL_CHANNELS
without depending on or selecting DMADEVICES while DMA_ENGINE and
DMA_VIRTUAL_CHANNELS are subordinate to DMADEVICES. This can also fail
building the kernel as demonstrated in a bug report.Honor the kconfig dependency to remove unmet direct dependency warnings
and avoid any potential build failures.Link: https://bugzilla.kernel.org/show_bug.cgi?id=210055
Signed-off-by: Necip Fazil Yildiran
Link: https://lore.kernel.org/r/20201104181522.43567-1-fazilyildiran@gmail.com
Signed-off-by: Greg Kroah-Hartman
16 Sep, 2020
1 commit
-
In preparation for unconditionally passing the
struct tasklet_struct pointer to all tasklet
callbacks, switch to using the new tasklet_setup()
and from_tasklet() to pass the tasklet pointer explicitly.Signed-off-by: Romain Perier
Signed-off-by: Allen Pais
Link: https://lore.kernel.org/r/20200916062341.58322-1-allen.lkml@gmail.com
Signed-off-by: Greg Kroah-Hartman
25 Oct, 2019
1 commit
-
Use devm_platform_ioremap_resource() to simplify the code a bit.
This is detected by coccinelle.Signed-off-by: YueHaibing
Link: https://lore.kernel.org/r/20191016090305.23392-1-yuehaibing@huawei.com
Signed-off-by: Greg Kroah-Hartman
31 Jul, 2019
1 commit
-
We don't need dev_err() messages when platform_get_irq() fails now that
platform_get_irq() prints an error message itself when something goes
wrong. Let's remove these prints with a simple semantic patch.//
@@
expression ret;
struct platform_device *E;
@@ret =
(
platform_get_irq(E, ...)
|
platform_get_irq_byname(E, ...)
);if ( \( ret < 0 \| ret
While we're here, remove braces on if statements that only have one
statement (manually).Signed-off-by: Stephen Boyd
Link: https://lore.kernel.org/r/20190730181557.90391-43-swboyd@chromium.org
Signed-off-by: Greg Kroah-Hartman
09 Jun, 2019
1 commit
-
Fixed a coding style issue.
Signed-off-by: Harold André
Signed-off-by: Greg Kroah-Hartman
16 Apr, 2019
1 commit
-
One of the more common cases of allocation size calculations is finding
the size of a structure that has a zero-sized array at the end, along
with memory for some number of elements for that array. For example:struct foo {
int stuff;
struct boo entry[];
};size = sizeof(struct foo) + count * sizeof(struct boo);
instance = kzalloc(size, GFP_KERNEL)Instead of leaving these open-coded and prone to type mistakes, we can
now use the new struct_size() helper:size = struct_size(instance, entry, count);
or
instance = kzalloc(struct_size(instance, entry, count), GFP_KERNEL)
Based on the above, replace gdma_dma_alloc_desc() with kzalloc() and
use the new struct_size() helper.This code was detected with the help of Coccinelle.
Signed-off-by: Gustavo A. R. Silva
Signed-off-by: Greg Kroah-Hartman
03 Apr, 2019
4 commits
-
The ralink-gdma.c driver did not have a SPDX identifier on it, so fix
that up. At the same time, remove the "free form" text that specified
the license of the file, as that is impossible for any tool to properly
parse.Cc: Lars-Peter Clausen
Signed-off-by: Greg Kroah-Hartman -
There are a few remaining drivers/staging/*/Makefile files that do not
have SPDX identifiers in them. Add the correct GPL-2.0 identifier to
them to make scanning tools happy.Reviewed-by: Mukesh Ojha
Signed-off-by: Greg Kroah-Hartman -
There are a few remaining drivers/staging/*/Kconfig files that do not
have SPDX identifiers in them. Add the correct GPL-2.0 identifier to
them to make scanning tools happy.Signed-off-by: Greg Kroah-Hartman
-
Remove print statement after failure of devm_kzalloc. Issue found with
Coccinelle.Signed-off-by: Nishka Dasgupta
Signed-off-by: Greg Kroah-Hartman
26 Mar, 2019
3 commits
-
Fix checkpatch issue:
line over 80 charactersSigned-off-by: Dominik Adamski
Signed-off-by: Greg Kroah-Hartman -
This fixes the checkpatch.pl check: "No space is necessary after the
cast".Signed-off-by: Bharath Vedartham
Signed-off-by: Greg Kroah-Hartman -
This fixes the checkpatch.pl warning: "Prefer unsigned to unsigned int"
Signed-off-by: Bharath Vedartham
Signed-off-by: Greg Kroah-Hartman
18 Mar, 2019
3 commits
-
Get rid of unnecessary line continuations in
boolean expressions, warning detected by checkpatchSigned-off-by: Daniela Mormocea
Signed-off-by: Greg Kroah-Hartman -
Replace all uintr32_t with u32 to avoid getting
checkpatch warningSigned-off-by: Daniela Mormocea
Signed-off-by: Greg Kroah-Hartman -
Fix split string in multiple lines
Signed-off-by: Daniela Mormocea
Signed-off-by: Greg Kroah-Hartman
15 Jan, 2019
1 commit
-
This is in preparation to allow it and the mt7621-dma drivers to be
built separately. They are completely independent pieces of software,
and the Kconfig specifies very different requirements.Cc: linux-kernel@vger.kernel.org
Cc: devel@driverdev.osuosl.org
Cc: Neil Brown
Signed-off-by: George Hilliard
Signed-off-by: Greg Kroah-Hartman