Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5594300yba; Thu, 11 Apr 2019 01:16:07 -0700 (PDT) X-Google-Smtp-Source: APXvYqxaqOya7wVLk+l7voox4RBwFyCbjImB3iuzBA6qeV69tuVc95MPuL8Apk314iN4VrtIo2wN X-Received: by 2002:a17:902:28e9:: with SMTP id f96mr27653673plb.190.1554970566962; Thu, 11 Apr 2019 01:16:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554970566; cv=none; d=google.com; s=arc-20160816; b=u6nCO/NmFkenPGTRSNAfUKQ/oyy1Q4xy0/Nf1f4oUe1OL8781hR2BEGcAJMakdg9cH qWgAkd7w1sgfuqGPBWSXKUfGppHWR3JQV7By7OVCGGAFHC3YChV077yXEDsYqP1Nw8AC grsB8D9aSL3OU0kewDO7VWnwyd/HUdjaACcPkL2fGECb++R0GZuY4JIX1OEH5MQS6gtM NJyvumFcjhcBeS3m4/da52qq6yXqfdCrmF79pyjm3fJKty4QafZsLNhhRY06r/N+aC2D Rkp4dxn2OD5ezEQlHKHfKFfkIE5yfeeIgRgcgAH3iRqQi5od3A78ykCt9DCkC0EI2ha/ yzrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CxALe2+dMErVQcQun0unMbr1R8fjHmrE6/VoYNtRrJQ=; b=BTWCK7qUKNC0dKejrcuqwuQBWYrTLWTYk+UIU889mqb3J4erMQLumZBl/GxQHaVVA2 8QEV8xJwHpia6fyhlk9lSWWV/XocP7iJpLK9Y756JWTgxlZCxT+pze8YdzkslTNs4/Hx NMV3Z2HNd7z1eJD9kO3byAy+5pPq6d2YRGHzRjNRZu+eIJl279gdPaufloMqGnvZWtV6 MN1WcymGo0MuADoZtnhOpYbe8zJ2O3Z+mCveIT9hd7CvwozFaPc7My9HPtToMVUmmd89 0h5cgQnAdm9IPUYSAEQqUeqAqNwNMoz3+uyiwWSG33ZyjnXP/CO6C2jmRumk/SXAwkFq gaaQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2018-07-02 header.b=atSosEhg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c20si33592018pfi.259.2019.04.11.01.15.49; Thu, 11 Apr 2019 01:16:06 -0700 (PDT) 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=@oracle.com header.s=corp-2018-07-02 header.b=atSosEhg; 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=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726670AbfDKINn (ORCPT + 99 others); Thu, 11 Apr 2019 04:13:43 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:46458 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725783AbfDKINn (ORCPT ); Thu, 11 Apr 2019 04:13:43 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3B845Jc131842; Thu, 11 Apr 2019 08:13:38 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2018-07-02; bh=CxALe2+dMErVQcQun0unMbr1R8fjHmrE6/VoYNtRrJQ=; b=atSosEhgum2VewBWb8dX4kK0AAVcOdcnuzktvxfJYnszgcTcxmfKtOWdbLa8w8GQvi7I h+DBJMqbdqOgcc42ZAAW20+1b9h7Crx4i4nFCTVwFoZBXXK5J2Ic7bLaiAaK+muNizfX FeCQhWfQh+J/g9QH1t64jwwaXBq6brtajOfbp4PmySpWbvteK95bZNDLoIdpH7L5AGxY GxiM2YCUsrjBwoUVGBo61YBK5Myz6MWc3t7hVSn02RSOVrXufKI1U2b0bhN4atAP6evq oDYG6vNM276jqSaK0ZL2LhwuBp6rv0AMK6QYcmdGegAm2ooIhdziiI+XSSOfrQ2gEzep 1A== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by userp2120.oracle.com with ESMTP id 2rpmrqf9ty-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 11 Apr 2019 08:13:38 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x3B8D0tq156829; Thu, 11 Apr 2019 08:13:38 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3030.oracle.com with ESMTP id 2rph7tm81e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 11 Apr 2019 08:13:38 +0000 Received: from abhmp0020.oracle.com (abhmp0020.oracle.com [141.146.116.26]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x3B8Dbmx019557; Thu, 11 Apr 2019 08:13:37 GMT Received: from kadam (/41.202.241.15) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 11 Apr 2019 01:13:36 -0700 Date: Thu, 11 Apr 2019 11:13:28 +0300 From: Dan Carpenter To: Madhumthia Prabakaran Cc: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Staging: rtl8723bs: Remove typedef in struct sdio_data Message-ID: <20190411081328.GF31633@kadam> References: <20190409161617.29871-1-madhumithabiw@gmail.com> <20190410064954.GE6095@kadam> <20190410194908.GA13242@madhuleo> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190410194908.GA13242@madhuleo> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9223 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904110059 X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9223 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default 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-1904110058 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Apr 10, 2019 at 02:49:09PM -0500, Madhumthia Prabakaran wrote: > On Wed, Apr 10, 2019 at 09:49:54AM +0300, Dan Carpenter wrote: > > On Tue, Apr 09, 2019 at 11:16:17AM -0500, Madhumitha Prabakaran wrote: > > > diff --git a/drivers/staging/rtl8723bs/include/drv_types.h b/drivers/staging/rtl8723bs/include/drv_types.h > > > index bafb2c30e7fb..b0623c936940 100644 > > > --- a/drivers/staging/rtl8723bs/include/drv_types.h > > > +++ b/drivers/staging/rtl8723bs/include/drv_types.h > > > @@ -220,7 +220,7 @@ struct registry_priv > > > #define BSSID_SZ(field) sizeof(((struct wlan_bssid_ex *) 0)->field) > > > > > > #include > > > -#define INTF_DATA SDIO_DATA > > > +#define INTF_DATA struct sdio_data > > > > > > > Just get rid of INTF_DATA data as well. It's only used once a bit lower > > in the file. (Get rid of the ifdef around it). > > But, reference of INTF_DATA is also included in file > ./drivers/staging/rtl8723bs/include/drv_types.h:487: > return &dvobj->intf_data.func->dev; > Actually, I maybe misunderstood your email. I'm not sure what you mean about "&dvobj->intf_data.func->dev;". I just meant to replace INTF_DATA with "struct sdio_data". regards, dan carpenter