From patchwork Thu Nov 2 16:50:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 10038997 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id B8A7E603B5 for ; Thu, 2 Nov 2017 16:51:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AB0A129056 for ; Thu, 2 Nov 2017 16:51:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9E5A02918C; Thu, 2 Nov 2017 16:51:37 +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=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A906629056 for ; Thu, 2 Nov 2017 16:51:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934154AbdKBQvX (ORCPT ); Thu, 2 Nov 2017 12:51:23 -0400 Received: from mout.kundenserver.de ([217.72.192.74]:58050 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933391AbdKBQvW (ORCPT ); Thu, 2 Nov 2017 12:51:22 -0400 Received: from wuerfel.lan ([109.193.157.232]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0Mf0OX-1dllfh34QL-00OaVw; Thu, 02 Nov 2017 17:51:00 +0100 From: Arnd Bergmann To: John Garry , "James E.J. Bottomley" , "Martin K. Petersen" Cc: Arnd Bergmann , Xiang Chen , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: hisi_sas: select CONFIG_RAS Date: Thu, 2 Nov 2017 17:50:53 +0100 Message-Id: <20171102165059.213216-1-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 X-Provags-ID: V03:K0:2lxIeqPb1lfnuLdxKCbTId3Axba24/S1wKPbywsSqaenPWF8bpp /kZ4ALVkhMbsqGJo39ZnlzMBszxNDLFwNc2wIVnIFiur/mXkJnb4EmWwBvZTON1QWwaxYG2 kx8iBos+fBZE0yHaNg9lNBD8olgg7/2psJMpXx5E5MDBTzVTLizwcg3yXZhEalefeqYCI87 SMi9naME/s3/6cAShY9Zg== X-UI-Out-Filterresults: notjunk:1; V01:K0:vDRRLNmB318=:FL9d8EADck2T990HAWQBrO fLS2S02PAKCLeA2HWHOhcdLuQD34bX0ciwSfJgeKqSPSif4LGUBE7onXrImGaIF1zKsP+w521 xp6B03a9L/82zDhA1fwP+df4Y7x87CF5IpZvzHSijSainHAGLnvxsnheA/tfF3BQ2+oV+PdKN QfNZSa0i+Av6nkSKb+IZZ+g+JS45YJoA1OcLmGmD1oLh/vT1KEQGDpBREpdrlI1lo3fqKX/CZ aSKS6SQJNkUAXC8SV8DARrs5TMnSCwCUYuvAmxlL5JlAw29+y0jjuRB14nBfCJQvOMFkLU+lj FiL9qQ1qe60jz9lX300r44lDBqyPk4d6/lQdnIxhf6VTYXzhDjdLBOXiahVy8O9Vc32fm0HFy iJWzQmYOsDt0xOhYRbwXxqDklXqOSRc48kA2lb1fTrmIS0wIO8IgxsinQkAp5c4nncr4wJiCz SAvKjZTCeqNLbqxTecet4ofyGlKievOX3pJ2u65LNg9kgAxcidtfbS2jP40JTbAjjFHlidSNQ fL0Fp3CgXTrS1G8I6g69fwpW2VMTVYgxv9SBH6mZ8bydFix1y2KEs2z9YK3q/CkvDRSp9RUpY MJ7hCVQ+NFLLw67FYFRzB7j+Q4S1CZceAR4WmUXZ1gOMovd7m53CtYH/45dSJ7h+lHmT4hgVW PV59xR7/QqMJWEQGCfWNFpREiQ3GmxRvDB8aUkph5Zn4Uh7XljYqKvIYlpzsNRZSdPcdoc6tZ T08XceSjuPyRniahHU5vV1rF4xEvXUf8bLSuTw== Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The driver now uses the RAS infrastructure, and fails to link if that is disabled: drivers/scsi/hisi_sas/hisi_sas_v2_hw.o: In function `fatal_ecc_int_v2_hw': hisi_sas_v2_hw.c:(.text+0xb08): undefined reference to `__tracepoint_non_standard_event' drivers/scsi/hisi_sas/hisi_sas_v2_hw.o: In function `fatal_axi_int_v2_hw': hisi_sas_v2_hw.c:(.text+0x1b34): undefined reference to `__tracepoint_non_standard_event' This adds an explicit Kconfig 'select RAS' statement. I don't know if the driver uses the interface correctly, as no other driver seems to do it like this, but the change fixes the link error. Fixes: dfeb5021f001 ("scsi: hisi_sas: report ECC and AXI errors in v2 hw to userspace") Signed-off-by: Arnd Bergmann --- drivers/scsi/hisi_sas/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/hisi_sas/Kconfig b/drivers/scsi/hisi_sas/Kconfig index d42f29a5eb65..6ad8a6251d21 100644 --- a/drivers/scsi/hisi_sas/Kconfig +++ b/drivers/scsi/hisi_sas/Kconfig @@ -4,6 +4,7 @@ config SCSI_HISI_SAS depends on ARM64 || COMPILE_TEST select SCSI_SAS_LIBSAS select BLK_DEV_INTEGRITY + select RAS depends on ATA help This driver supports HiSilicon's SAS HBA, including support based