From patchwork Thu Mar 9 17:48:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Vincenzo Palazzo X-Patchwork-Id: 13168024 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id ED91BC61DA4 for ; Thu, 9 Mar 2023 17:49:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229844AbjCIRtE (ORCPT ); Thu, 9 Mar 2023 12:49:04 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55018 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229907AbjCIRtB (ORCPT ); Thu, 9 Mar 2023 12:49:01 -0500 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5959167007 for ; Thu, 9 Mar 2023 09:49:00 -0800 (PST) Received: by mail-ed1-x532.google.com with SMTP id ec29so10271789edb.6 for ; Thu, 09 Mar 2023 09:49:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678384139; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=wH2pAFhdOeUOqWodJ3OOL1AmskhSIeVKUCgckcPxblo=; b=iSI6eK5oJBzBoZPhV+9KZgxjqvIBIdtfexnx7CgkSxgskVnd1KHdlSx4qsqgSzh4ef nCH8UpJPqb7WIXf7KmZj4Y1o+p97m2FnJDLnjic46ZNbkmHEkaBI8NAvfdJqoI7bqyFu baox/SQ1er/pk3QvntUO6Ivg36LV/H/p2J2sLNLEcLyr+Lwby+i+3gnbrtR9Km1DUzww /Nacg71io9qx8EtWNlbVnI/gXNANgYjOKi2lJ4ycTiCbPPI03960xDSo4eSvdi1H5fbg nILtEcFawZwliHO1dBK28ZsWKQImP2W3hyth95OrzdV63wEFEir7E8y2RIjjMfIH2Hrd 3opw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678384139; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=wH2pAFhdOeUOqWodJ3OOL1AmskhSIeVKUCgckcPxblo=; b=n/8/XKPrNiBcwHCy8hsk25Im38Qm7gIySABvcQzO+SUD4yeggHiXgk3JgTPBFik37Y jm/xJNSKXi3gawMdeJvSFvrGYM4oJ6TisNSBJwNOkIKKosNydR8UXwIHIDjYh8pM9kUQ aJICRt5ZLO4CZ8nE3LAXrEvVBz7FCwj5FcOrfJBrdDfR4lDN0haPV2duxMUBQZuVbI/V 9O1/6rjcd2ZWoX/7YETxCgMd7KeRsjFNBvuAsNHwFeb8NcG4nH5DVGzlrQs7hCwyzsti Jw6ObRKitz/VYL/+4Cwl2lpSbTwl6Ke5VE0ZBswt9W0sPtn3IVQuQeFmWwpM1A+AtT9+ ttVw== X-Gm-Message-State: AO0yUKUMc+3RpxNWDlRTwjYdRVfTo2odYIXdwaaHh/TbybuUDwxljUWe fs8E0HmYdCS4Ddc0Xge8HHmV4TvS/hJyTh3y X-Google-Smtp-Source: AK7set+JqJKA8im6jWEqCOst/cxLq3gObl8ieSf32MJRwhf0yeHtuFdFDO860tTgK7NTt2ApnCwZNA== X-Received: by 2002:a17:906:328c:b0:87d:eff1:acc8 with SMTP id 12-20020a170906328c00b0087deff1acc8mr22413776ejw.48.1678384138883; Thu, 09 Mar 2023 09:48:58 -0800 (PST) Received: from localhost.localdomain ([2001:b07:5d37:537d:5e25:9ef5:7977:d60c]) by smtp.gmail.com with ESMTPSA id oy10-20020a170907104a00b008f398f25beesm9059710ejb.189.2023.03.09.09.48.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Mar 2023 09:48:58 -0800 (PST) From: Vincenzo Palazzo To: x86@kernel.org Cc: luto@kernel.org, linux-hardening@vger.kernel.org, Vincenzo Palazzo Subject: [PATCH v1] x86: suppress warning generated by W=1 Date: Thu, 9 Mar 2023 18:48:54 +0100 Message-Id: <20230309174854.350143-1-vincenzopalazzodev@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-hardening@vger.kernel.org suppress unused warnings and fix the error that there is with the W=1 enabled. Warning generated arch/x86/entry/common.c:238:24: error: no previous prototype for ‘do_SYSENTER_32’ [-Werror=missing-prototypes] 238 | __visible noinstr long do_SYSENTER_32(struct pt_regs *regs) Signed-off-by: Vincenzo Palazzo --- arch/x86/entry/common.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/x86/entry/common.c b/arch/x86/entry/common.c index 6c2826417b33..8f17b2c3e9de 100644 --- a/arch/x86/entry/common.c +++ b/arch/x86/entry/common.c @@ -234,6 +234,9 @@ __visible noinstr long do_fast_syscall_32(struct pt_regs *regs) #endif } +/* prototype is a placeholder to suppress the missing prototype worning */ +long do_SYSENTER_32(struct pt_regs *regs); + /* Returns 0 to return using IRET or 1 to return using SYSEXIT/SYSRETL. */ __visible noinstr long do_SYSENTER_32(struct pt_regs *regs) {