From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752629AbdFLOQB (ORCPT ); Mon, 12 Jun 2017 10:16:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:50082 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752189AbdFLOP7 (ORCPT ); Mon, 12 Jun 2017 10:15:59 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6DFFF23983 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Mon, 12 Jun 2017 10:15:54 -0400 From: Steven Rostedt To: Ian Abbott Cc: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, Alexander Potapenko , Andrew Morton , Arnd Bergmann , Borislav Petkov , Hidehiro Kawai , Jakub Kicinski , Johannes Berg , Kees Cook , Michal Nazarewicz , Peter Zijlstra , Rasmus Villemoes Subject: Re: [PATCH v5 1/6] asm-generic/bug.h: declare struct pt_regs; before function prototype Message-ID: <20170612101554.62828f32@gandalf.local.home> In-Reply-To: <20489607-25ef-1cbc-3679-6d4c7253514b@mev.co.uk> References: <20170525120316.24473-1-abbotti@mev.co.uk> <20170525120316.24473-2-abbotti@mev.co.uk> <20170608100731.43ee0323@gandalf.local.home> <20489607-25ef-1cbc-3679-6d4c7253514b@mev.co.uk> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 12 Jun 2017 15:13:54 +0100 Ian Abbott wrote: > >> diff --git a/include/asm-generic/bug.h b/include/asm-generic/bug.h > >> index d6f4aed479a1..87191357d303 100644 > >> --- a/include/asm-generic/bug.h > >> +++ b/include/asm-generic/bug.h > >> @@ -97,6 +97,7 @@ extern void warn_slowpath_null(const char *file, const int line); > >> > >> /* used internally by panic.c */ > >> struct warn_args; > >> +struct pt_regs; > > > > Probably be better to move pt_regs above the comment. For one, it is > > used before warn_args in the function below. Two, it's not defined > > internally by panic.c like warn_args is. > > Alternatively, the comment could be placed on the same line as `struct > warn_args;`. I don't think it's a big enough of a deal to patch it for > the sake of it, tbh. trivial clean up patches are fine to add for merge windows. Could just write a patch and send it to the trivial maintainer. -- Steve