Changes the code in order to make it looks more like its a list iteration.
Signed-off-by: Leonardo Brás
---
It's a remainer from a patch from the -Wshadow patchset.
Since it doesn't really belongs to that patchset anymore,
I decided to release it just as a code refactor for
file2alias.c
I
Changes the code in order to make it looks more like its a list iteration.
Signed-off-by: Leonardo Brás
---
It's a remainer from a patch from the -Wshadow patchset.
Since it doesn't really belongs to that patchset anymore,
I decided to release it just as a code refactor for
file2alias.c
I
- Renames variables to meaningful names in vdso2c.h
- The previous logic in file2alias.c will be available on a separated patch
Leonardo Brás (5):
x86/vdso: Renames variable to fix shadow warning.
kbuild: Removes unnecessary shadowed local variable.
Creates macro to avoid variable shadowing
- Renames variables to meaningful names in vdso2c.h
- The previous logic in file2alias.c will be available on a separated patch
Leonardo Brás (5):
x86/vdso: Renames variable to fix shadow warning.
kbuild: Removes unnecessary shadowed local variable.
Creates macro to avoid variable shadowing
Adds -Wshadow on KBUILD_HOSTCFLAGS to show shadow warnings
on tools built for HOST.
Signed-off-by: Leonardo Brás
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index e8b599b4dcde..3edae5d359b5 100644
--- a/Makefile
+++ b/Makefile
@@ -360,7
Adds -Wshadow on KBUILD_HOSTCFLAGS to show shadow warnings
on tools built for HOST.
Signed-off-by: Leonardo Brás
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index e8b599b4dcde..3edae5d359b5 100644
--- a/Makefile
+++ b/Makefile
@@ -360,7
Changes the parameter name to avoid shadowing a variable.
Signed-off-by: Leonardo Brás
---
scripts/mod/modpost.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 0d998c54564d..368fe42340df 100644
--- a/scripts/mod
Changes the parameter name to avoid shadowing a variable.
Signed-off-by: Leonardo Brás
---
scripts/mod/modpost.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 0d998c54564d..368fe42340df 100644
--- a/scripts/mod
-by: Leonardo Brás
---
scripts/mod/file2alias.c | 24 +---
1 file changed, 17 insertions(+), 7 deletions(-)
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c
index 7be43697ff84..3015c0bdecb2 100644
--- a/scripts/mod/file2alias.c
+++ b/scripts/mod/file2alias.c
@@ -95,12
Removes an unnecessary shadowed local variable (start).
It was used only once, with the same value it was started before
the if block.
Signed-off-by: Leonardo Brás
---
scripts/asn1_compiler.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/asn1_compiler.c b/scripts
Renames the char variable to avoid shadowing a variable previously
declared on this function.
Signed-off-by: Leonardo Brás
---
arch/x86/entry/vdso/vdso2c.h | 13 +++--
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/arch/x86/entry/vdso/vdso2c.h b/arch/x86/entry/vdso
Renames the char variable to avoid shadowing a variable previously
declared on this function.
Signed-off-by: Leonardo Brás
---
arch/x86/entry/vdso/vdso2c.h | 13 +++--
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/arch/x86/entry/vdso/vdso2c.h b/arch/x86/entry/vdso
-by: Leonardo Brás
---
scripts/mod/file2alias.c | 24 +---
1 file changed, 17 insertions(+), 7 deletions(-)
diff --git a/scripts/mod/file2alias.c b/scripts/mod/file2alias.c
index 7be43697ff84..3015c0bdecb2 100644
--- a/scripts/mod/file2alias.c
+++ b/scripts/mod/file2alias.c
@@ -95,12
Removes an unnecessary shadowed local variable (start).
It was used only once, with the same value it was started before
the if block.
Signed-off-by: Leonardo Brás
---
scripts/asn1_compiler.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/scripts/asn1_compiler.c b/scripts
Changes the usage of DEF_FIELD_ADDR in this function to create a
reference and operate over it using an aux variable.
It also changes the loop logic used to find duplicates, to avoid
creating another variable.
Signed-off-by: Leonardo Brás
---
scripts/mod/file2alias.c | 14 --
1 file
Changes the usage of DEF_FIELD_ADDR in this function to create a
reference and operate over it using an aux variable.
It also changes the loop logic used to find duplicates, to avoid
creating another variable.
Signed-off-by: Leonardo Brás
---
scripts/mod/file2alias.c | 14 --
1 file
Removes an unnecessary shadowed local variable (start).
Optimize test of isdigit:
- If isalpha returns true, isdigit will return false, so no need to test.
Signed-off-by: Leonardo Brás
---
scripts/asn1_compiler.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff
Removes an unnecessary shadowed local variable (start).
Optimize test of isdigit:
- If isalpha returns true, isdigit will return false, so no need to test.
Signed-off-by: Leonardo Brás
---
scripts/asn1_compiler.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff
Renames the char variable to avoid shadowing a variable previously
declared on this function.
Signed-off-by: Leonardo Brás
---
arch/x86/entry/vdso/vdso2c.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/entry/vdso/vdso2c.h b/arch/x86/entry/vdso/vdso2c.h
index
Adds -Wshadow=local on KBUILD_HOSTCFLAGS to show shadow warnings
on tools built for HOST.
Signed-off-by: Leonardo Brás
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index e8b599b4dcde..fb0a9ac195e7 100644
--- a/Makefile
+++ b/Makefile
Renames the char variable to avoid shadowing a variable previously
declared on this function.
Signed-off-by: Leonardo Brás
---
arch/x86/entry/vdso/vdso2c.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/entry/vdso/vdso2c.h b/arch/x86/entry/vdso/vdso2c.h
index
Adds -Wshadow=local on KBUILD_HOSTCFLAGS to show shadow warnings
on tools built for HOST.
Signed-off-by: Leonardo Brás
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index e8b599b4dcde..fb0a9ac195e7 100644
--- a/Makefile
+++ b/Makefile
This patchset add -Wshadow=local on KBUILD_HOSTCFLAGS and fixes
all code that show this warning.
The third patch was already submitted, but was not merged yet.
I like to think it's part of this patchset, but if it was
already merged, please ignore it.
Leonardo Brás (4):
Adds -Wshadow=local
This patchset add -Wshadow=local on KBUILD_HOSTCFLAGS and fixes
all code that show this warning.
The third patch was already submitted, but was not merged yet.
I like to think it's part of this patchset, but if it was
already merged, please ignore it.
Leonardo Brás (4):
Adds -Wshadow=local
Creates new Makefile to avoid building driver if
'make drivers/oprofile/' is called directly.
This driver is usually built from arch/$ARCH and seems to have
no meaning building alone.
Signed-off-by: Leonardo Brás
---
drivers/oprofile/Makefile | 1 +
1 file changed, 1 insertion(+)
create mode
Adds Makefile to enable building the driver using
'make drivers/hwtracing/'.
Changes drivers/Makefile to call the new Makefile directly.
It enables user building this driver without building the whole drivers/
subtree.
Signed-off-by: Leonardo Brás
---
drivers/Makefile | 4
Creates new Makefile to avoid building driver if
'make drivers/oprofile/' is called directly.
This driver is usually built from arch/$ARCH and seems to have
no meaning building alone.
Signed-off-by: Leonardo Brás
---
drivers/oprofile/Makefile | 1 +
1 file changed, 1 insertion(+)
create mode
Adds Makefile to enable building the driver using
'make drivers/hwtracing/'.
Changes drivers/Makefile to call the new Makefile directly.
It enables user building this driver without building the whole drivers/
subtree.
Signed-off-by: Leonardo Brás
---
drivers/Makefile | 4
Avoids building s390 drivers if 'make drivers/s390/' is called but
ARCH is not s390.
Signed-off-by: Leonardo Brás
---
drivers/s390/Makefile | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/s390/Makefile b/drivers/s390/Makefile
index a863b0462b43..0575f02dba45
Avoids building s390 drivers if 'make drivers/s390/' is called but
ARCH is not s390.
Signed-off-by: Leonardo Brás
---
drivers/s390/Makefile | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/s390/Makefile b/drivers/s390/Makefile
index a863b0462b43..0575f02dba45
Avoids building proc.o if 'make drivers/zorro/' is called and
CONFIG_ZORRO is disabled, even if CONFIG_PROC_FS is enabled.
Signed-off-by: Leonardo Brás
---
drivers/zorro/Makefile | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/zorro/Makefile b/drivers/zorro
Avoids building proc.o if 'make drivers/zorro/' is called and
CONFIG_ZORRO is disabled, even if CONFIG_PROC_FS is enabled.
Signed-off-by: Leonardo Brás
---
drivers/zorro/Makefile | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/zorro/Makefile b/drivers/zorro
Avoids building driver if 'make drivers/parisc/' is called and
CONFIG_PARISC is disabled.
Signed-off-by: Leonardo Brás
---
drivers/parisc/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/parisc/Makefile b/drivers/parisc/Makefile
index 3cd5e6cb8478
to community.
If there is any interest helping/using this, I have a prototype in:
https://gitlab.com/LeoBras/linux-next
Leonardo Brás (7):
drivers: dio: Avoids building driver if CONFIG_DIO is disabled
drivers: nubus: Avoids building driver if CONFIG_NUBUS is disabled
drivers: parisc
Avoids building driver if 'make drivers/nubus/' is called and
CONFIG_NUBUS is disabled.
Avoids building proc.o if CONFIG_PROC_FS is enabled but
CONFIG_NUBUS is disabled.
Signed-off-by: Leonardo Brás
---
drivers/nubus/Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff
Avoids building driver if 'make drivers/parisc/' is called and
CONFIG_PARISC is disabled.
Signed-off-by: Leonardo Brás
---
drivers/parisc/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/parisc/Makefile b/drivers/parisc/Makefile
index 3cd5e6cb8478
to community.
If there is any interest helping/using this, I have a prototype in:
https://gitlab.com/LeoBras/linux-next
Leonardo Brás (7):
drivers: dio: Avoids building driver if CONFIG_DIO is disabled
drivers: nubus: Avoids building driver if CONFIG_NUBUS is disabled
drivers: parisc
Avoids building driver if 'make drivers/nubus/' is called and
CONFIG_NUBUS is disabled.
Avoids building proc.o if CONFIG_PROC_FS is enabled but
CONFIG_NUBUS is disabled.
Signed-off-by: Leonardo Brás
---
drivers/nubus/Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff
Avoids building driver if 'make drivers/dio/' is called and
CONFIG_DIO is disabled.
Signed-off-by: Leonardo Brás
---
drivers/dio/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dio/Makefile b/drivers/dio/Makefile
index ae92d17083f2..8fc80e805b90 100644
Avoids building driver if 'make drivers/dio/' is called and
CONFIG_DIO is disabled.
Signed-off-by: Leonardo Brás
---
drivers/dio/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dio/Makefile b/drivers/dio/Makefile
index ae92d17083f2..8fc80e805b90 100644
Hello Eike,
> > Oh, it's a Makefile, and as all text files, it have to end with newline.
> > If I am wrong, please let me know.
>
> No, that's fine. But it means it has to have one LF after "tree.". It had
> none, now it hat 2.
>
> Eike
Oh, i haven't noticed. Sorry for the trouble.
Thanks for
Hello Eike,
> > Oh, it's a Makefile, and as all text files, it have to end with newline.
> > If I am wrong, please let me know.
>
> No, that's fine. But it means it has to have one LF after "tree.". It had
> none, now it hat 2.
>
> Eike
Oh, i haven't noticed. Sorry for the trouble.
Thanks for
Adds Makefile to enable building the driver using
'make drivers/hwtracing/'.
Changes drivers/Makefile to call the new Makefile directly.
It enables user building this driver without building the whole drivers/
subtree.
Signed-off-by: Leonardo Brás
---
drivers/Makefile | 4
Adds Makefile to enable building the driver using
'make drivers/hwtracing/'.
Changes drivers/Makefile to call the new Makefile directly.
It enables user building this driver without building the whole drivers/
subtree.
Signed-off-by: Leonardo Brás
---
drivers/Makefile | 4
Avoids building s390 drivers if 'make drivers/s390/' is called but
ARCH is not s390.
Signed-off-by: Leonardo Brás
---
drivers/s390/Makefile | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/s390/Makefile b/drivers/s390/Makefile
index a863b0462b43..0575f02dba45
Avoids building s390 drivers if 'make drivers/s390/' is called but
ARCH is not s390.
Signed-off-by: Leonardo Brás
---
drivers/s390/Makefile | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/s390/Makefile b/drivers/s390/Makefile
index a863b0462b43..0575f02dba45
Creates new Makefile to avoid building driver if
'make drivers/oprofile/' is called directly.
This driver is usually built from arch/$ARCH and seems to have
no meaning building alone.
Signed-off-by: Leonardo Brás
---
drivers/oprofile/Makefile | 1 +
1 file changed, 1 insertion(+)
create mode
Creates new Makefile to avoid building driver if
'make drivers/oprofile/' is called directly.
This driver is usually built from arch/$ARCH and seems to have
no meaning building alone.
Signed-off-by: Leonardo Brás
---
drivers/oprofile/Makefile | 1 +
1 file changed, 1 insertion(+)
create mode
Avoids building proc.o if 'make drivers/zorro/' is called and
CONFIG_ZORRO is disabled, even if CONFIG_PROC_FS is enabled.
Signed-off-by: Leonardo Brás
---
drivers/zorro/Makefile | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/zorro/Makefile b/drivers/zorro
Avoids building proc.o if 'make drivers/zorro/' is called and
CONFIG_ZORRO is disabled, even if CONFIG_PROC_FS is enabled.
Signed-off-by: Leonardo Brás
---
drivers/zorro/Makefile | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/zorro/Makefile b/drivers/zorro
Avoids building driver if 'make drivers/nubus/' is called and
CONFIG_NUBUS is disabled.
Avoids building proc.o if CONFIG_PROC_FS is enabled but
CONFIG_NUBUS is disabled.
Signed-off-by: Leonardo Brás
---
drivers/nubus/Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff
Avoids building driver if 'make drivers/nubus/' is called and
CONFIG_NUBUS is disabled.
Avoids building proc.o if CONFIG_PROC_FS is enabled but
CONFIG_NUBUS is disabled.
Signed-off-by: Leonardo Brás
---
drivers/nubus/Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff
Avoids building driver if 'make drivers/parisc/' is called and
CONFIG_PARISC is disabled.
Signed-off-by: Leonardo Brás
---
drivers/parisc/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/parisc/Makefile b/drivers/parisc/Makefile
index 3cd5e6cb8478
Avoids building driver if 'make drivers/parisc/' is called and
CONFIG_PARISC is disabled.
Signed-off-by: Leonardo Brás
---
drivers/parisc/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/parisc/Makefile b/drivers/parisc/Makefile
index 3cd5e6cb8478
Avoids building driver if 'make drivers/dio/' is called and
CONFIG_DIO is disabled.
Signed-off-by: Leonardo Brás
---
drivers/dio/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dio/Makefile b/drivers/dio/Makefile
index ae92d17083f2..8fc80e805b90 100644
Avoids building driver if 'make drivers/dio/' is called and
CONFIG_DIO is disabled.
Signed-off-by: Leonardo Brás
---
drivers/dio/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dio/Makefile b/drivers/dio/Makefile
index ae92d17083f2..8fc80e805b90 100644
to community.
If there is any interest helping/using this, I have a prototype in:
https://gitlab.com/LeoBras/linux-next
Leonardo Brás (7):
drivers: dio: Avoids building driver if CONFIG_DIO is disabled
drivers: nubus: Avoids building driver if CONFIG_NUBUS is disabled
drivers: parisc
to community.
If there is any interest helping/using this, I have a prototype in:
https://gitlab.com/LeoBras/linux-next
Leonardo Brás (7):
drivers: dio: Avoids building driver if CONFIG_DIO is disabled
drivers: nubus: Avoids building driver if CONFIG_NUBUS is disabled
drivers: parisc
Hello Eike,
> No, that's fine. But it means it has to have one LF after "tree.". It had
> none, now it hat 2.
>
> Eike
Oh, i haven't noticed. Sorry for the trouble.
Thanks for the feedback!
Leonardo Brás
Hello Eike,
> No, that's fine. But it means it has to have one LF after "tree.". It had
> none, now it hat 2.
>
> Eike
Oh, i haven't noticed. Sorry for the trouble.
Thanks for the feedback!
Leonardo Brás
Adds Makefile to enable building the driver using
'make drivers/hwtracing/'.
Changes drivers/Makefile to call the new Makefile directly.
It enables user building this driver without building the whole drivers/
subtree.
Signed-off-by: Leonardo Brás
---
drivers/Makefile | 4
Adds Makefile to enable building the driver using
'make drivers/hwtracing/'.
Changes drivers/Makefile to call the new Makefile directly.
It enables user building this driver without building the whole drivers/
subtree.
Signed-off-by: Leonardo Brás
---
drivers/Makefile | 4
Creates new Makefile to avoid building driver if
'make drivers/oprofile/' is called directly.
This driver is usually built from arch/$ARCH and seems to have
no meaning building alone.
Signed-off-by: Leonardo Brás
---
drivers/oprofile/Makefile | 2 ++
1 file changed, 2 insertions(+)
create
Creates new Makefile to avoid building driver if
'make drivers/oprofile/' is called directly.
This driver is usually built from arch/$ARCH and seems to have
no meaning building alone.
Signed-off-by: Leonardo Brás
---
drivers/oprofile/Makefile | 2 ++
1 file changed, 2 insertions(+)
create
Avoids building s390 drivers if 'make drivers/s390/' is called but
ARCH is not s390.
Signed-off-by: Leonardo Brás
---
drivers/s390/Makefile | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/s390/Makefile b/drivers/s390/Makefile
index a863b0462b43..0575f02dba45
Avoids building s390 drivers if 'make drivers/s390/' is called but
ARCH is not s390.
Signed-off-by: Leonardo Brás
---
drivers/s390/Makefile | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/s390/Makefile b/drivers/s390/Makefile
index a863b0462b43..0575f02dba45
Avoids building proc.o if 'make drivers/zorro/' is called and
CONFIG_ZORRO is disabled, even if CONFIG_PROC_FS is enabled.
Signed-off-by: Leonardo Brás
---
drivers/zorro/Makefile | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/zorro/Makefile b/drivers/zorro
Avoids building proc.o if 'make drivers/zorro/' is called and
CONFIG_ZORRO is disabled, even if CONFIG_PROC_FS is enabled.
Signed-off-by: Leonardo Brás
---
drivers/zorro/Makefile | 7 ---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/drivers/zorro/Makefile b/drivers/zorro
Avoids building driver if 'make drivers/parisc/' is called and
CONFIG_PARISC is disabled.
Signed-off-by: Leonardo Brás
---
drivers/parisc/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/parisc/Makefile b/drivers/parisc/Makefile
index 3cd5e6cb8478
Avoids building driver if 'make drivers/parisc/' is called and
CONFIG_PARISC is disabled.
Signed-off-by: Leonardo Brás
---
drivers/parisc/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/parisc/Makefile b/drivers/parisc/Makefile
index 3cd5e6cb8478
Avoids building driver if 'make drivers/nubus/' is called and
CONFIG_NUBUS is disabled.
Avoids building proc.o if CONFIG_PROC_FS is enabled but
CONFIG_NUBUS is disabled.
Signed-off-by: Leonardo Brás
---
drivers/nubus/Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff
Avoids building driver if 'make drivers/nubus/' is called and
CONFIG_NUBUS is disabled.
Avoids building proc.o if CONFIG_PROC_FS is enabled but
CONFIG_NUBUS is disabled.
Signed-off-by: Leonardo Brás
---
drivers/nubus/Makefile | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff
Avoids building driver if 'make drivers/dio/' is called and
CONFIG_DIO is disabled.
Signed-off-by: Leonardo Brás
---
drivers/dio/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dio/Makefile b/drivers/dio/Makefile
index ae92d17083f2..f5cffe232448 100644
Avoids building driver if 'make drivers/dio/' is called and
CONFIG_DIO is disabled.
Signed-off-by: Leonardo Brás
---
drivers/dio/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dio/Makefile b/drivers/dio/Makefile
index ae92d17083f2..f5cffe232448 100644
submitting to community.
If there is any interest helping/using this, I have a prototype in:
https://gitlab.com/LeoBras/linux-next
Leonardo Brás (7):
drivers: dio: Avoids building driver if CONFIG_DIO is disabled
drivers: nubus: Avoids building driver if CONFIG_NUBUS is disabled
drivers: parisc
submitting to community.
If there is any interest helping/using this, I have a prototype in:
https://gitlab.com/LeoBras/linux-next
Leonardo Brás (7):
drivers: dio: Avoids building driver if CONFIG_DIO is disabled
drivers: nubus: Avoids building driver if CONFIG_NUBUS is disabled
drivers: parisc
Adds Makefile to enable building the driver using
'make drivers/hwtracing/'.
Changes drivers/Makefile to call the new Makefile directly.
It enables user building this driver without building the whole drivers/
subtree.
Signed-off-by: Leonardo Brás
---
drivers/Makefile | 4
Adds Makefile to enable building the driver using
'make drivers/hwtracing/'.
Changes drivers/Makefile to call the new Makefile directly.
It enables user building this driver without building the whole drivers/
subtree.
Signed-off-by: Leonardo Brás
---
drivers/Makefile | 4
Creates new Makefile to avoid building driver if
'make drivers/oprofile/' is called directly.
This driver is usually built from arch/$ARCH and seems to have
no meaning building alone.
Signed-off-by: Leonardo Brás
---
drivers/oprofile/Makefile | 1 +
1 file changed, 1 insertion(+)
create mode
Creates new Makefile to avoid building driver if
'make drivers/oprofile/' is called directly.
This driver is usually built from arch/$ARCH and seems to have
no meaning building alone.
Signed-off-by: Leonardo Brás
---
drivers/oprofile/Makefile | 1 +
1 file changed, 1 insertion(+)
create mode
Avoids building s390 drivers if 'make drivers/s390/' is called but
ARCH is not s390.
Signed-off-by: Leonardo Brás
---
drivers/s390/Makefile | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/s390/Makefile b/drivers/s390/Makefile
index a863b0462b43..0575f02dba45
Avoids building s390 drivers if 'make drivers/s390/' is called but
ARCH is not s390.
Signed-off-by: Leonardo Brás
---
drivers/s390/Makefile | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/s390/Makefile b/drivers/s390/Makefile
index a863b0462b43..0575f02dba45
Avoids building proc.o if 'make drivers/zorro/' is called and
CONFIG_ZORRO is disabled, even if CONFIG_PROC_FS is enabled.
Signed-off-by: Leonardo Brás
---
drivers/zorro/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/zorro/Makefile b/drivers/zorro/Makefile
Avoids building proc.o if 'make drivers/zorro/' is called and
CONFIG_ZORRO is disabled, even if CONFIG_PROC_FS is enabled.
Signed-off-by: Leonardo Brás
---
drivers/zorro/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/zorro/Makefile b/drivers/zorro/Makefile
Avoids building driver if 'make drivers/parisc/' is called and
CONFIG_PARISC is disabled.
Signed-off-by: Leonardo Brás
---
drivers/parisc/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/parisc/Makefile b/drivers/parisc/Makefile
index 3cd5e6cb8478
Avoids building driver if 'make drivers/nubus/' is called and
CONFIG_NUBUS is disabled.
Avoids building proc.o if CONFIG_PROC_FS is enabled but
CONFIG_NUBUS is disabled.
Signed-off-by: Leonardo Brás
---
drivers/nubus/Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff
Avoids building driver if 'make drivers/nubus/' is called and
CONFIG_NUBUS is disabled.
Avoids building proc.o if CONFIG_PROC_FS is enabled but
CONFIG_NUBUS is disabled.
Signed-off-by: Leonardo Brás
---
drivers/nubus/Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff
Avoids building driver if 'make drivers/parisc/' is called and
CONFIG_PARISC is disabled.
Signed-off-by: Leonardo Brás
---
drivers/parisc/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/parisc/Makefile b/drivers/parisc/Makefile
index 3cd5e6cb8478
Avoids building driver if 'make drivers/dio/' is called and
CONFIG_DIO is disabled.
Signed-off-by: Leonardo Brás
---
drivers/dio/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dio/Makefile b/drivers/dio/Makefile
index ae92d17083f2..f5cffe232448 100644
Avoids building driver if 'make drivers/dio/' is called and
CONFIG_DIO is disabled.
Signed-off-by: Leonardo Brás
---
drivers/dio/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dio/Makefile b/drivers/dio/Makefile
index ae92d17083f2..f5cffe232448 100644
-next.
Leonardo Brás (7):
drivers: dio: Avoids building driver if CONFIG_DIO is disabled
drivers: nubus: Avoids building driver if CONFIG_NUBUS is disabled
drivers: parisc: Avoids building driver if CONFIG_PARISC is disabled
drivers: zorro: Avoids building proc.o if CONFIG_ZORRO is disabled
-next.
Leonardo Brás (7):
drivers: dio: Avoids building driver if CONFIG_DIO is disabled
drivers: nubus: Avoids building driver if CONFIG_NUBUS is disabled
drivers: parisc: Avoids building driver if CONFIG_PARISC is disabled
drivers: zorro: Avoids building proc.o if CONFIG_ZORRO is disabled
Changes Makefile so 'make drivers/dio/' won't compile this driver
unless CONFIG_DIO is enabled.
Previously, it would compile independently of .config file.
Signed-off-by: Leonardo Brás
---
drivers/dio/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dio
Changes Makefile so 'make drivers/dio/' won't compile this driver
unless CONFIG_DIO is enabled.
Previously, it would compile independently of .config file.
Signed-off-by: Leonardo Brás
---
drivers/dio/Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/dio
Removes an unnecessary shadowed local variable (start).
Optimize test of isdigit:
- If isalpha returns true, isdigit will return false, so no need to test.
Signed-off-by: Leonardo Brás
---
scripts/asn1_compiler.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
Removes an unnecessary shadowed local variable (start).
Optimize test of isdigit:
- If isalpha returns true, isdigit will return false, so no need to test.
Signed-off-by: Leonardo Brás
---
scripts/asn1_compiler.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
Removes an unnecessary shadowed local variable (start).
Optimize test of isdigit:
- If isalpha returns true, isdigit will return false, so no need to test.
Signed-off-by: Leonardo Brás
---
scripts/asn1_compiler.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
Removes an unnecessary shadowed local variable (start).
Optimize test of isdigit:
- If isalpha returns true, isdigit will return false, so no need to test.
Signed-off-by: Leonardo Brás
---
scripts/asn1_compiler.c | 8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
All usages of this macro append the ";" at the end of
line. It is not recommended nor necessary to append
a ";" at the end of this macro definition.
Signed-off-by: Leonardo Brás
---
drivers/staging/fbtft/fbtft.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --g
All usages of this macro append the ";" at the end of
line. It is not recommended nor necessary to append
a ";" at the end of this macro definition.
Signed-off-by: Leonardo Brás
---
drivers/staging/fbtft/fbtft.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --g
1 - 100 of 166 matches
Mail list logo