From patchwork Tue Apr 9 21:25:16 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 10892451 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id D8A0813B5 for ; Tue, 9 Apr 2019 21:26:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C0E3C28688 for ; Tue, 9 Apr 2019 21:26:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B34A5288C3; Tue, 9 Apr 2019 21:26:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6750128688 for ; Tue, 9 Apr 2019 21:26:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=qNYyn/XShhLNxmiEq3BVvDBFAMqwdjAHCar8DeycNv4=; b=AzHj1QRhePCY34 bbGyYfSvtW4CVIxHiObLj2NVtDfbai6dMIfa2G9yL60JODUk1aKR+QfZze+GuXp0sgJf4MIMRrTkB aO+WWMzvUcC6l4WCgr8j+9wl9tGhTL1FZtSIHTDSAGG7cdEHzwocJYTrjs5ytagEcJgnmtYw4h/tS k5lcRhv0TpNfb3QxPHNJv2/n+Mz6kibXbHAaMIyPJ/1TAsrDT+0t6hpEIL/j2x+R+6PD7fKqZv3gG M8/Sa7Aa+DgDCL3MkafRfGewLU7Vuq7HYYOEyhZYaxzy49s3Q0qG2Xz7sWVcWHC8y3sQadABVW83Z MuwYZDLXE9pCmZd7a7/A==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDyG4-0007VQ-OZ; Tue, 09 Apr 2019 21:26:20 +0000 Received: from mail-ed1-x544.google.com ([2a00:1450:4864:20::544]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1hDyFk-00074e-KT for linux-arm-kernel@lists.infradead.org; Tue, 09 Apr 2019 21:26:09 +0000 Received: by mail-ed1-x544.google.com with SMTP id x14so151648eds.1 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=S7XI7dN+3Xf8nPGBmUlogIKFCvPG8TjgiFl03Ukka62xq/FsBvMkyXlgP5vJ6zUB3W bPUzqlPl6qgJu6uyi3ybfLx869Tz1TbrI7oXUdr2KuTpIG3tM5EBykK7AxbdJfPCR6h8 UN/wsXCyTdzCjg+uu9ShoiWifP31eOSgmXE7K/czX/Fyx+Tzw2SNdgdr/olGh6CTxOUg 8XDTV9z/aCEkH0py9RZbN/z5C/KonI/RGXWcU8xrZDmXuIJ4TypxLY1Ed3l0WvwWKh6I 7uUtiOvFQvryvG7igCZ701dSIN1ZrGlRgncOWORXuldf+WneThgHyTVU998LNmMG8yMk oNjA== X-Gm-Message-State: APjAAAXv17MMVdWRbCgNMoehyGMnuy7Iw/n70QQfPDcy3WY4ob5CyNMY sXbSdbhzMlwD+78quyFakiYVHw== X-Google-Smtp-Source: APXvYqzibpE9q7ZYACnBi7xa1MPMRgPRkeGW7TzqdFCwCosgloKMSxnGgPQmDbXVEfUbKJl7CwQ8jg== 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 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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190409_142601_610694_D1EF91CA X-CRM114-Status: GOOD ( 10.46 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Will Deacon , Jason Baron , Rasmus Villemoes , linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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