Received: by 2002:a05:6a10:c7d3:0:0:0:0 with SMTP id h19csp484484pxy; Sat, 14 Aug 2021 13:14:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/6SsENNkUFNylPYtRzvEVymygOrdasXeV/h+gC7b8E5mH7UCzosLVxmnDLEqMZG7mA1P2 X-Received: by 2002:a05:6402:1215:: with SMTP id c21mr10721214edw.137.1628972061656; Sat, 14 Aug 2021 13:14:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628972061; cv=none; d=google.com; s=arc-20160816; b=FMILCBLlfDcV9fZNu71NaErsya4lGrM3HDPN9rHzVhJZZc8W0EPOQ/nh/1QaM+lUBQ L7wm8PeKul6k0XmKHZDMuuQSx6aAVrcbhz/nECwrYvBX0lh8qRTHCWsnMVlE+hT6/AU4 HCck1Xa2ZrXcex5IMcxkIOotm81CC0osFlpfHREkFr9YwLMqwqCUi/J9vPfbWbR4orEa /N6SyrEs/PaWVU7Ggj7T+OmU/gnQayn9J5wRaWi4gfTuHHg1fvBziuMqYgnd7eSa87ku 8Oc5jt0L97WPFoi1w67pgSgmNrrpMvhWlWmlPDfhD6Hcb9h9r8hKXHUy+70zVTwotwrD 0n7w== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rDgMpLh6S0Ii5yp8lY9fJm3mRqVMT3dMfi+1501R1JI=; b=lQTmm9SNxs8QYJ8E2Kva/Tc3wzbLfMj6r4oxt005V4JAtLyhe6XhuKfuQsTsl55c8h tF3eQlDpVjbYnuNojL/Gv/v6xW4/kG9UrYmrii1Yt4QTEJHZ2IfbGOrKEil/4hmCEyX4 AdasHlvU+wPWnVg6WB3spM7jQJ8rJFEx0NdSf6Vujac7rTsF2BrPRTicp4qaRxQL+4qQ i+PiyRU+cv16LnripIKPdmgkg+dP8xKIvEwO5M3QmFOl/qDikEZjLleZtHMI813JSbhb Eysqbs540kCmq23JMpYBI1QyzSWO9JOOZ6FOhbylXBeQn0fF9Q5Te2H3AZs1wAC0LD1i OCNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NCEUajuf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk7si5310530ejb.337.2021.08.14.13.13.59; Sat, 14 Aug 2021 13:14:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NCEUajuf; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232821AbhHNUM7 (ORCPT + 99 others); Sat, 14 Aug 2021 16:12:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39508 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229489AbhHNUM6 (ORCPT ); Sat, 14 Aug 2021 16:12:58 -0400 Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 86AC7C061764; Sat, 14 Aug 2021 13:12:29 -0700 (PDT) Received: by mail-pj1-x1032.google.com with SMTP id u21-20020a17090a8915b02901782c36f543so26000620pjn.4; Sat, 14 Aug 2021 13:12:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rDgMpLh6S0Ii5yp8lY9fJm3mRqVMT3dMfi+1501R1JI=; b=NCEUajufsAyo1s7ZnEpw6RUmDycBnniOaJSu9ckhKicsEydOzYa/gPsNi4VdnTHeV1 yZop2s2LnbyQWGilcBU+jnWyAXD/n1DucAUth9boji2bp3Yr+RITSK22Gk+i0ifgQ2dU 7j3wVkm0ZUTp3cqZep8mSOAoPDGT8E5aXYiFU2gpc1LNp9wA/baVEpUR39aplc5umm+k ixK6xWErLtqwzCGRqAOOFOfBZlrzVK9tEkZ9K+W2+/z/VuoZaTe8glcuYQxYzEiyNMKT IGSyTXzSKvCCe3KeIthNZlMtYIoKTc7ojIy7N2hF5hLgE5lFDLQbRxA6hFcmJUUrB2Db 8J/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rDgMpLh6S0Ii5yp8lY9fJm3mRqVMT3dMfi+1501R1JI=; b=t17jy3i83LM7iyqfG0NW/BAtD2XTkNyUFw8uQHhedxXUrVKIhfndirvcZxQ4CKMVG9 xTuo98jm/lJbGUt8mh90k1GdcLEgqdQCVWYlsImI8c0Q8KoQ4sE+yd9HFEUaW9vX8CB5 7hhGFHYaqIuvnQfgg+6dUqJFKehTnVaoRdIhzIeEo8TJEDYLVz6wT6RTAIvzweVMZrRM vH5jyb14QJbaQ+cUroBPLf3dwEwzRcFdmS4HRitqj2jjYDLpttsuNvMwvRMnztVbBxHJ tLwLjhnV62tmF810WUOwsxDjLut1WLi1RZt8Q1AKW2pMYW09a/q4C4PTSdHVSz/phrbH 5waQ== X-Gm-Message-State: AOAM530SFBZ9Pe9FSEB4V4DejPY9+rlqFjFHExxy55C+uIO6Ro4XXt8t cHYQGm2JrBhoRi97ehztdvw= X-Received: by 2002:a05:6a00:2305:b0:3e1:9cb3:7b77 with SMTP id h5-20020a056a00230500b003e19cb37b77mr76074pfh.80.1628971949070; Sat, 14 Aug 2021 13:12:29 -0700 (PDT) Received: from xps.yggdrasil ([49.207.137.16]) by smtp.gmail.com with ESMTPSA id r14sm6511132pff.106.2021.08.14.13.12.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Aug 2021 13:12:28 -0700 (PDT) From: Aakash Hemadri To: Bjorn Helgaas Cc: Shuah Khan , linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/4] PCI: Symbolic permissions 'S_IRUGO' are not preferred Date: Sun, 15 Aug 2021 01:42:05 +0530 Message-Id: <20773257ec9af9ea2788f1bca9da5dc1e8ec3f4f.1628957100.git.aakashhemadri123@gmail.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix checkpatch.pl WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permission '0444' Signed-off-by: Aakash Hemadri --- drivers/pci/slot.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/pci/slot.c b/drivers/pci/slot.c index 6ee4ccaf30b3..a9678589ed23 100644 --- a/drivers/pci/slot.c +++ b/drivers/pci/slot.c @@ -86,11 +86,11 @@ static void pci_slot_release(struct kobject *kobj) } static struct pci_slot_attribute pci_slot_attr_address = - __ATTR(address, S_IRUGO, address_read_file, NULL); + __ATTR(address, 0444, address_read_file, NULL); static struct pci_slot_attribute pci_slot_attr_max_speed = - __ATTR(max_bus_speed, S_IRUGO, max_speed_read_file, NULL); + __ATTR(max_bus_speed, 0444, max_speed_read_file, NULL); static struct pci_slot_attribute pci_slot_attr_cur_speed = - __ATTR(cur_bus_speed, S_IRUGO, cur_speed_read_file, NULL); + __ATTR(cur_bus_speed, 0444, cur_speed_read_file, NULL); static struct attribute *pci_slot_default_attrs[] = { &pci_slot_attr_address.attr, -- 2.32.0