Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751771AbbKCJQI (ORCPT ); Tue, 3 Nov 2015 04:16:08 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:59476 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751288AbbKCJQE (ORCPT ); Tue, 3 Nov 2015 04:16:04 -0500 From: Arnd Bergmann To: kbuild test robot Cc: Nicolas Pitre , kbuild-all@01.org, Alexey Brodkin , =?ISO-8859-1?Q?M=E5ns_Rullg=E5rd?= , rmk+kernel@arm.linux.org.uk, linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/5] do_div(): generic optimization for constant divisor on 32-bit machines Date: Tue, 03 Nov 2015 10:15:13 +0100 Message-ID: <21544300.LSjO3j3Xy7@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) In-Reply-To: <201511031333.Yk9ngQZJ%fengguang.wu@intel.com> References: <201511031333.Yk9ngQZJ%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:dH4uYmBtv0B2iwjh7AA3zU7RKOiEHuttjOk/sJqe+d5Cyv5UxO8 L6gs6MElM66h8/O4d/P/xBiwvh5LWrFvaCt0rI05V4m9+Tp29YWdaJEb5VsYjZwbBkhqPqN mwjoYhG4xTTzYvNqI6hY9JkRyA4Mtz+6BN/ooC97DcL/FIkRCjBQ88l1wnAx3Be2exB+2YR xT8Bspxqe6GwC+/uvKCOA== X-UI-Out-Filterresults: notjunk:1;V01:K0:dMDaNNmrQ1s=:M2hbwlvwPIKRe7bSyw6wPg TUA2+n733XYLVAgJlyHe1BCjuu+j8P5c04zwmmeMDU1qjTDaI4XvK+TD5Taaa9RIR/68Szcki LW6TJ50C+DPeiYs9GzdbKHdTToH84K8DQtRRvfkR+0KjMv1ynKKPrLTKXzuTE3b/ms7X7wSLq 3FAFgMPinUOrahPxVZRkvEHiqSH1G208+GrJseg8XZ6W4/U9D0jP3cgqveaCFxdu+6yYm9dKj vGCAukT4Oh7D52p/IWPyuENO/wPX0yq/qWj3glDI2Eo/gh3diLieD0GwZrv8y/TL43KjZHiLK i2PFvUJwbwSE6lvrQuDS4hQWlrGCbMexgJ/Nurs8Khbn8wyySPiSZSIfPP3IWXxfXtvSkNnHn Rc9qBUlJ5Vv5RdtDSWEmst/200p6bE+MHTzmB1Omd2gEUv5bfGufc2uTkg2+jRzk4npS27HZY RRvsjnjpT/Cab6wot0sAz9WkUGb1ozWVLzj4e7rq0u2rAbXJlkb/coiYLEtzNirMIECCc/08X LrIhJAJKpyqLxfA9ZOcquC1kxHCSeaJElCrOzL1fjckRRTBb7l6dWtPtyG77Z9zyLxJ/eFxGq KugDSCsEaHQeNc7nIBUOwIPeKTqGCLXMXLNsA5wEefIqXjZjmF8D4gcrVB/t21+4CAPWdZtzV qHJa2vhF1thWaBQEWYi6Jxhzv71u3f9AIQ6HvwxMn7Rf8foJHcSJeRiw9CG746ev7r/ipeInT 8tSJ0CJlp8zOqnKq Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1024 Lines: 27 On Tuesday 03 November 2015 13:32:17 kbuild test robot wrote: > > net/can/bcm.c: In function 'bcm_proc_show': > >> net/can/bcm.c:223:1: warning: the frame size of 1156 bytes is larger than 1024 bytes [-Wframe-larger-than=] > } Interesting, that is a lot of stack for a function that only has a couple of local variables: #define IFNAMSIZ 16 char ifname[IFNAMSIZ]; struct sock *sk = (struct sock *)m->private; struct bcm_sock *bo = bcm_sk(sk); struct bcm_op *op; This is a parisc-allyesconfig kernel, so I assume that CONFIG_PROFILE_ALL_BRANCHES is on, which instruments every 'if' in the kernel. If that causes problems, we could decide to disable the do_div optimization whenever CONFIG_PROFILE_ALL_BRANCHES is enabled. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/