Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751815AbdFISX5 (ORCPT ); Fri, 9 Jun 2017 14:23:57 -0400 Received: from mail-qt0-f193.google.com ([209.85.216.193]:35791 "EHLO mail-qt0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751572AbdFISXy (ORCPT ); Fri, 9 Jun 2017 14:23:54 -0400 MIME-Version: 1.0 In-Reply-To: <20170609140413.7e7ba9e3@gandalf.local.home> References: <20170609132736.13699-1-vkuznets@redhat.com> <20170609132736.13699-11-vkuznets@redhat.com> <20170609140413.7e7ba9e3@gandalf.local.home> From: Andy Shevchenko Date: Fri, 9 Jun 2017 21:23:52 +0300 Message-ID: Subject: Re: [PATCH v8 10/10] tracing/hyper-v: trace hyperv_mmu_flush_tlb_others() To: Steven Rostedt Cc: Vitaly Kuznetsov , devel@linuxdriverproject.org, "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "K. Y. Srinivasan" , Haiyang Zhang , Stephen Hemminger , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Jork Loeser , Simon Xiao , Andy Lutomirski Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 555 Lines: 21 On Fri, Jun 9, 2017 at 9:04 PM, Steven Rostedt wrote: > On Fri, 9 Jun 2017 15:27:36 +0200 > Vitaly Kuznetsov wrote: >> +#if IS_ENABLED(CONFIG_HYPERV) > > Hmm, this is new to me. I know you can use IS_ENABLED() inside C code, > but I've never seen it used for preprocessor directives. This usually > is just: > > #ifdef CONFIG_HYPERV > > Other than that, this looks fine to me. That is the magic of IS_ENABLED(), IS_BUILTIN() macros. So, the code above is fine as is. -- With Best Regards, Andy Shevchenko