From patchwork Tue Oct 31 12:25:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shiju Jose X-Patchwork-Id: 117603 Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp3844796qgn; Tue, 31 Oct 2017 05:26:39 -0700 (PDT) X-Google-Smtp-Source: ABhQp+QemItV2OwveXrlBGZjkou26XbTTK6+poOMT2b4dOiG0P2A5Fc2Wfp1RvhzN6B6P3nJZHgx X-Received: by 10.98.201.207 with SMTP id l76mr1917285pfk.337.1509452799772; Tue, 31 Oct 2017 05:26:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509452799; cv=none; d=google.com; s=arc-20160816; b=AqPWHL7bP5rzmHjzqzIeeiWZbYdXT35DpYRHRMj0xrX6lpXi3y5XwSCVP99qOphc9T URx70f1PlFpuH2/cWgWsWAa3eMZdYUxJ41ioDkOj49k4pULU4Pkn8M1ODs9050gHnizg sf6IUjgb5TR5E9CDWOejTNQstVGuAwWDTOlvlzq3z2mGZIP2kKG6NJxC2j4Md2Rhp7+S s+NbT/a+9mRjeYXxiilyqe/qWf8sKBU6cWmxkV4vd9ibBq+THsoJjydRIkcCH2OD6mS7 sv/SVAPPmjfJ67sw0gTj6iBvYhQxf0vNC6ppZk2dN0fESrgAGbUQWBL21tUhesX3c4VY uXnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:date:message-id:subject:from:cc:to :arc-authentication-results; bh=9k25/m89Z0ldo6JW/KnzI+89XUylB5r8Ler5DLsTnUY=; b=EOjxHBjwLpMZJo195QyCRk7OogZraF7+1F71/CqeWIf8uAgmP7Oj4A/Ti310qTIi/Z Ul2EUcSoZxBb6qk4te8kDxvyVB40qMhZvhK/ldvJwxvhF3DrsazCic7q91BNjapTq5jk 7UNzJwjcTTXJWmi2ChAmEawRx84sh/ok+whne7tAIb/gZ+ilUuoa3rSPwtRwbu9OuRR5 CZnzmEtdQiplIWleyGUJnIQD9GHT1SGC2lI5ts1Ab+9ovU+5UiQbq1zUoc+mVVkWOMvv X2UtqSEEDayMPvLZYKO2PiKLJb85GCvp2+faa5eOTfeSd6dn0aQXeObjzrSTMjL+G32b 6eNQ== 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 n3si1468321pgt.12.2017.10.31.05.26.39; Tue, 31 Oct 2017 05:26:39 -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 S1752838AbdJaM0h (ORCPT + 27 others); Tue, 31 Oct 2017 08:26:37 -0400 Received: from [45.249.212.32] ([45.249.212.32]:41749 "EHLO huawei.com" rhost-flags-FAIL-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1752598AbdJaM0e (ORCPT ); Tue, 31 Oct 2017 08:26:34 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 1931ADBA99005; Tue, 31 Oct 2017 20:26:21 +0800 (CST) Received: from [127.0.0.1] (10.202.226.121) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.361.1; Tue, 31 Oct 2017 20:25:55 +0800 To: , , , CC: , , From: Subject: [PATCH 1/1] scsi: hisi_sas: fix for the build error log_non_standard_event undefined Message-ID: <3f14f745-6fdf-4948-85bb-d21d565dbcab@huawei.com> Date: Tue, 31 Oct 2017 12:25:51 +0000 User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 X-Originating-IP: [10.202.226.121] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch fix the build error log_non_standard_event undefined for the i386 build for COMPILE_TEST. https://lists.01.org/pipermail/kbuild-all/2017-October/039518.html The function call log_non_standard_event is replaced with the function call trace_non_standard_event. Signed-off-by: Shiju Jose Signed-off-by: John Garry --- drivers/scsi/hisi_sas/hisi_sas_v2_hw.c | 41 ++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 19 deletions(-) -- 1.9.1 diff --git a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c index 433412a..72f606a 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v2_hw.c @@ -2959,12 +2959,13 @@ static irqreturn_t int_chnl_int_v2_hw(int irq_no, void *p) if (trace_ns_event_enabled) { err_data.physical_addr = val; err_data.type = ecc_error->type; - log_non_standard_event(&CPER_SEC_TYPE_HISI_SAS, - &NULL_UUID_LE, - dev_name(dev), - GHES_SEV_RECOVERABLE, - (const u8 *)&err_data, - sizeof(err_data)); + trace_non_standard_event( + &CPER_SEC_TYPE_HISI_SAS, + &NULL_UUID_LE, + dev_name(dev), + GHES_SEV_RECOVERABLE, + (const u8 *)&err_data, + sizeof(err_data)); } else { dev_warn(dev, ecc_error->msg, val); } @@ -3000,12 +3001,13 @@ static void multi_bit_ecc_error_process_v2_hw(struct hisi_hba *hisi_hba, if (trace_ns_event_enabled) { err_data.physical_addr = val; err_data.type = ecc_error->type; - log_non_standard_event(&CPER_SEC_TYPE_HISI_SAS, - &NULL_UUID_LE, - dev_name(dev), - GHES_SEV_PANIC, - (const u8 *)&err_data, - sizeof(err_data)); + trace_non_standard_event( + &CPER_SEC_TYPE_HISI_SAS, + &NULL_UUID_LE, + dev_name(dev), + GHES_SEV_PANIC, + (const u8 *)&err_data, + sizeof(err_data)); } else { dev_warn(dev, ecc_error->msg, irq_value, val); } @@ -3135,7 +3137,7 @@ static irqreturn_t fatal_axi_int_v2_hw(int irq_no, void *p) HISI_SAS_VALID_AXI_ERR_INFO; err_data.type = axi_error->type; err_data.axi_err_info = sub->msk; - log_non_standard_event( + trace_non_standard_event( &CPER_SEC_TYPE_HISI_SAS, &NULL_UUID_LE, dev_name(dev), @@ -3152,12 +3154,13 @@ static irqreturn_t fatal_axi_int_v2_hw(int irq_no, void *p) err_data.validation_bits = HISI_SAS_VALID_ERR_TYPE; err_data.type = axi_error->type; - log_non_standard_event(&CPER_SEC_TYPE_HISI_SAS, - &NULL_UUID_LE, - dev_name(dev), - GHES_SEV_PANIC, - (const u8 *)&err_data, - sizeof(err_data)); + trace_non_standard_event( + &CPER_SEC_TYPE_HISI_SAS, + &NULL_UUID_LE, + dev_name(dev), + GHES_SEV_PANIC, + (const u8 *)&err_data, + sizeof(err_data)); } else dev_warn(dev, "%s (0x%x) found!\n", axi_error->msg, irq_value);