Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp2948460ybl; Fri, 20 Dec 2019 01:07:16 -0800 (PST) X-Google-Smtp-Source: APXvYqxzph2c+16F3L3ljPXE7rVFNFieklXu9bJQHbvHskveFJVIZRdBBZBYIy3dhCOuHNLO3Y05 X-Received: by 2002:a9d:798e:: with SMTP id h14mr13406445otm.257.1576832836206; Fri, 20 Dec 2019 01:07:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576832836; cv=none; d=google.com; s=arc-20160816; b=F7gBFYMeshcgTrIMOm+tStOhNqzBIzNZ8RFqDzgCKrtBrL8rYQdtslrN2KDo3+PUTF nAUeHlb80KRXJqqKpdWKYGCxZYLOqMasTgflFsq4N4lLofEl6jNX4QRFuj/6n7IgQFZe TVYGtx/lguKHC5UycbiXs05nWKecA8WaUJswqz0UCWVQ8wNv1deM9vWC8vMCtfMyJeq5 05i5bree26mRt6HX59x6SuE12K77fkBt+Efv8EaV3YyUwXto+jQKUPJVQZwiBL2UQik5 JLWRinovu/SeHL1OQDl3l+uXjDprK+d+IvJDK9MgDtVLrYQ+QRRb7AY+V/Vpv4fMwk4P b9Gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=2jcNUEZ+2e5ZpcG2uA85exCkAEnkp11imN7MheGY5Pk=; b=iysj90EElJJPEqFouSFuWYtHO5jhlTuLUG94QRHTjT050mKIl24Jb4bfXNoQmR5xUa cnaRq/WTWxcj0TA5n30CogqkunhjqazDuLsp55dXw6MUSuSm8J0TrrxJcelCqN9s43xU vwgV6j4H+3ZoB6M6c9V6ndRar0mHD63DF9syPt+ExlSVYoRhouc18CFeAEHhbs6eRgf2 YQ8wLysS2FZE8laxx3gm6S0mZY+083jasCoEq3yAtAUY+Sraz+dMe084wTYBra52Fxh3 7VNi2Y/40rj1EXZ83p6YVoHwZso1eLA9gxjDNrzsyECXZrVfuHhWHdhQTatpJMUIYaRV OtnQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d20si4300081otq.157.2019.12.20.01.07.02; Fri, 20 Dec 2019 01:07:16 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727188AbfLTJEz (ORCPT + 99 others); Fri, 20 Dec 2019 04:04:55 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:58304 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727129AbfLTJEz (ORCPT ); Fri, 20 Dec 2019 04:04:55 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id 2200128EA95 Subject: Re: [PATCH] platform/chrome: cros-ec: make init_lock static To: "Ben Dooks (Codethink)" Cc: Benson Leung , Guenter Roeck , linux-kernel@vger.kernel.org References: <20191218100720.2420401-1-ben.dooks@codethink.co.uk> From: Enric Balletbo i Serra Message-ID: <67800cf2-fb2c-11d4-87cb-18e6e426e437@collabora.com> Date: Fri, 20 Dec 2019 10:04:50 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0 MIME-Version: 1.0 In-Reply-To: <20191218100720.2420401-1-ben.dooks@codethink.co.uk> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ben, Thanks for the patch. On 18/12/19 11:07, Ben Dooks (Codethink) wrote: > The init_lock is not declared or used outside of cros_ec_ishtp.c > so make it static to avoid the following warning: > > drivers/platform/chrome/cros_ec_ishtp.c:79:1: warning: symbol 'init_lock' was not declared. Should it be static? > > Signed-off-by: Ben Dooks (Codethink) Applied for 5.6 > --- > Cc: Benson Leung > Cc: Enric Balletbo i Serra > Cc: Guenter Roeck > Cc: linux-kernel@vger.kernel.org > --- > drivers/platform/chrome/cros_ec_ishtp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/platform/chrome/cros_ec_ishtp.c b/drivers/platform/chrome/cros_ec_ishtp.c > index e5996821d08b..5f8e76f3022a 100644 > --- a/drivers/platform/chrome/cros_ec_ishtp.c > +++ b/drivers/platform/chrome/cros_ec_ishtp.c > @@ -76,7 +76,7 @@ struct cros_ish_in_msg { > * > * The writers are .reset() and .probe() function. > */ > -DECLARE_RWSEM(init_lock); > +static DECLARE_RWSEM(init_lock); > > /** > * struct response_info - Encapsulate firmware response related >