X-Received: by 2002:a17:90a:8b94:b0:1bc:c0c1:3c26 with SMTP id z20-20020a17090a8b9400b001bcc0c13c26mr3951555pjn.165.1645720609350; Thu, 24 Feb 2022 08:36:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645720609; cv=none; d=google.com; s=arc-20160816; b=TX7WDK2b7EiqoJ/dZXpcQ3CLlb2y42L1ZXTLPAECRnyjUjHdRXNSA9bZ9ffTh+lLQW LtvA/p7EEQizkREbSzpzSw+pV3FDxMkeqb4hS55/Zvoqc8JSDZzPLM4IrW0f4olcHpzO 6BcIEcmG/3WJ0HyqTMkYHNhrnbE+4n44/e36tdorOCd4cYrEutrke09ZC2g9MtsN7AB2 4OuelKJJf25Y7Lz88WGiIgiJioZ/HSRo9g8t7MmXpu2OwntejS/3SxyepMu2DWA5O8zY rLjqhcMIE6R4dDnnxh2KdoHIs0KEwj+9x2Yjica1FfrKRLZJkQvf1s1N9Ucg7SFctJO6 28sA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=7BuepWRoVYNqFlTNgWxFL15cJwmSMQXcytXzuZnuJSk=; b=AfJ6/PgTtdTg1UUWYJFxhPIv/zxqDaacTrAoJEsvSk+H+SXmiTv5sxpk4tb3tP+g5r EIg/WcHF9UE21S/IjoO8EmwAuf+gcLON4vUUYNl/Ilv+xPEqugeWrhq2W45zSK1qECK7 6e6nvkOpM3/UXlNToR/7Vj9meVL4SmsfN8wnH1kbxLWdZJNvT5eiM3XJEfgPDEvDM5hO 7SEv9w1zttWO0SeDGlDPEN42Cn2SiU0BTBHo5gb5y0xdBM+aI6g/6OH+9YLakm3pUkno l3UiC0wx/XbmpTWu9cOgb+Z47shtult/H2diD8UKxc6+glq0yKTDFk496+tw1lO4+ADd oL6g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f12-20020a17090a654c00b001b9a07daa7dsi5117993pjs.61.2022.02.24.08.36.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Feb 2022 08:36:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 023EF1D97DB; Thu, 24 Feb 2022 08:20:15 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234160AbiBXL5i (ORCPT + 99 others); Thu, 24 Feb 2022 06:57:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55960 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234150AbiBXL5f (ORCPT ); Thu, 24 Feb 2022 06:57:35 -0500 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91E1A3BBC2; Thu, 24 Feb 2022 03:57:05 -0800 (PST) Received: from fraeml710-chm.china.huawei.com (unknown [172.18.147.206]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4K4B8s5FDMz687mD; Thu, 24 Feb 2022 19:52:13 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml710-chm.china.huawei.com (10.206.15.59) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 24 Feb 2022 12:57:03 +0100 Received: from localhost.localdomain (10.69.192.58) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.21; Thu, 24 Feb 2022 11:57:01 +0000 From: John Garry To: , CC: , , , Xiang Chen , John Garry Subject: [PATCH 1/6] scsi: hisi_sas: Change permission of parameter prot_mask Date: Thu, 24 Feb 2022 19:51:24 +0800 Message-ID: <1645703489-87194-2-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1645703489-87194-1-git-send-email-john.garry@huawei.com> References: <1645703489-87194-1-git-send-email-john.garry@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.58] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Xiang Chen Currently the permission of parameter prot_mask is 0x0, which means that the member does not appear in sysfs. Change it as other module parameters to 0444 for world-readable. Reported-by: Yihang Li Signed-off-by: Xiang Chen Signed-off-by: John Garry Fixes: d6a9000b81be ("scsi: hisi_sas: Add support for DIF feature for v3 hw") --- drivers/scsi/hisi_sas/hisi_sas_v3_hw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c index a57f247481ed..29a566a19219 100644 --- a/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c +++ b/drivers/scsi/hisi_sas/hisi_sas_v3_hw.c @@ -530,7 +530,7 @@ MODULE_PARM_DESC(intr_conv, "interrupt converge enable (0-1)"); /* permit overriding the host protection capabilities mask (EEDP/T10 PI) */ static int prot_mask; -module_param(prot_mask, int, 0); +module_param(prot_mask, int, 0444); MODULE_PARM_DESC(prot_mask, " host protection capabilities mask, def=0x0 "); static void debugfs_work_handler_v3_hw(struct work_struct *work); -- 2.26.2