Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp634497pxx; Mon, 26 Oct 2020 17:36:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJylzB9IKnwpn2nI/5zDOncNsTI2c+s2Ekjv9x2YE3hOC5HXu6tDPJiMWod8hhNyYbRu7Kev X-Received: by 2002:a17:906:1a57:: with SMTP id j23mr18730262ejf.291.1603758963915; Mon, 26 Oct 2020 17:36:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603758963; cv=none; d=google.com; s=arc-20160816; b=rwrf+Xf3+OlMAuwzM5nrKHNpGrU7ea8Ovvd2CVIKF/pYERYjsouMPwJQJ6g8TNZM4T QfyHp8Lpo068FQZP0h8lgnGzbX7MfXZDFCdwdp/NdixHO4zabH06iP3GMjQx5HXBRbpS 0kRHXcbCSdQLaGO2DAcRGJoGsI4O1x9rPDXbFQkjHl2X/+bM+nBkOYO/NSKt3y8NY8JK 4VNGdB6FIWml6jM+XZYS80tczcBYNrm2+nzdAv+BFAIzUCUj0zIQO/U+7P1UF8kiaEsz UCUSYSQ+yIxl8iqzJx8MC86mQlHN1ly6ziUabon9VLlPTP95uRhK3xcQg0Ppbqi7N4nw dksQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xYakZV2QKxPx3FZ+vzhpZ8+7uAqD/OGNQHbNQjrgHKI=; b=AJuqRrD/QnG8etWDsVoKrCFuzbL2Erwsj/KefFoHkE/IISKSltx9GXkSayottXUmEQ ywjVWXiYFs9n5ibC1S3ru9I934CzWEjryquvk/iME/3WBTtFWFS7Y4MAOK4UCWRTZIMc fXIdFHxeZD3R/eCC7TPo9/Z9hw/KrzXMnGoPJ0MWCPJApVy6pB7NMBLaPxxEBi5cgvJA Spd1xQ/clh/zpJ38OA6YI3nBpMYm9piZMGMZzlKWMgSoclmxsmo5ZBf2ehLcVSDMrr+E zUNrcmhN14dKtlIhsZqMme12UeXqoB/zweT0lfoaJztIJKHjdFah6l+M1MMRgmRTrbzP jzkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zqb6TV+2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hb10si8334864ejb.555.2020.10.26.17.35.42; Mon, 26 Oct 2020 17:36:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=zqb6TV+2; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731369AbgJ0AVi (ORCPT + 99 others); Mon, 26 Oct 2020 20:21:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:34856 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2410990AbgJZXzx (ORCPT ); Mon, 26 Oct 2020 19:55:53 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id EC084221F8; Mon, 26 Oct 2020 23:55:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603756552; bh=Wl9z0M5hRCH2oVuT8345XsFW0tlHcxTS+0vuH75Wgug=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=zqb6TV+28hRhWEjIKHFww6ymtrZONahMKSMdmk8GBV0TE+WNq7LHm6msOYXiib6xu ByRcJlk8pq0BZShfr5MPGtpFYrBt3fPkJpE1qBEiTIVEyDydFKU5cpDZ4G4rFP8qtY ZXVQn6C69Lh0leSNJ+CLntcbMZuoBC3h/WzALEdw= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: John Ogness , kernel test robot , Sergey Senozhatsky , Steven Rostedt , Petr Mladek , Sasha Levin Subject: [PATCH AUTOSEL 5.4 29/80] printk: reduce LOG_BUF_SHIFT range for H8300 Date: Mon, 26 Oct 2020 19:54:25 -0400 Message-Id: <20201026235516.1025100-29-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201026235516.1025100-1-sashal@kernel.org> References: <20201026235516.1025100-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: John Ogness [ Upstream commit 550c10d28d21bd82a8bb48debbb27e6ed53262f6 ] The .bss section for the h8300 is relatively small. A value of CONFIG_LOG_BUF_SHIFT that is larger than 19 will create a static printk ringbuffer that is too large. Limit the range appropriately for the H8300. Reported-by: kernel test robot Signed-off-by: John Ogness Reviewed-by: Sergey Senozhatsky Acked-by: Steven Rostedt (VMware) Signed-off-by: Petr Mladek Link: https://lore.kernel.org/r/20200812073122.25412-1-john.ogness@linutronix.de Signed-off-by: Sasha Levin --- init/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init/Kconfig b/init/Kconfig index 6db3e310a5e42..96fc45d1b686b 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -594,7 +594,8 @@ config IKHEADERS config LOG_BUF_SHIFT int "Kernel log buffer size (16 => 64KB, 17 => 128KB)" - range 12 25 + range 12 25 if !H8300 + range 12 19 if H8300 default 17 depends on PRINTK help -- 2.25.1