Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp5431426imb; Thu, 7 Mar 2019 15:53:41 -0800 (PST) X-Google-Smtp-Source: APXvYqyoT18JqaSnAxDDSVrQR1b7CkwOuuHbIEycTdGfWsoMg8gpzrSrYwEQdVYgfnuXZwfhN04J X-Received: by 2002:a63:fb16:: with SMTP id o22mr13539338pgh.209.1552002821294; Thu, 07 Mar 2019 15:53:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1552002821; cv=none; d=google.com; s=arc-20160816; b=0OhukJOZgAw4Mp8v5bA9d1c5tMeY/6xI9biSvSHCA8o36Dj9UxY4DHuj7g+5DNhPuG QoS81T6DD+gt0OwM9Y4sVKNTljxpPwbJeKWgYVcS5f/wvqW1ptC3SOJ7O2M5ph4fsr1f P+kUI962oU0QBrR0byUgCD2MVjupddEqA1Kvq2RErWQTKC0AC3szKN8sh4iwY/yUo1Xp 1FI19L+GNOLEhLIg2PIV15NrBmWdzjsfD8u7xC8qRjk5zCeNRSx49/sMOJo9C/Z6c+q3 +gcRUFoRxfDATtAS/ViDZwgwPYp/9M3GDV0Otn+64J1o7p6GdNk0JfpY5qCDLOhGh1bR Whqg== 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=WQa7y/CPlDKBbHnTw+aTX2n+GN+6M2nIF2ARNaSH91A=; b=qPEQCqhVG2D2muVgT3Pu0PNtGEovRZAYY8oqtoLFYPbcPMctRorHJosDY5wRnwTsOU Y0e1N/yjTKtIGuktFSqlEvvCutJglUuSbWK19mWEAwhiaBiifEbZuFk0BwGkvRfUOlrp pn0YGfp0w4YDRfRWjlosrPnAzHCFXuqxfMHxw6oByqJ3auWO7f4x3axi16DyFWNH2eLc hX7jKyy6aUVucCW6UVsC6kvGxuNxaluT+0xk3CyPQJFvXUiLHlyphBs/wHrSF0q424xg Cm3JrxAjRcGVd29OEHIsIynb1+azX3Hfiy6O7dlWq9t623cLUpWuQN6FBjkuND5P/K+e 4IvQ== 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 c15si5021431pgj.13.2019.03.07.15.53.25; Thu, 07 Mar 2019 15:53:41 -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 S1726266AbfCGXvu (ORCPT + 99 others); Thu, 7 Mar 2019 18:51:50 -0500 Received: from smtprelay0082.hostedemail.com ([216.40.44.82]:52742 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726217AbfCGXvu (ORCPT ); Thu, 7 Mar 2019 18:51:50 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay05.hostedemail.com (Postfix) with ESMTP id 7F3ED1805B2C9; Thu, 7 Mar 2019 23:51:49 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::,RULES_HIT:41:355:379:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1437:1515:1516:1518:1534:1540:1593:1594:1711:1714:1730:1747:1777:1792:2194:2199:2393:2559:2562:2828:3138:3139:3140:3141:3142:3350:3868:3871:3872:4321:5007:6691:10004:10400:10848:11026:11473:11658:11914:12043:12114:12296:12438:12555:12760:12986:13069:13311:13357:13439:14096:14097:14181:14394:14659:14721:21063:21080:21627: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:30,LUA_SUMMARY:none X-HE-Tag: art80_66f1c43c6950d X-Filterd-Recvd-Size: 1571 Received: from XPS-9350 (unknown [149.142.244.224]) (Authenticated sender: joe@perches.com) by omf08.hostedemail.com (Postfix) with ESMTPA; Thu, 7 Mar 2019 23:51:47 +0000 (UTC) Message-ID: Subject: [PATCH] s390/mem_detect: Use IS_ENABLED(CONFIG_BLK_DEV_INITRD) From: Joe Perches To: Martin Schwidefsky , Heiko Carstens Cc: linux-s390 , LKML Date: Thu, 07 Mar 2019 15:51:45 -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 BLK_DEV_INITRD define. Signed-off-by: Joe Perches --- arch/s390/boot/mem_detect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/s390/boot/mem_detect.c b/arch/s390/boot/mem_detect.c index 4cb771ba13fa..5d316fe40480 100644 --- a/arch/s390/boot/mem_detect.c +++ b/arch/s390/boot/mem_detect.c @@ -25,7 +25,7 @@ static void *mem_detect_alloc_extended(void) { unsigned long offset = ALIGN(mem_safe_offset(), sizeof(u64)); - if (IS_ENABLED(BLK_DEV_INITRD) && INITRD_START && INITRD_SIZE && + if (IS_ENABLED(CONFIG_BLK_DEV_INITRD) && INITRD_START && INITRD_SIZE && INITRD_START < offset + ENTRIES_EXTENDED_MAX) offset = ALIGN(INITRD_START + INITRD_SIZE, sizeof(u64));