Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp970825pxb; Fri, 22 Apr 2022 15:38:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxcRMq9AajKeRErPj3DFUwZi4U+XZGj/B6bTfhfqAb1AX2IhEDrq/TBPZyM4MYYQrEQsxbA X-Received: by 2002:a17:902:6bc9:b0:158:a0d3:d080 with SMTP id m9-20020a1709026bc900b00158a0d3d080mr6873493plt.24.1650667095358; Fri, 22 Apr 2022 15:38:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650667095; cv=none; d=google.com; s=arc-20160816; b=0kPzCDBEjcxNXEtSQt1TtLBoYAXObV5m60M7Hxe2cbbGHRiRRbCm2jtxt+kCSUgayK 9zJtVJ/+yGKKR0qnLcgfl+P9ijBMiCQ+7WfxlnE37JQZL/KK/bDYeVVaw0fjGfVrg/Uj h3lkGkJYr6dL7+LqOgbi1VZgPNH136d/gs4R6IsiCk8irObYz6hg1PffKKRbw07Dx/4Y aRR6SWS9C0zfHX3XoTlwkD3qzgM3s1PfxKrZf4DQVl93u9R1MHRj0U5GQ5a09LEIL8Cp xGvYM4P0obzod1LFIvz5uLmh73ckoQCRGv1Wi6YagArN4W466N5hylH6h3aR7pU92bhV XSWw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=0nmSC8epxW6rnErxFYBmipTypqji7o+zOJI+FoP87S8=; b=HQC7xrRcsY1QjOw1ck2KRvrMOujqlGL8UeNgG9ub3kDL/XufpdCSEoxtsPOD7lERWE grMVvpS4QQgpna/V09XfMURvP1xQ7nnrelc+koBo6fFw8dztivZJx59yTu7dehOcj4Vy Y9gXePaKSwBteanqwv4KwsT1JXSD9ktn2lmdSfjspxOaBUp7h94x7BeSCePV9pbaTHqM BifYOevSmJBixk6jXg/pH5tYa0wNZF4FrQzn9tEslKu66F0pmg4fiKmIOdVbyy7WGKby 3qz0j9qXXQeDPyU21jgN7UVKpq9VaTroAKaOn/ONqMFb2dNgOIHdiBzYLN8Ft7AhhZkF YUrw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=y0HUPTHc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id n6-20020a6543c6000000b003aa7f4f1a32si7423776pgp.588.2022.04.22.15.38.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 15:38:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=y0HUPTHc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1B95D26EDC9; Fri, 22 Apr 2022 13:25:32 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238384AbiDRMVQ (ORCPT + 99 others); Mon, 18 Apr 2022 08:21:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238390AbiDRMUu (ORCPT ); Mon, 18 Apr 2022 08:20:50 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5D1DF1CFE4; Mon, 18 Apr 2022 05:17:04 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 7985CB80EDC; Mon, 18 Apr 2022 12:17:02 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C2EA1C385A1; Mon, 18 Apr 2022 12:17:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650284221; bh=9kULDBCg+bDzBz/M3hGPHE/WqRs711c2XiASlbRUO8g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=y0HUPTHczfgAGcTyw7pdI0uwXUEYWDeU1xqH44yJxrfwybJyY7ll7eV/4anUFh1sQ BPT+Sj4Fy3VANINnPM0lrNxhigVxe3io/ifGW+8m/cMZBAaSdqKfS9ErJx4ELDzBEE nzWrceC+s3o7ER6Vbbq1PUpAqPxdtJlS2EjnuJf4= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tadeusz Struk , Kees Cook Subject: [PATCH 5.17 012/219] uapi/linux/stddef.h: Add include guards Date: Mon, 18 Apr 2022 14:09:41 +0200 Message-Id: <20220418121203.823707461@linuxfoundation.org> X-Mailer: git-send-email 2.35.3 In-Reply-To: <20220418121203.462784814@linuxfoundation.org> References: <20220418121203.462784814@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE autolearn=unavailable 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 From: Tadeusz Struk commit 55037ed7bdc62151a726f5685f88afa6a82959b1 upstream. Add include guard wrapper define to uapi/linux/stddef.h to prevent macro redefinition errors when stddef.h is included more than once. This was not needed before since the only contents already used a redefinition test. Signed-off-by: Tadeusz Struk Link: https://lore.kernel.org/r/20220329171252.57279-1-tadeusz.struk@linaro.org Fixes: 50d7bd38c3aa ("stddef: Introduce struct_group() helper macro") Cc: stable@vger.kernel.org Signed-off-by: Kees Cook Signed-off-by: Greg Kroah-Hartman --- include/uapi/linux/stddef.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/uapi/linux/stddef.h b/include/uapi/linux/stddef.h index 3021ea25a284..7837ba4fe728 100644 --- a/include/uapi/linux/stddef.h +++ b/include/uapi/linux/stddef.h @@ -1,4 +1,7 @@ /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +#ifndef _UAPI_LINUX_STDDEF_H +#define _UAPI_LINUX_STDDEF_H + #include #ifndef __always_inline @@ -41,3 +44,4 @@ struct { } __empty_ ## NAME; \ TYPE NAME[]; \ } +#endif -- 2.35.2