From patchwork Tue Nov 22 03:52:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicholas Piggin X-Patchwork-Id: 697537 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3tNBRB5rMmz9t0G for ; Tue, 22 Nov 2016 14:53:58 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="cS2/1xzc"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3tNBRB4VtMzDvxV for ; Tue, 22 Nov 2016 14:53:58 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="cS2/1xzc"; dkim-atps=neutral X-Original-To: linuxppc-dev@lists.ozlabs.org Delivered-To: linuxppc-dev@lists.ozlabs.org Received: from mail-pf0-x244.google.com (mail-pf0-x244.google.com [IPv6:2607:f8b0:400e:c00::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3tNBPf0bQ0zDvqn for ; Tue, 22 Nov 2016 14:52:38 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="cS2/1xzc"; dkim-atps=neutral Received: by mail-pf0-x244.google.com with SMTP id 144so453481pfv.0 for ; Mon, 21 Nov 2016 19:52:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=cIMee02plAXSzH8ANmK+c2wxU5oT0iyskQX0HJYNo8M=; b=cS2/1xzcDK5GI5H4oUJsltywY5mh2MUmr5vHc/l7n/J2kI2mN+JBkh5sHdhR8lI9ER BbNtwuMMZRk6DwboMeGYHwZ5WcMQoNE2J6YVZsqxyT/xDCtyxYghA0Pa0mQUB6s7DfDI FOZpX5zUx4Hym58rQGq9M5qbN+wsbuYn4MSMuzQii+e6WmgDrWolU/K0gIB5/nWOnoxq iAi8jh51lSUXjePT2CMcGWiPuXLTSWNCf7Vpd7mKfOdWrvYCipRcrstguzLXZ9+VFdbm 6HG46fUx+P+rrLd09AbedQd9yGBIA3S/Xp0jBKI6RJAAMhih0uHfd1lGCv/2coAyP2Fc Q8fA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=cIMee02plAXSzH8ANmK+c2wxU5oT0iyskQX0HJYNo8M=; b=d4xJmdTfxk+YThq664fQgQqFe9EwhfqfyIi97ELU0u957i9sydiiw6W7sLQaslUBjD yXcna+PRUcJfp9v8rltY01RnfFcP1Uz5/+0lw5V99tBn+UHHpqOWbXlnbDSosL6mTaXy z4gVxeVr/ACjUux6Ci2pdRoP7dTn0uKgon83/srqHF5Uy8SlAhTDamTxPjKBqo/X0R9O kBDdwSAXFBsCXAk7OwH3kVg1tfEE38pLTvOZSplTbMgiAuL8Gcw8s6xyo6wrMKYLEzy1 UpIOldVvVIjkcqh7eyKGdFKk+BfYkQtokcSpHqTRBE+tszlKGP07pWCTo07/INOLyhKk GhNw== X-Gm-Message-State: AKaTC03RNFITAkGjFqBp4qwuulge/PX2RlnhfYooCgQ8onNINht1t6GANGLBkOc/QM0p0w== X-Received: by 10.98.9.149 with SMTP id 21mr23181133pfj.159.1479786756036; Mon, 21 Nov 2016 19:52:36 -0800 (PST) Received: from roar.au.ibm.com (27-33-21-189.tpgi.com.au. [27.33.21.189]) by smtp.gmail.com with ESMTPSA id 71sm40724963pft.25.2016.11.21.19.52.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Nov 2016 19:52:35 -0800 (PST) From: Nicholas Piggin To: Michael Ellerman Subject: [PATCH] powerpc: add more asm-prototypes.h declarations for asm exports Date: Tue, 22 Nov 2016 14:52:22 +1100 Message-Id: <20161122035222.27115-1-npiggin@gmail.com> X-Mailer: git-send-email 2.10.2 X-BeenThere: linuxppc-dev@lists.ozlabs.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linuxppc-dev@lists.ozlabs.org, Nicholas Piggin Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@lists.ozlabs.org Sender: "Linuxppc-dev" After patch 4efca4ed0 ("kbuild: modversions for EXPORT_SYMBOL() for asm"), asm exports can get modversions CRCs generated if they have C definitions in asm-prototypes.h. This patch adds missing definitions for 32 and 64 bit allmodconfig builds. Fixes: 9445aa1a3062 ("ppc: move exports to definitions") Signed-off-by: Nicholas Piggin --- Hi, This should go into 4.9 to correct the modversions regression. Sorry it's taken this long, the kbuild side took a while. Thanks, Nick arch/powerpc/include/asm/asm-prototypes.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/arch/powerpc/include/asm/asm-prototypes.h b/arch/powerpc/include/asm/asm-prototypes.h index d149273..e0baba1 100644 --- a/arch/powerpc/include/asm/asm-prototypes.h +++ b/arch/powerpc/include/asm/asm-prototypes.h @@ -14,6 +14,10 @@ #include #include +#include +#include +#include +#include #include @@ -109,4 +113,12 @@ void early_setup_secondary(void); /* time */ void accumulate_stolen_time(void); +/* misc runtime */ +extern u64 __bswapdi2(u64); +extern s64 __lshrdi3(s64, int); +extern s64 __ashldi3(s64, int); +extern s64 __ashrdi3(s64, int); +extern int __cmpdi2(s64, s64); +extern int __ucmpdi2(u64, u64); + #endif /* _ASM_POWERPC_ASM_PROTOTYPES_H */