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 shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 27ED6C433EF for ; Sun, 23 Jan 2022 11:11:39 +0000 (UTC) Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94.2) (envelope-from ) id 1nBamR-0003xc-CW; Sun, 23 Jan 2022 06:11:31 -0500 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1nBamO-0003xW-TA for kernelnewbies@kernelnewbies.org; Sun, 23 Jan 2022 06:11:29 -0500 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id CCE2432002E2; Sun, 23 Jan 2022 06:11:25 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Sun, 23 Jan 2022 06:11:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kroah.com; h=cc :cc:content-type:date:date:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to; s=fm2; bh=t0rzD76ZkWatCZf43NvIb4+SQKLMEPdjwJ6Iuc yeGUg=; b=ib+Peup8LEynurIKQsEe6+8b2EbCFe5uDfO+ngIwwocIe/VXsCD4F4 HZ7x3awx65FgwdWMpyxMtQgLqt9n/ZXQdhz4Qr3/3i1kk+goiNu64aAAaICmK4gc VsewbsmMM0kEi+nt3P4wEQ2EG0ULeVJtR3U1ybf+J+m/zG23k6pfdpNY8mAsy5LE +FGN4l4ItRZrQN3ZSPRwU8skZqXdgx1lEeFdd+AWTaMBdIlRL+qFV8Y/uNYITel8 Kxh9yd6VO3/vO7Wf7YqgtcOfO6Q4n8N3BPzidZG0Kyuv9NtCrATXKEDS5lWja4C+ 23qpiUayH3vsac02hesamBzNtBAYoYCw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=t0rzD76ZkWatCZf43 NvIb4+SQKLMEPdjwJ6IucyeGUg=; b=LAjmkpaTTfF380iOVPFnYs3bp4y1gMfab 9Q1aijf+92rMpIss0GJCcnExlKVp+HQDUP+SKG8YUohH5igCB4l526eCza4Qbq2N PSqQCQvA5ONr9FCeaKINOHk2CRxQOGOz28njo3ZLm5vB01iB5+DYHIGxS6rvvM7/ ben8zEhJAXvPl2NBsNLzMtyee+4hazIw9SUuZhoncd+qBOo+wOSzUd0RUspIXpQ6 EgMCJgnzBbbV38S6FYunMy/mrVMqINAaACyA9vIQSStqZutl2k9QAL08gjsaF0Eb Nm2Lun0jxAUugsil4EL2OSg43Cqx6OxvqZwdZEyRFd1QjkWl6qQoQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvvddrvdeggddviecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepifhrvghgucfm jfcuoehgrhgvgheskhhrohgrhhdrtghomheqnecuggftrfgrthhtvghrnhepveeuheejgf ffgfeivddukedvkedtleelleeghfeljeeiueeggeevueduudekvdetnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepghhrvghgsehkrhhorghhrd gtohhm X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 23 Jan 2022 06:11:24 -0500 (EST) Date: Sun, 23 Jan 2022 12:11:21 +0100 From: Greg KH To: Chan Kim Subject: Re: how to fix section mismatch warning after inserting #pragma GCC optimize ? Message-ID: References: <038c01d81046$b19c5f40$14d51dc0$@etri.re.kr> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <038c01d81046$b19c5f40$14d51dc0$@etri.re.kr> Cc: kernelnewbies@kernelnewbies.org X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org On Sun, Jan 23, 2022 at 07:48:01PM +0900, Chan Kim wrote: > Hello all, > > > > In linux 5.4.21 source code, I put > > #pragma GCC push_options > > #pragma GCC optimize ("O0") Do not do that. Bad things will happen, the kernel really does not like this at all. Why do you want to build the kernel with "O0"? What problem are you trying to solve that you think this will resolve it? Also, 5.4.21 is very old and obsolete and known insecure. Please use a more modern kernel version. thanks, greg k-h _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies