Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp245503pxy; Sat, 14 Aug 2021 05:59:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwQVm7BIRMQNzSoPXJdbfa1V5FoFONu/8onG9nifKYnVBUXduoETaYY1cYK32upbRpC5xL5 X-Received: by 2002:a92:d70f:: with SMTP id m15mr5052911iln.162.1628945984875; Sat, 14 Aug 2021 05:59:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628945984; cv=none; d=google.com; s=arc-20160816; b=fAGZtFxNCW2GQglhnIn5P41DNrFzVAq6S3f/oS6Eh8hzXTiIfnngx1D57uZ8JAl6gu cHptP7925vPumhjdSYtcAU5PZ9x5ooAe5WwT7Ttie7q1m9MICgNvoa1W3H5Bk4hzxoiA 6ACwlOgZHOp4OFO3OdGDM30QdbX40hCnNawtqp0cRY3dMlfWQhylsxmhoofuFhT0L4Ld srLG5JOKUZvHD97B4VJLXlupn2Sfauc+fXhg2Tbkbxc3DUF99XtI8gLUSGhWjhfHJ60K nPIF12FprhQ8LgXVUdCq62O9BA3kTdEQqFxSyEnzQ5Ho4C+7zxk/mXR7T9YrmGOCjFr5 sh+w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=zcMOWe94XGDP1HxGnTw1MQLdOAG8YzNKsHdnpXiOWjI=; b=PGZh013nHi8WLbVUg9/GDHAHsmaRDzMBTIgcFggUFFRyVk9HSwkiEJGE8xM4+0UFtq vNpk/kNbl46toF0d4mGFbev1fgtP3+4Mf1EMYeLNGtI4enb3ByWW4ZqSVOkfkk7M4X+Z /Kmnne04CRgVy0YpCSTnweIcWOr8iXYSHQ9zFHxkPiKhEgXdRMKhyu/65V+fssuaP39Q gtoh5WLIyeAsVKK4FZlbEOqd6SU4EJxuINQ8TCT6bbv4ZUITfUp1k8M1vd9UohrZRzhO It5zgSqjzKnzFeBFpQBjhrXFR51dlLTquvN8GId/RYdoR67ID1e7NCz/DNeQ8MzEpfAR PPVg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n11si4470205ioj.7.2021.08.14.05.59.30; Sat, 14 Aug 2021 05:59:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229549AbhHNM7F (ORCPT + 99 others); Sat, 14 Aug 2021 08:59:05 -0400 Received: from elvis.franken.de ([193.175.24.41]:60528 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230523AbhHNM7F (ORCPT ); Sat, 14 Aug 2021 08:59:05 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1mEtFD-0001ZR-01; Sat, 14 Aug 2021 14:58:35 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id C8585C0814; Sat, 14 Aug 2021 14:46:22 +0200 (CEST) Date: Sat, 14 Aug 2021 14:46:22 +0200 From: Thomas Bogendoerfer To: Marcin Chojnacki 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 Message-ID: <20210814124622.GA6450@alpha.franken.de> References: <20210813135434.1015906-1-marcinch7@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210813135434.1015906-1-marcinch7@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > --- > 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_ 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 ]