Received: by 2002:a05:6358:53a8:b0:117:f937:c515 with SMTP id z40csp4548251rwe; Mon, 17 Apr 2023 14:35:30 -0700 (PDT) X-Google-Smtp-Source: AKy350Zq8RDsu501MjuidUmoLK4TKXq7UVGk1BXZ/Pg9rvH9VPORwxLMiUEqzdtyqSsKFp/paaZV X-Received: by 2002:a05:6a20:1588:b0:ee:9272:7405 with SMTP id h8-20020a056a20158800b000ee92727405mr14726503pzj.20.1681767330595; Mon, 17 Apr 2023 14:35:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681767330; cv=none; d=google.com; s=arc-20160816; b=hubpJebVO9j90wAYZE9/e4guXEUR9iT9CEbWSjl0hFF9dojWsSi1UQxHlvYWmRkWHV MNegId8BeF0UulXk5ulMLjYu1j1Rf+nCSyQqpgVCxI5vo0WiHQFU6Y3Fj4w0bVsSin8Y lh62FNvx563YBy7Kk1AsefXu4d5JgFrdlc4e2a1IfkUGJg67H6P9zfBmoffOkaYqZUHv 3VWtDymszBIgWC7iNk8IBUNLgQ43Jl+AM5FLDlliDF6I+N+XUlMiic+reMPTAiqVcGcE 0p2ZsZCDaFKbgYlnMJJePgorpi187Sv1/7zZupVRsW5IQ83yZ06Esm62WWNnqdFMGlz0 j96A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:thread-index:thread-topic :content-transfer-encoding:mime-version:subject:references :in-reply-to:message-id:cc:to:from:date; bh=bgJY/RhGmO9P5WdilGl/d5a7rBLm1QwB/ElvvpKnvaQ=; b=i010axrZ0T0ithkx6/bCHLYKpkhbpjsMaC1XSjwTYc6p5CgSnwLejb2MgS2xHHve4q Ifg6SK174Y9M/btyIStyeekj9+/QKr24Fbfo+7FwnEszcgOZj27QZBTn/wDKMbizfcgi nK3bShHQBWzXQAlQMRWc3Csjx/HaVe0Ynov9BVnifXla5BdNMgXAGuCnLUNNMTiYBVUD xnqfI5VT0I0v/qhZGWrXW2ilUrfn1PmWX+7OHo06mKjh9R5J16PrE1IMoc6JMeU4wt9s gfXaG1qIEc7MoJuPEepKFpRjG/YH+SUA+mJtGI0jk/7lXVr7Ag5lqbt/IB20Vx9yJMp4 QpCg== ARC-Authentication-Results: i=1; mx.google.com; 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 k24-20020a63f018000000b0051b4a1f15e4si12254926pgh.113.2023.04.17.14.35.16; Mon, 17 Apr 2023 14:35:30 -0700 (PDT) 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; 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 S230064AbjDQVVG convert rfc822-to-8bit (ORCPT + 99 others); Mon, 17 Apr 2023 17:21:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229664AbjDQVVF (ORCPT ); Mon, 17 Apr 2023 17:21:05 -0400 Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C47D53AB3 for ; Mon, 17 Apr 2023 14:21:02 -0700 (PDT) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 165506382F0C; Mon, 17 Apr 2023 23:21:00 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id zP6gpvDkZfuZ; Mon, 17 Apr 2023 23:20:59 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by lithops.sigma-star.at (Postfix) with ESMTP id 9F0B563CC166; Mon, 17 Apr 2023 23:20:59 +0200 (CEST) Received: from lithops.sigma-star.at ([127.0.0.1]) by localhost (lithops.sigma-star.at [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id brjCZ1XPEVNV; Mon, 17 Apr 2023 23:20:59 +0200 (CEST) Received: from lithops.sigma-star.at (lithops.sigma-star.at [195.201.40.130]) by lithops.sigma-star.at (Postfix) with ESMTP id 7C2806382F0C; Mon, 17 Apr 2023 23:20:59 +0200 (CEST) Date: Mon, 17 Apr 2023 23:20:59 +0200 (CEST) From: Richard Weinberger To: Arnd Bergmann Cc: Miquel Raynal , Vignesh Raghavendra , =?utf-8?B?TWljaGHFgiBLxJlwaWXFhA==?= , Arnd Bergmann , linux-mtd , linux-kernel Message-ID: <645805930.114012.1681766459273.JavaMail.zimbra@nod.at> In-Reply-To: <20230417205654.1982368-1-arnd@kernel.org> References: <20230417205654.1982368-1-arnd@kernel.org> Subject: Re: [PATCH] mtdchar: mark bits of ioctl handler noinline MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Originating-IP: [195.201.40.130] X-Mailer: Zimbra 8.8.12_GA_3807 (ZimbraWebClient - FF97 (Linux)/8.8.12_GA_3809) Thread-Topic: mtdchar: mark bits of ioctl handler noinline Thread-Index: nwC/Hc1rDi+z5tkPO5cWLU+7DfHq+w== X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, T_SCC_BODY_TEXT_LINE,T_SPF_PERMERROR 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 ----- Ursprüngliche Mail ----- > Von: "Arnd Bergmann" > The addition of the mtdchar_read_ioctl() function caused the stack usage > of mtdchar_ioctl() to grow beyond the warning limit on 32-bit architectures > with gcc-13: > > drivers/mtd/mtdchar.c: In function 'mtdchar_ioctl': > drivers/mtd/mtdchar.c:1229:1: error: the frame size of 1488 bytes is larger than > 1024 bytes [-Werror=frame-larger-than=] > > Mark both the read and write portions as noinline_for_stack to ensure > they don't get inlined and use separate stack slots to reduce the > maximum usage, both in the mtdchar_ioctl() and combined with any > of its callees. > > Fixes: 095bb6e44eb1 ("mtdchar: add MEMREAD ioctl") > Signed-off-by: Arnd Bergmann Reviewed-by: Richard Weinberger Thanks, //richard