Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2277197imm; Thu, 27 Sep 2018 10:06:37 -0700 (PDT) X-Google-Smtp-Source: ACcGV63ftfdG0esLP9nnUF6vXEuKaIhXp6KGNxvElQGgXcWR9VRpSeiIIdhgZY1jrDcPWTK4wYwx X-Received: by 2002:a63:e216:: with SMTP id q22-v6mr2561416pgh.206.1538067997806; Thu, 27 Sep 2018 10:06:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538067997; cv=none; d=google.com; s=arc-20160816; b=rsFFAJdEBb2/xglBtN6u084/D5sbsqyPHjodzSr9XQN5sr6SgRGic1i4LFwa2Iz0UU GYjmyDcGeSUElYwLNgtcbqHUk56Na3nHlXJ/4vV2m1CGijUdTo6NuILKUq/wh7qAxjxT zwpyfEvhDqSfD5nfrWZmus/w9mkVzClmZxkWc7yFJux5n7YoLhVWwjMMTUbUkDMpnAvd zFrOuLxvr8w+4jc4dvqoHR0ctVuInbbWk4Wv1vG2A3UbpXzcH3d+9XFOnNNacoBPxWrZ QRbceuie2p7qAeX4WwWXtcT4mDvQFVv/DKP17IYezAL7iffZ1EYfd77EVxMlxBme0uUg G+6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=NeLv9ttxbwISQHkyrlHr74zLbay6ARPh/kQ9YOyxjxo=; b=k543MdT472FxrVADqON+Dk91/4r32y3RlilP9bnTgJO8DEO/ESnIPF/M1L0ADrchYQ ugw7lnSxQB+2W3+ePjkGdikxD/ZX7O+7EGHwcqqzcP2Yacp2zbda/8KJFdwBMniKhghX X4TSlQE5aEubTm1UADOwwP4OJCmMxYcfFghBPCl4GlqOY6ctj3wSI022X/o92BEES5Lt 81hbHcB5+wK0MKwiQYfsWhpE5+36fdQ8Qumt23vo8I/6Mgj6EpEbEtkqo4qvs2AJhsm1 RRLHpT9scZpcXIDfeDk1EW9bjBAniZyY5E+HRo19FjmdIBtbvVqzumM4LAR+WOLk+Gqu BSYg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1-v6si2377377pgo.431.2018.09.27.10.06.21; Thu, 27 Sep 2018 10:06:37 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728557AbeI0XXY (ORCPT + 99 others); Thu, 27 Sep 2018 19:23:24 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:45790 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727338AbeI0XXX (ORCPT ); Thu, 27 Sep 2018 19:23:23 -0400 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w8RH481F088581 for ; Thu, 27 Sep 2018 13:04:10 -0400 Received: from e06smtp03.uk.ibm.com (e06smtp03.uk.ibm.com [195.75.94.99]) by mx0a-001b2d01.pphosted.com with ESMTP id 2ms2amu008-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 27 Sep 2018 13:04:08 -0400 Received: from localhost by e06smtp03.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 27 Sep 2018 18:03:59 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (9.149.109.197) by e06smtp03.uk.ibm.com (192.168.101.133) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 27 Sep 2018 18:03:56 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w8RH3t2N59899962 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 27 Sep 2018 17:03:56 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5D848A4059; Thu, 27 Sep 2018 20:03:36 +0100 (BST) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BAED7A405E; Thu, 27 Sep 2018 20:03:34 +0100 (BST) Received: from rapoport-lnx (unknown [9.148.204.195]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS; Thu, 27 Sep 2018 20:03:34 +0100 (BST) Received: by rapoport-lnx (sSMTP sendmail emulation); Thu, 27 Sep 2018 20:03:53 +0300 From: Mike Rapoport To: Andrew Morton Cc: Alexander Duyck , Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Mike Rapoport Subject: [PATCH] memblock: remove stale #else and the code it protects Date: Thu, 27 Sep 2018 20:03:45 +0300 X-Mailer: git-send-email 2.7.4 X-TM-AS-GCONF: 00 x-cbid: 18092717-0012-0000-0000-000002AF7249 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18092717-0013-0000-0000-000020E391AE Message-Id: <1538067825-24835-1-git-send-email-rppt@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-09-27_08:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=667 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1807170000 definitions=main-1809270159 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org During removal of HAVE_MEMBLOCK definition, the #else clause of the #ifdef CONFIG_HAVE_MEMBLOCK ... #else ... #endif conditional was not removed. Remove it now. Signed-off-by: Mike Rapoport Reported-by: Alexander Duyck Cc: Michal Hocko --- include/linux/memblock.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/include/linux/memblock.h b/include/linux/memblock.h index d3bc270..d4d0e01 100644 --- a/include/linux/memblock.h +++ b/include/linux/memblock.h @@ -597,11 +597,6 @@ static inline void early_memtest(phys_addr_t start, phys_addr_t end) { } #endif -#else -static inline phys_addr_t memblock_alloc(phys_addr_t size, phys_addr_t align) -{ - return 0; -} #endif /* __KERNEL__ */ -- 2.7.4