Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13254160pxu; Sun, 3 Jan 2021 07:44:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJy2OGNs2t17EkkUEpQbYbM+oSowNbU61ZZFGIqWIYwk915gjEZiKZ1ylNabN77Dv0XAhd3C X-Received: by 2002:a17:906:38c3:: with SMTP id r3mr63703017ejd.193.1609688689930; Sun, 03 Jan 2021 07:44:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609688689; cv=none; d=google.com; s=arc-20160816; b=M/3suffVRqFvCbRcKq6V+XxjyfioIjpSRTb2YNPWslz78+a0kC7Pvwy4FBhhML+GAV DqU4IhyEctTvkB5u4VmqoTCBjNWU95Z3hNzUpq+/x2U/8mtaFnK/kLkhgZAr3r2Bn1fh sRddloUDKmRPf198D4+AtqFpj3ZZbW2jsHumIMnhbGwd6S5/V+MBxHn9BgaDWOdoi7cy N4AAOm0UFLwiTPDKJve/0seYaBx4YqIPUGYztUb6epxtxgTNemu5XRcpz+0NBf05jsBE xXghiuuGSkVEO8qyehRbfm0LfpitHXA2lqYpovRN2BbqhAbbK0BTx049LD99IS0tVGxa 4Lqw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=7VJSS2MRhdrAHE2InrIaRduFq4J8wRHwKfn5ZoOtFPA=; b=S0NamLaOpt8osmfW17vpHmDx6NbeWaqQ3ZIh69ef3vdeUs9nsYQXFA8Avs77M4OJ6i HBq+NR2yrqGpe3Ciu4aiC0xjEi0onpHtdBp06z8wt9A/wbhfvjsDLrKwu4oP9xrO+IF1 RZd4MV36WcEpwyqnJzR9LUfaNkm1lzc3pS17vfM8W57qHhmbtaJmGMNvsbiT9MjaZjhu bSE/kDMgMHjy6cGXLBb0nydkkhi57PLPCuXaY9DEsRLhUj9QG51FqmV+Z5GRsMgW9Uy/ UXYIrcBSd0P8JNVFG0sXmjlqOmByAE2AG84sLCJwj+giK1ZGbtoCWLhPM/dW97OEDv4o 6TGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ggcpMrMp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id zc2si26669721ejb.427.2021.01.03.07.44.26; Sun, 03 Jan 2021 07:44:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@baylibre-com.20150623.gappssmtp.com header.s=20150623 header.b=ggcpMrMp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726894AbhACPfT (ORCPT + 99 others); Sun, 3 Jan 2021 10:35:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45736 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726744AbhACPfS (ORCPT ); Sun, 3 Jan 2021 10:35:18 -0500 Received: from mail-ej1-x634.google.com (mail-ej1-x634.google.com [IPv6:2a00:1450:4864:20::634]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10319C0613C1 for ; Sun, 3 Jan 2021 07:34:38 -0800 (PST) Received: by mail-ej1-x634.google.com with SMTP id x16so33622476ejj.7 for ; Sun, 03 Jan 2021 07:34:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=7VJSS2MRhdrAHE2InrIaRduFq4J8wRHwKfn5ZoOtFPA=; b=ggcpMrMpfWXy42E72xoUF2jN3tEZjFxxPk6R9lutWT1Jlbd+kwg/a6ylIDueRCaCHs ZCUm+2XSy0YquBeHfSdBnC3Fk0/MXOW/1yGNp+1E2/+VGE+VHe6H4Nm/5nOKU4+gzDE4 BrhW3PwpIYi1LAlj/jwj68LO/i95Q+ZdDv5SuWyVt3WmpOZY/kjxkw3MhPdyB4pgMZ40 nMl+8HFlXXe4YiGrxalFdwIRV6Jbf5cTB6MXcIHkqSTs440jBCBQATmz1V/mfoV3AA5d YoG1wBHgyTlpwQar5NXxuGjnAzJy+ywWo3yfPC7fSzFJO9tkshpGP/T2R7hKiRMgFM4E +U2w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=7VJSS2MRhdrAHE2InrIaRduFq4J8wRHwKfn5ZoOtFPA=; b=JkpAchtttuIBAYqQHTCsHxHvcKPQfS8dq7Wl+RMM/6vZYACLqg6+LLd9xe3aZalq6u G54W8dZvY1299jUzYotmJ1b+/nfwHnEIHqEEUjLKGPMhtislIu08FpKt943MhmJL19F+ lYYqhsXnX8Ojq7EglpfpF9G0BVVo0kqSYmxE/tBHirWLhSiyF/h1iiuMygrWKhzOt0zd ww1U4Qc0X5CuHU9TLOqiGiPA6+7n/4byZ9MKZ7lt+2t8JzXwMpPKE54EiQrqjF26G1f6 Q1Z35HFQVvwEYUinazQ+ll0FWrsmDCW6ux4HVThHTbzwmy66t4Bczii0ZGqHzWxRnoua mKbw== X-Gm-Message-State: AOAM530WyEXw5WtsqiIc8Q/POtFScBQ2IpTFnfiaOsiH4DA3keL0ligo 868YnbXhF1VC0gg3mXjawXkzWukTnRtxNZ8TM1dqhg== X-Received: by 2002:a17:907:b09:: with SMTP id h9mr64879642ejl.155.1609688076771; Sun, 03 Jan 2021 07:34:36 -0800 (PST) MIME-Version: 1.0 References: <20201227161040.1645545-1-warthog618@gmail.com> In-Reply-To: From: Bartosz Golaszewski Date: Sun, 3 Jan 2021 16:34:26 +0100 Message-ID: Subject: Re: [PATCH] gpiolib: cdev: fix frame size warning in gpio_ioctl() To: Linus Walleij Cc: Kent Gibson , "linux-kernel@vger.kernel.org" , "open list:GPIO SUBSYSTEM" , kernel test robot Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Dec 27, 2020 at 10:37 PM Linus Walleij wrote: > > On Sun, Dec 27, 2020 at 5:11 PM Kent Gibson wrote: > > > The kernel test robot reports the following warning in [1]: > > > > drivers/gpio/gpiolib-cdev.c: In function 'gpio_ioctl': > > >>drivers/gpio/gpiolib-cdev.c:1437:1: warning: the frame size of 1040 bytes is larger than 1024 bytes [-Wframe-larger-than=] > > > > Refactor gpio_ioctl() to handle each ioctl in its own helper function > > and so reduce the variables stored on the stack to those explicitly > > required to service the ioctl at hand. > > > > The lineinfo_get_v1() helper handles both the GPIO_GET_LINEINFO_IOCTL > > and GPIO_GET_LINEINFO_WATCH_IOCTL, as per the corresponding v2 > > implementation - lineinfo_get(). > > > > [1] https://lore.kernel.org/lkml/202012270910.VW3qc1ER-lkp@intel.com/ > > > > Fixes: aad955842d1c ("gpiolib: cdev: support GPIO_V2_GET_LINEINFO_IOCTL and GPIO_V2_GET_LINEINFO_WATCH_IOCTL") > > Reported-by: kernel test robot > > Signed-off-by: Kent Gibson > > That's an interesting regression. > Anyway the kernel look better after than before the patch, so > Reviewed-by: Linus Walleij > > Bartosz will pick patches for Torvalds this kernel cycle. > > Yours, > Linus Walleij Applied with Linus' tag, thanks! Bart