Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp1305073pxb; Fri, 18 Feb 2022 05:10:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwDBW5uSC72RClNy5dQRNpBboI140rPhHiRVdf/xge+Y8gW/QeVG2PIzPlSeQ1TXETL5DUO X-Received: by 2002:a17:903:2c5:b0:14f:4a29:1f64 with SMTP id s5-20020a17090302c500b0014f4a291f64mr7682311plk.90.1645189838509; Fri, 18 Feb 2022 05:10:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645189838; cv=none; d=google.com; s=arc-20160816; b=Lo6YzApahksw6yqEUfcUyht+G/QxkUipQTx6d70IYVg8pjmoacD7O9aUxBtgjoIhJc dw3/sbBn5k9Bcigy6Ky+AcW6WeRkI55EFs3+eQ5mO9WAN/Y4OktJk3crxHGBdzhv5kTH 7C9KlYfokzwDq2y752J5SwPzyJSBBHF15s3wvEjG78OFcIdZ5LfEnO3c34COxudzGkjY IHG95JVJL1MFdOFnpsWSexLaBRzh5B9Es3m3ytpp8a6YGiQ9foO5xGTDlUzScVMXOKeb 1KQKqyC8g6W5gqgbqpSnykxjhpY+QhO/Ji2i2vR9UUHct+xx3sZs9H0X1eHKMcY2DbBQ OtxQ== 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=RwzE5jz/+brBDNhZu1vztcHaN5CD4su1cYhbdleQOl6Yy3/trduhCHSV7osDw42Y0h hEax+CwM/zkzwK1GfxXHcmXBF4QUsE0bKKmCxGmF1U/SD0xIqBt4qgqfricBMd0t54pD rgXmskLCa21fod/K4sX1B0qBVikmg9wnb0eb2xfHVNtp/M9gijTMGcba13ZALTM3eJ3B RL3AlA+zucuRcx+jKict8vGRY8Ma1tDYdl5qJFKPaa+DpQS0k4Wq6yAiLnHv0IhA8H15 iWXcrGSBBy7QNvsnmoS/mN4A2OENNC652TSADnaWGonxjbee8MCVGx1t8Mu7jpE2Gh/A F8gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=XSz4LNMb; 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 o15si2709295pfu.335.2022.02.18.05.10.20; Fri, 18 Feb 2022 05:10:38 -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=XSz4LNMb; 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 S234725AbiBRLhx (ORCPT + 99 others); Fri, 18 Feb 2022 06:37:53 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44602 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234600AbiBRLgp (ORCPT ); Fri, 18 Feb 2022 06:36:45 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CEFE2B1657 for ; Fri, 18 Feb 2022 03:36:24 -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 C2E5E22481; Fri, 18 Feb 2022 12:36:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1645184180; 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=XSz4LNMbooEbXcRQOseQgXnotQJAnFwsndRLU+lCPy6C4JE4ii9/k2xvT8PDEuhZM98Nyo 5mRBSlX58/b1EAos/8XFaMo4seIBFDzxiElRWPRFavoN27PrD81OVBgD4U1aPZ3jp7qXlP SiqwW7VAM00pT+JyY2pezsLkp1it4es= 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 v2 20/32] mtd: spi-nor: guard _page_size parameter in S3AN_INFO() Date: Fri, 18 Feb 2022 12:35:55 +0100 Message-Id: <20220218113607.1360020-21-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220218113607.1360020-1-michael@walle.cc> References: <20220218113607.1360020-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