From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-oi1-f198.google.com (mail-oi1-f198.google.com [209.85.167.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4B84C442391 for ; Mon, 5 Oct 2026 09:31:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.167.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791192672; cv=none; b=PNpYIwV0giZvqjg46mRgy4cml11J/xCfp1bHkHxO+/QQr+t1Caxho5BFdWyLS6HE9qmKpD9SL6w+svWwTtsr5fXbj2e9I1pwRsBHZ/a7gAeN8R1y4p9FUPRUa5PCGW13QrLJllv8XOvYPNB6HebJkdcuL5E03njbxj5s+q5PX58= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791192672; c=relaxed/simple; bh=I1FOVBU197Mzny6/azVFseqcvToUfn4RjS+DXV/3QO4=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=K2ZG4j68ACLaj7K/XpXWVfL1BjVXhoKBvWy1e6HI/3yZpRL47uJ0W5fOkjceLsgYAF60ENgEDB0/I/j96XAAJb1pq/sF6SSn2tUHFK1O7/Af1U7a639B6zewM/ooNmbeRWFz5bxBpgRZoqLu595Uqv0WwOsAHjaNEjVfaFUa8RY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--justinstitt.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=pxu6bwom; arc=none smtp.client-ip=209.85.167.198 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--justinstitt.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="pxu6bwom" Received: by mail-oi1-f198.google.com with SMTP id 5614622812f47-4db3db8687fso2053155b6e.0 for ; Mon, 05 Oct 2026 02:31:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1791192670; x=1791797470; darn=vger.kernel.org; h=content-transfer-encoding:content-type:cc:to:from:subject :message-id:references:mime-version:in-reply-to:date:from:to:cc :subject:date:message-id:reply-to:content-type; bh=biDZcx3VDN+hEHh4NXBE6TAaQj8s5MFRl03+ZPkW57Q=; b=pxu6bwomkRoqZh/wO98IkJefS4Pheb7psQu/JchMD4ikRdGVaOIT5pyAuhSEYb8xoX 86rlCi1KpJJf3xc+4iAZfZy7NHjdnRUh94p+qRxXSxvvlkcyu+1bpilXkBRiHlGd0sew U1dUm8GWIuBp398vrqzbLN8A+6S4ml6/PGJU+zf7ivY2TkXqKsUbbQPO5pFbbHFrQjWF H9dublZU7hz6uS41K+fZyQfNaCeKh6a+gm2C/pflb5Yqsr8Rj4DSXiY47fM+JHzOYnbX IozBzlpI05WT6G0dPBcOMS3yU9Ih29E8MKUOLauIoxYd+fxmEJ2rtEahHuZwnWwnkknv lNKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791192670; x=1791797470; h=content-transfer-encoding:content-type:cc:to:from:subject :message-id:references:mime-version:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=biDZcx3VDN+hEHh4NXBE6TAaQj8s5MFRl03+ZPkW57Q=; b=Peps6W7BP1g+4pTHVL+782MaBcG+4Ac0FDgbS4Qxh7Eu+Ikayf19ORrGIMBx1nd2WL icKTJ3OIjlTimEGZ3/zboj+FUWqEQ2G3mXtiPaQZuimUsbYqPrg1FK9cBMMR3+zPBGzr bazK8NZqJ8GiTCvKlxsQ6agK77tEaq+PmRPN6ANlyIzxS46SPVbph6ZxR3sRo+J02r55 wYN/qqqBNulDjQUmsh2vH53owWwDszf78yLIW1Sm820P0AU9w331sHfHTpyXeWIh7rGb P1buKPOktjYhQO2ZvjF1m6674tPD74b6pv/uXcb790irpWX3IELh13jSUuxUAgffb2K5 iAsw== X-Forwarded-Encrypted: i=1; AKwUvBy1SfF6PS3Kl4yYHGVVGaS2yiKnSSvfgUFSoyDpuNhlMX/M8ft9qYgKSnuUtly2syik37pq+4o4hlqaz+U=@vger.kernel.org X-Gm-Message-State: AFuF++lK3g79By3DEXvqzQjUTI3V2F52pzU6Shw3NNoM/odjPvUHnXUX NdYKt905slv9XLK/ZGbvb5rVc6Ud2eI+H3wwyeQrzEXOsnGLNx5hSQGHDm+P8TKJ9OEai1KOVIC 29yQLQgsyMLE9zedtm6K6weqxqA== X-Received: from jabfq15.prod.google.com ([2002:a05:6638:650f:b0:5fa:8360:37f0]) (user=justinstitt job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6808:4443:b0:4f4:8bec:ace3 with SMTP id 5614622812f47-4f52ac8ceb7mr8199054b6e.57.1791192669709; Mon, 05 Oct 2026 02:31:09 -0700 (PDT) Date: Mon, 5 Oct 2026 02:31:09 -0700 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260928063824.1386524-1-morbo@google.com> Message-ID: Subject: Re: [PATCH] gpiolib: annotate struct acpi_gpio_mapping with __counted_by_ptr From: Justin Stitt To: Bill Wendling Cc: Linus Walleij , Bartosz Golaszewski , Kees Cook , "Gustavo A. R. Silva" , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-hardening@vger.kernel.org, codemender-patching+linux@google.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hi, On Thu, Oct 01, 2026 at 01:04:47PM -0700, Bill Wendling wrote: > On Thu, Oct 1, 2026 at 12:56=E2=80=AFPM Linus Walleij = wrote: > It's being #included transitively: >=20 > In file included from drivers/firmware/efi/libstub/efi-stub-helper.c:12: > In file included from ./include/linux/efi.h:20: > In file included from ./include/linux/rtc.h:18: > In file included from ./include/linux/nvmem-provider.h:16: > ./include/linux/gpio/consumer.h:670:55: error: use of undeclared > identifier 'size'; did you > mean 'ksize'? > 670 | const struct acpi_gpio_params *data __counted_by_ptr(size= ); > | ^~~~ > | ksiz= e > ././include/linux/compiler_types.h:392:64: note: expanded from macro > '__counted_by_ptr' > 392 | #define __counted_by_ptr(member) > __attribute__((__counted_by__(member))) > | > ^~~~~~ > ./include/linux/slab.h:602:8: note: 'ksize' declared here > 602 | size_t ksize(const void *objp); > | ^ >=20 I wonder if we could have a better warning here guiding you towards -fexperimental-late-parse-attributes? Thanks Justin