Received: by 2002:a05:7412:251c:b0:e2:908c:2ebd with SMTP id w28csp1159989rda; Mon, 23 Oct 2023 04:43:29 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHxVCvbaddUup9KaeJ9/jkFcCSFwN6S2hyHe/swtoiq7gn6f6G4T+8F7efx5zd5P3bmju+c X-Received: by 2002:a17:903:244e:b0:1c9:b2c1:13a2 with SMTP id l14-20020a170903244e00b001c9b2c113a2mr10774090pls.50.1698061409539; Mon, 23 Oct 2023 04:43:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698061409; cv=none; d=google.com; s=arc-20160816; b=WAJ7DuW0fRywN1jRvrHj1bqSeHs579SXrvEOMQDhc/3UMeaG4jJtWkVcDX6Qjq+RXc BYV4vcF5wmHbQz5N21RfTpwW7nsTZcopSSkMG3JFd/p6FAP6OqBdUpl/ufn2rDqkvwoT 3Sk4auM0TVzWtLdkijtNCiV9eydqTDZyAicYuKFcnPM1bEPsy+TCgJt8oU1QzN9Y17aG BTESWgri6yMEE+eit5zOsloUkbCC1cZF1P9FBlQC/jY8kpowb15X7QJc117I0YmAFWYa hhkomTPvBa/0xO2VCoAiOh521qSim2xuAZgRa175/18bUdAbA6GLMtbr6ECJI6DvdybA e/iQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=SHpOrdrjUq/RCpEv0rxQXUbu6fq2w6SkA9rTlRoXwdQ=; fh=7wv9G/uu+muYsVGS1lzk4lJUI+CVAN1r5mx3De24g3g=; b=xdHgNYvqFltywyNBOhZZeicWoWG36GNd+UtsOQg32arHrDmhBuyEwECL/hwBE8unV+ TlCZ4TW94XMhW2ycw42Xz9AwiVeGB6oczDhcE+63fRqvdxMqjdeA3CdYMtX0VUrTHkdk IQmWuU43qN5Rk0UBu70XLWuWTxZ1qInMQba9A662gjwqSl+y1V+lDTtm4lzdwb3fVWHw uShyJVndJFZp7+jD2KWUoMCqddmjVAb3OJIObhPf7CmzRPiENtQmkNoIVc9J3xwAwUjz 6ur5aMHaIM7rYjBstMX+D22t0M/BjdtSOX10MwnqPU3PzwYgdRWZLec/hYvc0hjUK0ok ma8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="M+qe/nZO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id z14-20020a170903018e00b001ca344f46efsi6764691plg.330.2023.10.23.04.43.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 04:43:29 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="M+qe/nZO"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E44C380B1FA7; Mon, 23 Oct 2023 04:43:26 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234356AbjJWLnO (ORCPT + 99 others); Mon, 23 Oct 2023 07:43:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46590 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234331AbjJWLnF (ORCPT ); Mon, 23 Oct 2023 07:43:05 -0400 Received: from mail-yw1-x112f.google.com (mail-yw1-x112f.google.com [IPv6:2607:f8b0:4864:20::112f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFCDB10D0 for ; Mon, 23 Oct 2023 04:42:57 -0700 (PDT) Received: by mail-yw1-x112f.google.com with SMTP id 00721157ae682-5a7c08b7744so31467517b3.3 for ; Mon, 23 Oct 2023 04:42:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698061377; x=1698666177; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=SHpOrdrjUq/RCpEv0rxQXUbu6fq2w6SkA9rTlRoXwdQ=; b=M+qe/nZOuAFgg4z2E81XWD/9yNz10ufKCHIU6ggwE4UTwrnm3xPhxVaguo9i9ToDb5 o5ScsvGEEBlNRa3w5gptS/yVRB9YAJPeSCBWVa1F486/UhrvAjj9d5y+TFCu35ogRmFq ATPCyxMfxAm9HLP+A3K6A4CLsNNYdnz+s5o+RxIYzgh5hs4BI7D+lp/h251yh3xQgpOO WK+p+bPHuMlGJqj9T8Yhn6mrYdyshq4KWM5bzhF+CDE6KM6RhtlwOHMcY/Zy/1mm+L8s NfdXfQ9mMd3Be/4njrLl4cLENidIkgSsYtsgrRnTJyx8TLiSXxwD197tBJvqxG5u5tux tUdQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698061377; x=1698666177; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=SHpOrdrjUq/RCpEv0rxQXUbu6fq2w6SkA9rTlRoXwdQ=; b=PvSZNyTZvQ//M6P/KlDPM6JPOJruvfQz6U714pNZ8jQ3gvQkVCKem9mVB68wKol51a EBKujvPZ2hBPiO5D/jPf8hbtLX/+FjGalMLpRl6qIeTZmJUaLeyoOzmmr2DD1Kuomfbq OuMzQ/+GTbhKEBuGTsMvoNLQUHYXC3wEMRp9xajlUvedIbHbq8bZpTv67bMo/hfatKGx Ift3NBASocEVNUqLVn8uInB4d54wmNlfXPhJYtoCfJrqo0wtPWomrrfjkX9ErB1FfDAS zPo2Gi1BYtC4BYsM84W9eLTue8Gdy7KY3YG21Ej4kDCJBKK+qjQ63ScIL9cumhH0Ox1o 9CAw== X-Gm-Message-State: AOJu0YyAuHTRgK50M12BM9joNtdHXi5njqptuowLABbqLFZHDT8KuSav A1rbwWAkknvrzhedeq8LxjfSPl/vLFtjWTKf7/HtRA== X-Received: by 2002:a81:8943:0:b0:5a8:1058:5d97 with SMTP id z64-20020a818943000000b005a810585d97mr8762458ywf.45.1698061376807; Mon, 23 Oct 2023 04:42:56 -0700 (PDT) MIME-Version: 1.0 References: <20231019195752.62692-1-edson.drosdeck@gmail.com> In-Reply-To: <20231019195752.62692-1-edson.drosdeck@gmail.com> From: Ulf Hansson Date: Mon, 23 Oct 2023 13:42:20 +0200 Message-ID: Subject: Re: [PATCH] mmc: block: Use octal for file permissions To: Edson Juliano Drosdeck Cc: adrian.hunter@intel.com, CLoehle@hyperstone.com, brauner@kernel.org, axboe@kernel.dk, victor.shih@genesyslogic.com.tw, f.fainelli@gmail.com, asuk4.q@gmail.com, yibin.ding@unisoc.com, linux-mmc@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 23 Oct 2023 04:43:27 -0700 (PDT) On Thu, 19 Oct 2023 at 21:58, Edson Juliano Drosdeck wrote: > > Octal permissions are preferred as stated in > Documentation/dev-tools/checkpatch.rst. Replace symbolic permissions > with octal permissions when creating the files. > > Signed-off-by: Edson Juliano Drosdeck Thanks for your patch! Replacing symbolic permissions with octal permissions makes sense to me. However, I don't want one patch per line that needs to be changed. Instead, please go over all the files in drivers/mmc/core and fix all of them in one patch. Another patch can be done for drivers/mmc/hosts/* Kind regards Uffe > --- > drivers/mmc/core/block.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/mmc/core/block.c b/drivers/mmc/core/block.c > index b5b414a71e0b..edb653d8fbfa 100644 > --- a/drivers/mmc/core/block.c > +++ b/drivers/mmc/core/block.c > @@ -2916,7 +2916,7 @@ static void mmc_blk_add_debugfs(struct mmc_card *card, struct mmc_blk_data *md) > > if (mmc_card_mmc(card)) { > md->ext_csd_dentry = > - debugfs_create_file("ext_csd", S_IRUSR, root, card, > + debugfs_create_file("ext_csd", 0400, root, card, > &mmc_dbg_ext_csd_fops); > } > } > -- > 2.39.2 >