From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0040.outbound.protection.outlook.com [104.47.0.40]) by dpdk.org (Postfix) with ESMTP id 73E9123A for ; Sun, 6 May 2018 08:06:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=mtpeDIwf1VCDRYGvASKlUV4cJwNKBtW6atlnhQWOwOY=; b=dQVFZ3RKAut88tRh0MeOXm42tx8coL9HEFOPfpPCn/O4XloRG8DS9p6HqpZg/hyMovrXGU1b8E38HNlHqZQnqj1FLgLi+5CLYceFtn5i7JZGaO5CSNqY57LYn79BIplFneEDofnlrRMFXfCoB/RrJF83w2SDgvjiqU2BaeWlxgg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=shahafs@mellanox.com; Received: from mellanox.com (141.226.120.58) by AM6PR05MB4422.eurprd05.prod.outlook.com (2603:10a6:209:43::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.16; Sun, 6 May 2018 06:06:54 +0000 From: Shahaf Shuler To: bluca@debian.org Cc: stable@dpdk.org, nelio.laranjeiro@6wind.com, yskoh@mellanox.com, adrien.mazarguil@6wind.com, Bruce Richardson Date: Sun, 6 May 2018 09:05:53 +0300 Message-Id: X-Mailer: git-send-email 2.12.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [141.226.120.58] X-ClientProxiedBy: LO2P265CA0008.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:62::20) To AM6PR05MB4422.eurprd05.prod.outlook.com (2603:10a6:209:43::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM6PR05MB4422; X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 3:et/UAMHFeljgpJSkTn7/ht1TBSBqO89mw68jMmyrPIJKfQbczlgRl5j7Ze1Mdy9Ez+USiJVMOFMaNbJzsEjY/e7a8wUzE65gU/DT3liiTZF8Jco098H/bjdQIgeRe5RWVVDU53OFNCn6GcUbCeqp+uPzwu8k22F8tz5qvmA5fmO0BEIgxLn+NWmCqklvclZ+7QEKi6AD0YnOIft/Qk7x2PMW/fN9HuDlEs7B0/A+7McxoF5vGT9KMn+aD2+wqZbV; 25:lCGO4x6CgxnUPzQABNIygYpKTPcIk5R8qeeWh8C8NHdGjEsfNO3FiqhwmKoTeU7Gt1J1bRqS/s9Dhumehg+IN7aMwBqQHhb9EvslLoguH+DIWXny+BQSjcToP5NIt2G9OJ1d7UgS/yUzVRQvpWCqxBys514kVK5YvFO9OiB/tVd9sYLG0euccNCyGp0U5ONJ87PPI06NOyfttjebsG5RPQ4bp0u2JobZwl2tacsunPfdwENEt7ZAiGgZSM3+mWwOoZmDJJJzwvalMcKtPDgMnU8iakrNJMPjpzsibK5c+1IGzYgexCLWqgppGGX4f+NeW35LEtAyRpzBt3LXX6LCeQ==; 31:0Ytfo81uCsTjHZFzwt9K+vj6nFl+PAA9FM/L7ZfF7j66dQrqoOiG3SYAR2Pv9lCcSUh4tritnC0/jQ2vnAiER1RKJ+g7psxdu2eLQc2SHWkyhwNHKMecgCcmZpKNhffrIdhA7eEEA1Qzs1Rzy14XwSkTvvKf6jHaa6unVs5uF1XF1Q1WzbjzBgHt7piX5vgoJezd5jtr9Y1E1OBObR7gTvjUM4naTAPf8IfGytvZjfM= X-MS-TrafficTypeDiagnostic: AM6PR05MB4422: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 20:pK5SmUSBKb3B+V4mVEDgApKsP6Go9XSP0QLbVFqlM4i6gR+O1OdUkUsLmroNLaFXxY7kNf4AcgpgpMimUH/pT9pGs+/0Uvq1WEijnyTBxkhe50h/3dqJOusp4txBWAjQUh42rn2jW6O782kKrQuVgZm41PlyzHyeR/0kGo13F0corUINo/1mN+qUQzzrKlaS/0zmbn6rvwC4G6qjTPubMXZwez1CxrsHdJMoD9gkLpD215bPlSOCfaGH+Pe9RTP5Dj6MPNUtQqjeFF7YR31KTb22dtxTjXgfzMYFK54SEhsBgQWp+L99GtHAKRpXr50CWbl39S9QxvDLMR+oiN3hb3mgJA2r97dsy8nm/yU3wwsoeHNUvDZYN97ZvWjGTb6QXbTBRSk4e8S9LRy8mDI1sMPTvD/EOEJtQH/wNeNVjs6wEwYeznc+wbXR+yad8as8KWOY3Ro9me6s3kRE+++Ugf8d30D5nk6r/ZEO5UCVRdbXmzNnm+A0wr3TORi1XnCX; 4:Aq5U+gg524kjRGosb975PidxIURc1pUVPyPI4tE579vTn63t4i/hQVNLlSybM306QnlgxOrmC6LIYkEj7800LQy1tmMWNi8O9YPzSLsG0PfY6mMQdWEDhNFm6d6tz8ABzAmv5MKnALI9EIyUW/oX1aUtmfVZ3t6cHtlTTEeAvXZZqsSgSu7DVKpdqZXNiR+4L9JvL7z31AnhGRIBo6HM+o36CHil2H8A8HSdrWEJTdV8ybRrYX4lxexwAAf53uX6tlNBO9S13k1j7Q0+ITUiIVvEiuGQ3SYRAvks7wsU6vNCfZjTPmIK+cOQzVaUYESq X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231254)(944501410)(52105095)(93006095)(93001095)(6055026)(6041310)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011); SRVR:AM6PR05MB4422; BCL:0; PCL:0; RULEID:; SRVR:AM6PR05MB4422; X-Forefront-PRVS: 06640999CA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(376002)(39380400002)(396003)(346002)(39860400002)(189003)(199004)(105586002)(8676002)(16586007)(8936002)(316002)(2351001)(53936002)(86362001)(2361001)(6116002)(3846002)(106356001)(118296001)(66066001)(36756003)(47776003)(81156014)(55016002)(2906002)(50226002)(4326008)(68736007)(305945005)(7736002)(81166006)(50466002)(25786009)(486006)(5660300001)(476003)(2616005)(48376002)(69596002)(16526019)(26005)(59450400001)(386003)(97736004)(956004)(186003)(478600001)(7696005)(52116002)(6916009)(21086003)(51416003)(446003)(11346002)(76176011); DIR:OUT; SFP:1101; SCL:1; SRVR:AM6PR05MB4422; H:mellanox.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM6PR05MB4422; 23:49QlAEZ4dt7/VQrRvFo3idnjdbcZwnk3lRFpR6RFx?= =?us-ascii?Q?VDdDQ3hAqOTWLzOH5ztbJBp28Z/37Nmd4vquuRgWIl00F723ONrTYekA+wWF?= =?us-ascii?Q?L0jqrUw7DRNe8O/BSGUPA1vhwesc0ghwhnNEJqV1XiG9K4n+6Y5POe9xKwsW?= =?us-ascii?Q?5Fo915qv/HQ9hUoH+WvRG0sdMGAT6+C1on4aB3UvQTENqAO8N2tegImSnHyP?= =?us-ascii?Q?b1Ovnk6/8aZLyHgYo3FiS+MZb4g7XRof0SfKtU5ANhv7ICai6kExs1Woku7E?= =?us-ascii?Q?zkXixarM3/q4ePYxsk+YB7vjI8AFZfmw562vN7xXCz9lQ3EgjdUmsDfMJW0M?= =?us-ascii?Q?s1V+VpUIiEHITED2XfvqVDpcvvdBJJkKSEVSpehbKp2lNEHuE9hTrHZI+toF?= =?us-ascii?Q?ccXTqpRwKBQ7vCrW0kpGVOJHXjme2pcIoATU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oprgFHKdf0K8RD/ltX8y8r+49Ou5K5FI+eyyNAggQImLenj46oZfd/wENs6lggNs20FRS2l8NF5VFZmrTN7LxamWY6vcziUqSMOn1RWA7fHBLit2r0HgEqe97b+IgEccsSlOXWhvUVklKjYOt+xeMSDI47QAHLzIIW+aHyoDUaHoSN X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 6:LLnBndFpZBXzIV6crndV+MNZuLnw59wuyD8BRTspCgl/shH1joaRR9kmeBe9+2tuE3fx60uTz7JUP3LMvXftPKHCXwrKAnkekvGNh8wBROTEg/pywQrm/035oHA2dDcMPAr8IhN7PPHqPE4a00xWUkoG6QXlX0hcP8gH5gNJraqD6saf4iydP8aTkBvIi4n7HghHkbHd14qsWFaO9JsIpiQ76VV82DVP6+jIyT0uJ9ouqbPiERfRtQ0A2mVpyb4QS7wWv0rTUHA6Pj86lDWNnK63ZsLUmP5kQlP74WeQEwMuQ84lPCqYq3ej1TuAxgSUO6SHslZt4/XNcU89X4ellMIwBWt4bC4ypzOgmmtm3vGGOOvmiNRekOfWZFei0U0Xfqp1r460hQSzl0EOWIe0dIQC9AtaBL+b41eRMrVkwiMtptz4W3L5/e5CiRD6RwKyM+DajfdECQV2HSqpZ2d2HQ==; 5:DnBYPl+Z1y3YbYB9ns36xDESxMkbWkCHwtUX6f79/KqVMvnPOXkGRBV6k4OwWnJZzAfZXfL24pzVGokwZCrWesvDOg86EVZyS7RJD6/zCw3kywMqget+mMwH3m82LRzn/KMgTGDDkAq87UhMh6jcR5Sjz+kahPYORCEJmTOsH6g=; 24:F7bMUVjKqTJYcGLsk4RmDnjugVDupDCzg/FwwCLwx5TGwmk+2EpMfrVlP8uEXAw3xZsS+OlaaySx4waZdms2xal4zK/j7yjCcptk1Xur0XA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM6PR05MB4422; 7:ohegcgasl9Pu/9Cgc+ePtPVQ3ofWrtb2gMNrHolTlDEGqP5+XqjzuPH4uj2t/mMES2MvAk0L3vVwOqP3n2EYTdFaCJxhmKaQQ8fGTKHVdqPDjHH6COXHvlOjshWx+RGiP6YulbntWt/17oH0HdCdzmCZZzd7zN8nycz+biwbSncBGg3Xp4PBsJuLZoFSxGvUHncWESVU7kOP4WaAGhiptgd3xQSln9N4UqndudVQPYNyESvEmY8sfu/4xU6TRWSu X-MS-Office365-Filtering-Correlation-Id: 28544ac7-3a37-40f5-e2e3-08d5b317919d X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2018 06:06:54.3643 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 28544ac7-3a37-40f5-e2e3-08d5b317919d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR05MB4422 Subject: [dpdk-stable] [PATCH 24/33] net/mlx: fix warnings for unused compiler arguments X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 May 2018 06:06:56 -0000 From: Bruce Richardson [ upstream commit a11dfe9b65940106e6aab62a682b12a9324b16c0 ] When linking the mlx glue code libraries using CC, the linker arguments in LDFLAGS are not prefixed with -Wl. [The EXTRA_LDFLAGS are though.] This leads to warning messages on build: clang-5.0: warning: argument unused during compilation: '-e xport-dynamic' Fix this by checking for $LINK_USING_CC in the Makefiles and prefixing the LDFLAGS appropriately if set. Fixes: 27cea11686ff ("net/mlx4: spawn rdma-core dependency plug-in") Fixes: 59b91bec12c6 ("net/mlx5: spawn rdma-core dependency plug-in") Cc: stable@dpdk.org Signed-off-by: Bruce Richardson Acked-by: Yongseok Koh --- drivers/net/mlx4/Makefile | 7 ++++++- drivers/net/mlx5/Makefile | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/drivers/net/mlx4/Makefile b/drivers/net/mlx4/Makefile index cc800493b0..b6c05ed42a 100644 --- a/drivers/net/mlx4/Makefile +++ b/drivers/net/mlx4/Makefile @@ -132,8 +132,13 @@ ifeq ($(CONFIG_RTE_LIBRTE_MLX4_DLOPEN_DEPS),y) $(LIB): $(LIB_GLUE) +ifeq ($(LINK_USING_CC),1) +GLUE_LDFLAGS := $(call linkerprefix,$(LDFLAGS)) +else +GLUE_LDFLAGS := $(LDFLAGS) +endif $(LIB_GLUE): mlx4_glue.o - $Q $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) \ + $Q $(LD) $(GLUE_LDFLAGS) $(EXTRA_LDFLAGS) \ -Wl,-h,$(LIB_GLUE) \ -s -shared -o $@ $< -libverbs -lmlx4 diff --git a/drivers/net/mlx5/Makefile b/drivers/net/mlx5/Makefile index afda4118fd..201f6f06a9 100644 --- a/drivers/net/mlx5/Makefile +++ b/drivers/net/mlx5/Makefile @@ -181,8 +181,13 @@ ifeq ($(CONFIG_RTE_LIBRTE_MLX5_DLOPEN_DEPS),y) $(LIB): $(LIB_GLUE) +ifeq ($(LINK_USING_CC),1) +GLUE_LDFLAGS := $(call linkerprefix,$(LDFLAGS)) +else +GLUE_LDFLAGS := $(LDFLAGS) +endif $(LIB_GLUE): mlx5_glue.o - $Q $(LD) $(LDFLAGS) $(EXTRA_LDFLAGS) \ + $Q $(LD) $(GLUE_LDFLAGS) $(EXTRA_LDFLAGS) \ -Wl,-h,$(LIB_GLUE) \ -s -shared -o $@ $< -libverbs -lmlx5 -- 2.12.0