Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2f6dafc5 authored by Paul Mundt's avatar Paul Mundt
Browse files

sh: unwinder: Fix up uninitialized variable warnings on sh2a build.



A couple of these popped up on the sh2a build, causing build failures.

Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 4aa5ac4e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -200,7 +200,7 @@
 */
 */
static __always_inline unsigned long dwarf_read_arch_reg(unsigned int reg)
static __always_inline unsigned long dwarf_read_arch_reg(unsigned int reg)
{
{
	unsigned long value;
	unsigned long value = 0;


	switch (reg) {
	switch (reg) {
	case 14:
	case 14:
+1 −1
Original line number Original line Diff line number Diff line
@@ -887,7 +887,7 @@ static int __init dwarf_unwinder_init(void)
{
{
	u32 entry_type;
	u32 entry_type;
	void *p, *entry;
	void *p, *entry;
	int count, err;
	int count, err = 0;
	unsigned long len;
	unsigned long len;
	unsigned int c_entries, f_entries;
	unsigned int c_entries, f_entries;
	unsigned char *end;
	unsigned char *end;