Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1067097pxm; Wed, 23 Feb 2022 17:15:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJzI9Tl7J7K4vy03BVjh54LMH1762pwZhtvE7Rjwq7/RbOCyPuGQcirQ3RGS8zrcFmzG7cft X-Received: by 2002:a63:2263:0:b0:364:5189:abbd with SMTP id t35-20020a632263000000b003645189abbdmr380350pgm.373.1645665303123; Wed, 23 Feb 2022 17:15:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645665303; cv=none; d=google.com; s=arc-20160816; b=cvVWqbF/3o/MH5c5xblJErPEd25NJ+bLcUjJcFrBb2rqf8RdUfy5Pyvu1qp2Nf77JF haoHybqz/VRnK0mMZrbQM/tmVhztZCjqiPEJpWPg6lLr1l7/pTj+Xd7TgkNFfXpXpImg sPwG+rIs4hnkCI+0R6pUZxxHl9WeJWHsBgLvycR4Et0SXKIlh8CxF5XqZKNum/RsccZJ yYGEfT2rbMUIb1p2cDtZXAo51eazCI8E/BgoX6Qq4apvIiDzInkAty2D98ysa5ghRNWD Nty84nAfHgsb7kS4eZN2aBuJyNZ02esHrvy2FlMd+qtrqvNGeAs3ctlJ2dgYChdrh1sz qb6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=H5jDgKwJxZ6D3piaR2vguRJO+uJ6+EZP+5Pa5gMWIq8=; b=McRtTm2pfC9S9y+87NC1bBa6+z425BrXewGoIhyJLJWKWmyKDUXe7E7Q3TLytWxK0i eBqspfWLxIRFQJvDQDojBuhXpHGHX1vkBRwfswvrLzuWmQss8YZnyGYRL7PbzHmoljUt TmvjN4vS9eqr0PJKBWHEYuVnVMleSAK/aAs/fBt0zOoh4wR8xDcbgBwPmfWHlM8RvYwm 90SIqEUVI+e+xt5ClhM0tMx7Kb6AsXDxi3kli+MWC3wYZBqsHWP34gOi1ACIpu4C2NrA aQYX91IYbK69pgNBXJN0bHknW43gDYJ/riuExH2QZZS4yZbLhBfHoAYocO7+5ZNdDoa4 gL0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=iY0lURYY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id f130si1122640pgc.684.2022.02.23.17.15.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Feb 2022 17:15:03 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=iY0lURYY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D502F12E742; Wed, 23 Feb 2022 17:01:30 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241032AbiBWNpy (ORCPT + 99 others); Wed, 23 Feb 2022 08:45:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241080AbiBWNov (ORCPT ); Wed, 23 Feb 2022 08:44:51 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB366AC926 for ; Wed, 23 Feb 2022 05:44:14 -0800 (PST) Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 2A15F223F0; Wed, 23 Feb 2022 14:44:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1645623853; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=H5jDgKwJxZ6D3piaR2vguRJO+uJ6+EZP+5Pa5gMWIq8=; b=iY0lURYYi5YNHKZEvq3YSkw+pDUesfaIgrKnL+iSHocRWGwcJwLVQrGVweGrSPvOo/HARq OmnxNRv13UoqHUBfQpC81yO3bxtP0/Z2AkLUVLoY4YkSPb8pgrenWZ7tqoxOsfxoZ+QcMk CwaK5zr8ehogfYby3GqDyzk7ahsGLnY= From: Michael Walle To: linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Tudor Ambarus , Pratyush Yadav , Miquel Raynal , Richard Weinberger , Vignesh Raghavendra , yaliang.wang@windriver.com, Michael Walle Subject: [PATCH v5 20/32] mtd: spi-nor: guard _page_size parameter in S3AN_INFO() Date: Wed, 23 Feb 2022 14:43:46 +0100 Message-Id: <20220223134358.1914798-21-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220223134358.1914798-1-michael@walle.cc> References: <20220223134358.1914798-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The _page_size marco parameter was missing parentheses around it. Add them. Signed-off-by: Michael Walle Reviewed-by: Pratyush Yadav --- drivers/mtd/spi-nor/core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi-nor/core.h b/drivers/mtd/spi-nor/core.h index 446218b0e017..3c37b46d60d5 100644 --- a/drivers/mtd/spi-nor/core.h +++ b/drivers/mtd/spi-nor/core.h @@ -469,9 +469,9 @@ struct flash_info { (_jedec_id) & 0xff \ }, \ .id_len = 3, \ - .sector_size = (8*_page_size), \ + .sector_size = (8 * (_page_size)), \ .n_sectors = (_n_sectors), \ - .page_size = _page_size, \ + .page_size = (_page_size), \ .addr_width = 3, \ .flags = SPI_NOR_NO_FR | SPI_NOR_XSR_RDY, -- 2.30.2