From patchwork Tue Jun 14 05:58:58 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 69968 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp1882304qgf; Mon, 13 Jun 2016 22:59:18 -0700 (PDT) X-Received: by 10.36.117.86 with SMTP id y83mr24081528itc.3.1465883958466; Mon, 13 Jun 2016 22:59:18 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id xm3si9974281pac.158.2016.06.13.22.59.18; Mon, 13 Jun 2016 22:59:18 -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; dkim=pass header.i=@nifty.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 S1751417AbcFNF6y (ORCPT + 30 others); Tue, 14 Jun 2016 01:58:54 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:17381 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751388AbcFNF6w (ORCPT ); Tue, 14 Jun 2016 01:58:52 -0400 Received: from beagle.diag.org (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-09.nifty.com with ESMTP id u5E5vrmc023811; Tue, 14 Jun 2016 14:57:59 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com u5E5vrmc023811 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1465883880; bh=X8IaGAIIfOHjM66UZ515I/IgntA2FZa8vqIbBglNtaU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=GknOHH+159hvTdgZv59pnvUi51e54SEuthzZnaclcibISnWHnlA6VJHfEfVp/FQuV gj0tUuQc2vZ2nI04Q8eY4nSIeal5juXTeIMMCt3cZX41POtbJSAE6XOql1agnpq6vC nfSQZpKRayKCWVOWfTgtrzlEOmQt1qqUm3m50RTytJ/CCItCstWbqbV4LvvyqYtRws tR23yubgdIJlIGgyEDVsWRyVXvdKtli5Z0VvNlj9JOpO8yg/HLb9NSIOz2scXChEXw g+vusn4pGW43rTUatdor931cAW9THJMxS3++h90HNrqi2/FSY4aiFFDQm3md4+cT6X +LI/qj7X34D7A== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-kernel@vger.kernel.org, Andrew Morton Cc: Rusty Russell , Michal Simek , Linus Torvalds , Arnd Bergmann , Michal Marek , Nicolas Pitre , Masahiro Yamada , linux-arch@vger.kernel.org Subject: [PATCH 5/5] vmlinux.lds.h: replace config_enabled() with IS_ENABLED() Date: Tue, 14 Jun 2016 14:58:58 +0900 Message-Id: <1465883938-25194-5-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1465883938-25194-1-git-send-email-yamada.masahiro@socionext.com> References: <1465883938-25194-1-git-send-email-yamada.masahiro@socionext.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The use of config_enabled() against config options is ambiguous. Now, IS_ENABLED() is implemented purely with macro expansion, so let's replace config_enabled() with IS_ENABLED(). Signed-off-by: Masahiro Yamada --- include/asm-generic/vmlinux.lds.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 6a67ab9..faa4d2b 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -164,7 +164,7 @@ #define ___OF_TABLE(cfg, name) _OF_TABLE_##cfg(name) #define __OF_TABLE(cfg, name) ___OF_TABLE(cfg, name) -#define OF_TABLE(cfg, name) __OF_TABLE(config_enabled(cfg), name) +#define OF_TABLE(cfg, name) __OF_TABLE(IS_ENABLED(cfg), name) #define _OF_TABLE_0(name) #define _OF_TABLE_1(name) \ . = ALIGN(8); \