From patchwork Tue Feb 7 19:11:22 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Matthieu Simon X-Patchwork-Id: 9560909 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id CECFA60434 for ; Tue, 7 Feb 2017 19:13:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1C8528478 for ; Tue, 7 Feb 2017 19:13:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B69432847B; Tue, 7 Feb 2017 19:13:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AAE5D28478 for ; Tue, 7 Feb 2017 19:13:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754480AbdBGTNL (ORCPT ); Tue, 7 Feb 2017 14:13:11 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35445 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753893AbdBGTNK (ORCPT ); Tue, 7 Feb 2017 14:13:10 -0500 Received: by mail-pg0-f66.google.com with SMTP id 204so12840944pge.2 for ; Tue, 07 Feb 2017 11:11:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=s+L24VRHyTjnPO65/qnMNm2U5LsidLwSs3DDRWqMuRo=; b=XwOiOBkDKFtJWMGrf3hG0DQ3GIuArom9J1HaEGsFmhKqyrb9pZZ+5hDBNypvfmAMXn DJ+xHHW8hJYdPZoJM41yMMyQF5viwdNKqMb9brjdC1KcSf+JsjjLoLr0rIl63lWe/K28 COTSfKs1411Lx/BbmjgVE3rAFQF3mUe7hI0M7dNGw31b8YXIvIMoZ0E9mxoKjP+WNO4+ EacyXsVnnrK8/Qk9W1IQeOT/chuU+E636vmA8y9bJZRSOWBfLcr22WFXBsBW1jBVaz37 /LQxu6aUu3Tq/CnNuC5xs93ZoXZMyYhsqA56zvzHUGBjlZcrsocGb86FBRGUHML6L/VL YGmQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=s+L24VRHyTjnPO65/qnMNm2U5LsidLwSs3DDRWqMuRo=; b=ue+wzNZuusVOupLTMMi+DrN5FKxUjkZwHv2E1CvXWy5UOesAnNegMJfNg5OuPFXyPo +8lEXmOICSHMGa0Bu3cjcApGe/R42wQVdNMe3/dE8rq7NiyYO/en4mSaYJ+WANdyvGUY rz+4ZHHXJlij74bYYNQpS7f9PB4hnwnP8w6ssVB3Pj4Lp++da3e286Mxp0NhX6xsh1z8 UBRmVyDEbWDqfLw557Xlj46pJ1insqtk+iHcSFoyqxAsX3eGbgtmN5TK9bE4Nvlp5LrA zkWmE9tDl2xK2islSF5s/2b96W5NZIViQV+5RNKmTamOEBlkg/6RkG/u2IT7LWD20X1E +2JQ== X-Gm-Message-State: AIkVDXJEoEQnaWBNVgkNy4ny7Ae2H9CVj525xUv6khPbEIqZ0AWT8Hr0wZ4UaMxRMwjTgQ== X-Received: by 10.98.1.213 with SMTP id 204mr21645127pfb.61.1486494709267; Tue, 07 Feb 2017 11:11:49 -0800 (PST) Received: from ms_linux.aristanetworks.com ([207.102.210.9]) by smtp.gmail.com with ESMTPSA id 88sm13472666pfr.41.2017.02.07.11.11.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 07 Feb 2017 11:11:48 -0800 (PST) From: Matthieu Simon To: sudipm.mukherjee@gmail.com, teddy.wang@siliconmotion.com, gregkh@linuxfoundation.org Cc: Matthieu Simon , linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org Subject: [PATCH] staging: sm750fb: Enclose macro arguments in parentheses Date: Tue, 7 Feb 2017 11:11:22 -0800 Message-Id: X-Mailer: git-send-email 2.11.0 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP checkpatch noticed possible precedence issues resulting in the definition of PEEK32 and POKE32. So, these arguments should be enclosed in parentheses. Signed-off-by: Matthieu Simon --- drivers/staging/sm750fb/ddk750_chip.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.h b/drivers/staging/sm750fb/ddk750_chip.h index e63b8b293816..a5f910344373 100644 --- a/drivers/staging/sm750fb/ddk750_chip.h +++ b/drivers/staging/sm750fb/ddk750_chip.h @@ -10,8 +10,8 @@ #include /* software control endianness */ -#define PEEK32(addr) readl(addr + mmio750) -#define POKE32(addr, data) writel(data, addr + mmio750) +#define PEEK32(addr) readl((addr) + mmio750) +#define POKE32(addr, data) writel((data), (addr) + mmio750) extern void __iomem *mmio750;