Received: by 2002:a05:7412:f584:b0:e2:908c:2ebd with SMTP id eh4csp1939542rdb; Tue, 5 Sep 2023 09:19:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHtjKzj0GsyeUPF4jSvuOqXk/A5hAwF5ItzA4gqUWiI+eIB3r0+DqkLIOPPrxg5Ng7Jxfmt X-Received: by 2002:a17:906:2181:b0:9a6:1811:e4eb with SMTP id 1-20020a170906218100b009a61811e4ebmr256033eju.38.1693930781164; Tue, 05 Sep 2023 09:19:41 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1693930781; cv=pass; d=google.com; s=arc-20160816; b=CURZgoCEfC8U6fRAdpj7GtWtuSOh3W0K76OqTZIKWyFJ1BGbPG0l9vw12itm9+Sgzf rTjdFFCEUeCUbD8uhefBGXBwm0kU5TgYvhDlCbEb1A7j0SDXVQYUP6AzNUEIe6bh7Vi3 v3AkcOUC113Vp8xUU/Jom/Og9BE3+d3GlBnlvHmUN/HSkmJP6v1vXxkxC9Wjg0Nz9H4q sEGBfXh1BX5nxMq40bQc7o1lsuar3AkaSKiVgxZvSxyHwUbObeVnPDicQyITmQtIsCEg 2P8rw4imGSh30FTnW0UAjKJEzn/65oXNul1Zo6Ieayf0jRcxNZSfaVQX8CTsWuoqJY8w fYjA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:mime-version:content-transfer-encoding :message-id:date:subject:cc:from:dkim-signature; bh=9breyhrL75wDpZLbXVWtXdSvRbG6KendZ+1/6qc/P98=; fh=XfRDdm3IbqK+6XXZq8I/hZHdfidO9Bi3uZPOrDW/Zt4=; b=trqCoCSF6Az6+ygA8ALr3Wu7jtlK0S6uMDbmR3Gjiwzugvupc0aSSb5sw/sI+7iFRI 9mKdfzbkmgpqxEmcxCeqwiCzt+jZ/WvoW9rJBdhRP5ludKu4S3Q4BPej6/y/fLbbuaCZ 13KjS7u7ufqxhGxwCGfaS3pnA2Pb2zD7w/J3jqUsXsXKOqrtGYrGYf5CwUXY7iu7zxvu qeyl1By4CNBrZXiG/Jw0t/gM9M8fHXo604Pl5mrZDTEAd2ZHKog36InsLZS+Pooz/NHe loPUqsfBwkdKR+epldP+wvV+7oxMoYUkyqqFd3yEMETcB/bynU/LOTvIk225alzZlhSl VMjQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@outlook.com header.s=selector1 header.b=aZFxO66D; arc=pass (i=1); 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=QUARANTINE dis=NONE) header.from=outlook.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gx17-20020a170906f1d100b00992f7e90360si7741570ejb.727.2023.09.05.09.19.36; Tue, 05 Sep 2023 09:19:41 -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=@outlook.com header.s=selector1 header.b=aZFxO66D; arc=pass (i=1); 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=QUARANTINE dis=NONE) header.from=outlook.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1347864AbjIART6 (ORCPT + 9 others); Fri, 1 Sep 2023 13:19:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40272 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229927AbjIART4 (ORCPT ); Fri, 1 Sep 2023 13:19:56 -0400 Received: from NAM10-DM6-obe.outbound.protection.outlook.com (mail-dm6nam10olkn2012.outbound.protection.outlook.com [40.92.41.12]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A0C8610E4 for ; Fri, 1 Sep 2023 10:19:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XCDFvsB23UFQoUHUNl0yjZOI2SMO+FGK/IbMs1hj8+dDkIC1Zt5qvJs48oOPXFbhel8d4eV7JhA9mSMCcLCHE9J4Dp5QsxF6REPR62Bb5FbmVwG7jftw5+RSa30U6m3yNpN87oMTfzz43GOZtS9JCg32I33pPEcQtAB9oPxxZr8OMraYM43sew3wiziltehSih0BPQabv2QzM/o+7swdZaJAu85EKkqHpalQoJe/z0udkv5bYSkUJE6cE0LpYEpv2c6Pu/l6e8+m3BhFUtBLq98NZSUkcIj5m0kSWj/Fj+ndqJEhi+TACO1G3sqQXu1QOI6Un7937ycL9wsMLfcHTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9breyhrL75wDpZLbXVWtXdSvRbG6KendZ+1/6qc/P98=; b=laEn0AETTwl0oMjhMSLdw03ptcSRmF1wZv1vUfTYq9C/gmZge2ez2HC/G0i9aFw1S7Q++ZojVBefrYfb57OWz0M4MfAn3VEORbzGopPz+XzowROyp+6kAqztIy9+YU3Ptukm+PZKDL+gOO0McWHaRLaRPNHcP74QgVRh8RGQ8k9JJ0Gpf4IgQBfS9PD/bKwfqm3lgnRaatb4NokF5ccaG/U25AZTkwSKYuwwvSl8SDKva6LmzvNvGkyPG5vEbkNSsTc88BnwAUqEbHkUsPbBaRJ/IkVAelTDvJEYDk6jxVnKPYPtrMW2fxMlSHioA5tdrWpo6xv2GO/lFoXh7cXj7A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=9breyhrL75wDpZLbXVWtXdSvRbG6KendZ+1/6qc/P98=; b=aZFxO66DKR7/CLOdJkGMT+FtwPE6DIimG0Ak8JNeo3wW7Bh7VIGFxyVL4hEexGs8FcJZcVgSXQQaFcTHPPjVUSTgu0t2bYKWwrgd13n75Eo37Cyu6mSjoGcqa6adUzmmuILK0LuEOLrnWwKyGkeG72vsrzQhMxwSiL3JjJPjNawICg1P16y2HYHQGSyK01l1Xl0yz/wab1KKcThrpr/cGuc/4EbCH2vGL9jubg6tp1WmRxclN/LMnIvXL3gbHCayy+xGLC2ApT4EBp6vyuxbx/APX9YP+NTnLPeIzGLbtP+gdc8BJSahhfa5YnmwtqdYuEserEK34wllAOlF/l/EDg== Received: from CY5PR12MB6455.namprd12.prod.outlook.com (2603:10b6:930:35::10) by CH3PR12MB8934.namprd12.prod.outlook.com (2603:10b6:610:17a::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6745.22; Fri, 1 Sep 2023 17:19:52 +0000 Received: from CY5PR12MB6455.namprd12.prod.outlook.com ([fe80::912:a56e:f6d2:86fa]) by CY5PR12MB6455.namprd12.prod.outlook.com ([fe80::912:a56e:f6d2:86fa%4]) with mapi id 15.20.6745.015; Fri, 1 Sep 2023 17:19:52 +0000 From: mirimmad@outlook.com Cc: gregkh@linuxfoundation.org, Immad Mir , Michael Ellerman , Nicholas Piggin , Christophe Leroy , linuxppc-dev@lists.ozlabs.org (open list:LINUX FOR POWERPC (32-BIT AND 64-BIT)), linux-kernel@vger.kernel.org (open list) Subject: [PATCH] powerpc/powernv: use appropiate error code Date: Fri, 1 Sep 2023 22:49:12 +0530 Message-ID: X-Mailer: git-send-email 2.40.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-TMN: [qaoOnCIaci6F7glq4M9BFB6A5gam/uhi5iyllV7plUW1p5aKRYEjUHuFNuWmTMqZ] X-ClientProxiedBy: BMXP287CA0021.INDP287.PROD.OUTLOOK.COM (2603:1096:b00:2c::25) To CY5PR12MB6455.namprd12.prod.outlook.com (2603:10b6:930:35::10) X-Microsoft-Original-Message-ID: <20230901171913.24677-1-mirimmad@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY5PR12MB6455:EE_|CH3PR12MB8934:EE_ X-MS-Office365-Filtering-Correlation-Id: 34083b1d-c169-40b0-de9e-08dbab0fa6db X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: +e93XboYK1MPesvocZmqXgCukVgaXEr+C/PMOQ+C0gqK8luYhlxWF62UOw5v9Esr5g8t8S7NUy/0xEPbZVgxH6PwgTRBVZAuDzSurJ9uQCcLKp32eByNhyzc3o7cvgbfAJGvAt25Hga0k9MWXupD8T2m8PwJrUkYJCCBi3vepAZtpcvYkTC78sFS20msOlTSKAqE0z4QeN2RCL8Fm949LsCp9FhLDolIcm/z6NqOUi9TuP7B+4nOgwJcFj2P+ZE5dP0Ae+txAeYrjUvEV7I+519CwFo1PoHNylgbm8S65hgn0zw+vcm16Ah6KiXS9cjamUEYaEZ9vnTx+DZTU4DE+RF8hszuU6KJ+OYgowUrE3xSaSNMIwxTb/HfP8BLvQTS7nqSwDLF8rk5vaELTM166jzSReFDVnV0/Nrd4roG/OUHELIdtfUVFrpF/3zeNOe3rJ7mFR7+uPjsdTndaniL1aaifEf1Y06Uzmtck3Hun8QboeuUhJvL9YukAQcv6vityQEpgvKxiDI6xR92R6lBogujptrX4mTKZk6PQcu01s/4aYPFH7agNNQm3x9ZggcA X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?FfU8SiBREa3goMgyNnpSsu264lD8AGuUeoaFppgjLw3MfD+Zw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PxCN6lL9Ejtk0CT0fCExn/ctAPhYyCsrX3zgceLr8?= =?us-ascii?Q?jdQgEc91Bbe01+/bimMQo06YyYjJaj9tAILhsvdEoQ5DSJXF3wnSt++WNsEo?= =?us-ascii?Q?Oow7WZoCH2JU3gZuMAKkAwfjOtv9HuGat8v9Vmz4HGFGlJYMDtyXuPepz1+T?= =?us-ascii?Q?3rbwHbmZQnsXBNkcZJRKmm4VL7g4dlPR57vG4DRzJfX7YDgSaBsbf+udXeg0?= =?us-ascii?Q?aEo0jCTAcy9qMWi/DhIPBihFx1ZeTm7h0rg4hRx+ad0uevWKylW/en2oU4RT?= =?us-ascii?Q?vRk0MhI+3f9jyxGXy/B2tnaBdORtkJ5z9pf0xvJe7hb+VhHVlfnKm48qTUFH?= =?us-ascii?Q?4mI9PA7U+plwVyaJYc/zH17a2Hp3TpjrZsGyMJVKow=3D=3D?= X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 34083b1d-c169-40b0-de9e-08dbab0fa6db X-MS-Exchange-CrossTenant-AuthSource: CY5PR12MB6455.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Sep 2023 17:19:52.0736 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR12MB8934 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net To: unlisted-recipients:; (no To-header on input) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Immad Mir -1 is not a valid error code. This patch replaces it with -EPERM. Signed-off-by: Immad Mir --- arch/powerpc/platforms/powernv/opal-xscom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/platforms/powernv/opal-xscom.c b/arch/powerpc/platforms/powernv/opal-xscom.c index 262cd6fac..ce4b089dd 100644 --- a/arch/powerpc/platforms/powernv/opal-xscom.c +++ b/arch/powerpc/platforms/powernv/opal-xscom.c @@ -171,7 +171,7 @@ static int scom_debug_init_one(struct dentry *root, struct device_node *dn, if (IS_ERR(dir)) { kfree(ent->path.data); kfree(ent); - return -1; + return -EPERM; } debugfs_create_blob("devspec", 0400, dir, &ent->path); @@ -191,7 +191,7 @@ static int scom_debug_init(void) root = debugfs_create_dir("scom", arch_debugfs_dir); if (IS_ERR(root)) - return -1; + return -EPERM; rc = 0; for_each_node_with_property(dn, "scom-controller") { -- 2.40.0