From patchwork Fri Jun 26 02:17:23 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: B K Karthik X-Patchwork-Id: 209292 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.5 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 55C03C433E1 for ; Fri, 26 Jun 2020 02:17:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2F050208C9 for ; Fri, 26 Jun 2020 02:17:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=pesu-pes-edu.20150623.gappssmtp.com header.i=@pesu-pes-edu.20150623.gappssmtp.com header.b="E9IDCNPQ" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728098AbgFZCRe (ORCPT ); Thu, 25 Jun 2020 22:17:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43640 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728000AbgFZCRc (ORCPT ); Thu, 25 Jun 2020 22:17:32 -0400 Received: from mail-pg1-x542.google.com (mail-pg1-x542.google.com [IPv6:2607:f8b0:4864:20::542]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 33842C08C5C1 for ; Thu, 25 Jun 2020 19:17:31 -0700 (PDT) Received: by mail-pg1-x542.google.com with SMTP id g67so3390260pgc.8 for ; Thu, 25 Jun 2020 19:17:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pesu-pes-edu.20150623.gappssmtp.com; s=20150623; h=from:date:to:subject:message-id:mime-version:content-disposition :user-agent; bh=C9cKwuo46T4OQrYiN0jf2d+XY2/rTSOAO5/07IXErvU=; b=E9IDCNPQpqP3Bmq1JubBLUBuabW2Gp9yfeXWaGS+Ca3o4tXDoyzU4KFTn9e5GBXiob HTiI7bkgOza+4JTxAFlf2i4AG6AAsWbVulxePySyjzKh1U9Oaw1/khBoxjd1yLp7SiH2 wYzmX2dCzYNHF/7+kBx7F4UTgl3Dx81kmsJF8V4PZqvhVCm4SbomesBNboWU/slBlY4E /coqKN+MZbwGG1W+pmAHtiahyNhySVmNL6IL7bAQHBl7Do/HK0ZKgRJfjzm3Y1wIovKs 2MDa9nlofzzLGl+jNQIt1sXdfZQ8yipLNuB/xLWEUlu60tg60WYfVRg1T59c63AbSSg1 +qvA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:subject:message-id:mime-version :content-disposition:user-agent; bh=C9cKwuo46T4OQrYiN0jf2d+XY2/rTSOAO5/07IXErvU=; b=twvFNhfxs45XoDaJlSv638GwSN7PbLP7S6V1uV304GkU0jQUg2EYdOHMOmJaPI22yA tziTOdgFFkfemhVSt1RaU2DySxglvcsYy8R8v3KnVsPn++8yz3pn9TGInsHoZdRxMSjk UQjQCyQO/ff0n/wKOKoQ5IAN4XrJoWsKaCxLDkHvcR6d+hgaWhEtSRuDDEFY8XbZsGC/ GNUUcXz0LfCPz0uLfwE7BSaf+lOIrU4nymtKWoB1HEYiKOVjSBvk+JnTDQ+5kA98Ypov c+Q5+xRZGvzLqEi4TXEMrOQEFmCA5mGdSpeVYdSxSYN+1JbDdaNJX/n1FwC8l75uZNRr xNUg== X-Gm-Message-State: AOAM532NtsEA6GzGF4rpmU7mvBQkrD4mPXcd+vL6LOtnGTVSPAqJGGcA oawRX5JP6bLaScskyaVpJNwaEg== X-Google-Smtp-Source: ABdhPJzsojEVWEwDErVET3M62SJCkzIEavMN3mExLU5NPys9mAJyxcRvlnQsml/NFgA9Wp6Rd43sCw== X-Received: by 2002:a05:6a00:15c3:: with SMTP id o3mr609027pfu.304.1593137850548; Thu, 25 Jun 2020 19:17:30 -0700 (PDT) Received: from localhost ([2406:7400:73:e1a0:908:f18a:1156:5c38]) by smtp.gmail.com with ESMTPSA id m7sm21416701pgg.69.2020.06.25.19.17.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 19:17:29 -0700 (PDT) From: B K Karthik X-Google-Original-From: B K Karthik Date: Thu, 25 Jun 2020 22:17:23 -0400 To: Mauro Carvalho Chehab , Greg Kroah-Hartman , Hans Verkuil , Laurent Pinchart , linux-media@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] fixing ERROR: Macros with complex values must be enclosed within parentheses. Message-ID: <20200626021723.len2cts3ffq4wimq@pesu-pes-edu> MIME-Version: 1.0 Content-Disposition: inline User-Agent: NeoMutt/20180716 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org soc_camera.c: fixing ERROR: Macros with complex values must be enclused within parentheses. Signed-off-by: B K Karthik --- drivers/staging/media/soc_camera/soc_camera.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/media/soc_camera/soc_camera.c b/drivers/staging/media/soc_camera/soc_camera.c index 39f513f69b89..f609ecf6691c 100644 --- a/drivers/staging/media/soc_camera/soc_camera.c +++ b/drivers/staging/media/soc_camera/soc_camera.c @@ -238,8 +238,7 @@ unsigned long soc_camera_apply_board_flags(struct soc_camera_subdev_desc *ssdd, } EXPORT_SYMBOL(soc_camera_apply_board_flags); -#define pixfmtstr(x) (x) & 0xff, ((x) >> 8) & 0xff, ((x) >> 16) & 0xff, \ - ((x) >> 24) & 0xff +#define pixfmtstr(x) ((x) & 0xff, ((x) >> 8) & 0xff, ((x) >> 16) & 0xff, ((x) >> 24) & 0xff) static int soc_camera_try_fmt(struct soc_camera_device *icd, struct v4l2_format *f)