Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3724686pxb; Mon, 21 Feb 2022 04:37:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyBUfGG9aJw1NDrmpr4ESDS2xavR48p2cYm7OxNBme+MXywZixbwaFWP0GQ+EJKitJYZ2n+ X-Received: by 2002:a17:90a:e7c3:b0:1b9:c189:bc3 with SMTP id kb3-20020a17090ae7c300b001b9c1890bc3mr25308640pjb.202.1645447043387; Mon, 21 Feb 2022 04:37:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645447043; cv=none; d=google.com; s=arc-20160816; b=GyhoAx6HEIoApxnK0wiiktQBQGyhXOHblntv2e4k3TBx8Y3nz2yHw8nXArd5DHD5b0 6DmP4m+YxMcxMrXVtiJdH7AGtCnQSMt/4iwqpwNtRDvAPq/G6zHmlz37oUjeUKrobSlQ /ZuC7R4Ldk9hHv1jzqBfTyvLWHurkBfHKxt1SnEkDWHsUH0tL1XRfNfYbLEmevH7INyZ I+TN8LJ26Scy3B7Nyr6FKWOzDqfOGw5iKJqZ4/DAp6yO8gONwu+9A4Vc/ZSKVjkagMG7 5KKKmnbRGiA4BYl/wQBPiv85ie4zZX+BlEEBR1jna35vzaXtcBG2POK68CMxQyZy/xY4 O4Ng== 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=F1qkSskWvLmQEwC2wGrqzOG2oXtmYsBZ+OhFkXYPiXE=; b=bdAdB1r59HwRyM8sRhN3OYXGATtiuzgPkZHNbnSS5QEbe7fCtL/GhD73XmQVyWOjc4 zXyHusCvDyhFBOcfTZiStbQ2peHu0v/KLdVOUVjkx0BVplJPgyNEIq9jE+mGC7TV93hh +mPPrWjVcLSqqEFQKfZL23JQfK+dNRLZlPPeEh4zjN3dYZGtYWsoXeAFR35QcEbQB0cO TMi745Xv36M6QvP9tBxQSm2fdJjta33od9raTnmeKPUtdPZPhWju64pgdlDxsbn4VJuP AW2f5W4Je240olE9N4htVrGZo//Oa4hDvi4QmqMDQetjkYbaCSLwOaH8nbE/5TvF4Y2J rGkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=FQW8i3b0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nv8si6847637pjb.24.2022.02.21.04.37.09; Mon, 21 Feb 2022 04:37:23 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=FQW8i3b0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1357470AbiBUMK3 (ORCPT + 99 others); Mon, 21 Feb 2022 07:10:29 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:40874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1357325AbiBUMIw (ORCPT ); Mon, 21 Feb 2022 07:08:52 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 850C2201B6 for ; Mon, 21 Feb 2022 04:08:29 -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 86BCB2245A; Mon, 21 Feb 2022 13:08:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1645445307; 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=F1qkSskWvLmQEwC2wGrqzOG2oXtmYsBZ+OhFkXYPiXE=; b=FQW8i3b0l79+fsQ+rVRlEAOGELlqhF/q98eJAnDRd0VgVH5BPj5xLEuj9rhDE0IcdXIREf z47PDZ+gUGOn2RwvzlDffPxFayBUka+Z0KLp9Gq3GItykRynmOQjBawC1Iosdj+eRA13Kd dTjQldCJjWAv9eqW5UVDsXpKaSD3DDI= 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 v4 20/32] mtd: spi-nor: guard _page_size parameter in S3AN_INFO() Date: Mon, 21 Feb 2022 13:07:57 +0100 Message-Id: <20220221120809.1531502-21-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220221120809.1531502-1-michael@walle.cc> References: <20220221120809.1531502-1-michael@walle.cc> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham 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 --- 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