Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1870061imm; Tue, 2 Oct 2018 15:44:17 -0700 (PDT) X-Google-Smtp-Source: ACcGV62JzVxSA3OVizTF6XVgs2kdbrSHiG7D9OL0s3RziwsQvCJ5Sj0ZcepFW7TpXjrGX4O96rbH X-Received: by 2002:a17:902:6b45:: with SMTP id g5-v6mr6493997plt.41.1538520257438; Tue, 02 Oct 2018 15:44:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538520257; cv=none; d=google.com; s=arc-20160816; b=N3x9cdZCIQtmU5R1YacA02WRrSW6Rx8hgtLlbWXw8+8/wL7pu4L4KO8f4Spny1lL9C knm3T8nq8De3ILnAWhJUJ8uYVvC6uP8V1tMlYiVW9KYLVC+swcMeABxNQpWE8qv7ECNC AJ2S3eG0GdaysOHMXvqHwqmvt9Aam84GAk3qxgPw7UQDDazkx61A+KU1GrKMdDB3YO0D qiL49ccaLhRZMS/2J7kMiIxpFcmMbctW9RHpI0Y1WsTiavHL5IH6pYIP43Z3hQRqLraA 9BVbrLBn/iL3kzFZU/SwzxXfX6EQjWnS5Qh9Y21AiIJPUEXWSirXiL2fMXBIdNCmUb9k +MiQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=juPjIbnVfqfXH92UwYjQKquvOTtxVD6jMPgKOhdJ3jU=; b=w5X9zpd25Iy3CuYZ4GQmjOHOBeg9Us+Ke5s2NCG4XTq9eNACyACZvhjapF6Bjm3XhA AoVyoSDKkdqX9+ii/t0H2wdHp74Kes61xfzfgz5iUEB/Dk1ucGrH97Tm0SITXxl8hCe6 ypUfWTJdoFYieN7G8xJU7dasvzLs2C2ksz3p4LAnm6rPKxvC+5u80p2hiF4psZ+H+7tI KCAFKfuHRkygxt0cP83uqIO/XCdQxcrNxupHbKhkjKjbYECMel9v18fVFV6LtqCDNNuC S1OyFuG/nWM1ZWhS+7LHyp0qOlo9oXJ0axhxrJ259FwKxjQkfVc/dNnyyVQzKmiRQuP5 jH9A== 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 w24-v6si13211497pll.346.2018.10.02.15.44.02; Tue, 02 Oct 2018 15:44:17 -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 S1727748AbeJCF2C (ORCPT + 99 others); Wed, 3 Oct 2018 01:28:02 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:59274 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726731AbeJCF2C (ORCPT ); Wed, 3 Oct 2018 01:28:02 -0400 Received: from localhost (unknown [64.124.202.226]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9055511F5; Tue, 2 Oct 2018 22:42:22 +0000 (UTC) Date: Tue, 2 Oct 2018 15:42:21 -0700 From: Greg KH To: Roman Kiryanov Cc: linux-kernel@vger.kernel.org, Todd Kjos Subject: Re: [PATCH 01/15] platform: goldfish: pipe: Remove the goldfish_interrupt_tasklet global variable Message-ID: <20181002224221.GC25355@kroah.com> References: <20181002221903.19476-1-rkir@google.com> <20181002223021.GA30567@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 02, 2018 at 03:33:11PM -0700, Roman Kiryanov wrote: > > I don't see a "global" variable here, what are you referring to. > > > > This one: > > > > > -static DECLARE_TASKLET(goldfish_interrupt_tasklet, goldfish_interrupt_task, 0); > > > > ? > > Yes. > > > That looks static to this file to me. > > what am I missing here? > > It has a global lifetime but it is visible only in this file. How do I > say better, just drop the word "global"? Yes. It's not a global variable at all. It's file-scope only. What you are doing is moving the variable to be attached to the device itself, allowing you to have multiple devices handled by the same code, which is great. But please document it as such. Same goes for the other patches in this series. thanks, greg k-h