Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp3191224pxb; Sun, 7 Feb 2021 00:38:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJzz8tQCQPuP5RFd9a8URmmgzxEdoHXeiOcEcqurpXfSJqu8lf416VAp2XGqFSvrdPKV8zNo X-Received: by 2002:a50:a086:: with SMTP id 6mr11500209edo.70.1612687092769; Sun, 07 Feb 2021 00:38:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1612687092; cv=none; d=google.com; s=arc-20160816; b=R6Mu5JVH6ipQ5fUHFHfauvWVlT9i9PQvEtozflvvQpxl4mwCZidyvKBKMBxSQLFGIi fdeNKYDBBLv4P/2ZqbZc0ZABjOV7zuK9Sl7NKuSrl8XU8I/85LTQF6GFhfyINtLblZnB CXRu03d9zjWcnw9haUc1BvDCwqHh4IQ+4jUCeDp+YbZEw6vcDPjMNlA3Ld3q9CezOtsL PbOAuON47jHHke0j5KkYxSaD+9WuDMhx5v4bb3hmtREdtlXff19jtr+a8FFXcHjIawfL XrJae3N1vjTS5a43TCG5WfdxnIURDNScTd0KjQbGHbMnqfkvDZC4h4wWvAXtlFYk3eYR bHIw== 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=t/fgrtBQH+pOs54wl1V1JmjW/aZrgMCtrkvIa9lrp1w=; b=hAbUMSuB4X9UsNBBtazn57WiDEj+pDJrERLWIcYSctuCRuj2FZmT75WylninF5zyU7 5BPNXs6DY2LaE6QRqE7V1TRyPUWmGHM13/qBXAfV8Pv3rhEiJcUnMJB2gok1jaToDggI UkkWS502P19T+CPanJVmAfbgrsDPOcDugUPZX2/QYSs4kt6xFT1/M30RyQuY/3wqOoHZ b7rncb79jDbxVipnwD2W+fIZRRrusZpwKBGUxu867wuHiuH8+nSzA9kAvhAlVxTLESFP WZ6KjpaZI84HwSElmofT5QubNOlf4C7IL1h+MxQJOq9cTp22Xnx34IVtl+rvFWLGrv0j 2s6w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=Nl8xpCtG; 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 h20si8655046eja.372.2021.02.07.00.37.49; Sun, 07 Feb 2021 00:38:12 -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=Nl8xpCtG; 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 S229704AbhBGIf4 (ORCPT + 99 others); Sun, 7 Feb 2021 03:35:56 -0500 Received: from mail.kernel.org ([198.145.29.99]:59594 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229977AbhBGIeM (ORCPT ); Sun, 7 Feb 2021 03:34:12 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id BC98C64E30; Sun, 7 Feb 2021 08:33:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1612686809; bh=CRF6ov8HZYQgEMXDSLagshxMHLuVPb+BGxWwtc4e66E=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Nl8xpCtGkMfGXg5YCYtqrLhodKgeY4c/Lr9EQ6MkFxnx2AMTdNdR3SVtlsoRx9reB /wdrtE4kD398a4E08oKcvXYG9I+tX2kcIGJ8GlJ+rsd2HdRIF+myMP+uiNKT5P8HrR 0Ids3NNMBPsOx3loFGmyDQqqghGuIwGpCZHBKoH4= Date: Sun, 7 Feb 2021 09:33:26 +0100 From: Greg KH To: Kumar Kartikeya Dwivedi Cc: Stephen Rothwell , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: emxx_udc: Fix incorrectly defined global Message-ID: References: <20210207000030.256592-1-memxor@gmail.com> <20210207173441.2902acac@canb.auug.org.au> <20210207073827.7l7h3475tqgxxfte@apollo> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210207073827.7l7h3475tqgxxfte@apollo> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Feb 07, 2021 at 01:08:27PM +0530, Kumar Kartikeya Dwivedi wrote: > On Sun, Feb 07, 2021 at 12:04:41PM IST, Stephen Rothwell wrote: > > > > Given that drivers/staging/emxx_udc/emxx_udc.h is only included by > > drivers/staging/emxx_udc/emxx_udc.c, shouldn't these variables just be > > declared static in emxx_udc.c and removed from emxx_udc.h? > > > > Either would be correct. I went this way because it was originally trying to > (incorrectly) define a global variable instead. I guess they can be static now > and when more users are added, the linkage can be adjusted as needed. > > Here's another version of the patch: Please resend in the proper format that a second version of a patch should be in (the documentation describes how to do this.) thanks, greg k-h