statement may fall through
[-Wimplicit-fallthrough=]
Signed-off-by: Mathieu Malaterre
---
fs/locks.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/locks.c b/fs/locks.c
index ff6af2c32601..d958c3863b4b 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -1471,7 +1471,7 @@ static void
statement may fall through
[-Wimplicit-fallthrough=]
Signed-off-by: Mathieu Malaterre
---
fs/libfs.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/libfs.c b/fs/libfs.c
index 0fb590d79f30..9efb647917e0 100644
--- a/fs/libfs.c
+++ b/fs/libfs.c
@@ -146,9 +146,11 @@ loff_t
statement may fall through
[-Wimplicit-fallthrough=]
Signed-off-by: Mathieu Malaterre
---
fs/fcntl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/fcntl.c b/fs/fcntl.c
index 083185174c6d..3d40771e8e7c 100644
--- a/fs/fcntl.c
+++ b/fs/fcntl.c
@@ -769,7 +769,7 @@ static
:6: warning: this statement may fall through
[-Wimplicit-fallthrough=]
fs/ext4/indirect.c:1432:6: warning: this statement may fall through
[-Wimplicit-fallthrough=]
fs/ext4/indirect.c:1440:6: warning: this statement may fall through
[-Wimplicit-fallthrough=]
Signed-off-by: Mathieu Malaterre
: warning: this statement may fall through
[-Wimplicit-fallthrough=]
Signed-off-by: Mathieu Malaterre
---
fs/ext4/hash.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/ext4/hash.c b/fs/ext4/hash.c
index e22dcfab308b..46b24da33a28 100644
--- a/fs/ext4/hash.c
+++ b/fs/ext4/hash.c
@@ -231,6
/fbdev/offb.c:142:3: warning: this statement may fall through
[-Wimplicit-fallthrough=]
Signed-off-by: Mathieu Malaterre
---
drivers/video/fbdev/offb.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/video/fbdev/offb.c b/drivers/video/fbdev/offb.c
index 31f769d67195..e0f0c5351306
:2237:6: warning: this statement may fall through
[-Wimplicit-fallthrough=]
Signed-off-by: Mathieu Malaterre
---
drivers/tty/vt/vt.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index 41ec8e5010f3..e4f8caed26af 100644
--- a/drivers/tty/vt/vt.c
+++ b
: warning: this statement may fall through
[-Wimplicit-fallthrough=]
Signed-off-by: Mathieu Malaterre
---
drivers/pci/quirks.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/pci/quirks.c b/drivers/pci/quirks.c
index b0a413f3f7ca..9fabcef345ed 100644
--- a/drivers/pci
:
drivers/pci/pci.c:861:6: warning: this statement may fall through
[-Wimplicit-fallthrough=]
drivers/pci/pci.c:2261:7: warning: this statement may fall through
[-Wimplicit-fallthrough=]
Signed-off-by: Mathieu Malaterre
---
drivers/pci/pci.c | 4 ++--
1 file changed, 2 insertions(+), 2
to fit the max line length of 80 characters.
This commit remove the following warning:
drivers/mmc/core/host.c:196:14: warning: this statement may fall through
[-Wimplicit-fallthrough=]
Signed-off-by: Mathieu Malaterre
---
drivers/mmc/core/host.c | 2 +-
1 file changed, 1 insertion(+),
'set_broadcast_channel':
../drivers/firewire/core-device.c:969:7: warning: this statement may fall
through [-Wimplicit-fallthrough=]
if (data & cpu_to_be32(1 << 31)) {
Signed-off-by: Mathieu Malaterre
---
drivers/firewire/core-device.c | 2 +-
1 file changed, 1 inse
following warning:
drivers/firewire/core-iso.c:308:7: warning: this statement may fall through
[-Wimplicit-fallthrough=]
Signed-off-by: Mathieu Malaterre
---
drivers/firewire/core-iso.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/firewire/core-iso.c b/drivers/fir
There is a plan to build the kernel with -Wimplicit-fallthrough and
this place in the code produced a warning (W=1).
This commit remove the following warning:
drivers/firewire/core-topology.c:69:23: warning: this statement may fall
through [-Wimplicit-fallthrough=]
Signed-off-by: Mathieu
There is a plan to build the kernel with -Wimplicit-fallthrough and
this place in the code produced a warning (W=1).
This commit remove the following warning:
drivers/char/generic_nvram.c:83:3: warning: this statement may fall through
[-Wimplicit-fallthrough=]
Signed-off-by: Mathieu
On Tue, Jan 15, 2019 at 8:22 AM Masahiro Yamada
wrote:
>
> Commit c3ff2a5193fa ("powerpc/32: add stack protector support")
> caused kernel panic on PowerPC if an external module is used with
> CONFIG_STACKPROTECTOR because the 'prepare' target was not executed
> for the external module build.
>
>
: 'strncpy' specified bound 8 equals
destination size [-Wstringop-truncation]
drivers/video/hdmi.c:235:2: warning: 'strncpy' specified bound 16 equals
destination size [-Wstringop-truncation]
Signed-off-by: Mathieu Malaterre
---
drivers/video/hdmi.c | 4 ++--
1 file changed
uncation]
Cc: Nick Desaulniers
Link: https://lore.kernel.org/patchwork/patch/910830/
Signed-off-by: Mathieu Malaterre
---
include/trace/events/writeback.h | 30 --
1 file changed, 20 insertions(+), 10 deletions(-)
diff --git a/include/trace/events/writeback.h b
On Fri, Jan 18, 2019 at 8:51 PM Joe Perches wrote:
>
> On Fri, 2019-01-18 at 20:32 +0100, Mathieu Malaterre wrote:
> > Using strncpy() is less than perfect since the destination buffers do not
> > need to be NUL terminated. Replace strncpy() with memcpy() to address a
> >
There is not point in having a trailing semicolon after a closing curly
brace. Remove it.
Signed-off-by: Mathieu Malaterre
---
arch/powerpc/sysdev/tsi108_dev.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/sysdev/tsi108_dev.c b/arch/powerpc/sysdev/tsi108_dev.c
not at
beginning of declaration [-Werror=old-style-declaration]
Signed-off-by: Mathieu Malaterre
---
arch/powerpc/platforms/ps3/os-area.c| 4 ++--
arch/powerpc/platforms/ps3/system-bus.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/powerpc/platforms/ps3/os-ar
Silence warnings (triggered at W=1) by adding relevant __printf
attributes.
sound/soc/soc-dapm.c:149:2: warning: function 'pop_dbg' might be a candidate
for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
Signed-off-by: Mathieu Malaterre
---
sound/soc/soc-
Silence warnings (triggered at W=1) by adding relevant __printf
attributes.
drivers/base/cpu.c:432:2: warning: function '__cpu_device_create' might be a
candidate for 'gnu_printf' format attribute [-Wsuggest-attribute=format]
Signed-off-by: Mathieu Malaterre
---
drivers
statement may fall through
[-Wimplicit-fallthrough=]
Signed-off-by: Mathieu Malaterre
---
fs/ext2/inode.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/ext2/inode.c b/fs/ext2/inode.c
index e4bb9386c045..e64029b1bd50 100644
--- a/fs/ext2/inode.c
+++ b/fs/ext2/inode.c
@@ -1239,6 +1239,7
ves the following warning (W=1):
net/mac80211/rx.c:234:2: warning: alignment 1 of 'struct ' is less
than 2 [-Wpacked-not-aligned]
Cc: Johannes Berg
Signed-off-by: Mathieu Malaterre
---
net/mac80211/rx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net
;struct
regcache_rbtree_node' is less than 4 [-Wpacked-not-aligned]
Cc: Dimitris Papastamos
Cc: David Woodhouse
Signed-off-by: Mathieu Malaterre
---
drivers/base/regmap/regcache-rbtree.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/regmap/regcache-rbtre
-off-by: Mathieu Malaterre
---
net/bluetooth/l2cap_core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 2a7fb517d460..a5b76e24940a 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -4244,6 +4244,7 @@ static
/bluetooth/rfcomm/core.c:479:6: warning: this statement may fall through
[-Wimplicit-fallthrough=]
Cc: Peter Hurley
Signed-off-by: Mathieu Malaterre
---
net/bluetooth/rfcomm/core.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/net/bluetooth/rfcomm/core.c b/net/bluetooth
On Thu, Jan 24, 2019 at 7:08 PM Johannes Berg wrote:
>
> On Thu, 2019-01-24 at 19:05 +0100, Mathieu Malaterre wrote:
> > During refactor in commit 9e478066eae4 ("mac80211: fix MU-MIMO
> > follow-MAC mode") a new struct 'action' was declared with pac
N_SIZE + 1);
This removes the following warning (W=1):
net/mac80211/rx.c:234:2: warning: alignment 1 of 'struct ' is less
than 2 [-Wpacked-not-aligned]
Cc: Johannes Berg
Suggested-by: Johannes Berg
Signed-off-by: Mathieu Malaterre
---
v2: It was suggested by Johannes that an arc
Paul,
On Wed, Dec 12, 2018 at 11:09 PM Paul Cercueil wrote:
>
> Hi,
>
> Here's the version 8 and hopefully final version of my patchset, which
> adds support for the Timer/Counter Unit found in JZ47xx SoCs from
> Ingenic.
I can no longer boot my MIPS Creator CI20 with this series (merged
opendin
> > net/bluetooth/l2cap_core.c:4223:6: warning: this statement may fall
> > through [-Wimplicit-fallthrough=]
> >
> > Cc: Gustavo Padovan
> > Signed-off-by: Mathieu Malaterre
> > ---
> > net/bluetooth/l2cap_core.c | 1 +
> > 1 file changed, 1 inserti
On Thu, Jan 24, 2019 at 7:07 PM Mathieu Malaterre wrote:
>
> There is a plan to build the kernel with -Wimplicit-fallthrough and
> this place in the code produced a warning (W=1).
>
> In this particular case put the fall through comment on a separate line so
> as to match the
On Fri, Jan 25, 2019 at 5:26 AM Nick Desaulniers
wrote:
>
> On Fri, Jan 18, 2019 at 11:32 AM Mathieu Malaterre wrote:
> >
> > In the past an attempt was made to remove a set of warnings triggered by
> > gcc 8.x and W=1 by changing calls to strncpy() into strlcpy(). This
Paul,
On Thu, Jan 24, 2019 at 10:41 PM Paul Cercueil wrote:
>
> Hi Mathieu,
>
> Le jeu. 24 janv. 2019 à 18:26, Mathieu Malaterre a
> écrit :
> > Paul,
> >
> > On Wed, Dec 12, 2018 at 11:09 PM Paul Cercueil
> > wrote:
> >>
> >> Hi,
>
ng-prototypes]
Make sure to include to provide the following
prototype: module_alloc.
Signed-off-by: Mathieu Malaterre
---
arch/powerpc/mm/kasan/kasan_init_32.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/arch/powerpc/mm/kasan/kasan_init_32.c
b/arch/powerpc/mm/kasan/kasan_init_32.
e original patch and simplify the code, by removing the
variable ‘path’ completely. Fix line over 90 characters.
Suggested-by: Michael Ellerman
Signed-off-by: Mathieu Malaterre
---
arch/powerpc/kernel/prom_init.c | 13 -
1 file changed, 4 insertions(+), 9 deletions(-)
diff --git a/ar
prototype for
'pfn_is_nosave' [-Werror=missing-prototypes]
This moves the declaration into a globally visible header file and add
missing include to avoid a warning in powerpc.
Signed-off-by: Mathieu Malaterre
---
arch/powerpc/kernel/suspend.c | 1 +
include/linux/suspend.h | 1
ping ?
On Tue, Mar 12, 2019 at 10:23 PM Mathieu Malaterre wrote:
>
> Fix warnings treated as errors with W=1:
>
> arch/powerpc/lib/sstep.c:1172:31: error: variable 'rc' set but not used
> [-Werror=unused-but-set-variable]
>
> Suggested-by: Christophe Leroy
>
line' is not at beginning of
declaration [-Wold-style-declaration]
Cc: Peter Zijlstra
Signed-off-by: Mathieu Malaterre
---
arch/x86/kernel/tsc.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/x86/kernel/tsc.c b/arch/x86/kernel/tsc.c
index 0b29e58f288e..75a41bddbc
#x27;inline' is not at beginning of
declaration [-Wold-style-declaration]
Signed-off-by: Mathieu Malaterre
---
kernel/time/clocksource.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/kernel/time/clocksource.c b/kernel/time/clocksource.c
index 3bcc19ceb073..fff5f
prototype for
'pfn_is_nosave' [-Werror=missing-prototypes]
This moves the declaration into a globally visible header file and add
missing include to avoid a warning on powerpc. Also remove the
duplicated prototypes since not required anymore.
Cc: Christophe Leroy
Signed-off-by: Mathieu
On Thu, Apr 18, 2019 at 12:00 PM Alexandre Belloni
wrote:
>
> Call the 64bit versions of rtc_tm time conversion now that the range is
> enforced by the core.
>
> Signed-off-by: Alexandre Belloni
> ---
> drivers/rtc/rtc-jz4740.c | 8 +++-
> 1 file changed, 3 insertions(+), 5 deletions(-)
>
>
On Thu, Apr 18, 2019 at 12:01 PM Alexandre Belloni
wrote:
>
> RTC_SEC is a 32-bit seconds counter.
For the entire series:
Tested-by: Mathieu Malaterre
Arch is MIPS Creator CI20
>
> Signed-off-by: Alexandre Belloni
> ---
> drivers/rtc/rtc-jz4740.c | 12 ++--
>
On Wed, Jun 19, 2019 at 4:18 PM Benjamin Herrenschmidt
wrote:
>
> On Wed, 2019-06-19 at 22:32 +1000, Michael Ellerman wrote:
> > Christoph Hellwig writes:
> > > Any chance this could get picked up to fix the regression?
> >
> > Was hoping Ben would Ack it. He's still powermac maintainer :)
> >
>
On Tue, Jun 25, 2019 at 1:22 PM Christophe Leroy
wrote:
>
> Create ippc_gethwdinfo() to handle PPC_PTRACE_GETHWDBGINFO and
s/ippc_gethwdinfo/ppc_gethwdinfo/
> reduce ifdef mess
>
> Signed-off-by: Christophe Leroy
> ---
> arch/powerpc/kernel/ptrace/ptrace-adv.c | 15 +++
> arch/po
On Wed, Jun 5, 2019 at 1:32 PM Mathieu Malaterre wrote:
>
> On Mon, Jun 3, 2019 at 3:00 PM Christophe Leroy
> wrote:
> >
> > When booting through OF, setup_disp_bat() does nothing because
> > disp_BAT are not set. By change, it used to work because BOOTX
> >
[cc me please]
Hi there,
I recently upgraded my desktop to Debian/buster. Now when I start my
xfce session I can hear the system bell, and my dmesg is filled with
numerous:
[ 920.728347] do_IRQ: 0.37 No irq handler for vector
The symptoms seems to be gone using git/master:
3a1d5384b7decbff651
On Fri, Jul 19, 2019 at 1:32 PM Mathieu Malaterre wrote:
>
> [cc me please]
>
> Hi there,
>
> I recently upgraded my desktop to Debian/buster. Now when I start my
> xfce session I can hear the system bell, and my dmesg is filled with
> numerous:
>
> [ 920.728347] d
t early_init_dt_scan_chosen() from using CONFIG_CMDLINE.
Sorry I cannot test this patch ATM. I've simply CCed Paul C. just in case.
> Signed-off-by: Paul Burton
> Fixes: 8ce355cf2e38 ("MIPS: Setup boot_command_line before plat_mem_setup")
> References: https://patchwork.linux
On Fri, Aug 31, 2018 at 10:59 PM Paul Burton wrote:
>
> On Fri, Aug 31, 2018 at 01:37:52PM -0700, Paul Burton wrote:
> > Further to that, this series doesn't seem to work for me. With
> > v4.19-rc1, with the patch from [1] & then this series applied I see the
> > following when booting a ci20_defc
Any chance this could be applied to powerpc/next ?
On Thu, Mar 22, 2018 at 9:19 PM, Mathieu Malaterre wrote:
> Here is another batch for warnings treated as error on ppc32. Tested with:
>
> $ make ARCH=powerpc ppc32_defconfig
> $ make -j8 ARCH=powerpc CROSS_COMPILE=powerpc-li
ed-off-by: Mathieu Malaterre
---
arch/powerpc/kernel/prom.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/kernel/prom.c b/arch/powerpc/kernel/prom.c
index 4dffef947b8a..330c65f04820 100644
--- a/arch/powerpc/kernel/prom.c
+++ b/arch/powerpc/kernel/prom.c
@@ -
]
cc1: all warnings being treated as errors
Suggested-by: Segher Boessenkool
Signed-off-by: Mathieu Malaterre
---
arch/powerpc/include/asm/uaccess.h | 10 +++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/arch/powerpc/include/asm/uaccess.h
b/arch/powerpc/include/
On Mon, Feb 26, 2018 at 9:46 AM, Segher Boessenkool
wrote:
> On Mon, Feb 26, 2018 at 07:32:03AM +0100, Christophe LEROY wrote:
>> Le 25/02/2018 à 18:22, Mathieu Malaterre a écrit :
>> >-#define pfn_valid(pfn) ((pfn) >= ARCH_PFN_OFFSET && (pfn) <
>&
On Thu, Apr 19, 2018 at 7:15 PM, Mathieu Malaterre wrote:
> Hi Jessica,
>
> On Mon, Apr 16, 2018 at 7:11 PM, Jessica Yu wrote:
>> +++ Mathieu Malaterre [11/04/18 21:05 +0200]:
>>>
>>> In commit 8c8ef42aee8f ("module: include other structures in module
Hi there,
I am pretty sure I was able to run kodi on an old Mac Mini G4 (big
endian) with AMD RV280. Today it is failing to start with:
[ 162.971551] radeon :00:10.0: ring 0 stalled for more than 10240msec
[ 162.971568] radeon :00:10.0: GPU lockup (current fence id
0x01d6 la
On Sun, Apr 8, 2018 at 10:34 PM, Randy Dunlap wrote:
> On 04/08/2018 12:44 PM, Mathieu Malaterre wrote:
>> In commit 7a22d6321c3d ("powerpc/mm/radix: Update command line parsing for
>> disable_radix") an `if` statement was added for a possible empty body
>> (prom_
On Mon, Apr 23, 2018 at 9:31 PM, Mathieu Malaterre wrote:
> On Sun, Apr 8, 2018 at 10:34 PM, Randy Dunlap wrote:
>> On 04/08/2018 12:44 PM, Mathieu Malaterre wrote:
>>> In commit 7a22d6321c3d ("powerpc/mm/radix: Update command line parsing for
>>> disable_radix&q
mpty
body in an ‘if’ statement [-Werror=empty-body]
Suggested-by: Randy Dunlap
Signed-off-by: Mathieu Malaterre
---
v2: update macro directly
arch/powerpc/kernel/prom_init.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/kernel/prom_init.c b/arch/powe
The function hlwd_pic_init can be made static, so do it. Fix the following
warning treated as error (W=1):
../arch/powerpc/platforms/embedded6xx/hlwd-pic.c:158:20: error: no previous
prototype for ‘hlwd_pic_init’ [-Werror=missing-prototypes]
Signed-off-by: Mathieu Malaterre
---
arch/powerpc
Be nice to the user and check env vars KBUILD_BUILD_USER &
KBUILD_BUILD_HOST when those are set.
Signed-off-by: Mathieu Malaterre
---
scripts/package/mkdebian | 2 ++
1 file changed, 2 insertions(+)
diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian
index 6adb3a16
On Tue, Apr 24, 2018 at 4:17 PM, Christophe Leroy
wrote:
> Use fault_in_pages_readable() to prefault user context
> instead of open coding
>
> Signed-off-by: Christophe Leroy
> ---
> arch/powerpc/kernel/signal_32.c | 13 +
> 1 file changed, 5 insertions(+), 8 deletions(-)
>
> diff --
On Tue, Apr 24, 2018 at 4:45 PM, Mathieu Malaterre wrote:
> On Tue, Apr 24, 2018 at 4:17 PM, Christophe Leroy
> wrote:
>> Use fault_in_pages_readable() to prefault user context
>> instead of open coding
>>
>> Signed-off-by: Christophe Leroy
>> ---
>
On Wed, May 2, 2018 at 10:01 PM, Mathieu Malaterre wrote:
> Be nice to the user and check env vars KBUILD_BUILD_USER &
> KBUILD_BUILD_HOST when those are set.
>
> Since DEBEMAIL accept a syntax where the full name is present, be extra
> nice to user and extract email address
rning (simple_bus_reg): Node /XXX@ simple-bus unit address format
error, expected ""
This is a follow up to commit 4c9847b7375a ("dt-bindings: Remove leading 0x
from bindings notation")
Reported-by: David Daney
Suggested-by: Rob Herring
Acked-by: Krzysztof Kozlowski
Signed-off-
On Thu, May 3, 2018 at 6:35 PM, Krzysztof Kozlowski wrote:
> On Wed, May 02, 2018 at 10:11:52PM +0200, Mathieu Malaterre wrote:
>> Improve the DTS files by removing all the leading "0x" and zeros to fix the
>> following dtc warnings:
>>
>> Warning (unit_addres
On Wed, May 2, 2018 at 3:20 PM, Michael Ellerman wrote:
> From: Al Viro
Maybe add:
Link: https://github.com/linuxppc/linux/issues/131
For the series: compile, build without error (W=1), and works on my system.
> Signed-off-by: Al Viro
> ---
> arch/powerpc/kernel/pci_32.c | 6 +
On Thu, May 3, 2018 at 8:53 PM, Krzysztof Kozlowski wrote:
> On Thu, May 03, 2018 at 08:44:53PM +0200, Mathieu Malaterre wrote:
>> Improve the DTS files by removing all the leading "0x" and zeros to fix the
>> following dtc warnings:
>>
>> Warning (unit_addres
:6: warning: no previous prototype for
‘null_cache_flush’ [-Wmissing-prototypes]
Signed-off-by: Mathieu Malaterre
---
drivers/char/agp/uninorth-agp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/char/agp/uninorth-agp.c b/drivers/char/agp/uninorth-agp.c
index
__printf is useful to verify format and arguments. Remove the following
warning (with W=1):
drivers/base/core.c:2435:2: warning: function might be possible candidate for
‘gnu_printf’ format attribute [-Wsuggest-attribute=format]
Signed-off-by: Mathieu Malaterre
---
drivers/base/core.c | 2
__printf is useful to verify format and arguments. Remove the following
warning (with W=1):
drivers/ata/libata-eh.c:183:10: warning: function might be possible candidate
for ‘gnu_printf’ format attribute [-Wsuggest-attribute=format]
Signed-off-by: Mathieu Malaterre
---
drivers/ata/libata
Since function ‘ext4_getfsmap_find_fixed_metadata’ can be made static,
make it so. Remove the following gcc warning (W=1):
fs/ext4/fsmap.c:405:5: warning: no previous prototype for
‘ext4_getfsmap_find_fixed_metadata’ [-Wmissing-prototypes]
Signed-off-by: Mathieu Malaterre
---
fs/ext4
__printf is useful to verify format and arguments. Remove the following
warning (with W=1):
mm/slub.c:721:2: warning: function might be possible candidate for
‘gnu_printf’ format attribute [-Wsuggest-attribute=format]
Signed-off-by: Mathieu Malaterre
---
mm/slub.c | 2 +-
1 file changed, 1
-prototypes]
Signed-off-by: Mathieu Malaterre
---
mm/page_alloc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index 905db9d7962f..94ca579938e5 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -7701,6 +7701,7 @@ bool has_unmovable_pages(struct zone *zone
-variable]
Signed-off-by: Mathieu Malaterre
---
drivers/nvmem/core.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c
index b05aa8e81303..f34f2363925a 100644
--- a/drivers/nvmem/core.c
+++ b/drivers/nvmem/core.c
@@ -1107,6 +1107,8 @@ static void
rning (W=1):
init/main.c:484:20: warning: no previous prototype for
‘arch_post_acpi_subsys_init’ [-Wmissing-prototypes]
Signed-off-by: Mathieu Malaterre
---
include/linux/acpi.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 15bfb15c2fa5..cb
Hi Jessica,
On Mon, Apr 16, 2018 at 7:11 PM, Jessica Yu wrote:
> +++ Mathieu Malaterre [11/04/18 21:05 +0200]:
>>
>> In commit 8c8ef42aee8f ("module: include other structures in module
>> version
>> check"), the function `struct_module` was renamed to `modu
|| pp == NULL)
CHECK: Comparison to NULL could be written "!pp"
#306: FILE: drivers/macintosh/via-pmu.c:2167:
+ if (pp == NULL)
CHECK: Comparison to NULL could be written "pp"
#315: FILE: drivers/macintosh/via-pmu.c:2183:
+ if (pp != NULL) {
Link: https://github.
-variable]
Signed-off-by: Mathieu Malaterre
---
v2: prefer ERR_PTR(-EINVAL) over a simple return NULL
drivers/nvmem/core.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c
index b05aa8e81303..f7b6c85cf393 100644
--- a/drivers/nvmem/core.c
+++ b
‘is_pageblock_removable_nolock’ [-Wmissing-prototypes]
Suggested-by: Michal Hocko
Signed-off-by: Mathieu Malaterre
---
v2: this function can be made static, make it so
include/linux/memory_hotplug.h | 1 -
mm/memory_hotplug.c| 23 +++
mm/page_alloc.c| 23
-variable]
Signed-off-by: Mathieu Malaterre
---
v3: return exact error code instead of EINVAL, tweak commit message a bit
v2: prefer ERR_PTR(-EINVAL) over a simple return NULL
drivers/nvmem/core.c | 7 +++
1 file changed, 7 insertions(+)
diff --git a/drivers/nvmem/core.c b/drivers/nvmem/core.c
On Thu, May 10, 2018 at 11:58 AM, Srinivas Kandagatla
wrote:
>
>
> On 09/05/18 19:57, Mathieu Malaterre wrote:
>>
>> Function nvmem_reg_read can return a non zero value indicating an error.
>> This returned value must be read and error propagated to
>> nvmem_cell_
On Thu, Mar 15, 2018 at 1:54 AM, Michael Ellerman wrote:
> Mathieu Malaterre writes:
>> Subject: Re: [PATCH] powerpc: Mark the variable earlycon_acpi_spcr_enable
>> maybe_unused
>
> You're fixing an error on powerpc, but the patch is to the serial code,
> so the su
On Tue, Apr 17, 2018 at 12:49 PM, Christophe Leroy
wrote:
> This option does dead code and data elimination with the linker by
> compiling with -ffunction-sections -fdata-sections and linking with
> --gc-sections.
>
> By selecting this option on mpc885_ads_defconfig,
> vmlinux LOAD segment size ge
On Tue, Apr 17, 2018 at 6:49 PM, Christophe LEROY
wrote:
>
>
> Le 17/04/2018 à 18:45, Mathieu Malaterre a écrit :
>>
>> On Tue, Apr 17, 2018 at 12:49 PM, Christophe Leroy
>> wrote:
>>>
>>> This option does dead code and data elimination with the lin
Christophe,
On Wed, Apr 18, 2018 at 8:34 AM, Christophe LEROY
wrote:
>
>
> Le 17/04/2018 à 19:10, Mathieu Malaterre a écrit :
>>
>> On Tue, Apr 17, 2018 at 6:49 PM, Christophe LEROY
>> wrote:
>>>
>>>
>>>
>>> Le 17/04/2018 à 18:45,
I only tested v2. I confirm this solve the symptoms I was seeing in
the bug report.
Tested-by: Mathieu Malaterre
thanks, your patch is actually much cleaner!
On Wed, Jun 15, 2016 at 10:42 PM, Frank Rowand wrote:
> From: Frank Rowand
>
> Fix a memory leak resulting from memory allo
t 0xdf5586c0 (size 32):
comm "swapper", pid 1, jiffies 4294892300 (age 2564.708s)
hex dump (first 32 bytes):
6c 32 2d 63 61 63 68 65 23 31 00 ac c0 21 02 f4 l2-cache#1...!..
On Thu, Jun 16, 2016 at 9:15 AM, Mathieu Malaterre
wrote:
> I only tested v2. I confirm this solve th
v3 tested here multiple times ! memleak is now gone.
Tested-by: Mathieu Malaterre
Thanks
On Thu, Jun 16, 2016 at 7:51 PM, Frank Rowand wrote:
> From: Frank Rowand
>
> Fix a memory leak resulting from memory allocation in safe_name().
> This patch fixes all call sites
ev/aty/radeon_base.c
> +++ b/drivers/video/fbdev/aty/radeon_base.c
> @@ -2307,7 +2307,7 @@ static int radeonfb_pci_register(struct pci_dev *pdev,
>
> ret = radeon_kick_out_firmware_fb(pdev);
> if (ret)
> - return ret;
> + goto err_release_fb;
G
Hi there,
Could someone please comment on the following hard-lock (*). Staring
at the code, I see `nvkm_rd32` calls are enclosed in a timeout
detection, except one.
drivers/gpu/drm/nouveau/nvkm/engine/gr/g84.c#L171
...
nvkm_msec(device, 2000,
if (!(nvkm_rd32(device, 0x100c80) & 0x0001))
b
erspace Access Protection (KUAP) because it is within user
> address space.
>
> This patch fixes those issues by properly setting disp_BAT through
> a call to btext_prepare_BAT(), allowing setup_disp_bat() to
> properly setup BAT3 for early bootx screen buffer access.
>
> Reported
powerpc-linux-gnu-ld: warning: orphan section `.data..LASANLOC1' from
`net/core/filter.o' being placed in section `.data..LASANLOC1'
This commit remove those warnings produced at W=1.
Reported-by: Christophe Leroy
Signed-off-by: Mathieu Malaterre
---
arch/powerpc/kernel/vmlinux
On Tue, May 28, 2019 at 1:40 PM Michael Ellerman wrote:
>
> Mathieu Malaterre writes:
>
> > Fix warnings treated as errors with W=1:
> >
> > arch/powerpc/lib/sstep.c:1172:31: error: variable 'rc' set but not used
> > [-Werror=unused-but-set-varia
Remove this warning from W=2 completely.
Signed-off-by: Mathieu Malaterre
---
scripts/Makefile.extrawarn | 1 -
1 file changed, 1 deletion(-)
diff --git a/scripts/Makefile.extrawarn b/scripts/Makefile.extrawarn
index 3ab8d1a303cd..98081ab300e5 100644
--- a/scripts/Makefile.extrawarn
+++ b/script
truncated before
terminating nul copying 4 bytes from a string of the same length
[-Wstringop-truncation]
Signed-off-by: Mathieu Malaterre
---
fs/hfsplus/xattr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/hfsplus/xattr.c b/fs/hfsplus/xattr.c
index d5403b4004c9..bb0b27d88
~
Cc: Joel Stanley
Cc: Masahiro Yamada
Signed-off-by: Mathieu Malaterre
---
lib/mpi/Makefile | 7 +++
1 file changed, 7 insertions(+)
diff --git a/lib/mpi/Makefile b/lib/mpi/Makefile
index d5874a7f5ff9..de4d96e988a3 100644
--- a/lib/mpi/Makefile
+++ b/lib/mpi/Makefi
Joel,
On Fri, Jun 21, 2019 at 9:30 AM Joel Stanley wrote:
>
> On Fri, 21 Jun 2019 at 07:13, Mathieu Malaterre wrote:
> >
> > The header file `longlong.h` makes uses of GNU extensions, this trigger
> > an error when compiling this code with clang. Add a special flag to
clang") until a proper fix is implemented upstream in
clang and relax requirement for clang.
Link: https://github.com/ClangBuiltLinux/linux/issues/563
Cc: Joel Stanley
Signed-off-by: Mathieu Malaterre
---
arch/powerpc/lib/Makefile | 4
1 file changed, 4 insertions(+)
diff --git a/arch/
Update
macros from GCC").
Suggested-by: Joel Stanley
Cc: Segher Boessenkool
Signed-off-by: Mathieu Malaterre
---
v2: Instead of passing compat flag to clang to behave as gcc, remove the
superfluous cast
lib/mpi/longlong.h | 105 +++--
1 file changed
201 - 300 of 455 matches
Mail list logo