Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp141253rwn; Wed, 7 Sep 2022 13:58:02 -0700 (PDT) X-Google-Smtp-Source: AA6agR6SVCoevRPRJQ2DOgsbgUow0Z51XSaRT4g9gCPmeRbytZOZ3p/y3Xo3TRr3lmTTU8gZ9ibV X-Received: by 2002:a17:906:4fc3:b0:72e:eab4:d9d7 with SMTP id i3-20020a1709064fc300b0072eeab4d9d7mr3540881ejw.599.1662584282524; Wed, 07 Sep 2022 13:58:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662584282; cv=none; d=google.com; s=arc-20160816; b=G7ebdUYE7L9S7F5ujaGr6S+oFdtnRkmvVJFFT6oNXIvKYhApWDiEpCPG7UzVxKF/c9 SAKv9RpY1l5EIvJkhLjNTzd6ThdWQPzY22HCcB7lzT54087nqTAtX+ucXeCVZIFWK+05 kJi+QzCUJ/LLjM72DUMepegmRaMWb5r3fhzLZtoylwZypWjd+Q8i66GG2xMBcpXl9lPr JjknLN7OMoqjINkRH1n5s+1u5g9La4qX2PFQWd4WqGntIytinKkQUPZSELEZz/bRFY5D cXuTXWa5DQ2ZRU1cCHLPkZrl3nmcHbw/vsl05k6zMvwlTitoXj/32u1/UAftuiE6t+C5 3Xtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=RUwuiiueblzbNrme6QsURfJyS3QmMdSgJi3GPWqvcMg=; b=ex5ox03/1okLY9nTjW9qJORseTCBXdDUrLNomA/HUiQbbsAA1TIPHU2Tlpop7CPq7Z 0GWL5Sigcz23yFDnZHfTCym71G/Pv7LISY1jEYYczoJJNDvHqluQUK8KJykFGByihnGv tnC7sHV+l3OeqBGkE6cnpDfrFZdK7uzDhV0VLWG/pPd+AHkAt5v2myNk0GmLiGuZUKqA QzQCpsOcN0IggmVzMn0ha6CrkhJedgeWa36cKGkdx5w6cQROYIIS5e/FzXm/5QA2cnu8 Vo/7pyEUCxk/CL/iqZwNeYm3x2qXap2VWeAMKpreAPTL0m3uRTzF9DigIy98o40xT0A2 k2hw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nb9-20020a1709071c8900b0074171cca419si377117ejc.892.2022.09.07.13.57.32; Wed, 07 Sep 2022 13:58:02 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230090AbiIGUn3 (ORCPT + 99 others); Wed, 7 Sep 2022 16:43:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229824AbiIGUnX (ORCPT ); Wed, 7 Sep 2022 16:43:23 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9DB66AF48E; Wed, 7 Sep 2022 13:43:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 3B41261A8D; Wed, 7 Sep 2022 20:43:22 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8D2C8C433C1; Wed, 7 Sep 2022 20:43:20 +0000 (UTC) Date: Wed, 7 Sep 2022 16:44:00 -0400 From: Steven Rostedt To: Bart Van Assche Cc: Arun Easi , Martin Petersen , Sudip Mukherjee , James Bottomley , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, linux-next@vger.kernel.org, GR-QLogic-Storage-Upstream@marvell.com Subject: Re: [PATCH v2 1/1] tracing: Fix compile error in trace_array calls when TRACING is disabled Message-ID: <20220907164400.759e2ee3@gandalf.local.home> In-Reply-To: <60870376-3518-896b-7a6b-a4b9ea05264f@acm.org> References: <20220907185745.14382-1-aeasi@marvell.com> <20220907185745.14382-2-aeasi@marvell.com> <60870376-3518-896b-7a6b-a4b9ea05264f@acm.org> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-6.7 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 7 Sep 2022 12:27:33 -0700 Bart Van Assche wrote: > On 9/7/22 11:57, Arun Easi wrote: > > +#else /* CONFIG_TRACING */ > > +static inline int register_ftrace_export(struct trace_export *export) > > +{ > > + return -EINVAL; > > +} > > +static inline int unregister_ftrace_export(struct trace_export *export) > > +{ > > + return 0; > > +} > > Isn't it recommended to leave a blank line between function definitions? Not really for stub functions in header files. -- Steve