Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5434636imb; Thu, 7 Mar 2019 15:59:31 -0800 (PST) X-Google-Smtp-Source: APXvYqyHUneqAYxPSvB3afQbojIdv9Oz8Mkw88dpKieEUYpOS0iyZVHKiejQd+0W8kRgWNoSQJ0T X-Received: by 2002:a17:902:1025:: with SMTP id b34mr15932062pla.306.1552003171455; Thu, 07 Mar 2019 15:59:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552003171; cv=none; d=google.com; s=arc-20160816; b=cksZGImw6n36fsmiZI2moAeDVfTGMo5Iw3L3xD+lgzaRdsIBk/mTGFAJcHCN67Nmb7 pfkdL4TdUGSs9xD+3GoGYITa2/mbPKISTIF9srCdefH0cq+IR0/33llAQg74dr7WWbeo kuXgM/H3r4cI2dQ/0wNFRRbxZgdSHovlcwQyEgSj3+pkC8+PmhbFeYmCMMXyLV0gyJc5 82DT7x2y45k4LI1qWa/QK4BTHB6Hcr+d2jKD8q2MiYRCk5wLjnyRSSQ7i9c0S2wcti4t Qs+CmhQBR4B5++uICtug+YkJAwNqmSyKNgkoM+03n8Ko8y+/XFAbAxfFH6xuffWSPYu7 k29Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:date:cc:to:from:subject:message-id; bh=K2XGcjgu5neC5/J+O9lfdXASkm9C0BZEceDFUJ/jEU0=; b=qFBV7HaXMUeZFpTTUZ0wGNn5QODmVgNtan5IIudfPNWhri5yk7NF+wfx7QmvMFTKIh 2aks1QlfgyZLxtKP+YaZRMT19FC15tAUdth/+YTtO6HvS4yD6uJSN5e8Qqux4WRQ3vdu EIyCn8TMYxtg048UmuMhk/9RNnaBYCUmiIqOTzZJQlXjCILT8EB0Q+rt6nYg4Y5nqqyg eYM5FZYIXtWEt+udbPgE0EuI2zmQd7ZK79zvtkfujtMrPXKXlI3DiMo0XRog3XV54Wv7 segFzRjXPIGJ/3+O18bzLcvIj8/K4EX3VRKzLRK9dHiKAkhAiBvXeempwq3sBCSchOUB bRag== ARC-Authentication-Results: i=1; mx.google.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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m32si5502669pld.262.2019.03.07.15.59.15; Thu, 07 Mar 2019 15:59:31 -0800 (PST) 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; 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 S1726308AbfCGX4i (ORCPT + 99 others); Thu, 7 Mar 2019 18:56:38 -0500 Received: from smtprelay0043.hostedemail.com ([216.40.44.43]:46279 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726279AbfCGX4i (ORCPT ); Thu, 7 Mar 2019 18:56:38 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id 5521A181D341C; Thu, 7 Mar 2019 23:56:37 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:617:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1539:1568:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3865:3868:3871:3872:5007:6691:7903:10004:10400:10848:11026:11473:11658:11914:12043:12114:12296:12438:12555:12760:13069:13311:13357:13439:14181:14394:14659:14721:21063:21080:21451:21627:30025:30029:30054,0,RBL:149.142.244.224:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:28,LUA_SUMMARY:none X-HE-Tag: women44_9105590a9ce0c X-Filterd-Recvd-Size: 1457 Received: from XPS-9350 (unknown [149.142.244.224]) (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA; Thu, 7 Mar 2019 23:56:36 +0000 (UTC) Message-ID: <66af3908ab0a63a6768f3d75a87abf4056a9f8cf.camel@perches.com> Subject: [PATCH] RISC-V: Use IS_ENABLED(CONFIG_CMODEL_MEDLOW) From: Joe Perches To: Palmer Dabbelt , Albert Ou Cc: linux-riscv@lists.infradead.org, LKML Date: Thu, 07 Mar 2019 15:56:34 -0800 Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org IS_ENABLED should generally use CONFIG_ prefaced symbols and it doesn't appear as if there is a CMODEL_MEDLOW define. Signed-off-by: Joe Perches --- arch/riscv/kernel/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/riscv/kernel/module.c b/arch/riscv/kernel/module.c index 7dd308129b40..2872edce894d 100644 --- a/arch/riscv/kernel/module.c +++ b/arch/riscv/kernel/module.c @@ -141,7 +141,7 @@ static int apply_r_riscv_hi20_rela(struct module *me, u32 *location, { s32 hi20; - if (IS_ENABLED(CMODEL_MEDLOW)) { + if (IS_ENABLED(CONFIG_CMODEL_MEDLOW)) { pr_err( "%s: target %016llx can not be addressed by the 32-bit offset from PC = %p\n", me->name, (long long)v, location);