Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1510494img; Wed, 27 Feb 2019 00:06:39 -0800 (PST) X-Google-Smtp-Source: AHgI3Ia1I9qvxzhGGH+WSq1Sh1RhSn8fwavhSWSmQGITjOSMo59MRUdNbRQ80FREazeZudFu2XFE X-Received: by 2002:a17:902:74cb:: with SMTP id f11mr888854plt.180.1551254798954; Wed, 27 Feb 2019 00:06:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551254798; cv=none; d=google.com; s=arc-20160816; b=VTAXiqvBksB2mmwCAt8v5CJ08j48srWlo/3CuT5rj+sS/EN2xa6UYfkERRIH4UEBU5 6arX1LhS73yr76yw2oSOEJDgrtSIyoY2XIhewZ2ZvwQHArSHWeF6lch3Cure95lXYjQW yl4GuEoHo1faXG8Pqp+DMxO73b1KCwK9JQ7jeK/cdGVIMtsun8ARLn2k0RGY+JoCNeuN JE+4V5qMaGJLIXPmZs/gmyFjGxRMOKvxBvyOOfWeLUoA0qlIROUyuPWL2RtcG/8Nuo8t +QMHzF0p3PMFODcQvtGQgzZBwHUh9aS+Uw7PrsCejuaJy+8Czy+s4YJc5gj1pxydo//C v44g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language:thread-index :content-transfer-encoding:mime-version:message-id:date:subject :in-reply-to:references:cc:to:from:dkim-signature; bh=IapN7SkNVTT44L5JG+nTjrr7GkoKPiCVBO2ltn/Uuzw=; b=EpJxuAOj004+JnuRcrleaL1lI207hsBfd4d4nnBfOc3nxBX69RSbxYtJxljYwviyuW MFL4VmmtVT7/kPEFzCQBGb5Ua4Co5TrWMu82+ih/q3GfBs5tw12NOGJGjq31MCaD6vay hleSMrc3l0UQhxlMLdH1TUE2zE5EyZ0LB0fMdoKSXzGoMIjR2os+EavxX1j4M1pXQnOB 5iDJKYb4Ayi9hhziC+myl1fHOY/18oXNIKlK6pqH2f+qi0vSM1wun5MGAG9W59GFiS7T YnfbjitBHMEVAReT/lZ4tUiEhfAC1WoFSycT11Wy/e5WKERuqHjpm+r+KQTw4B97+cfG A9lQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@d-silva.org header.s=201810a header.b=Teg+wvZ9; 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 s139si6442459pfs.56.2019.02.27.00.06.23; Wed, 27 Feb 2019 00:06:38 -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; dkim=pass header.i=@d-silva.org header.s=201810a header.b=Teg+wvZ9; 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 S1729360AbfB0IEk (ORCPT + 99 others); Wed, 27 Feb 2019 03:04:40 -0500 Received: from ushosting.nmnhosting.com ([167.160.173.127]:36900 "EHLO ushosting.nmnhosting.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726791AbfB0IEk (ORCPT ); Wed, 27 Feb 2019 03:04:40 -0500 Received: from mail2.nmnhosting.com (unknown [202.169.106.97]) by ushosting.nmnhosting.com (Postfix) with ESMTPS id DDEF32F20623; Wed, 27 Feb 2019 03:04:38 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=d-silva.org; s=201810a; t=1551254679; bh=5nxfGKmy+SJcDA8+PxCHqY/BGj+VxsQw1eIjlqX5nJk=; h=From:To:Cc:References:In-Reply-To:Subject:Date:From; b=Teg+wvZ94Z6oVvJ4t/lHT7QMinz9Lkno20coct/anGPoPeWwoOJYS+r6ejCxNS1j2 Y7mS8TCtaAyNuR4abrKyBS3LzxaGeYO2L6paPLxrT1uKuNRff5cp9RsIvotKKT0oWk FXfrWjNLgXqna4mr/jKLWoeShxwe5fWitDc/EdujX276QiqQjmlhKF0ePjp0ZinHCh jriOTn5CvEkKzdh32wPg8RNKgK6EydRtrEiEmQ7BZ/65rxlKKCDMc44WpKCIcN867J Isv6wD9CtcbUUq47kW7KZQdyDJvlhTGYsO1fPpsb7TjlPhViKvx3OuLrVfvwL/FtM+ oxaHFLt7a0OA+ojVSvNzK5RJwZKLZUaxtc28OsGsqadFaZH+gHSiSW1+n9aNH5E9P8 7geqqwyq8HspTkGjogHxr3kHgHGO6Y05KapjTbcVX49QMKmybNqAIg/Ce6ypkl5Hs1 g/9hM6PsrVEEkC78ErkG6iEazCH9rvnnT+2wp+8R+xIGJm5GDo6JEZAGEX7FYfJIlq KWs48w77Hoo0nCQIeNLB+oKL291xPyLT7PpzHbKFUFOMtILl2gG3rJm6Siig+5XIgp 2mDYQX4IilHYznZblqEsIlpRrWg10r8LLfNUH9RXXZ6gbyoepXiOd8qDKIZ3Ml8wbM Y4pRBwtJNxrVRFGXQDqSZJn4= Received: from Hawking (ntp.lan [10.0.1.1]) (authenticated bits=0) by mail2.nmnhosting.com (8.15.2/8.15.2) with ESMTPSA id x1R84X59085499 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 27 Feb 2019 19:04:33 +1100 (AEDT) (envelope-from alastair@d-silva.org) From: "Alastair D'Silva" To: "'Andrew Donnellan'" , "'Alastair D'Silva'" Cc: "'Greg Kurz'" , "'Frederic Barrat'" , "'Arnd Bergmann'" , "'Greg Kroah-Hartman'" , , References: <20190227045741.21412-1-alastair@au1.ibm.com> <20190227045741.21412-2-alastair@au1.ibm.com> <8c0300fc-4319-bd66-a47e-4ffda6ac795c@au1.ibm.com> <156e01d4ce6e$ee42d9f0$cac88dd0$@d-silva.org> In-Reply-To: Subject: RE: [PATCH 1/5] ocxl: Rename struct link to ocxl_link Date: Wed, 27 Feb 2019 19:04:31 +1100 Message-ID: <158101d4ce73$11ff4550$35fdcff0$@d-silva.org> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQHHd7z5h6oO3uW69oxVqiBFDB4gBAHhAfo8A1gpEmwCDmo8kwH9d6PwpcPNgSA= Content-Language: en-au X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.6.2 (mail2.nmnhosting.com [10.0.1.20]); Wed, 27 Feb 2019 19:04:33 +1100 (AEDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Andrew Donnellan > Sent: Wednesday, 27 February 2019 6:55 PM > To: Alastair D'Silva ; 'Alastair D'Silva' > > Cc: 'Greg Kurz' ; 'Frederic Barrat' > ; 'Arnd Bergmann' ; 'Greg Kroah- > Hartman' ; linuxppc-dev@lists.ozlabs.org; > linux-kernel@vger.kernel.org > Subject: Re: [PATCH 1/5] ocxl: Rename struct link to ocxl_link >=20 > On 27/2/19 6:34 pm, Alastair D'Silva wrote:>>> diff --git > a/drivers/misc/ocxl/file.c b/drivers/misc/ocxl/file.c index > >>> e6a607488f8a..16eb8a60d5c7 100644 > >>> --- a/drivers/misc/ocxl/file.c > >>> +++ b/drivers/misc/ocxl/file.c > >>> @@ -152,7 +152,7 @@ static long afu_ioctl_enable_p9_wait(struct > >>> ocxl_context *ctx, > >>> > >>> if (status =3D=3D ATTACHED) { > >>> int rc; > >>> - struct link *link =3D ctx->afu->fn->link; > >>> + void *link =3D ctx->afu->fn->link; > >> > >> This doesn't look like a rename... > > > > That corrects the type to what the member (and prototype for > ocxl_link_update_pe) declare it as. > > > > The struct link there is bogus, it shouldn't even compile (since the = intended > struct link is defined in a different compilation unit), but instead = picks up a > different definition of 'struct link' from elsewhere. > > >=20 > Given there's only a handful of struct links defined across the entire = kernel, > I'm going to guess that the definition it's picking up is in fact the = ocxl one. >=20 Unlikely, since that's never in a header. It wasn't caught since it was = assigned to/from a void*. > I think the better solution here is to move struct ocxl_link into > ocxl_internal.h, change ocxl_fn::link to be struct ocxl_link * rather = than void > *, and update the function signature for ocxl_link_update_pe() as = well. =20 Not move it, but we could have an opaque declaration there. --=20 Alastair D'Silva mob: 0423 762 819 skype: alastair_dsilva msn: alastair@d-silva.org blog: http://alastair.d-silva.org Twitter: @EvilDeece