From: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
To: Marcin Chojnacki <marcinch7@gmail.com>
Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH] mips: mm: correct build errors for debug code in tlb-r3k
Date: Sat, 14 Aug 2021 14:46:22 +0200 [thread overview]
Message-ID: <20210814124622.GA6450@alpha.franken.de> (raw)
In-Reply-To: <20210813135434.1015906-1-marcinch7@gmail.com>
On Fri, Aug 13, 2021 at 03:54:33PM +0200, Marcin Chojnacki wrote:
> tlb-r3k has debug code hidden under DEBUG_TLB define. This flag
> is undefined by default which results in the code not being compiled.
> If one would enable the flag, the file would not build because of
> the code being not up to date with the rest of this file.
>
> This commit fixes the normally hidden debug code to bring it in line
> with the rest of the file and make it build with the debug flag enabled.
>
> Signed-off-by: Marcin Chojnacki <marcinch7@gmail.com>
> ---
> arch/mips/mm/tlb-r3k.c | 15 +++++++++------
> 1 file changed, 9 insertions(+), 6 deletions(-)
>
> diff --git a/arch/mips/mm/tlb-r3k.c b/arch/mips/mm/tlb-r3k.c
> index a36622ebe..ca53f3366 100644
> --- a/arch/mips/mm/tlb-r3k.c
> +++ b/arch/mips/mm/tlb-r3k.c
> @@ -77,7 +77,7 @@ void local_flush_tlb_range(struct vm_area_struct *vma, unsigned long start,
> unsigned long size, flags;
>
> #ifdef DEBUG_TLB
> - printk("[tlbrange<%lu,0x%08lx,0x%08lx>]",
> + printk("[tlbrange<%llu,0x%08lx,0x%08lx>]",
> cpu_context(cpu, mm) & asid_mask, start, end);
> #endif
running checkpatch over your patch gives me
WARNING: printk() should include KERN_<LEVEL> facility level
#29: FILE: arch/mips/mm/tlb-r3k.c:80:
+ printk("[tlbrange<%llu,0x%08lx,0x%08lx>]",
can you fix that as well ? Maybe be even replacing printk with
pr_debug
Thomas.
--
Crap can work. Given enough thrust pigs will fly, but it's not necessarily a
good idea. [ RFC1925, 2.3 ]
prev parent reply other threads:[~2021-08-14 12:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-13 13:54 [PATCH] mips: mm: correct build errors for debug code in tlb-r3k Marcin Chojnacki
2021-08-14 12:46 ` Thomas Bogendoerfer [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210814124622.GA6450@alpha.franken.de \
--to=tsbogend@alpha.franken.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mips@vger.kernel.org \
--cc=marcinch7@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).