Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp302914ybl; Thu, 5 Dec 2019 20:37:55 -0800 (PST) X-Google-Smtp-Source: APXvYqwebMmz5Nh2CE/VHEv68lx0NoaklCNtIwtH6pJQYnRGSLj7jiGSrJfrAMcJqxiENYq+GdkV X-Received: by 2002:aca:bbc6:: with SMTP id l189mr4272157oif.53.1575607075044; Thu, 05 Dec 2019 20:37:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1575607075; cv=none; d=google.com; s=arc-20160816; b=sk40qC/UmyfjkX4N8RXjQbmfPAxWXEJnw2cITQexPmVwbubd76w+xGyEjNJPg3q71L cag0BMzPFKeYEwNO5gZUiPSHZHdBLlCX9lNAvKAodWHiDTgRszsUA70AQZClMTdFSBJ4 tdweV8TOw2P7o7khc/6eZnm6Tbn4JTU/GSmg15GpPSd2kue7LuqqRTb+ycfqkN2UKPL/ bW136NbZHmP2rm6xhXDp2hcNmP0ekILJ1bgDHQ8Ph/NJni/Z0jw6LadIMavnAQ8xC+DA Ez+IGNWtaCmdCL3hXQoUNCllWPEucQlUlSr1YlsH75pLUgDadLdrDM+zp2NQPT8iF60g wKFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:mime-version:subject:cc :to:from; bh=wa7TpTud7BRmM1OncVOI6zNrtzmUU/qh5/8FLa3ECNc=; b=RrsFTDG0898Lt4pLf3J/iSbUFFdnh+uSvmNj5UiA1GdGWI//ZlzzAf9VIHvWBAEuDV dV1TPEoTzrsDnSvwfoYfjRnwHtaDcDCxuMPw+xRK3mArxjvwYF7kIetsxx01MIT+xNT3 GvwcKVCefXVA3GvHnkbUZQ3g2omMrTrioa23FQis5OPToD+l8lKg0/7PbLzQke414RF3 k6YBtPYTcjhlb9uQXSB0ZtOASKISlJqa9T3zb9JCEyypgZWaWUXONCfrYWD/V3SMkbE4 wwIE8GPpal1PUfD4u69mYFkYnDTCXg/vUh5/kHdHoqc8hMtSpzKeFCFG6EgbJJvt6vmB nxtw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q18si5059091otc.189.2019.12.05.20.37.42; Thu, 05 Dec 2019 20:37:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=vt.edu Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726418AbfLFEgD (ORCPT + 99 others); Thu, 5 Dec 2019 23:36:03 -0500 Received: from outbound.smtp.vt.edu ([198.82.183.121]:50930 "EHLO omr1.cc.vt.edu" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726273AbfLFEgD (ORCPT ); Thu, 5 Dec 2019 23:36:03 -0500 Received: from mr5.cc.vt.edu (mr5.cc.ipv6.vt.edu [IPv6:2607:b400:92:8400:0:72:232:758b]) by omr1.cc.vt.edu (8.14.4/8.14.4) with ESMTP id xB64a2HE026999 for ; Thu, 5 Dec 2019 23:36:02 -0500 Received: from mail-qv1-f69.google.com (mail-qv1-f69.google.com [209.85.219.69]) by mr5.cc.vt.edu (8.14.7/8.14.7) with ESMTP id xB64Zv87003848 for ; Thu, 5 Dec 2019 23:36:02 -0500 Received: by mail-qv1-f69.google.com with SMTP id bt18so3475328qvb.19 for ; Thu, 05 Dec 2019 20:36:02 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:mime-version:date :message-id; bh=wa7TpTud7BRmM1OncVOI6zNrtzmUU/qh5/8FLa3ECNc=; b=dV5IQqs2WE/iO76krz4ciKEWil9t+JAnqZPN4z3Sh9Hoegy5i7OyoCYIo6ycJCbpNn 8V7Hqj7Y0/s/bxdcBCTPQB2D0tg44tpPiJDlVbzpZCggEFbk76RuegWI+90fNnUTOG21 R/6i64XloFwCOVCV5FXPWL9PGzQLQQKPSLOkGplVWVwTVoZ5AXcda8wem7r48OKxEfZp lGKbXkxhZKVVG/cBTWhOiTCYTrvIu0JZ/xrefGAHlxHh9ytBO8+IxndvWDKalqg/jdsc S/Ias2Mamfb+f4depYhovhmg6lW1TLwpuBbU7YUI9MP/sCPc94Q9JCEthAY0y3FwUBbU Tsrg== X-Gm-Message-State: APjAAAXuhFccsdHOi9ParHDv1OrWa1r36H8+AYglvFZESopufdybVfWU 9rfzQZjg2Fb1HAEaWOhQeAAdsw5I5jCuRjkRgVUR8bmZWq/yItBkxIWkyQ7ZJeT1pxs96QnoSM0 E/KVSoaUkccMtTBdL5YKgVZ8Q12jX+KlSQt4= X-Received: by 2002:aed:34a3:: with SMTP id x32mr10861545qtd.309.1575606957164; Thu, 05 Dec 2019 20:35:57 -0800 (PST) X-Received: by 2002:aed:34a3:: with SMTP id x32mr10861533qtd.309.1575606956904; Thu, 05 Dec 2019 20:35:56 -0800 (PST) Received: from turing-police ([2601:5c0:c001:c9e1::359]) by smtp.gmail.com with ESMTPSA id p188sm5656184qkb.94.2019.12.05.20.35.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Dec 2019 20:35:55 -0800 (PST) From: "Valdis =?utf-8?Q?Kl=c4=93tnieks?=" X-Google-Original-From: "Valdis =?utf-8?Q?Kl=c4=93tnieks?=" X-Mailer: exmh version 2.9.0 11/07/2018 with nmh-1.7+dev To: Thomas Gleixner , Ingo Molnar cc: x86@kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] x86/build: provide missing include file for capflags.c Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 05 Dec 2019 23:35:54 -0500 Message-ID: <59982.1575606954@turing-police> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When building with C=2, sparse warns about missing definitions: CHECK arch/x86/kernel/cpu/capflags.c arch/x86/kernel/cpu/capflags.c:5:12: warning: symbol 'x86_cap_flags' was not declared. Should it be static? arch/x86/kernel/cpu/capflags.c:261:12: warning: symbol 'x86_bug_flags' was not declared. Should it be static? Make the script that generates the C file create the needed #include. Signed-off-by: Valdis Kletnieks diff --git a/arch/x86/kernel/cpu/mkcapflags.sh b/arch/x86/kernel/cpu/mkcapflags.sh index aed45b8895d5..f26caa6b6f2d 100644 --- a/arch/x86/kernel/cpu/mkcapflags.sh +++ b/arch/x86/kernel/cpu/mkcapflags.sh @@ -56,6 +56,10 @@ trap 'rm "$OUT"' EXIT echo "#include " echo "#endif" echo "" + echo "#ifndef _ASM_X86_CPUFEATURE_H" + echo "#include " + echo "#endif" + echo "" dump_array "x86_cap_flags" "NCAPINTS*32" "X86_FEATURE_" "" echo ""