Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1457733ybt; Thu, 25 Jun 2020 06:38:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqxYLzpXIfl/pOsnst3sRiSkS0xUEePaxEFnmmlYb6MQ9Zbc+WsCc6BfqXliu/QMSz++PD X-Received: by 2002:a17:906:ad9:: with SMTP id z25mr15387543ejf.53.1593092314719; Thu, 25 Jun 2020 06:38:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593092314; cv=none; d=google.com; s=arc-20160816; b=V+fgeKW5Ko0KH8bhhV6JvObnUTWU7AYPo+tiOi50ODE7GHMzSvem1MVMe7Jaob5j+5 4mp+rqzoxgS/JQKyd/r+ielfDKL4x3r0tKMk72DjyyFwqZaS9gjBDxU/AzTixetwHGJ0 AHBVEjw7fpP6aAS3RWAheYAJDjQZJPY/AkpAtKjyv3hrrxP5frlm+r82OgC/Br7aua/T r0jlkxA/nBT8Cgp7KHi3yVCsAfLL/cEj59LESf+0IN6WajeLOzDvYNZ65c4tn+Oi1ZFF YDf/A5i/lW6ghr6Eu5Ok2dlhy0SZWu4t6Ot9UkLoET1aRzmGgnMec5qB6NHtTA69sPoH 2H2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EmX6iy3b00Poo9qadvrJWsuB7KeLWj8GMcKpkfZztyA=; b=NHYoRUVU4KLRj8ykPo2a1bIf0Tk68CQC6vtFXDhTQuyKdT3CPKGVucFAxhHlun8nuX 1M0dNvsg0HQUFBEiu6RyDwLmIrmjw3JrM7upk+3NanWfuCV6T6jXCyAP80kqJeyhd5aS 0abMOzl5f0DDXAXfbzcAElGRBir7om22mExXc0nXGL44/iZ/3IsKoK9nFi49kID4l9fS Xb7QM922gOGF5KwLWPTeC99JYO2KjHM/yCpxiJbBfNTNd98CCHCsXu+D1apW6lNkvOIS WllrIouYnB2N6K6YxSMpy1YQSkppyaAw2UmUWaR2sRDg+P2pNFescVlYYzda2NY7bIAF xrmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cEcBD9CM; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l2si14491669ejd.191.2020.06.25.06.38.10; Thu, 25 Jun 2020 06:38:34 -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=@kernel.org header.s=default header.b=cEcBD9CM; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2405099AbgFYNgJ (ORCPT + 99 others); Thu, 25 Jun 2020 09:36:09 -0400 Received: from mail.kernel.org ([198.145.29.99]:60598 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404910AbgFYNgJ (ORCPT ); Thu, 25 Jun 2020 09:36:09 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2FF7720672; Thu, 25 Jun 2020 13:36:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593092168; bh=mtp7nug8DXnlg3klSnF/L9TcVC11/sBPd5QOTqGfuB4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cEcBD9CMFPVpvmqk5ePBRmi/v2EI0o5geZyyKhMEJey2WC6W6IARCSJ53mDT3LA5C v+ykaRF8klL9RAS1wPEqAoXCaV5kYZMyak7nG9hzQ3USCnPPe5Cj/c9NMOFdMXAWE0 D3EOW5mgD77G3q/jn2HHvlgMXBlPFBxNuchSiD0M= Date: Thu, 25 Jun 2020 15:36:04 +0200 From: Greg KH To: Brooke Basile Cc: rspringer@google.com, toddpoynor@google.com, benchan@chromium.org, rcy@google.com, devel@driverdev.osuosl.org, trivial@kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: gasket: Convert symbolic permission to octal Message-ID: <20200625133604.GA3533051@kroah.com> References: <20200625132513.10805-1-brookebasile@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200625132513.10805-1-brookebasile@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 25, 2020 at 09:25:13AM -0400, Brooke Basile wrote: > Fixing checkpatch WARNING: Symbolic permissions 'S_IRUGO' are not preferred. Consider using octal permissions '0444'. > > Signed-off-by: Brooke Basile > --- > drivers/staging/gasket/gasket_sysfs.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/staging/gasket/gasket_sysfs.h b/drivers/staging/gasket/gasket_sysfs.h > index ab5aa351d555..eb0fd3b0490f 100644 > --- a/drivers/staging/gasket/gasket_sysfs.h > +++ b/drivers/staging/gasket/gasket_sysfs.h > @@ -71,7 +71,7 @@ struct gasket_sysfs_attribute { > > #define GASKET_SYSFS_RO(_name, _show_function, _attr_type) \ > { \ > - .attr = __ATTR(_name, S_IRUGO, _show_function, NULL), \ > + .attr = __ATTR(_name, 0444, _show_function, NULL), \ > .data.attr_type = _attr_type \ > } Someone else sent this a few days before you did: ?https://lore.kernel.org/r/20200622073612.12282-1-rodolfovillordo@gmail.com sorry, greg k-h