From patchwork Wed Jun 2 21:46:47 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kees Cook X-Patchwork-Id: 12295721 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.1 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 091B8C4708F for ; Wed, 2 Jun 2021 21:50:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A9F93613E7 for ; Wed, 2 Jun 2021 21:50:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A9F93613E7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=2ouZDoZhB8RhJTvCAc3EzISgligjefm8Np6N4s74l40=; b=wAzF+tBxinzrR8 qiUP99wue0hIApdWzI556YDM9fd3SJOczLi0ZIFazUu4Y5Qs7KLzllHcyVv+r3MCDAc6K0sSsZqQU FPWKm4dvbH1Ik73mrc1puk6/Nfwbzbf/SwXq8As4Pnob8hCYWlEZB5GlE/VEz7+yOkeiwNaOzQOJN th+Xsj8GTX8rIlcQp/knWsEKbAerfSufVdB2GvoX3NJ1DPReqe9+yOeiBFFXypLP4TrlQsVuTqDeB i99ExPcglz+PolRRlVLmmt85IlHSSnOdfMpCLZJ6vMTWUGFAQ7LcEb8m+FbysITYm+J6yCMmmN2GA olge9eK8K3B53idefzpA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1loYiM-006IaM-Dt; Wed, 02 Jun 2021 21:47:50 +0000 Received: from mail-pg1-x531.google.com ([2607:f8b0:4864:20::531]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1loYiB-006IZf-R6 for linux-arm-kernel@lists.infradead.org; Wed, 02 Jun 2021 21:47:41 +0000 Received: by mail-pg1-x531.google.com with SMTP id t8so3400456pgb.9 for ; Wed, 02 Jun 2021 14:47:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Sc77jpDXsQiAn3sguIpNqwoP6hsPQcr6arGUYdonRno=; b=H2KwaifQBmnFtPqfUo9Dwgzc3FNJcWSyPBG2nVJt062btlYqXPud7kSdZh9Qv7ayMl daWPhsQ1vBf/bJ4LQU7gt/CiPvvmeq0nqrsFGyILfKqGRv5BZGlcrMRlegx7qMXfy9j5 ELa8tC4i5imzHRcXofCnluT8CIGxnwII0Yr3M= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Sc77jpDXsQiAn3sguIpNqwoP6hsPQcr6arGUYdonRno=; b=VbOB5jBAxyUpiQeFK8s6Bwf2OmiXOST/MBsz0BTn7aNq6nZggAtllSNGcEqb5qByUW yuP05woymDNFb2KCUl1C05XMiB3YvzVUgyyROtIPTq6bDwrxgg6MVcTsfErbktNgjv3D xU63beWhNkNIp/oDENJwmGYdg3k1lW0bW1GStl1ZSV/q2OD3zjdjy/d55PoEITbZaXpm WeEE8GT0MUWWRCEmFkslmtCEJqxZgale0NSbZpsWPdKy9GFTnoMDdUMbYK6z3IoMkRmi SJiZIIWtot398Hi/ewNvDhGlkf2ac+V4O1GK97AJ+pPPhg5xErHcEMCW7t5q7hlSCos4 fQiw== X-Gm-Message-State: AOAM530oMdAR1pRRjkQK5P6n6kTAjf2nSymZYl9g5N6IiQ7/+h3vkR8q n9cLdb/7Yj6gQv7cKBMSNr7zvg== X-Google-Smtp-Source: ABdhPJxzOXHhrjOcAujs9o8m8h2aiWUQQFlvs9lwd0D8RLskRxkJPKL3Co+6tCY+ACzTLByxzJm0yA== X-Received: by 2002:a63:e255:: with SMTP id y21mr36265038pgj.26.1622670458713; Wed, 02 Jun 2021 14:47:38 -0700 (PDT) Received: from www.outflux.net (smtp.outflux.net. [198.145.64.163]) by smtp.gmail.com with ESMTPSA id t12sm354849pjw.57.2021.06.02.14.47.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Jun 2021 14:47:38 -0700 (PDT) From: Kees Cook To: Hanjun Guo Cc: Kees Cook , Kefeng Wang , Lorenzo Pieralisi , Sudeep Holla , "Rafael J. Wysocki" , Len Brown , linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] acpi/arm64: Mark next_platform_timer as __init Date: Wed, 2 Jun 2021 14:46:47 -0700 Message-Id: <20210602214645.695597-1-keescook@chromium.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Patch-Hashes: v=1; h=sha256; g=8a71d42d1cd19e130ba6c8c84211498e729326cb; i=0/cv7PwxsF9pO8ulDkXbeiGiNrvyb0nlgjdks8TBZA8=; m=8a1no1XgXXPojMCn5qL1ghMr3xwNMVdb4aYy73d8ALM=; p=rixUFzpGtN79JA9akXsWQVK6E909sQ67a8z3SAVsgh8= X-Patch-Sig: m=pgp; i=keescook@chromium.org; s=0x0x8972F4DFDC6DC026; b=iQIzBAABCgAdFiEEpcP2jyKd1g9yPm4TiXL039xtwCYFAmC3/EUACgkQiXL039xtwCYN5Q//Rdr yP+tAmU3+tnzP0SizepbwDGu9vhBhSqtQj2Vx6V2/fk1DnPP8OtZBlB1Q9eLOIEMlOLxjbyr9UB+s qO9fP+Pj1Lo4x84QTyH1ssLSsg993BbtnzU+ZEW3FoPWzhDPwpagfxjfAY1s6IkfwYGJ0GEAbqwiC v7uIYK9dLRo7AyfCMRBv+nfw1EOpzS0/aNGqUvMddQuyjst2x5GKt7GGfyWgdsTU0KUeKTUBegE2W V0x1oMKugRbIv+tK9NNmGIpXu49kThJEtSZ7KNKzDs5EiIdzvz6DubieJkHEtYxTCrs/Wy3IbMltn ec1gWgi8amatBRmoC4FhdVuMem2UBDayk92Q1nICJg5b9osOoF7B2zK2X2lNpnzvb2m/e1XhIc7h7 Sqv6UHubxQoDpjdT6Q1MLqlIHQGkmFZe9slm7Pg1FNVdNdZ1ONaTrAxXVBcyxVCDsqk3+In+aRQoP UG/SSvfu6mIszIlDK4r9CnmWBUrItfqpXZWdfsFSk6zbkFzEcdjh7mM86iGlDlw03CPEaHoz1ldFO 0fQ7ydSSgpfjlKvAviSJ1pwOM2Xsv8qYJK1M5mjpW9+8eGcqHI3v5NCjKWTk5COqKRD+NPukPk8i5 mUFi3VHP8RgWqF4j396TD9bqjLWNdac+lapQyjAOFK4Qj/IBVZ30aqHMU4jvAZmY= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210602_144739_902967_EAD53BE9 X-CRM114-Status: GOOD ( 12.30 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fix section mismatch warning: WARNING: modpost: vmlinux.o(.text.unlikely+0x95ac): Section mismatch in reference from the function next_platform_timer() to the variable .init.data:acpi_gtdt_desc The function next_platform_timer() references the variable __initdata acpi_gtdt_desc. This is often because next_platform_timer lacks a __initdata annotation or the annotation of acpi_gtdt_desc is wrong. Suggested-by: Hanjun Guo Link: https://lore.kernel.org/linux-acpi/20200508152653.157663-1-wangkefeng.wang@huawei.com/ Signed-off-by: Kees Cook Reviewed-by: Hanjun Guo --- drivers/acpi/arm64/gtdt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/arm64/gtdt.c b/drivers/acpi/arm64/gtdt.c index 0a0a982f9c28..c3ad42470a7c 100644 --- a/drivers/acpi/arm64/gtdt.c +++ b/drivers/acpi/arm64/gtdt.c @@ -36,7 +36,7 @@ struct acpi_gtdt_descriptor { static struct acpi_gtdt_descriptor acpi_gtdt_desc __initdata; -static inline void *next_platform_timer(void *platform_timer) +static __init void *next_platform_timer(void *platform_timer) { struct acpi_gtdt_header *gh = platform_timer;