From patchwork Tue May 5 12:54:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kevin Traynor X-Patchwork-Id: 69755 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id EDAA8A04B8; Tue, 5 May 2020 14:54:55 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 7A3AF1D5EA; Tue, 5 May 2020 14:54:55 +0200 (CEST) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by dpdk.org (Postfix) with ESMTP id 785041D150 for ; Tue, 5 May 2020 14:54:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588683293; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TDhBUAOaPWtsAoCaDpyAdenDYoCMyY/kz6HJB0twxLU=; b=RDh2BfmaFyH5lEmBGg9iz1dFGJHsx8yDDg13c1a5ou9I1qmgmIZ6QAoGYZ1u1Bq5XTK2kG 0G+6sx7De08XiKAq/r3pO98WhYSKrp2KwKGFIm4OYNAgiPkNx6UxwS7IV/+H3z6LWkmtnL POqSGg+TMRCYoHQ7AwqvWmPlXCpiJlM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-246-Z3wM7wbENy2H3XaEeEpK5Q-1; Tue, 05 May 2020 08:54:50 -0400 X-MC-Unique: Z3wM7wbENy2H3XaEeEpK5Q-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 551EB1005510; Tue, 5 May 2020 12:54:49 +0000 (UTC) Received: from rh.redhat.com (unknown [10.33.36.238]) by smtp.corp.redhat.com (Postfix) with ESMTP id 75DD45C1B2; Tue, 5 May 2020 12:54:45 +0000 (UTC) From: Kevin Traynor To: dev@dpdk.org, pablo.de.lara.guarch@intel.com Cc: david.marchand@redhat.com, Kevin Traynor Date: Tue, 5 May 2020 13:54:42 +0100 Message-Id: <20200505125442.18048-1-ktraynor@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [dpdk-dev] [PATCH] crypto/kasumi: fix gcc 10 fno-common error X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" gcc 10 defaults to fno-common and it reports: crypto_kasumi_rte_kasumi_pmd_ops.c.o:(.data.rel+0x0): multiple definition of `rte_kasumi_pmd_ops'; crypto_kasumi_rte_kasumi_pmd.c.o:(.bss+0x8): first defined here Fix by making rte_kasumi_pmd_ops extern in the header file. Signed-off-by: Kevin Traynor Acked-by: Pablo de Lara --- drivers/crypto/kasumi/kasumi_pmd_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/kasumi/kasumi_pmd_private.h b/drivers/crypto/kasumi/kasumi_pmd_private.h index b7f1c428b..abedcd616 100644 --- a/drivers/crypto/kasumi/kasumi_pmd_private.h +++ b/drivers/crypto/kasumi/kasumi_pmd_private.h @@ -77,5 +77,5 @@ kasumi_set_session_parameters(MB_MGR *mgr, struct kasumi_session *sess, /** device specific operations function pointer structure */ -struct rte_cryptodev_ops *rte_kasumi_pmd_ops; +extern struct rte_cryptodev_ops *rte_kasumi_pmd_ops; #endif /* _KASUMI_PMD_PRIVATE_H_ */