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: 117833 Delivered-To: patch@linaro.org Received: by 10.80.245.45 with SMTP id t42csp2306071edm; Thu, 2 Nov 2017 09:51:26 -0700 (PDT) X-Google-Smtp-Source: ABhQp+Q5y1G7OMs2oiKrlPm2b7sqlh+dGoFtwlbj2VhkrCJ9C86+346BSeaIl0F5kELgScFjFuKT X-Received: by 10.98.111.71 with SMTP id k68mr4471469pfc.91.1509641485864; Thu, 02 Nov 2017 09:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509641485; cv=none; d=google.com; s=arc-20160816; b=x8vPaJ5gTjztpEfdoEEd1Ze0Zz47FLCankrTpcXvmZfaT7UMl+VPu+tD9YOGoqDckL 8i/aJkIBoBZQmvB7nWk/ATRjihmjC4SvzfpCekP55akuLov+/hUXLsyhX1qv/2ZWf5iZ xaTUNtflhI5rEJDokPzC9WlKE2nfsluU1STYG+3sHUXZNjtJhAXS3/ZWpiQDgoIvb3Md 7GhyGhSwGbYqmTILCXZPFNekgKd/Z5Si0URrlm8zLuOgAT6F0xmxo/KXq8GpynrVch5l 7VYgic5hLJ8w0Vrb9P8eKU5UQNnibjht27oB1TPwF8do1XMw2V8klmLYl6q2tBjaeLAw Ehxw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=JRSTEtqQhh2FB/ZMprW5WmD45zTtsBs1EY9h7IgBmQY=; b=C2OVw5KWi36tMY8u1nwQgddexspxsAjSqb9Jvrp0dSz/jXpHdt1714oU0eyICGYKNa /F55BU1xHNo+bUVu6kf/fWkFRQhpVxst2+s9/WdTk1QFnUeqH4Wcz1ABoA67R6XcImhs J/QaQixMsf5qH0THGKdrSD5FyqqzSyM0NJCCxoVPZIHQivyWAo1hMMc7l2HRIzIgpIxS HTySTsPhSzJ51GyIXlardFQCn0R3GPagqoFdX9qMy/V/mm+U7/dntqXAKIIHO/c46OY9 A+ETWtLO6Z/SUtKcdWGVd++31M5rrsLiNtRmGw3hqLfSN2pzWf3wZmdS8HMmURVnlxzq MkRg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r39si2571814pld.699.2017.11.02.09.51.25; Thu, 02 Nov 2017 09:51:25 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934221AbdKBQvY (ORCPT + 26 others); Thu, 2 Nov 2017 12:51:24 -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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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(+) -- 2.9.0 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