From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751736AbcGNQaO (ORCPT ); Thu, 14 Jul 2016 12:30:14 -0400 Received: from nm15.bullet.mail.bf1.yahoo.com ([98.139.212.174]:58082 "EHLO nm15.bullet.mail.bf1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751374AbcGNQaL (ORCPT ); Thu, 14 Jul 2016 12:30:11 -0400 X-Yahoo-Newman-Id: 487548.1679.bm@smtp111.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: uRR1GbMVM1kx4lIIJe0C6xyvLPfU42xH43BB5yqxBTK.7Ym GG2GNTNgkoYTJCbvh2NJslIxpyc5_6r_AlBqrnHrtD6kQQt7WzZv4IVEqXiS IT1jQ0tJJOfMY1PbohLuAOJ7tuTHY6cQC_YBCNH26Qba6v_qYYz7jsF.y_Hk WLGTaeyBPyW38InYjCaTSeVMkDpKhQjcMzNWrcY.BHGHEz988vitgiSfBHYz nnK1fhi2D3auIl2QiisLRgF97mrW.SLTetItFpWeJbw40eyg._rWVYkqReHu OIW2KHLfWuVsqCCnWwi.ELH.xkdnANNBUKoXSW4F70fGSHUK191Pah4Xjqak DuwXXcnY1Ck2Lf6wMlkm85HTqU6bnTu16TX_CEQu6AVF7ajfw7AT4c9pQ9o5 BI3AzRrwyhAcj0f499JjbC3IEVqb3pdKF8Xck6hXl8viWTnUE0BK8wjbY914 vxwzJhVpdHHuYjzhlG4nzUjOBOvKn0PcAmKbCY2Fqx8ELSGZZe_fyVXCZohZ JW085zF6tWWYguRQn3gnfP0qVok2raYy3Mdv1O2UbUiEm_I7tEvv_qDI- X-Yahoo-SMTP: OIJXglSswBDfgLtXluJ6wiAYv6_cnw-- Subject: Re: [PATCH] security: Use IS_ENABLED() instead of checking for built-in or module To: Javier Martinez Canillas , linux-kernel@vger.kernel.org References: <1468512050-26272-1-git-send-email-javier@osg.samsung.com> <3f0053fa-8824-f86f-e04f-16ad1204abc7@osg.samsung.com> Cc: "Serge E. Hallyn" , Paul Moore , linux-security-module@vger.kernel.org, Stephen Smalley , Eric Paris , selinux@tycho.nsa.gov, James Morris From: Casey Schaufler Message-ID: <37a0011d-b32f-d24b-3771-f6eb6cae5342@schaufler-ca.com> Date: Thu, 14 Jul 2016 09:30:07 -0700 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <3f0053fa-8824-f86f-e04f-16ad1204abc7@osg.samsung.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/14/2016 9:20 AM, Javier Martinez Canillas wrote: > Hello Casey, > > On 07/14/2016 12:17 PM, Casey Schaufler wrote: >> On 7/14/2016 9:00 AM, Javier Martinez Canillas wrote: >>> The IS_ENABLED() macro checks if a Kconfig symbol has been enabled either >>> built-in or as a module, use that macro instead of open coding the same. >> Why? >> > Why not? We have a macro for this so why is better to open coding it? Unless there is a real advantage to IS_ENABLED() over ifdef there is no value in making the change. Any change can introduce a problem, so we don't make changes based on "why not". It's called code churn. > > Best regards,