Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1704679imm; Thu, 27 Sep 2018 00:52:50 -0700 (PDT) X-Google-Smtp-Source: ACcGV63Jf+VUZ61YEFr+kXVfcxieHZEryFeD5MxJFuszRW1DKWHJEkbCUvu57L96hHNKtrphoWlE X-Received: by 2002:a17:902:744c:: with SMTP id e12-v6mr9613160plt.186.1538034770824; Thu, 27 Sep 2018 00:52:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538034770; cv=none; d=google.com; s=arc-20160816; b=ft+DaGvWuLFIpb8O/d6yhHcU69VVFf03jF/wusqn4UXxV+jtrz3n/Am5QyfXWH7KAX +DNjXsUECyunXy1LECPW2zypM2eZHW395Mehuslpvll/qvJpwCymokDKdFzWDv1QSi81 UYCKWd0JlubHz5GuSh/tkXZ2i56uC7CjjeuhKspYXaDO5+Z3ZlIjx24edGTubcQZkNnK ayolUnqP90hajkZ8ZZ826ofSdSPrf/z4gxGM/uWn0Ko/gUWDDHX+8ZtHk4i5cYcwwX4n BTFrC3Fu9bjxZV5IbBjxmsIidb/qTbEsZB8Dvu1HZVyUXoyabVft8X7jYpsn4SVK7Hqx bVIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=92NAGdlAw2bLflqVLDlJCR+7/DWGFHFjB6sCMOyltRs=; b=U7Kj49pXD+RLQOcvRqxrheYanzYNXEg2zK6kbz0Y4OWrw30BDo743Zxk3qbsInxqSH pP/oOcdWWjQMcKI6tB3zSTcEbRSmwdgwt9cG3x/4GJWh02Vx6R0Rhw2qm2Dh53tjNzCJ QOyZO7VbVeUmcYV4+A4Z3MpdZbPLkBiR652B2iBO9u+TpstsrJvWaqtA7TUMm6+bWx6T 0oVRcbAKw/mKw0/9UsY5ZWr8Mo6X0zHOUBndh8Z9Semu2CDLxExfbJgiNytN63q1tvGh tvH4I/CEffT99ACTU7zaGn2q/9Yup/uDvAcLEUPseTJSiG9ncujVbTiv+yM+c1y3Wea1 bT4g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v126-v6si1342636pgv.10.2018.09.27.00.52.35; Thu, 27 Sep 2018 00:52:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727112AbeI0OJS (ORCPT + 99 others); Thu, 27 Sep 2018 10:09:18 -0400 Received: from mx2.suse.de ([195.135.220.15]:47308 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726708AbeI0OJS (ORCPT ); Thu, 27 Sep 2018 10:09:18 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 0398BADA8; Thu, 27 Sep 2018 07:52:20 +0000 (UTC) Date: Thu, 27 Sep 2018 09:52:20 +0200 From: Petr Mladek To: Rasmus Villemoes Cc: Jason Baron , Andrew Morton , linux-kernel@vger.kernel.org, Steven Rostedt Subject: Re: [PATCH 05/22] linux/printk.h: use DYNAMIC_DEBUG_BRANCH in pr_debug_ratelimited Message-ID: <20180927075220.w4fptezlycovaniv@pathway.suse.cz> References: <20180919220444.23190-1-linux@rasmusvillemoes.dk> <20180919220444.23190-6-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180919220444.23190-6-linux@rasmusvillemoes.dk> User-Agent: NeoMutt/20170421 (1.8.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu 2018-09-20 00:04:27, Rasmus Villemoes wrote: > pr_debug_ratelimited tests the dynamic debug descriptor the old-fashioned > way, and doesn't utilize the static key/jump label implementation on > architectures that HAVE_JUMP_LABEL. Use the DYNAMIC_DEBUG_BRANCH which > is defined appropriately. > > Cc: Petr Mladek > Cc: Steven Rostedt > Signed-off-by: Rasmus Villemoes Acked-by: Petr Mladek It is an independent fix. I am going to take it via printk.git unless anyone is against it. Best Regards, Petr > --- > include/linux/printk.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/printk.h b/include/linux/printk.h > index cf3eccfe1543..d3ba3245531d 100644 > --- a/include/linux/printk.h > +++ b/include/linux/printk.h > @@ -466,7 +466,7 @@ do { \ > DEFAULT_RATELIMIT_INTERVAL, \ > DEFAULT_RATELIMIT_BURST); \ > DEFINE_DYNAMIC_DEBUG_METADATA(descriptor, pr_fmt(fmt)); \ > - if (unlikely(descriptor.flags & _DPRINTK_FLAGS_PRINT) && \ > + if (DYNAMIC_DEBUG_BRANCH(descriptor) && \ > __ratelimit(&_rs)) \ > __dynamic_pr_debug(&descriptor, pr_fmt(fmt), ##__VA_ARGS__); \ > } while (0) > -- > 2.16.4 >