Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp3646390pxb; Mon, 21 Feb 2022 02:42:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1XQAkt8OhQMXEDL2yVZZMZMiOfT74X+OrRJ2BYoBhTRGwBzrS5AbrJhgbhoUCv/iRkSuK X-Received: by 2002:aa7:d949:0:b0:40f:2aa1:1bd1 with SMTP id l9-20020aa7d949000000b0040f2aa11bd1mr21005690eds.284.1645440174150; Mon, 21 Feb 2022 02:42:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645440174; cv=none; d=google.com; s=arc-20160816; b=ZkKQ1aSApF7pECyVtsj3nd9RE5hC+z8B3SwRmf0ElrBa3wAdGNfSc/LQOFfIXiV7U1 iFWRAzFW5GhmUVoRxic7T8k1hjTY5R4MKU6l4I3iJJPmRKx9yBzjZom5hd/XMs/F/egf JYaTpJg5kH85R0PH8/QTOOFuP74tgItq8VbNrhpT69JJnkimxiUonO3hXgz9cGktuR50 3M5ZgXoFWG4BBeW6h0t3+PMWAclJIRr/8H0HhDHJNA5cTSlB3SCedU7Pdr/X/Qv87foY qeqEWya1B3v+JPqLltAYMXaKO67tr6VoJm9CI7+7i6+k8PGJfEvzEzswQJgbZpuYf6B4 53/w== 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=Y4kU3e70w5VQ/Ep+paM5aosbQW1x3G+A9tt8bKfrohgJlc7qqe40EG+5Rw2x+ZdG9O JAvd9PzuGSOAeTRgltilH/uLG1jw9oGidtLYip4SQfTe5FpnG2mnc0YM0pRWwtEblCYs 8Kn7IUjqnC4kHjaEhRrikUj19vYYGf1VZIhXM1YaG2wX1QrZaRD0NfDLkmi4A1JSMrT4 Q6BGdwDun9KaPR7KY9dLw81GYJNe1bNDyRrlZtP/P61Cz2E7Xvlf6zHFzO2h6hFFp8n9 rYdxONSZqjMtpDT1m6oBhPmXHvoUzc5BFfLC8Lz0V9omoRNPRgM9jRl1O+Q/1wUS3Fh4 hDXg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@walle.cc header.s=mail2016061301 header.b=hHPFfZ0E; 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 k22si1064604ejx.887.2022.02.21.02.42.31; Mon, 21 Feb 2022 02:42:54 -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=hHPFfZ0E; 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 S1346102AbiBUIzh (ORCPT + 99 others); Mon, 21 Feb 2022 03:55:37 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:46994 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345763AbiBUIxv (ORCPT ); Mon, 21 Feb 2022 03:53:51 -0500 Received: from ssl.serverraum.org (ssl.serverraum.org [176.9.125.105]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E592F2181E for ; Mon, 21 Feb 2022 00:52:59 -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 1F82F223E9; Mon, 21 Feb 2022 09:52:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1645433578; 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=hHPFfZ0EOSAkywDyaOJS6rgoFPXHhnmboaTJY6aTw1sx6m7zN2amzzh9djSoJ87wsr+j1a OaiU5IGHCdBCWcnlJqY42gatbUg6YG4Uij1D09w2f4ywfOv8QG94ExJTs/RNo4QRNjql2K aPSd8uH+ywIRIjWePrTOOsNNOgIsQ9E= 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 v3 20/32] mtd: spi-nor: guard _page_size parameter in S3AN_INFO() Date: Mon, 21 Feb 2022 09:52:24 +0100 Message-Id: <20220221085236.1452024-21-michael@walle.cc> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220221085236.1452024-1-michael@walle.cc> References: <20220221085236.1452024-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