Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp3223860ybl; Mon, 19 Aug 2019 14:32:44 -0700 (PDT) X-Google-Smtp-Source: APXvYqys4gs6eeJLZxgTp1pbT84u3n3/ZhtvVEA1AjFA4brZN1MVYtW7APuthC72gFHgPUCjBPMs X-Received: by 2002:a17:902:bcc2:: with SMTP id o2mr24846303pls.127.1566250364818; Mon, 19 Aug 2019 14:32:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566250364; cv=none; d=google.com; s=arc-20160816; b=qGELBCDoDcGAJh6/LT67vJb6CgUsQeKdvYCccZ+/ivjkcwLIIOgoc3NSOJmAKm6jh4 y8LjrgDYmgHRI+LhOEDi8uD8Y/dRJWPgghDaV0NpPhGPxILu0Ywlwc3Q+akEMOmRmY6c iucrYh0iP9oFyR1av4Lz8eD8bxoa/ArkQ9TE+GmSa4MM/JDFwUSw/dLc1NVCJn9AruRn ONLU652SqcTNJbRKv4vZB3S2w9ufl97B8SPDhGp7GYnj5SJfsi3TmG/5NltKozj9Fkm9 UqZOSRUVQrlwKm2y064OxrZkLncz2V2LF87DlyA7huEGqqt8KR52Ef9wIDLhh1Q2EfqW R+Ag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from; bh=O7yTuNf+FtUespdGI3TD93ZLtvWbtM2NOgsKoqiW3ac=; b=MIKGIFIkBap6QxzzBP/+Z6PAt6qqtoA0GJZdK/ilUC74WB6bAHtBd5JYPYwHuEhXt7 lXq6z230XTKNTLjz/3c9WnMRXQ2pO5ZoLbq20oL/bakjYxcxsXXFJXNsFSVWSvOA0SAn 2gfqlvcMe4/u/yaGdDx72u1n4xoE4UC6yXiI9Ws3sg2eHL0iV+6cJ0DKq40DRuryewl6 kUEi9rgOsDMEag3m4qmVF6YpztYwQkGQ65M02dSOPfkcLZm1KZXWYRA1QGLYprxdiSQ5 rtrmEum5JPR2RYfNeEXWQa60XUppjLEeFoXRDf+84mGq3pFqzL3QNSX6wUv74eeKS/iA 65Ww== 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 r3si11309048pfg.156.2019.08.19.14.32.28; Mon, 19 Aug 2019 14:32:44 -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 S1728609AbfHSVaO (ORCPT + 99 others); Mon, 19 Aug 2019 17:30:14 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:49491 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728427AbfHSVaL (ORCPT ); Mon, 19 Aug 2019 17:30:11 -0400 Received: from localhost ([127.0.0.1] helo=vostro.local) by Galois.linutronix.de with esmtp (Exim 4.80) (envelope-from ) id 1hzpDw-0004ki-IF; Mon, 19 Aug 2019 23:29:56 +0200 From: John Ogness To: linux-kernel@vger.kernel.org Cc: Peter Zijlstra , Petr Mladek , Sergey Senozhatsky , Steven Rostedt , Linus Torvalds , Greg Kroah-Hartman , Andrea Parri , Thomas Gleixner , Sergey Senozhatsky , Brendan Higgins Subject: [PATCH] printk-rb: fix test module macro usage References: <20190807222634.1723-1-john.ogness@linutronix.de> <20190807222634.1723-7-john.ogness@linutronix.de> Date: Mon, 19 Aug 2019 23:29:54 +0200 In-Reply-To: <20190807222634.1723-7-john.ogness@linutronix.de> (John Ogness's message of "Thu, 8 Aug 2019 00:32:31 +0206") Message-ID: <87blwkvo6l.fsf_-_@linutronix.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org DECLARE_PRINTKRB() now requires a wait queue argument, used by the blocking reader interface. Signed-off-by: John Ogness --- For RFCv4 the macro prototype changed. The fixup for the test module didn't make it into the series. kernel/printk/test_prb.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/printk/test_prb.c b/kernel/printk/test_prb.c index 0157bbdf051f..49bcf831af7e 100644 --- a/kernel/printk/test_prb.c +++ b/kernel/printk/test_prb.c @@ -6,8 +6,11 @@ #include #include #include +#include #include "ringbuffer.h" +DECLARE_WAIT_QUEUE_HEAD(test_wait); + /* * This is a test module that starts "num_online_cpus() - 1" writer threads * and 1 reader thread. The writer threads each write strings of varying @@ -63,7 +66,7 @@ static void dump_rb(struct printk_ringbuffer *rb) trace_printk("END full dump\n"); } -DECLARE_PRINTKRB(test_rb, 5, 7); +DECLARE_PRINTKRB(test_rb, 5, 7, &test_wait); static int prbtest_writer(void *data) { -- 2.20.1