Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp38492982rwd; Wed, 12 Jul 2023 08:21:49 -0700 (PDT) X-Google-Smtp-Source: APBJJlFkIzFC4ngXIfAdNJw8/E4FoY67QlxiF3wBuN7zfYgwY4lEdEnsM/QiTHJt7hcoxDvWpdTt X-Received: by 2002:a17:906:7397:b0:993:f081:2c5b with SMTP id f23-20020a170906739700b00993f0812c5bmr12361045ejl.11.1689175308515; Wed, 12 Jul 2023 08:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689175308; cv=none; d=google.com; s=arc-20160816; b=YsJn0B44kHDv7Nb9ZYd9q1+n1qgsF44PyZrIpNuhuap2o6eYnzTdYeYKivnM3p6V0V ddeRQJwYnw1IrN3+PQUYOAmj9k7Cc7jNgopmcv3wGYze6CTF9BfH53G+XC+vUll1//16 d+jp3CZLcLmAljHidd10vR4i5TpSzfvdu26tWSQsglKbPqGJWBvNX8DEwRaI0f8i7eCr lw0uaYAOZ/svcqaBDuX3r96GvHhMFWeKN5Vdk1l2Tpk9JE4sfQKU8vCvQaeY7LqlEbVz lMXXHjqwT0odVqUvM5mtQ0hJSjMEWWl+3F8lJt7+qqnnAnw8OyY78mn+4XyU6sEc5JNB NyrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=QAqFn71nQK08Pou4CkH2NPss/L+GdIam9CN05EpYNIc=; fh=QlHgDuFOUnWgx5MDXMwYvaBhC2eDQ+qkOP+R+X6hhHw=; b=uAUBknc1HMnpCJ4dFBMvWVhN0b0BhgnZV1ToPR0EdNqroU3Fibn09HpnsZNKEtNe8e C1bPurlrj2d8xay2gdowGNIECvn0kek4cvgLpZ4CQ4lDo2/OprPn3raNSjU2C25dDrnf Z3NXndB0fJEYYSY81N8t4xHLcNvXgne3aGskVyv3EHlo/1w60A3zA7vJrI1oQmyV7YA+ FFQGulSiVF8Zy1tABvPLOJyKiCLvdTYbqSOHqD9FLBc5oRzwWvchYV7Vew0fh7o6Fviq TOiRjPmoa3xYLv9z6BGLPRa5kOwRgtLYLdLifWmeabW+cfvnYeEjwXBVhC7FjN/G2ACy LrRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=nbPWlgxX; 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=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b21-20020a1709062b5500b009924806cd01si4548607ejg.386.2023.07.12.08.21.24; Wed, 12 Jul 2023 08:21:48 -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=@gmail.com header.s=20221208 header.b=nbPWlgxX; 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=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233168AbjGLPGt (ORCPT + 99 others); Wed, 12 Jul 2023 11:06:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55128 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233257AbjGLPGn (ORCPT ); Wed, 12 Jul 2023 11:06:43 -0400 Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4E6CB1FCB; Wed, 12 Jul 2023 08:06:28 -0700 (PDT) Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-5149aafef44so8800559a12.0; Wed, 12 Jul 2023 08:06:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1689174387; x=1691766387; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=QAqFn71nQK08Pou4CkH2NPss/L+GdIam9CN05EpYNIc=; b=nbPWlgxXJOL4dI/TWjZZjGA881ecooijeYaa7A59TAFTu/7ta/1ak2mJE9y30ofkmD BF0htwPneL0XL668CZnRYbjrnohya/FgUg56ZWDNHSrhQ3U6+33z2rk8dDUwytaUo45v X6LDtKebsMYqIAkb3r1UtkzXvOmUr8TNpdbGDBnbWmvx7KUW+lz08RMp6fvXqsXvwdQ5 P4XUslTE0drDqqHRszRMq0nobpy8CZKt7VhHdhXJyO4TGGjzZ5GfJXi8bm6tcxS23OFd 0JmHdJ7OeEPnhcY6RnP4dLC69iXK7LyrHq3l/7MBqpK4E+hQs0mii/Rcf5PnYxfCDjN4 1Bwg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689174387; x=1691766387; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=QAqFn71nQK08Pou4CkH2NPss/L+GdIam9CN05EpYNIc=; b=kfQsb3vIhOpfVc8L9+DmuOwmfgtuw3txF3vqBRtGycqJWOBym5Vh57c9L+NWaJUbe+ HPT+8Z3tKINyGVrOw9vVR/xOVNer9Ir+8vCeNdQzyKcnkKMUWZDx/2ZTD00FPvlGxRRS vH/99N766v7t24g1OFmkKaSiJ1OagIYaGAE0r2RwRBbGCo7Fq4lqQuqwrgeN7MqXkHF1 cUXcaMtfF06KXKgYFlOXvSN+7+fDpC36C8KWZzQ2YBeY9bWR17eKYEgE1hQWdok3/MBQ srIYmhyss3aS+Pt8UibfVFCvbtz32BqNsAN87vVf1v3pSM+eiFlqH7DsGjG/5bo4cxw6 qVsw== X-Gm-Message-State: ABy/qLZTwqR1VZjaQ0l8goQjfLOacpTH8dpyh7fzDxePWknqWrf19IRg N+5Mlbk5DEC+iPzy36qOmyQ= X-Received: by 2002:aa7:d90c:0:b0:51e:57ba:cb8e with SMTP id a12-20020aa7d90c000000b0051e57bacb8emr5468311edr.5.1689174386710; Wed, 12 Jul 2023 08:06:26 -0700 (PDT) Received: from orome (p200300e41f4b7100f22f74fffe1f3a53.dip0.t-ipconnect.de. [2003:e4:1f4b:7100:f22f:74ff:fe1f:3a53]) by smtp.gmail.com with ESMTPSA id c24-20020aa7d618000000b0051df1797222sm2905904edr.11.2023.07.12.08.06.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jul 2023 08:06:26 -0700 (PDT) Date: Wed, 12 Jul 2023 17:06:24 +0200 From: Thierry Reding To: =?utf-8?B?5p2c5pWP5p2w?= Cc: Krishna Reddy , Joerg Roedel , Will Deacon , Robin Murphy , Jonathan Hunter , "open list:TEGRA IOMMU DRIVERS" , "open list:IOMMU SUBSYSTEM" , open list , "opensource.kernel" Subject: Re: =?utf-8?B?5Zue5aSNOiBbUEFUQw==?= =?utf-8?Q?H?= v1] iommu: fix parameter check in tegra_smmu_debugfs_init() Message-ID: References: <20230712113145.12888-1-duminjie@vivo.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="cuXJAWyeTLyXBBIi" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.10 (2023-03-25) 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,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 --cuXJAWyeTLyXBBIi Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jul 12, 2023 at 12:37:02PM +0000, =E6=9D=9C=E6=95=8F=E6=9D=B0 wrote: > Hi Thierry! >=20 > >I think we can just drop the error check altogether since > >debugfs_create_file() will simply return early if smmu->debugfs is an er= ror pointer. >=20 > So do you mean maybe delete the smmu->debugfs check is better? > Maybe I can resubmit a new patch. Yes, I think that would be preferable. Thierry --cuXJAWyeTLyXBBIi Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEiOrDCAFJzPfAjcif3SOs138+s6EFAmSuwXAACgkQ3SOs138+ s6H0PA//VLaQAJjH3N7V9v3NLx9PQULtmoSXBfL5JfIIoc9cexTsdngBqR8wR7ZG ZNZWra1q34gXlc+zLW7gEqfku+pAb+WX//IMr9GuiRPjch49lW+xRILJBFuv09mx yEakEvaJ9XvewOVUTwbJZnVKCJokTtwK5U1RJ+BiYHLa318AXZmZsKANETHBULeS OzMaeHHqWmUKC9ESB/Rj3gNQBbk250UxpMa7GGJfvF/ZQ51qXAHOBIZFbeYVpixK itr1RHkQvcAiA3MMMkJFxw/iK07ArPnHffDUoB3KPpICWXAsnOjwcLtxwdj09sMx 7e3P7kCywGlP9k9T4kvuE+z7Kl0GTN8y51miEwzOI0s3pcROjKciU5EstRXuaM8T juKVO/62dYDhDFSwKM8g1xDuhV1+Cr+zbdLKO2EFOHeXXTfVGeC4HuIEoytVKt39 KFXgi0v530JUuQeZVHGmBxd68HTAcEzH/cVjVkxWnnLv/SBWV4bUK2uEZBWgrBrj IlGK5kZTC5ozeOcZ2h9aOvhEL5p1DHsOd9stFLUri9xlrlITYjhklFUkLIk5nTxi hiyyZ1YI8De9H3YGSh3N5JDuR12uxvGcyyORg8du8pio/ZPl886VRnv5TAlM/2n8 7t1KWPrnt9Kq1smEiU9aG3cOXe4Xd7hgunNrvCtD9Xiq73/sNwo= =4eXe -----END PGP SIGNATURE----- --cuXJAWyeTLyXBBIi--