<feed xmlns='http://www.w3.org/2005/Atom'>
<title>pm24.git/Makefile, branch v5.3-rc6</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>https://git.kobert.dev/pm24.git/atom/Makefile?h=v5.3-rc6</id>
<link rel='self' href='https://git.kobert.dev/pm24.git/atom/Makefile?h=v5.3-rc6'/>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/'/>
<updated>2019-08-25T19:01:23Z</updated>
<entry>
<title>Linux 5.3-rc6</title>
<updated>2019-08-25T19:01:23Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2019-08-25T19:01:23Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=a55aa89aab90fae7c815b0551b07be37db359d76'/>
<id>urn:sha1:a55aa89aab90fae7c815b0551b07be37db359d76</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Linux 5.3-rc5</title>
<updated>2019-08-18T21:31:08Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2019-08-18T21:31:08Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=d1abaeb3be7b5fa6d7a1fbbd2e14e3310005c4c1'/>
<id>urn:sha1:d1abaeb3be7b5fa6d7a1fbbd2e14e3310005c4c1</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Linux 5.3-rc4</title>
<updated>2019-08-11T20:26:41Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2019-08-11T20:26:41Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=d45331b00ddb179e291766617259261c112db872'/>
<id>urn:sha1:d45331b00ddb179e291766617259261c112db872</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Makefile: Convert -Wimplicit-fallthrough=3 to just -Wimplicit-fallthrough for clang</title>
<updated>2019-08-10T19:45:37Z</updated>
<author>
<name>Joe Perches</name>
<email>joe@perches.com</email>
</author>
<published>2019-08-05T22:11:15Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=bfd77145f35c3deafe57e9eb67fff4ccffdaef6e'/>
<id>urn:sha1:bfd77145f35c3deafe57e9eb67fff4ccffdaef6e</id>
<content type='text'>
A compilation -Wimplicit-fallthrough warning was enabled by commit
a035d552a93b ("Makefile: Globally enable fall-through warning")

Even though clang 10.0.0 does not currently support this warning without
a patch, clang currently does not support a value for this option.

  Link: https://bugs.llvm.org/show_bug.cgi?id=39382

The gcc default for this warning is 3 so removing the =3 has no effect
for gcc and enables the warning for patched versions of clang.

Also remove the =3 from an existing use in a parisc Makefile:
arch/parisc/math-emu/Makefile

Signed-off-by: Joe Perches &lt;joe@perches.com&gt;
Reviewed-and-tested-by: Nathan Chancellor &lt;natechancellor@gmail.com&gt;
Cc: Gustavo A. R. Silva &lt;gustavo@embeddedor.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
</content>
</entry>
<entry>
<title>Merge tag 'kbuild-fixes-v5.3-3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild</title>
<updated>2019-08-10T03:31:04Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2019-08-10T03:31:04Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=451577f3e3a9bf1861218641dbbf98e214e77851'/>
<id>urn:sha1:451577f3e3a9bf1861218641dbbf98e214e77851</id>
<content type='text'>
Pull Kbuild fixes from Masahiro Yamada:

 - revive single target %.ko

 - do not create built-in.a where it is unneeded

 - do not create modules.order where it is unneeded

 - show a warning if subdir-y/m is used to visit a module Makefile

* tag 'kbuild-fixes-v5.3-3' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild:
  kbuild: show hint if subdir-y/m is used to visit module Makefile
  kbuild: generate modules.order only in directories visited by obj-y/m
  kbuild: fix false-positive need-builtin calculation
  kbuild: revive single target %.ko
</content>
</entry>
<entry>
<title>kbuild: show hint if subdir-y/m is used to visit module Makefile</title>
<updated>2019-08-09T16:45:31Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2019-08-08T11:21:11Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=c07d8d47bca1b325102fa2be3a463075f7b051d9'/>
<id>urn:sha1:c07d8d47bca1b325102fa2be3a463075f7b051d9</id>
<content type='text'>
Since commit ff9b45c55b26 ("kbuild: modpost: read modules.order instead
of $(MODVERDIR)/*.mod"), a module is no longer built in the following
pattern:

  [Makefile]
  subdir-y := some-module

  [some-module/Makefile]
  obj-m := some-module.o

You cannot write Makefile this way in upstream because modules.order is
not correctly generated. subdir-y is used to descend to a sub-directory
that builds tools, device trees, etc.

For external modules, the modules order does not matter. So, the
Makefile above was known to work.

I believe the Makefile should be re-written as follows:

  [Makefile]
  obj-m := some-module/

  [some-module/Makefile]
  obj-m := some-module.o

However, people will have no idea if their Makefile suddenly stops
working. In fact, I received questions from multiple people.

Show a warning for a while if obj-m is specified in a Makefile visited
by subdir-y or subdir-m.

I touched the %/ rule to avoid false-positive warnings for the single
target.

Cc: Jan Kiszka &lt;jan.kiszka@siemens.com&gt;
Cc: Tom Stonecypher &lt;thomas.edwardx.stonecypher@intel.com&gt;
Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
Tested-by: Jan Kiszka &lt;jan.kiszka@siemens.com&gt;
</content>
</entry>
<entry>
<title>kbuild: revive single target %.ko</title>
<updated>2019-08-09T16:40:25Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2019-08-02T10:23:58Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=47801c97deb71b9e279c15a02a44cf00aa11e7d9'/>
<id>urn:sha1:47801c97deb71b9e279c15a02a44cf00aa11e7d9</id>
<content type='text'>
I removed the single target %.ko in commit ff9b45c55b26 ("kbuild:
modpost: read modules.order instead of $(MODVERDIR)/*.mod") because
the modpost stage does not work reliably. For instance, the module
dependency, modversion, etc. do not work if we lack symbol information
from the other modules.

Yet, some people still want to build only one module in their interest,
and it may be still useful if it is used within those limitations.

Fixes: ff9b45c55b26 ("kbuild: modpost: read modules.order instead of $(MODVERDIR)/*.mod")
Reported-by: Don Brace &lt;don.brace@microsemi.com&gt;
Reported-by: Arend Van Spriel &lt;arend.vanspriel@broadcom.com&gt;
Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
</content>
</entry>
<entry>
<title>kbuild: add OBJSIZE variable for the size tool</title>
<updated>2019-08-08T12:36:51Z</updated>
<author>
<name>Vasily Gorbik</name>
<email>gor@linux.ibm.com</email>
</author>
<published>2019-01-21T12:54:39Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=7bac98707f65b93bf994ef4e99b1eb9e7dbb9c32'/>
<id>urn:sha1:7bac98707f65b93bf994ef4e99b1eb9e7dbb9c32</id>
<content type='text'>
Define and export OBJSIZE variable for "size" tool from binutils to be
used in architecture specific Makefiles (naming the variable just "SIZE"
would be too risky). In particular this tool is useful to perform checks
that early boot code is not using bss section (which might have not been
zeroed yet or intersects with initrd or other files boot loader might
have put right after the linux kernel).

Link: http://lkml.kernel.org/r/patch-1.thread-2257a1.git-188f5a3d81d5.your-ad-here.call-01565088755-ext-5120@work.hours
Acked-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
Signed-off-by: Vasily Gorbik &lt;gor@linux.ibm.com&gt;
</content>
</entry>
<entry>
<title>Linux 5.3-rc3</title>
<updated>2019-08-05T01:40:12Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2019-08-05T01:40:12Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=e21a712a9685488f5ce80495b37b9fdbe96c230d'/>
<id>urn:sha1:e21a712a9685488f5ce80495b37b9fdbe96c230d</id>
<content type='text'>
</content>
</entry>
<entry>
<title>kbuild: initialize CLANG_FLAGS correctly in the top Makefile</title>
<updated>2019-07-30T16:00:58Z</updated>
<author>
<name>Masahiro Yamada</name>
<email>yamada.masahiro@socionext.com</email>
</author>
<published>2019-07-29T09:15:17Z</published>
<link rel='alternate' type='text/html' href='https://git.kobert.dev/pm24.git/commit/?id=5241ab4cf42d3a93b933b55d3d53f43049081fa1'/>
<id>urn:sha1:5241ab4cf42d3a93b933b55d3d53f43049081fa1</id>
<content type='text'>
CLANG_FLAGS is initialized by the following line:

  CLANG_FLAGS     := --target=$(notdir $(CROSS_COMPILE:%-=%))

..., which is run only when CROSS_COMPILE is set.

Some build targets (bindeb-pkg etc.) recurse to the top Makefile.

When you build the kernel with Clang but without CROSS_COMPILE,
the same compiler flags such as -no-integrated-as are accumulated
into CLANG_FLAGS.

If you run 'make CC=clang' and then 'make CC=clang bindeb-pkg',
Kbuild will recompile everything needlessly due to the build command
change.

Fix this by correctly initializing CLANG_FLAGS.

Fixes: 238bcbc4e07f ("kbuild: consolidate Clang compiler flags")
Cc: &lt;stable@vger.kernel.org&gt; # v5.0+
Signed-off-by: Masahiro Yamada &lt;yamada.masahiro@socionext.com&gt;
Reviewed-by: Nathan Chancellor &lt;natechancellor@gmail.com&gt;
Acked-by: Nick Desaulniers &lt;ndesaulniers@google.com&gt;
</content>
</entry>
</feed>
