Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp125146imj; Thu, 14 Feb 2019 16:51:07 -0800 (PST) X-Google-Smtp-Source: AHgI3IZpbfdOI+Jb0SjXnk/jV0OR1XGsiriPuj5CbqBj0vg+vNnu31avcPlS38/kjB1sMCFOGL5j X-Received: by 2002:a62:e04b:: with SMTP id f72mr7150849pfh.41.1550191867831; Thu, 14 Feb 2019 16:51:07 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550191867; cv=none; d=google.com; s=arc-20160816; b=v+cnqFJzHbSjUG4yjYRDI7kwufWt9AVXeEZYtGPfSI72JAGem9mngoVRycQj/T0rJf I4c+nTKg7472twlXZY3x8eng+rmhxEeEM1s9RQsc+Hzx83W8JPWQvzHd/TWpdA9hxW5S 12CRrJkmGL/W1OLZEBnBpuodkRgIWseKLeLSGbcDSwJxa9VERESnzW1pytWO4PvcsSjX 7AjjTraVn0ugGuSXcmpfXTowZCG59O9SQKvKh5V6T4SmNuMXDrZRziuqFAI8V552gUBl XEZ8mJirXdIzKTAotJbs8e7zdJ0cvsNgVNcdInSq4RWm8iSheHZZfcSP3cCRWUD/pzRo So0A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:references:in-reply-to:date :subject:cc:to:from; bh=c0/yCleC0+cRKs0NWxaObUZpUHrjkCQzoZuwDL4hADQ=; b=lBh+6ggIHJHBW5BkL27kV8V3MF0okKVjWPKBeL5tL8uNOqtJx4JnYWOp+XpnhgCK8z m/vQj3Ba0X+7a7p7RLKctunIV4KShpEtVDFn8VI5zBeN5MMOB/qg0q0KodMnssufE5Fw k9/EQYNDgS2+7RVjPqxVGuVWw1UPqEYY3Z6WH9/MLhwsJDsOh/i2W6U+kbS2lE98qzkL mpKPIIo3JW2ygxa/+n9C9X/uWHOcXnxXwizFEt5nivfnz1SXug0P9vG9MSLpijZcm+9w wBBPHO0Rr85cOpuq1usgzuyvguKKC0YM+PAj4SvuCmV/cD8YfNmekBhh/xAvRTCtmyqB /7lg== 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 d189si3572769pgc.393.2019.02.14.16.50.52; Thu, 14 Feb 2019 16:51:07 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407718AbfBNQAA (ORCPT + 99 others); Thu, 14 Feb 2019 11:00:00 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:40754 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2407710AbfBNP76 (ORCPT ); Thu, 14 Feb 2019 10:59:58 -0500 Received: from pps.filterd (m0098421.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1EFfUB1041975 for ; Thu, 14 Feb 2019 10:59:57 -0500 Received: from e06smtp04.uk.ibm.com (e06smtp04.uk.ibm.com [195.75.94.100]) by mx0a-001b2d01.pphosted.com with ESMTP id 2qna7ywfvp-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 14 Feb 2019 10:59:57 -0500 Received: from localhost by e06smtp04.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 14 Feb 2019 15:59:54 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp04.uk.ibm.com (192.168.101.134) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 14 Feb 2019 15:59:51 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x1EFxo6f48759004 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Feb 2019 15:59:50 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 696F752054; Thu, 14 Feb 2019 15:59:50 +0000 (GMT) Received: from rapoport-lnx (unknown [9.148.8.84]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id 987E052052; Thu, 14 Feb 2019 15:59:48 +0000 (GMT) Received: by rapoport-lnx (sSMTP sendmail emulation); Thu, 14 Feb 2019 17:59:48 +0200 From: Mike Rapoport To: Andrew Morton Cc: Christoph Hellwig , Palmer Dabbelt , Richard Kuo , linux-arch@vger.kernel.org, linux-hexagon@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-riscv@lists.infradead.org, Mike Rapoport Subject: [PATCH 4/4] riscv: switch over to generic free_initmem() Date: Thu, 14 Feb 2019 17:59:37 +0200 X-Mailer: git-send-email 2.7.4 In-Reply-To: <1550159977-8949-1-git-send-email-rppt@linux.ibm.com> References: <1550159977-8949-1-git-send-email-rppt@linux.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 19021415-0016-0000-0000-000002567B00 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19021415-0017-0000-0000-000032B0AC03 Message-Id: <1550159977-8949-5-git-send-email-rppt@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-14_07:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=755 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902140109 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The riscv version of free_initmem() differs from the generic one only in that it sets the freed memory to zero. Make ricsv use the generic version and poison the freed memory. Signed-off-by: Mike Rapoport --- arch/riscv/mm/init.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/arch/riscv/mm/init.c b/arch/riscv/mm/init.c index 658ebf6..2af0010 100644 --- a/arch/riscv/mm/init.c +++ b/arch/riscv/mm/init.c @@ -60,11 +60,6 @@ void __init mem_init(void) mem_init_print_info(NULL); } -void free_initmem(void) -{ - free_initmem_default(0); -} - #ifdef CONFIG_BLK_DEV_INITRD void free_initrd_mem(unsigned long start, unsigned long end) { -- 2.7.4