Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3208724pxb; Sun, 7 Feb 2021 01:20:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6ls0SgQ6HbPjG2kFVs3zsRscqGJoLNlnVf3Smijogwcp1BtfRsnDiU2UXEBnrebrJS2xm X-Received: by 2002:aa7:d3c7:: with SMTP id o7mr11876114edr.23.1612689633511; Sun, 07 Feb 2021 01:20:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612689633; cv=none; d=google.com; s=arc-20160816; b=eBXsdHUDbKi2qVPsEouxJCxbnN+JlXoDY/vEcxu6dfJgcJrEK7M+3Zwg1uvmrC8A2s MQJFtOhAcgC9ZzPA332J2mNekHJq3vfTLqlxCJOU705u2n5a/4LRzRyRJ8bwBqIU8Ly5 oQgaU4VcxMuCxHTkRYW07iQTipa3VYY+BfzuZ3VjHRQkYTlKEmEsyZdbaJg2DtzlAdER b1B/FiuMdZnpU8Uyz83LSytVa4QkMexNTZKv7t21qehxnMlJiztcDJVQZx4zL8OVK/6c dETar/66yI8JjWHEpYkkNOHlIzX4Wt0tTphjZ3aNkY2L2ALcObApCk6ugxUqgv52Tods hJvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=W2nQffPXvFad8Vq+rC8B7xZITSW79VlWp0N+IjlEUz0=; b=DNk5R/IgBKupqHdUTSqmEoV89HAKYmfTfrQvNrzONENeQFGcoLTa5+FIviOM1yucJm 9OB32cp8/0ybIZQTNcWtzJvWF5In0GMqxkKxxfEaFg3aIm531zHdpxTLVVKx5xjTkYbU QS4+l3v4WyGHTDTOJG58Sjpx5LkaQt1sC/woYus+IRsLgUSjPF6eQ5jjRCtkYaNIcHkp 6cUcwbeC2EA78jpIp2gu2eoaul6VQPN8SbVEJZpl/6WAtqTzr7Uv7bHxnm1ZW6T+pKbz CdGrLHIojhjukSFHpUOThUmPS5hyWyHNTHa1CsdXHATDMycjPX+V2+oLOqfl1HgXEZOm 6F/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JzWhpLNn; 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=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x22si9080863ejv.202.2021.02.07.01.20.09; Sun, 07 Feb 2021 01:20:33 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=JzWhpLNn; 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=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229566AbhBGJSr (ORCPT + 99 others); Sun, 7 Feb 2021 04:18:47 -0500 Received: from mail.kernel.org ([198.145.29.99]:35300 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229537AbhBGJSr (ORCPT ); Sun, 7 Feb 2021 04:18:47 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9361B64E22; Sun, 7 Feb 2021 09:18:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612689486; bh=M+7Vjj0l8SWkkCAfHsTiuFeZisfU3zkOxBiol6f8cvo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JzWhpLNn2V57naiWxS4uA4F/40eR6CV/py3pinOi1yXfpWjytSpfXty7e+qvs6oqC 4nUaKQtfIPxH/RHs8A0JHDTn8dR5ov8SAQlbXeJamysGtCeQuZ42D/o07NcGc7rDX9 M9joDAf8O1qqPXUmc4rRwFcdSiqZ0dL6mBS8J/lI= Date: Sun, 7 Feb 2021 10:18:01 +0100 From: Greg KH To: Kumar Kartikeya Dwivedi Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Stephen Rothwell Subject: Re: [PATCH v3] staging: emxx_udc: Make incorrectly defined global static Message-ID: References: <20210207085911.270746-1-memxor@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210207085911.270746-1-memxor@gmail.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 07, 2021 at 02:29:12PM +0530, Kumar Kartikeya Dwivedi wrote: > The global gpio_desc pointer and int vbus_irq were defined in the header, > instead put the definitions in the translation unit and make them static as > there's only a single consumer, and these symbols shouldn't pollute the > global namespace. > > This fixes the following sparse warnings for this driver: > drivers/staging/emxx_udc/emxx_udc.c: note: in included file: > drivers/staging/emxx_udc/emxx_udc.h:23:18: warning: symbol 'vbus_gpio' was not > declared. Should it be static? drivers/staging/emxx_udc/emxx_udc.h:24:5: > warning: symbol 'vbus_irq' was not declared. Should it be static? > > Signed-off-by: Kumar Kartikeya Dwivedi > --- > Changes in v1: > Switch to variable with static linkage instead of extern > Changes in v2: > Resend a versioned patch > Changes in v3: > Include version changelog below the marker Much better, thanks, now queued up. greg k-h