Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp6674674iob; Wed, 11 May 2022 02:54:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxpm4tI/HL1LoCJwbD+fl9p5oMFMgTRTbdnPDwy/WGp3fHmALxu9rKNYsgAveEk9AoKgU7k X-Received: by 2002:a05:6a00:1251:b0:50d:f2c2:7f4e with SMTP id u17-20020a056a00125100b0050df2c27f4emr24473922pfi.72.1652262868805; Wed, 11 May 2022 02:54:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652262868; cv=none; d=google.com; s=arc-20160816; b=T8QEeWuQDVP5RaPdYv1aPjApIJ1zQbODaG4G58TfaMGhdeSJwmW1h+hyS2yXKXZBUx F1bbMWVWc4+vHOWDg+N1w74KvRE4gJ+Qz+WxAKlaYARlMhQl9nGj+O1XHP6mTJqqn5Mb Wjs3di6aZe/aI6XaO/CBIlaOhOfLlKTu4Bkn732vucYePmTlYvPKVnqB1ZAnBnpel3Fl qgh2eWN5W7E1x+gP9B7C5xLSSYlhUB9dwpi81fHBy+kc6GvQ6d43lFjsTTpsn1WCmWkW /Xn0hKK6YKLz3kITB23Orobq+tTSUUHa5baVoiyt3AW8LW35h4VegfnTyx2y0wEyMUZZ WZqA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=zj+ciaKGYskhPPR9+F46t3cZTHZTJSZYUcobdcGfY+c=; b=n14Ol2LIFsYJRPUh+MxkoOxv5WsjGexxddsQ+yQelnQj1MJucPvNaADSGcw7OsbQ3N 8OYX5dFNCj5AxwfANxYlngq1SYXK+Fmsv/AqlYIWrmExak7oODDVyB32pNoWdHEjsSM5 nyYsQ2kUw/TabIlfbmwETu4c6ZJ48SgxaJBZWbeWPAvNoLnedtf6D55oFHi03F7MAMrH jfY4R9bRyozJFHkg5h5hdc/ZxmiACeq+GmyvJWHnM7oYz8PVhLNuQNnqmj6ikh8ctxTV U8faHwXfE8C5yEA2cBgXMCcIdxjsy1eaw9WOtYUdzOOjqF3Z639Y/UK/bQwZZsUnO869 Ci5Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=GdqPf84p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gq6-20020a17090b104600b001c6edf679b4si4926491pjb.46.2022.05.11.02.54.18; Wed, 11 May 2022 02:54:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=GdqPf84p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345214AbiEJSzX (ORCPT + 99 others); Tue, 10 May 2022 14:55:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237099AbiEJSzV (ORCPT ); Tue, 10 May 2022 14:55:21 -0400 Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 51DF612EA0B for ; Tue, 10 May 2022 11:55:20 -0700 (PDT) Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 24AIFd7x013308; Tue, 10 May 2022 18:54:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=zj+ciaKGYskhPPR9+F46t3cZTHZTJSZYUcobdcGfY+c=; b=GdqPf84pDuoWF/mb8XaEXHAXHpL2lymIqptlQCzRzbMJnB/vXkT5KmefvjMGYolibVjn QFgN4pRa/Pd2lfn/KQh/YUEjmjfhQwG8sdh9I18vLnimL0twg9cE2I9APyIhnte0xFDa LH/BOUVP87rrbwyXG8lC/+JUaiudbWe4c/SrmSsaMfSXRHahJICZT9XdFyjsY6kqn6Ao R+es308b7tnxjWV1N7qYx30dPsKhh48q5NdJt2eyV6V5u8EWIJbI/W0CsPNRSyrRAVZi woQIm84gCryidwFlGsX1RkEPdGBRoaWwieiTIwc0CcG7negrctCJimcU0NjqDGdmRani Og== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3fyw628rgh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 May 2022 18:54:54 +0000 Received: from m0098410.ppops.net (m0098410.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 24AIiuI6022838; Tue, 10 May 2022 18:54:54 GMT Received: from ppma03wdc.us.ibm.com (ba.79.3fa9.ip4.static.sl-reverse.com [169.63.121.186]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3fyw628rg4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 May 2022 18:54:54 +0000 Received: from pps.filterd (ppma03wdc.us.ibm.com [127.0.0.1]) by ppma03wdc.us.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 24AId58f016614; Tue, 10 May 2022 18:54:52 GMT Received: from b03cxnp08028.gho.boulder.ibm.com (b03cxnp08028.gho.boulder.ibm.com [9.17.130.20]) by ppma03wdc.us.ibm.com with ESMTP id 3fwgd9f1p3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 10 May 2022 18:54:52 +0000 Received: from b03ledav002.gho.boulder.ibm.com (b03ledav002.gho.boulder.ibm.com [9.17.130.233]) by b03cxnp08028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 24AIsqP733030520 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 10 May 2022 18:54:52 GMT Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 2449D13605E; Tue, 10 May 2022 18:54:52 +0000 (GMT) Received: from b03ledav002.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 38ED9136059; Tue, 10 May 2022 18:54:50 +0000 (GMT) Received: from [9.160.170.88] (unknown [9.160.170.88]) by b03ledav002.gho.boulder.ibm.com (Postfix) with ESMTP; Tue, 10 May 2022 18:54:50 +0000 (GMT) Message-ID: <08d9470c-20db-52b8-7015-84f0ed29ad0c@linux.ibm.com> Date: Tue, 10 May 2022 11:54:49 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0 Subject: Re: [PATCH] powerpc/eeh: Drop redundant spinlock initialization Content-Language: en-US To: Haowen Bai , Russell Currey , "Oliver O'Halloran" , Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras Cc: linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org References: <1652176394-4331-1-git-send-email-baihaowen@meizu.com> From: Tyrel Datwyler In-Reply-To: <1652176394-4331-1-git-send-email-baihaowen@meizu.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: ZDWTDKdbQcJ5VCuhPJargC0sHL62Pyj_ X-Proofpoint-GUID: oOxcxjEcoqwPVorQ5dp9o_-uGRqKN_hi X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514 definitions=2022-05-10_05,2022-05-10_01,2022-02-23_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 suspectscore=0 phishscore=0 spamscore=0 lowpriorityscore=0 malwarescore=0 mlxlogscore=875 mlxscore=0 impostorscore=0 priorityscore=1501 adultscore=0 clxscore=1011 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2202240000 definitions=main-2205100079 X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 5/10/22 02:53, Haowen Bai wrote: > slot_errbuf_lock has declared and initialized by DEFINE_SPINLOCK, > so we don't need to spin_lock_init again, drop it. > > Signed-off-by: Haowen Bai > --- > arch/powerpc/platforms/pseries/eeh_pseries.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/powerpc/platforms/pseries/eeh_pseries.c b/arch/powerpc/platforms/pseries/eeh_pseries.c > index f9af879c0222..77b476093e06 100644 > --- a/arch/powerpc/platforms/pseries/eeh_pseries.c > +++ b/arch/powerpc/platforms/pseries/eeh_pseries.c > @@ -848,7 +848,6 @@ static int __init eeh_pseries_init(void) > } > > /* Initialize error log lock and size */ Update the comment, or just drop it entirely? -Tyrel > - spin_lock_init(&slot_errbuf_lock); > eeh_error_buf_size = rtas_token("rtas-error-log-max"); > if (eeh_error_buf_size == RTAS_UNKNOWN_SERVICE) { > pr_info("%s: unknown EEH error log size\n",