Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1912047ybz; Thu, 30 Apr 2020 07:38:30 -0700 (PDT) X-Google-Smtp-Source: APiQypKSFYUOiV42CCnvuLHo3Vm7VK3Dg+IgwIS19oh6he83jD+ZufwVNrgnAk9B4Xp0jpnE6JmN X-Received: by 2002:a05:6402:2214:: with SMTP id cq20mr3081106edb.320.1588257510452; Thu, 30 Apr 2020 07:38:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588257510; cv=none; d=google.com; s=arc-20160816; b=yByUXi39ClIAn6CbW4UUVvdgXoHUiQKaHfFQi7/zm/CxzOcdSU7e9k2DgpbZ0J7HIt vpOUSHZ6LjUc2KtKyRWZwTAbC34nTAW5KXlqq9KN1l/cSYu01EpLw2Ato/bbp6RRt/WU Y/2IE6DnDBWk2nW45DdPQkDK7qhRALfOmwJHESLo5KO3rq0fPdbofEayiUK3Z+OiLNxh fcHNbDNDjC/2n/YmgKvJVHOWm7xND2Ez6jdazPSHGsrRgUWKw60DyBstPiR9HzQQ1/j5 cP7VSAywzRsoIItSK5hbIZf35FSjL5ISeUe9CXf8TD7m8uJdBoJAOqStoUR9hXAyDh8X 2/Aw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ebnA/kggdT/1EKvLjwgkRzOpbw07q2x9PwmhkvHewqk=; b=RlJsu6Xd7whDlV7hryMc2z2NgetyGUuYka13v6dQj4Ol53QuKxDnW8SjMbl54HW42Z AQZdKSIZ17AZlGMCwiFX91lS1EE4QlA58fgRhcCcB68DmcEuZA8nkOrNxR4CE8T+Dd8H Q5E2TS2w12nyAOtPl/J1AN2fSB0MbiWVfNamc+PJfDCbGARZavpamHm8BfcE88ZmfcXo ze5vtw8AyHSTPAJ4GucGSAbHEbr4ATHlQW2RnDS9Ykwvp+NdpsSxWVFCo7un4VuZFHTW o/UUfFq3vWkFXJAbZ/hQHb0dmL4z75pgROH+Jey1adCvFwsN/xGDYPxTvtCTJLk6j4WU tziw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cnvp7g4N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i14si5447445ejr.238.2020.04.30.07.38.01; Thu, 30 Apr 2020 07:38:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=cnvp7g4N; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728146AbgD3OeI (ORCPT + 99 others); Thu, 30 Apr 2020 10:34:08 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:34022 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726853AbgD3OeI (ORCPT ); Thu, 30 Apr 2020 10:34:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588257247; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=ebnA/kggdT/1EKvLjwgkRzOpbw07q2x9PwmhkvHewqk=; b=cnvp7g4NWyOMcShq1uHrp6LERimclGs8dwzW+9u60T0ePTvvDCG62Jv87CcEhc4cb8YiYD aEmxg3Sq0OoPuSjkHibe8ZWAVOpYh1MwjuE6V0PSgJA6xjXHuAtuKzN2W3yleZAPoKct5A piB9Jjl/ZVwk0XW+hqjF7NseynyxxjM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-409-TTY7TU5fOTORuPc4zxHzqQ-1; Thu, 30 Apr 2020 10:34:05 -0400 X-MC-Unique: TTY7TU5fOTORuPc4zxHzqQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 8AA72835BC1; Thu, 30 Apr 2020 14:33:53 +0000 (UTC) Received: from treble (ovpn-113-19.rdu2.redhat.com [10.10.113.19]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C919A38A; Thu, 30 Apr 2020 14:33:52 +0000 (UTC) Date: Thu, 30 Apr 2020 09:33:50 -0500 From: Josh Poimboeuf To: Arnd Bergmann Cc: Peter Zijlstra , the arch/x86 maintainers , Linux Kernel Mailing List , Kees Cook Subject: Re: Remaining randconfig objtool warnings, linux-next-20200428 Message-ID: <20200430143350.qezebqmx2xwdxqxq@treble> References: <20200428161044.caamvx67t2z4t6vd@treble> <20200429185536.5xshpcwtn4be4llh@treble> <20200429231115.z2mo5bsmrmj4oark@treble> <20200429232835.yw6ajtjyleob3lmz@treble> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 30, 2020 at 03:41:56PM +0200, Arnd Bergmann wrote: > On Thu, Apr 30, 2020 at 1:28 AM Josh Poimboeuf wrote: > > > > On Wed, Apr 29, 2020 at 06:11:15PM -0500, Josh Poimboeuf wrote: > > > > We can probably move those SYS_NI() instances to kernel/sys_ni.c, > > > > which does not include the header, but it's still a bit ugly. I'll try > > > > that tomorrow > > > > unless you come up with a better suggestion first. > > > > > > Oh I guess arm32 doesn't have SYS_NI defined. All this syscall aliasing > > > stuff is a total mystery to me. > > > > Another idea would be to split up syscalls.h into two files: one for > > SYSCALL_* macros and one for sys_*() function prototypes. It sounds > > like the latter aren't needed by most header files anyway. > > > > * Please note that these prototypes here are only provided for information > > * purposes, for static analysis, and for linking from the syscall table. > > * These functions should not be called elsewhere from kernel code. > > To me the main purpose of the header is to ensure the calling conventions > are sane, so I'd definitely want to see the declarations included whenever > a syscall is defined. I would also expect to see a warnig from sparse, or > from gcc with "make W=1" when an extern function is defined with no > prior declaration. Yup, makes sense. I think I've been getting confused by the syscall wrappers. > How hard would it be to change objtool instead of changing the sources? It might be a little tricky, but I can look into it. -- Josh