Received: by 10.213.65.68 with SMTP id h4csp1876891imn; Thu, 29 Mar 2018 12:45:34 -0700 (PDT) X-Google-Smtp-Source: AIpwx49xLX6jAjC94ZagaMdtDmZe8VhnlJsY89wks/9hB+sfeSktlgB6LnJycJGeGkFfb0VuINP0 X-Received: by 10.99.99.194 with SMTP id x185mr6370121pgb.4.1522352733906; Thu, 29 Mar 2018 12:45:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522352733; cv=none; d=google.com; s=arc-20160816; b=roxdtbbUwfWxpcub+eTJNUw8cnybjkdT147AJtl6lySvOsP1S149tKCxC0Fh4UCk/a w8oluOU1lyPFOn0LHAqVNwGyNYKinXc43oe0uYUETla+go572aopQe/U9sm3IY3kNXpA l5rAyTwYnlUayD/U6F5wmxHhgmshG649dbHVEWT30iehgwzcdnoK9M4Ua9z6de1/j1Ks lrB6dZSVcbcqI15rKnsygUTw9ysCtXtwwdlDPQ1lGNSdc02NWXJKrS7v3+Gj28V3V+Sb Fkr9iNV3xfRR5kdpv8Ua1cuAGW2E3asjT0Z2w7+He3NxMlb0oCAEydU+1aC1hRmSEg8R 4bcg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date :arc-authentication-results; bh=xNjXgcgj6d0AjtyuzPD2jsdC9Pbo4Gjzbw5JR26sxds=; b=ti4FAUs16rkhQsOY3clKljPmCHwaWwdrMc+GKNdg44LmQ1klQvG5S8hUs8gxeqhgAZ LG87Eq5soy9YLXK7tSbBDapg9jjyFmJGra1Wa23Dz1A8IAAma4LZhWpzrOLeJowWpnJN 6wGAgq7scoZaX832GKsjDOfpjUOgu9kmLfuE3kGDBsFl4l95FAB/VnVswZl0ASu+oMQ6 n3es9jsjhdWWq+2dxmlFBBoXlr3sL/HyW6FQkOigImztRxgHF+asveyNcmOTzyI8B/ZG vV3dQ2M1QzNTzOdut4ZhX1fZVdWXvZ2R0UMkQfsyfewbz4MmO3HU5/eRmpF/JcCyWkW1 4V9g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j189si4481082pgc.335.2018.03.29.12.45.18; Thu, 29 Mar 2018 12:45:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751862AbeC2ToF (ORCPT + 99 others); Thu, 29 Mar 2018 15:44:05 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:39357 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751082AbeC2ToE (ORCPT ); Thu, 29 Mar 2018 15:44:04 -0400 X-IronPort-AV: E=Sophos;i="5.48,378,1517871600"; d="scan'208";a="260327958" Received: from ip-146.net-89-2-7.rev.numericable.fr (HELO [192.168.0.15]) ([89.2.7.146]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Mar 2018 21:44:02 +0200 Date: Thu, 29 Mar 2018 21:44:02 +0200 (CEST) From: Julia Lawall X-X-Sender: jll@hadrien To: Fabio Estevam cc: Francisco Jerez , linux-pm@vger.kernel.org, Viresh Kumar , "Rafael J. Wysocki" , linux-kernel , kbuild-all@01.org, Srinivas Pandruvada , 0day robot , Len Brown , Nicolai Stange Subject: Re: [kbuild-all] [PATCH] OPTIONAL: cpufreq/intel_pstate: fix debugfs_simple_attr.cocci warnings In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 29 Mar 2018, Fabio Estevam wrote: > Hi Julia, > > On Thu, Mar 29, 2018 at 4:12 PM, Julia Lawall wrote: > > Use DEFINE_DEBUGFS_ATTRIBUTE rather than DEFINE_SIMPLE_ATTRIBUTE > > for debugfs files. > > > > Semantic patch information: > > Rationale: DEFINE_SIMPLE_ATTRIBUTE + debugfs_create_file() > > imposes some significant overhead as compared to > > DEFINE_DEBUGFS_ATTRIBUTE + debugfs_create_file_unsafe(). > > Just curious: could you please expand on what "imposes some > significant overhead" means? I don't know. I didn't write this rule. Nicolai, can you explain? thanks, julia