Received: by 2002:ac0:8845:0:0:0:0:0 with SMTP id g63csp1503050img; Tue, 26 Feb 2019 23:57:29 -0800 (PST) X-Google-Smtp-Source: AHgI3IbWinCdm3mrhnPLDsGWilIE7HZduJzUobydwzxBZBIJaJCqTg5Ow3lK4x8fIWpdScoUf3oS X-Received: by 2002:a62:e11a:: with SMTP id q26mr336143pfh.187.1551254249323; Tue, 26 Feb 2019 23:57:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551254249; cv=none; d=google.com; s=arc-20160816; b=iI70PEDkpBhZVpXAWHyX9KIUeeBck0itFO/QLELncHUwDLBNaYKA0lWv6/s/LRpNWQ Zwef3rRMtAoAUeN/vH/+7iX1IZIbGy9UIyLiEgGclRgP+N4WIGIbESGP70DuE+KFy4KS 2+f024CT4G9KC8cJsluwAZFuGB1R5Kgx5bCFt+i369ZKktulnnPWLGeGoxs+Et0PHXgs RE4ivqYo8Lz4uA7U/K4L+udcdVH5iRqXy+odbTfJ634k8AHkP8Ahi0hNxS9jUvXzk7/t 8gkms01cVXTzsN++OOpeuNgBuMe7tECR5vWyeinpQTbR7TDOuIz8sZsVfpznXg01LIzu QYoQ== 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:message-id :content-language:in-reply-to:mime-version:user-agent:date:from :references:cc:to:subject; bh=EzkeRkO7byhAlc8TRgfCwdoI3+oBzh1nknkz10VyugQ=; b=G1iO0MJp+rTGPJYfi5xThvR23shYngiAjASfVDKajHuAMaHbqL74VCz7QsVuSbmlLe KDjYPNYk+Ok9CAta9I98iiMYn4FF9VUKYw3mawrUy9D9lwmcH6WPH7BUfvde3Qm3l/l9 dokvE8l0EXWwvix8hwP6esIGEhZ/CD7KyCZy9rbFDEypRWUlu6qEwT6jfiYW8AALBk21 oKV4Tl5ujyqdpmBSso1yYDw+SAZ1sngc/56/rhd8/3fDwLzNKMJJ2F2C0MGGZEQUL6lm Hv/eJVdGjwDosLcJY2sNK2zK2gJGclUtMAYZ6jI8DB7F/PSqDiDBohv+90IoSDUQhqDL nItw== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u71si14083973pgd.579.2019.02.26.23.57.14; Tue, 26 Feb 2019 23:57:29 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729740AbfB0HzG (ORCPT + 99 others); Wed, 27 Feb 2019 02:55:06 -0500 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:37116 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726722AbfB0HzG (ORCPT ); Wed, 27 Feb 2019 02:55:06 -0500 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x1R7sSXU096162 for ; Wed, 27 Feb 2019 02:55:04 -0500 Received: from e06smtp01.uk.ibm.com (e06smtp01.uk.ibm.com [195.75.94.97]) by mx0b-001b2d01.pphosted.com with ESMTP id 2qwndvb5mt-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 27 Feb 2019 02:55:04 -0500 Received: from localhost by e06smtp01.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 27 Feb 2019 07:55:03 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp01.uk.ibm.com (192.168.101.131) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Wed, 27 Feb 2019 07:55:01 -0000 Received: from d06av26.portsmouth.uk.ibm.com (d06av26.portsmouth.uk.ibm.com [9.149.105.62]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x1R7t0Lu56230116 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 27 Feb 2019 07:55:00 GMT Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 39ACEAE045; Wed, 27 Feb 2019 07:55:00 +0000 (GMT) Received: from d06av26.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DC3B4AE04D; Wed, 27 Feb 2019 07:54:59 +0000 (GMT) Received: from ozlabs.au.ibm.com (unknown [9.192.253.14]) by d06av26.portsmouth.uk.ibm.com (Postfix) with ESMTP; Wed, 27 Feb 2019 07:54:59 +0000 (GMT) Received: from [9.102.32.74] (unknown [9.102.32.74]) (using TLSv1.2 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by ozlabs.au.ibm.com (Postfix) with ESMTPSA id 996ADA0243; Wed, 27 Feb 2019 18:54:57 +1100 (AEDT) Subject: Re: [PATCH 1/5] ocxl: Rename struct link to ocxl_link 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 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> From: Andrew Donnellan Date: Wed, 27 Feb 2019 18:54:56 +1100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.5.1 MIME-Version: 1.0 In-Reply-To: <156e01d4ce6e$ee42d9f0$cac88dd0$@d-silva.org> Content-Language: en-AU X-TM-AS-GCONF: 00 x-cbid: 19022707-4275-0000-0000-000003147F18 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19022707-4276-0000-0000-00003822C0F3 Message-Id: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-02-27_05:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1902270054 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 == ATTACHED) { >>> int rc; >>> - struct link *link = ctx->afu->fn->link; >>> + void *link = 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. > 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. 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. -- Andrew Donnellan OzLabs, ADL Canberra andrew.donnellan@au1.ibm.com IBM Australia Limited