Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp4243864yba; Tue, 9 Apr 2019 14:27:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqwTyuRnXp4z2C54Xbnbsabcf/xDdjRQwRttTPmvYlnuA1MCNqHlgpFdObYDb2kSuenHaUZg X-Received: by 2002:a63:155d:: with SMTP id 29mr35958241pgv.389.1554845252795; Tue, 09 Apr 2019 14:27:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554845252; cv=none; d=google.com; s=arc-20160816; b=SsI6RMkDBhGo3SHdsTAgtFACdTkVxxJe8qHg2CDEk+J0zetioyViYQxslEFn2K9tf7 z5p1GYGt4e4BbN3DA7wbH5fT2cyU8T7ES7b0+vXdPNs2dGejbjDdzRokyijxuMAA8yhP iwZhRzaWBh/VOJDUpGCrtkdKtHvol6U6jvHl4kpAsiV0/9ioI+Ml7XO8W6jUyG/ZQ6/F GcejIMaMkStD2fakcdy4+YTeglIdP8gWlORgRWpW5EAbjVpZyiArSYVR8YniVobbwMT9 bQ1z/E0y4M6DpIRUchImL9zk84e8HHhzmdGTfmZexvvBLBKxjMDx13T8//aMbEa8M3Tj qptA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0w4/Dek1MuUw9RUJIx68ZSWHBKjhr7mhry+FNPNfIwY=; b=Lik1etUtTKY7CejTiTHrPKGdqkuGu5Uxe1RW9FUrf9NJWcMvD1ptIDJm0YEWDfshEo DrSh02dVn2BqfwNfKdT0ECSnxb5TEaljlI79sw8eztKHWVaObkGM8FN/FQN8so1OUWBX r3CnjlXhQzEyGOK02/StqcC/NJcMNcb9NCEamg/6J5j1kSxFx5v6ZXfRqHCYpZ8WdBCe s4t2gbST9YEnoc+41V51OnhmsxlfEO0tJQ1fpS8b2dbxhi3c3ruN+oQEjOtu6uO1mOr1 dliaiZsdMQJm6Rw5vmrd2179q/lSoscw6kt2fI9NxVvLiC3Y88X94T46XtjeGHUU+oGR 2XwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=KBBodNXy; 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 x4si29873756pll.344.2019.04.09.14.27.17; Tue, 09 Apr 2019 14:27:32 -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; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=KBBodNXy; 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 S1726959AbfDIV0W (ORCPT + 99 others); Tue, 9 Apr 2019 17:26:22 -0400 Received: from mail-ed1-f68.google.com ([209.85.208.68]:45737 "EHLO mail-ed1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726757AbfDIV0B (ORCPT ); Tue, 9 Apr 2019 17:26:01 -0400 Received: by mail-ed1-f68.google.com with SMTP id o26so96049edv.12 for ; Tue, 09 Apr 2019 14:26:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0w4/Dek1MuUw9RUJIx68ZSWHBKjhr7mhry+FNPNfIwY=; b=KBBodNXybAF2N0oz3UqQW4QAQhMFuL7IUEI2k3dTe9WGsBNYEUkj/w1uX4ecLowxEq QLufKDomd2RHIqVh46h3AejR6bT/lPVcPfp6/vgtb995pJp8fT7ykJ97joGs8fixSd5h 8Pwh7h2lgwaytAjGlQi+1MLKOANFZp7rSTvf4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0w4/Dek1MuUw9RUJIx68ZSWHBKjhr7mhry+FNPNfIwY=; b=KcLJXyztrbOu9cW1ic9TibQs7kyWCojlt093fPy0d/jW/9v5hxSeDAsFWwSlNuJUWh YvUruaY2aZaj0uytw4hShXcSjrdHkAJA+X01gGAnSjF1JfM4kTMnY2Ly/4MNTH3F9gh9 ntHJ55vF7yZdE00pMXbdCSL/QxSFme7oX9hpsJw2MbkAa0OieOKfKZ12FcfHUQg72lo9 mCOylY/DVwPmWl4ak7KOp8OVt8wSI7XMryyDbIaoFi5mX7Nznc0F4Z8U6ArWeZYFQ961 QzuVITGqLLvc06qxmudK0xe1fB/5sB66iegovTYP7QaXzKp8tRFzVFUjvgK73zuuFm8V 3f1w== X-Gm-Message-State: APjAAAVFpZt153KXARg7UQJToFPxo6moBjK3puEjW0Dg92DC3pI3IaBP F0PH4dQPpxmg87s9e/HaArplVQ== X-Received: by 2002:a50:9179:: with SMTP id f54mr24290864eda.207.1554845159330; Tue, 09 Apr 2019 14:25:59 -0700 (PDT) Received: from prevas-ravi.prevas.se (ip-5-186-118-63.cgn.fibianet.dk. [5.186.118.63]) by smtp.gmail.com with ESMTPSA id i26sm3477986ejc.51.2019.04.09.14.25.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Apr 2019 14:25:59 -0700 (PDT) From: Rasmus Villemoes To: Andrew Morton , linux-arm-kernel@lists.infradead.org Cc: Jason Baron , linux-kernel@vger.kernel.org, Rasmus Villemoes , Will Deacon Subject: [PATCH 09/10] arm64: select DYNAMIC_DEBUG_RELATIVE_POINTERS Date: Tue, 9 Apr 2019 23:25:16 +0200 Message-Id: <20190409212517.7321-10-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190409212517.7321-1-linux@rasmusvillemoes.dk> References: <20190409212517.7321-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Similar to GENERIC_BUG_RELATIVE_POINTERS, one can now relativize the four const char* members of struct _ddebug, thus saving 16 bytes per instance (one for each pr_debug(), dev_debug() etc. in a CONFIG_DYNAMIC_DEBUG kernel). The asm-generic implementation seems to work out-of-the-box, though this is only compile-tested. Signed-off-by: Rasmus Villemoes --- arch/arm64/Kconfig | 1 + arch/arm64/include/asm/Kbuild | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 7e34b9eba5de..d0871d523d5d 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -83,6 +83,7 @@ config ARM64 select CRC32 select DCACHE_WORD_ACCESS select DMA_DIRECT_REMAP + select DYNAMIC_DEBUG_RELATIVE_POINTERS select EDAC_SUPPORT select FRAME_POINTER select GENERIC_ALLOCATOR diff --git a/arch/arm64/include/asm/Kbuild b/arch/arm64/include/asm/Kbuild index 1e17ea5c372b..1ead0d645686 100644 --- a/arch/arm64/include/asm/Kbuild +++ b/arch/arm64/include/asm/Kbuild @@ -3,6 +3,7 @@ generic-y += delay.h generic-y += div64.h generic-y += dma.h generic-y += dma-contiguous.h +generic-y += dynamic_debug.h generic-y += early_ioremap.h generic-y += emergency-restart.h generic-y += hw_irq.h -- 2.20.1