From patchwork Tue Jun 14 05:58:55 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 69965 Delivered-To: patch@linaro.org Received: by 10.140.106.246 with SMTP id e109csp1882237qgf; Mon, 13 Jun 2016 22:58:59 -0700 (PDT) X-Received: by 10.107.27.131 with SMTP id b125mr15037757iob.163.1465883939772; Mon, 13 Jun 2016 22:58:59 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cu4si14471805pad.192.2016.06.13.22.58.59; Mon, 13 Jun 2016 22:58:59 -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 S1751344AbcFNF6n (ORCPT + 30 others); Tue, 14 Jun 2016 01:58:43 -0400 Received: from conuserg-09.nifty.com ([210.131.2.76]:16935 "EHLO conuserg-09.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751226AbcFNF6g (ORCPT ); Tue, 14 Jun 2016 01:58:36 -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 u5E5vrmZ023811; Tue, 14 Jun 2016 14:57:55 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-09.nifty.com u5E5vrmZ023811 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1465883876; bh=6iJIQ+Ozh5D1+y7P/scuzrisa5xw4vS6dqYR+D2r+sI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=11pHqCgV2hAGzh/YnoEZ+s832PuCfAeFfPJXk9ALJy5y2EjXjzFObApddsgpuHlfL 2w9HVM2HyuECOQUxf+pH8QOreRHkpX8Puo7PsLsBZwqBRK7sjn2euVx3IJyodkPAy3 IKXjtd3eJd+I7+jETf61jV/UEahk0LDQ15q5w3DohOZS8GoPeLEa34Wh6DfYM2cEQJ gGOYgd8C+ZCNRjqwbkP6xt7l2zuKhXbj4rTgIOVDU+SM5j0QgN9eOP8sJ12tZFfTsb n1FeLIQmYEGRPSmqefUogJmCK/gBmvq5AdzKrFlfmZzLTARDi+1dLleekcYEP33YaY BJQXhZy4MbvPg== 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 Subject: [PATCH 2/5] export.h: use __is_defined() to check if __KSYM_* is defined Date: Tue, 14 Jun 2016 14:58:55 +0900 Message-Id: <1465883938-25194-2-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 Here the need is for a macro that checks whether the given symbol is defined or not, which has nothing to do with config. The new macro __is_defined() is a better fit for this case. Signed-off-by: Masahiro Yamada --- include/linux/export.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 1.9.1 Acked-by: Nicolas Pitre diff --git a/include/linux/export.h b/include/linux/export.h index 2f9ccbe..c565f87 100644 --- a/include/linux/export.h +++ b/include/linux/export.h @@ -82,7 +82,7 @@ extern struct module __this_module; #include #define __EXPORT_SYMBOL(sym, sec) \ - __cond_export_sym(sym, sec, config_enabled(__KSYM_##sym)) + __cond_export_sym(sym, sec, __is_defined(__KSYM_##sym)) #define __cond_export_sym(sym, sec, conf) \ ___cond_export_sym(sym, sec, conf) #define ___cond_export_sym(sym, sec, enabled) \