Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp5395558ybl; Tue, 27 Aug 2019 04:08:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqytLkg5J9zZgyNE/z9UfYcHLxN4Y/E5TLzvrLnaJRYv7pgp1MvmDUGnX6+ftdhYceKUoJVN X-Received: by 2002:a62:3644:: with SMTP id d65mr25663442pfa.128.1566904089572; Tue, 27 Aug 2019 04:08:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566904089; cv=none; d=google.com; s=arc-20160816; b=WIAalkK50I+yIrpjOEM51K3jsOLQLJrUowiPjOGdUCEwFYHCgLibSrEiJT9ITO5Kkv M2saGivsZy55SEs6pdsE32l10kcLmYuw46Z32Vh5JTDOvE/uoVFVlSVlQcgN63lkv3ne rJH/XPZhTvhD16kb/NPUW7KCoADFZVT+Q62r/siHxqQKSoSnJWxjwIBwo/oplYRAcL9/ 8Hp7PC6P3NI+X2/3CS/28pI3Ue+rM2q6XW1BXvosCoyKlsPnaBS97ZDR1AG7uLR1jiTz DNVRUWkveWjBheXDf7n6g2MbFmvNTEBmgbxU15frpIm3ZO0gTYhyM3UKbgjBH/zrQtUu dQhw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :mime-version:dkim-signature:dkim-filter; bh=dWxuqD4YJcRMD9twhfib+BopSFdJKxF8FxvMFpBbUHc=; b=x1evS3LXl7XzhsBQn91/cFwqVQDMsRubHwQ4i5uZZT9v2iwR/Jy5D+ug2g89R74d2x zWdPnut9AXuDnG6tOAdnYSUlxQiLmAOjcvvi6A6Yd2CYTjeco3yVCDGXfqEgO5AiLHgW Fp6NmLvOULWFEERgCvAGLqPQxDQsa50cB4BUElOzd4xJeW+STwBpAE/VDp4smt+t4voo ABe3ib6LowICu31c1JeGR4vMvorx6oOC4j5TxhS4m4p1op1jxBLp+qMGvSLt5if+XlUf JyByk7aC6nAnMEgTjwgv+KVyqVgKwEc/l/WU6IXGp8lifh8xBtfHW/ltb6tuJXEAi6ET Na8g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Smo7xVDM; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n9si11271788pgp.338.2019.08.27.04.07.53; Tue, 27 Aug 2019 04:08:09 -0700 (PDT) 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; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=Smo7xVDM; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727578AbfH0LFa (ORCPT + 99 others); Tue, 27 Aug 2019 07:05:30 -0400 Received: from conssluserg-01.nifty.com ([210.131.2.80]:47760 "EHLO conssluserg-01.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725912AbfH0LFa (ORCPT ); Tue, 27 Aug 2019 07:05:30 -0400 Received: from mail-vk1-f178.google.com (mail-vk1-f178.google.com [209.85.221.178]) (authenticated) by conssluserg-01.nifty.com with ESMTP id x7RB5Jn0026909 for ; Tue, 27 Aug 2019 20:05:20 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-01.nifty.com x7RB5Jn0026909 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1566903920; bh=dWxuqD4YJcRMD9twhfib+BopSFdJKxF8FxvMFpBbUHc=; h=From:Date:Subject:To:Cc:From; b=Smo7xVDM1saSAc9FhwvktzLiJpBycJ+sjNW1E5H88MtL6GaRaUW3b2mZzyz9yNp3o ON5wteDwVWexvg3jkSIdjcjt7KXVoqLeu07mCJrbhZbQ/Fapo2w1P7OsGinbQvBLrM FcY/alQrWHC8V9s7qhZr+WEohEuzyjCHNJSw8vcNgmWK8H4xgoJvdF+kYX6hzcrZEI PftcTuJqmgMqiFKTy+8du0t/VFew1CMrHkrv3Or9jXK308QkD6AFTMmK72RAIru1Z+ BVhRtlDlChWkOSWsiR1Am0tK7rWlw6rF0zLbiQ962A5IRUxsiHooYuBqGzwQ1C7jIM annZ+aZsorbvw== X-Nifty-SrcIP: [209.85.221.178] Received: by mail-vk1-f178.google.com with SMTP id t136so4665647vkt.9 for ; Tue, 27 Aug 2019 04:05:20 -0700 (PDT) X-Gm-Message-State: APjAAAUYbgUFea6EtJuh1EAs3RxELNCJ76c6Y+3NNHHbFUi+HdKUcVp7 bYZjEPxJKIGnhUNMz8sY1P5frKCsFA/QCwhIMMU= X-Received: by 2002:a1f:7c0e:: with SMTP id x14mr10777661vkc.0.1566903918828; Tue, 27 Aug 2019 04:05:18 -0700 (PDT) MIME-Version: 1.0 From: Masahiro Yamada Date: Tue, 27 Aug 2019 20:04:43 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: powerpc asm-prototypes.h seems odd To: Nicholas Piggin , Michael Ellerman , linuxppc-dev Cc: Linux Kernel Mailing List Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi. Lots of powerpc files include , and powerpc is the only architecture that does this. exists to support modversion for asm. So, it is supposed to be parsed by genksysms, not to be included from other files. Right? $ git grep asm/asm-prototypes.h arch/arm64/include/asm/asm-prototypes.h: * ... kbuild will automatically pick these up from and arch/powerpc/kernel/early_32.c:#include arch/powerpc/kernel/irq.c:#include arch/powerpc/kernel/machine_kexec_64.c:#include arch/powerpc/kernel/process.c:#include arch/powerpc/kernel/prom_init.c:#include arch/powerpc/kernel/ptrace.c:#include arch/powerpc/kernel/security.c:#include arch/powerpc/kernel/setup_32.c:#include arch/powerpc/kernel/signal_32.c:#include arch/powerpc/kernel/signal_64.c:#include arch/powerpc/kernel/smp.c:#include arch/powerpc/kernel/syscalls.c:#include arch/powerpc/kernel/tau_6xx.c:#include arch/powerpc/kernel/time.c:#include arch/powerpc/kernel/trace/ftrace.c:#include arch/powerpc/kernel/traps.c:#include arch/powerpc/kvm/book3s_emulate.c:#include arch/powerpc/kvm/book3s_hv.c:#include arch/powerpc/kvm/book3s_hv_builtin.c:#include arch/powerpc/kvm/book3s_hv_rm_xive.c:#include arch/powerpc/kvm/book3s_pr.c:#include arch/powerpc/lib/vmx-helper.c:#include arch/powerpc/mm/book3s64/hash_utils.c:#include arch/powerpc/mm/book3s64/slb.c:#include arch/powerpc/platforms/powernv/idle.c:#include arch/powerpc/platforms/powernv/opal-call.c:#include arch/powerpc/platforms/powernv/opal-tracepoints.c:#include arch/powerpc/platforms/pseries/lpar.c:#include scripts/Makefile.build:# .S file exports must have their C prototypes defined in asm/asm-prototypes.h scripts/Makefile.build: echo "\#include " ; \ scripts/Makefile.build:ASM_PROTOTYPES := $(wildcard $(srctree)/arch/$(SRCARCH)/include/asm/asm-prototypes.h) -- Best Regards Masahiro Yamada