Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6139182ybv; Tue, 18 Feb 2020 10:40:31 -0800 (PST) X-Google-Smtp-Source: APXvYqwf1nKnnP34oAKS7yrpwk04RqoKRxsniXgWJcTdKd/DJpypzgP6xRx8OBNSf2524oTDA7bW X-Received: by 2002:a05:6830:4cd:: with SMTP id s13mr16358158otd.181.1582051231435; Tue, 18 Feb 2020 10:40:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582051231; cv=none; d=google.com; s=arc-20160816; b=I8Dfucr5qtDkRmelsU8AG5BdboAewwjc8besBKR9dxkCi6Xk0fQSQUYHso9GFXKw24 UFz9avL9+UHmKF7Tru7RQSlzcCuSDf1AZEiOvEEBy7pogq9CABDJh4TmBYxHLHPAHib3 +wuc3YsddllhAmRYotjvtAVFoC7Qlcq0g7occNBw+wTn2C3tQTSyWxeT3EolPEwpUFXm PvwfX9ux0/KnryVH+8HDx2pyjUH3eaxtEcpbAKnOvC3qnK+ottdvI0KIZ0IVWhRoY2Y6 NLDcyAv1I1NubQqVJ3e3LJ6y1NF0tWFddB+yB2HohBZ+2GaDTvTSSAUnhn5ZQMB2AaFq 1pFQ== 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=eFbcc45Mbdh5jxFkPEJi8kCAOXjvazSsPwd+3NYtQ1Y=; b=Tol1UQQ/L6aUl5l+jQozPLhA+7mDqC1lSVOJvh7FokhwEOnG0wBoXjpT+qGtY/BOt3 uumO6jOFKGfC/MJmAc0Yx6r9IIC3V10p/8V0WSf6vofZ8zPvSGhg3tODY5w9GjNq6BQ7 77biA94fiXYhajauA4r3otAYHe7y/hz+7yWv3sEGrMqzLdfHqW6Ik4cpvYES70te9A7Y XvUD8+MZuIkOFA9dQ9StZsNYnwW9ZvZIKQ1Bu7GPXT4pcIFNe+txL+w+PRG4xiQUemrh IpdytCCZY+RxXmBSBRJGAz0iP+/47/kZLiNmhWaqEeMnuSImeBp+HNyx4nKJcKbTm/P0 VlQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2020-01-29 header.b=jCqXSwrC; 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 r6si2072487otn.216.2020.02.18.10.40.18; Tue, 18 Feb 2020 10:40:31 -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=@oracle.com header.s=corp-2020-01-29 header.b=jCqXSwrC; 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 S1726384AbgBRSkJ (ORCPT + 99 others); Tue, 18 Feb 2020 13:40:09 -0500 Received: from aserp2120.oracle.com ([141.146.126.78]:55908 "EHLO aserp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726225AbgBRSkJ (ORCPT ); Tue, 18 Feb 2020 13:40:09 -0500 Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 01IIVMpo074678; Tue, 18 Feb 2020 18:37:48 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-2020-01-29; bh=eFbcc45Mbdh5jxFkPEJi8kCAOXjvazSsPwd+3NYtQ1Y=; b=jCqXSwrCTB4nabx3i4cRhnQREQ+JU/AdiR7vKYnTu5vJGbsHWvXjxzi3s7YAgJ/hKpzV vJs7aVndckq4o+I/otOl6VBTr/IE/ClCRrac82FruFk5QKsjnmlKL7X0D5/fUZ5QkvNn qkqc6zjYFIUTOT/PgW8c7j6H8zHvOFhQxT5CfJlHsUbdDTb6jKHzi3ftfIfsl887Rqot 8uChI18vv5GCPgHx+1LwJKvv0l908hHmkQkrwZvknLTb1peSmIuvTdhAXNyiGLHjZ3is f70PorX06D7o72hf7FGSgbJs3mz7r6dC9w/rs2ZHHo/EPt4hdzJiWX50P8RhTtbGCUBA LQ== Received: from userp3030.oracle.com (userp3030.oracle.com [156.151.31.80]) by aserp2120.oracle.com with ESMTP id 2y8e1hkj83-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Feb 2020 18:37:48 +0000 Received: from pps.filterd (userp3030.oracle.com [127.0.0.1]) by userp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 01IIbjUA070760; Tue, 18 Feb 2020 18:37:47 GMT Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userp3030.oracle.com with ESMTP id 2y6t4jsr3y-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 18 Feb 2020 18:37:46 +0000 Received: from abhmp0007.oracle.com (abhmp0007.oracle.com [141.146.116.13]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id 01IIbMoj008699; Tue, 18 Feb 2020 18:37:22 GMT Received: from kadam (/10.175.183.98) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 18 Feb 2020 10:37:21 -0800 Date: Tue, 18 Feb 2020 21:37:11 +0300 From: Dan Carpenter To: Kaaira Gupta Cc: Nicolas Saenz Julienne , Greg Kroah-Hartman , Florian Fainelli , Ray Jui , Scott Branden , bcm-kernel-feedback-list@broadcom.com, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: bcm2835-camera: call function instead of macro Message-ID: <20200218183711.GE19641@kadam> References: <20200218160727.GA17010@kaaira-HP-Pavilion-Notebook> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200218160727.GA17010@kaaira-HP-Pavilion-Notebook> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9535 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 bulkscore=0 mlxlogscore=999 phishscore=0 mlxscore=0 malwarescore=0 suspectscore=9 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002180127 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9535 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=9 phishscore=0 mlxlogscore=999 mlxscore=0 malwarescore=0 clxscore=1011 adultscore=0 lowpriorityscore=0 spamscore=0 bulkscore=0 priorityscore=1501 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002180126 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 18, 2020 at 09:37:28PM +0530, Kaaira Gupta wrote: > Fix checkpatch.pl warning of 'macro argument reuse' in bcm2835-camera.h > by removing the macro and calling the function, written in macro in > bcm2835-camera.h, directly in bcm2835-camera.c > > Signed-off-by: Kaaira Gupta > --- > .../bcm2835-camera/bcm2835-camera.c | 28 +++++++++++++++---- > .../bcm2835-camera/bcm2835-camera.h | 10 ------- > 2 files changed, 22 insertions(+), 16 deletions(-) > > diff --git a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c b/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c > index 1ef31a984741..19b3ba80d0e7 100644 > --- a/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c > +++ b/drivers/staging/vc04_services/bcm2835-camera/bcm2835-camera.c > @@ -919,9 +919,17 @@ static int vidioc_g_fmt_vid_cap(struct file *file, void *priv, > else > f->fmt.pix.colorspace = V4L2_COLORSPACE_SMPTE170M; > f->fmt.pix.priv = 0; > - > - v4l2_dump_pix_format(1, bcm2835_v4l2_debug, &dev->v4l2_dev, &f->fmt.pix, > - __func__); > + v4l2_dbg(1, bcm2835_v4l2_debug, &dev->v4l2_dev, > + "%s: w %u h %u field %u pfmt 0x%x bpl %u sz_img %u colorspace 0x%x priv %u\n", > + __func__, > + (&f->fmt.pix)->width, > + (&f->fmt.pix)->height, > + (&f->fmt.pix)->field, > + (&f->fmt.pix)->pixelformat, > + (&f->fmt.pix)->bytesperline, > + (&f->fmt.pix)->sizeimage, > + (&f->fmt.pix)->colorspace, > + (&f->fmt.pix)->priv); This is not as nice to look at as the original. Just ignore the warning. regards, dan carpenter