Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp587469rdb; Thu, 19 Oct 2023 12:59:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEoSwL7i0IntguvwX9Dibz27nN7VhFPkvgHMmmItwLrud72R9itDeU2Dl+2SU0jG6V/00L4 X-Received: by 2002:a05:6a20:3243:b0:179:fac0:a89a with SMTP id hm3-20020a056a20324300b00179fac0a89amr2501169pzc.54.1697745545101; Thu, 19 Oct 2023 12:59:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697745545; cv=none; d=google.com; s=arc-20160816; b=RnFSr347GSXsop/795QUepNiLJY+aK4OZeVhDY10+C4cJm0oXe+9gj8wlHCz3/GvqX j7JxEYICwvhMBZVyeI9E9G0esSi2UqNGEV/XTEq5qKzvEb5BpOhEaVlsJrNixx0J6TUW 0RDMpvIosa1gpsYio+COEECGy6woThz258Z/AOVeCC/S6kcvayIJrMbMt4c4LLNIzYBz ka7QMyBK8pyXdH5R2hRBExsyC7wHLvRDYvsgFoANMXdZvXgzck02sCK02Y3NsALcONk1 BIDnTUgpHuQCzv4f8/bqMbB0WRT/da7QJc6utRCC8HvP178DHEBOnHsI7LShi7qqLvxm QZ/A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=GvkRB+olAWmsGyPWRkTPV22lAdd6kaLG5H3LrhMq4VY=; fh=mB9CYu9QxoMwBPEAGsPU+v/tQsSzCs24ztrbOZbooiw=; b=CmdzHNMqzzX3gwemSQmU2hsQ+T3HYxcYi774n3GTnkc/Oj/Y2ctuPH+xZOf+HiZ2ir woRwvvu0ldLVvavniSof7MALO6FP/7J2DczqD//Z8E8u5JiInhcK7E0ITXqM+rA3jUGz F1b32pCnr4F/Y92uJmO6Nhbhphi7GQy+d06umRQm+QF2ZQRJjEnXINt7rswjMH+Ny1Rs lsRvNVgjGeUTGIo9ynZW+oNibDf4zXbA3tVUU5JL+4cg4zuRKgn6ntGWyqvsiY9yOyjv iyH4n/BNYvhW6CIBXGlDjvxd/t4YZds/kO/KOU2gipWi6rU3GrmyoC+OEbVyWOvGWw1I 7GAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KliUWx8j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id x38-20020a634a26000000b00589336ba9f7si275400pga.822.2023.10.19.12.59.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 12:59:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=KliUWx8j; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 6BE508260EFF; Thu, 19 Oct 2023 12:59:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345827AbjJST6n (ORCPT + 99 others); Thu, 19 Oct 2023 15:58:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229598AbjJST6m (ORCPT ); Thu, 19 Oct 2023 15:58:42 -0400 Received: from mail-vk1-xa2e.google.com (mail-vk1-xa2e.google.com [IPv6:2607:f8b0:4864:20::a2e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 742D7CA; Thu, 19 Oct 2023 12:58:40 -0700 (PDT) Received: by mail-vk1-xa2e.google.com with SMTP id 71dfb90a1353d-49d39f07066so24707e0c.0; Thu, 19 Oct 2023 12:58:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697745519; x=1698350319; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=GvkRB+olAWmsGyPWRkTPV22lAdd6kaLG5H3LrhMq4VY=; b=KliUWx8j15vtxskywCwUpuCkRJlShQwtv5CH1MpVaK+uySy8kyilDZiSNuwIvR0RTG 21mbdgdAD/ZVb7OHr6Fk90NvJfo4wZT9q8M93zaoyjG4dqYIoKNgeTam2oQ8LoBbQ2wD nGNh8/33+479dEeogu7apptA6TZt0rhohlpPV/svln211wyJ0VSHtlnn9dGl94fSqlQ+ rZ1Je0ZbjyVAYKfIzfzgrctujzzlWtbtT6/VkFPnzfR+NREX5//xOUDN+5gyP5WCUQC4 cRDc6B2Mi0xEVcvYupTk1f8P8RnWovFc2PxTdF4Yq1nWf5XMptnG+ByorXnMUkx03vJn JiEg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697745519; x=1698350319; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=GvkRB+olAWmsGyPWRkTPV22lAdd6kaLG5H3LrhMq4VY=; b=wrFBIB8jwe/PIYQnLiIe5GkYmbF2y1V4KlT8OCb2hLTHF3ECFzaLXQaiwiQ+Y7O6li F1Qeniw57amkbYiy9t8W5433Oq6bpE9SRveoiK+UOBsSNRs5VGZ+SJe/jlzCxFE7HOfx QV2iRobRF3Rp0RkqRCVxsmcNrgtDpj0VgjesivT+J/vgLZihFa9FDe6zxfEvmLVAHMBS pbAskNAO857vdukDRj0DKC3wt4MiLKsVVKseUKb1Pzky2wIoXp7JqbFg6NJCMV3vg09z YPMDx8Fe4Wx9LhYaGlPUQd2M1nnRol4VUCvUn7MUj+7d5pNrjYO3XcYG77HqRr7yIJZI zyjw== X-Gm-Message-State: AOJu0Yw8b9T3d662AumQCcuahZ4ezXAsFhOiQqPM8Lw5aJDaTwl3ruT3 WMWiKjqxoFNunE4tuAswGxk= X-Received: by 2002:a05:6102:23f7:b0:457:60df:a30a with SMTP id p23-20020a05610223f700b0045760dfa30amr3386394vsc.30.1697745519530; Thu, 19 Oct 2023 12:58:39 -0700 (PDT) Received: from policorp.cardumecowork.local ([177.91.232.53]) by smtp.gmail.com with ESMTPSA id d18-20020a056102041200b0045255981807sm46752vsq.0.2023.10.19.12.58.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 12:58:39 -0700 (PDT) From: Edson Juliano Drosdeck To: ulf.hansson@linaro.org 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, edson.drosdeck@gmail.com Subject: [PATCH] mmc: block: Use octal for file permissions Date: Thu, 19 Oct 2023 16:57:52 -0300 Message-Id: <20231019195752.62692-1-edson.drosdeck@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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 groat.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 (groat.vger.email [0.0.0.0]); Thu, 19 Oct 2023 12:59:02 -0700 (PDT) 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 --- 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