All of lore.kernel.org
 help / color / mirror / Atom feed
* + security-selinux-include-netlabelh-fix-two-build-errors.patch added to -mm tree
@ 2008-09-05  3:26 akpm
  2008-09-05  4:00 ` Randy Dunlap
  0 siblings, 1 reply; 5+ messages in thread
From: akpm @ 2008-09-05  3:26 UTC (permalink / raw)
  To: mm-commits; +Cc: akpm, paul.moore


The patch titled
     security/selinux/include/netlabel.h: fix two build errors
has been added to the -mm tree.  Its filename is
     security-selinux-include-netlabelh-fix-two-build-errors.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: security/selinux/include/netlabel.h: fix two build errors
From: Andrew Morton <akpm@linux-foundation.org>

security/selinux/include/netlabel.h:74: error: two or more data types in declaration specifiers
security/selinux/include/netlabel.h:106: error: expected ';', ',' or ')' before 'u32'

Caused by

    commit b023202e2a41a61165f472cc889f37c4a260ba51
    Author: Paul Moore <paul.moore@hp.com>
    Date:   Tue Sep 2 10:24:41 2008 -0400

        selinux: Fix missing calls to netlbl_skbuff_err()

Cc: Paul Moore <paul.moore@hp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 security/selinux/include/netlabel.h |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff -puN security/selinux/include/netlabel.h~security-selinux-include-netlabelh-fix-two-build-errors security/selinux/include/netlabel.h
--- a/security/selinux/include/netlabel.h~security-selinux-include-netlabelh-fix-two-build-errors
+++ a/security/selinux/include/netlabel.h
@@ -71,7 +71,7 @@ static inline void selinux_netlbl_cache_
 	return;
 }
 
-static inline void void selinux_netlbl_err(struct sk_buff *skb,
+static inline void selinux_netlbl_err(struct sk_buff *skb,
 					   int error,
 					   int gateway)
 {
@@ -102,7 +102,7 @@ static inline int selinux_netlbl_skbuff_
 }
 
 static inline int selinux_netlbl_skbuff_setsid(struct sk_buff *skb,
-					       u16 family
+					       u16 family,
 					       u32 sid)
 {
 	return 0;
_

Patches currently in -mm which might be from akpm@linux-foundation.org are

origin.patch
linux-next.patch
next-remove-localversion.patch
drivers-mfd-ucb1400_corec-needs-gpio.patch
drivers-mfd-ucb1400_corec-further-unbork.patch
kbuild-ftrace-dont-assume-that-scripts-recordmcountpl-is-executable.patch
acpi-ec-dont-degrade-to-poll-mode-at-storm-automatically-cleanup.patch
toshiba_acpi-add-support-for-bluetooth-toggling-through-rfkill-v7-fix.patch
toshiba_acpi-add-support-for-bluetooth-toggling-through-rfkill-v7-fix-fix.patch
zero-based-percpu-use-vmlinux_symbol-in-include-asm-generic-vmlinuxldsh.patch
x86-make-poll_idle-behave-more-like-the-other-idle-methods-checkpatch-fixes.patch
arch-x86-kernel-early_printkc-remove-unused-enable_debug_console.patch
drivers-rtc-rtc-bq4802c-dont-use-bin_2_bcd-and-bcd_2_bin.patch
fs-sysfs-dirc-remove-unused-__sysfs_get_dentry.patch
fs-dlm-configc-choose-better-identifiers.patch
tick-schedc-suppress-needless-timer-reprogramming.patch
drivers-input-touchscreen-ucb1400_tsc-needs-gpio.patch
git-jg-misc.patch
led-driver-for-leds-on-pcengines-alix2-and-alix3-boards.patch
libata-blackfin-pata-driver-add-proper-pm-operation-into-atapi-driver-fix.patch
sundance-set-carrier-status-on-link-change-events.patch
cassini-use-request_firmware.patch
e1000e-avoid-duplicated-output-of-device-name-in-kernel-warning-checkpatch-fixes.patch
e1000e-avoid-duplicated-output-of-device-name-in-kernel-warning-fix.patch
backlight-driver-for-tabletkiosk-sahara-touchit-213-tablet-pc.patch
backlight-driver-for-tabletkiosk-sahara-touchit-213-tablet-pc-update-2-checkpatch-fixes.patch
pci-tidy-pme-support-messages-checkpatch-fixes.patch
arch-s390-kernel-ptracec-fix-build.patch
sched-clarify-ifdef-tangle.patch
fix-fastboot-make-the-raid-autodetect-code-wait-for-all-devices-to-init.patch
scsi-gdthc-use-unaligned-access-helpers.patch
drivers-scsi-device_handler-scsi_dh_emcc-suppress-warning.patch
drivers-rtc-kconfig-dont-build-rtc-cmoso-on-sparc32.patch
drivers-usb-musb-disable-it-on-superh.patch
git-xtensa.patch
modules-remove-stop_machine-during-module-load-checkpatch-fixes.patch
scsi-dpt_i2o-is-bust-on-ia64.patch
drivers-media-video-cafe_ccicc-needs-mmh.patch
drivers-mmc-card-blockc-fix-refcount-leak-in-mmc_block_open.patch
e1000e-prevent-corruption-of-eeprom-nvm.patch
drivers-net-mlx4-allocc-needs-mmh.patch
net-forcedeth-call-restore-mac-addr-in-nv_shutdown-path-v2-fix.patch
mm-page_allocc-free_area_init_nodes-fix-inappropriate-use-of-enum.patch
vmscan-give-referenced-active-and-unmapped-pages-a-second-trip-around-the-lru.patch
vm-dont-run-touch_buffer-during-buffercache-lookups.patch
vmscan-move-isolate_lru_page-to-vmscanc.patch
define-page_file_cache-function.patch
vmscan-split-lru-lists-into-anon-file-sets.patch
unevictable-lru-infrastructure.patch
unevictable-lru-page-statistics.patch
mlock-mlocked-pages-are-unevictable.patch
mlock-mlocked-pages-are-unevictable-fix.patch
mmap-handle-mlocked-pages-during-map-remap-unmap.patch
mmap-handle-mlocked-pages-during-map-remap-unmap-mlock-resubmit-locked_vm-adjustment-as-separate-patch-fix.patch
vmscan-unevictable-lru-scan-sysctl.patch
mlock-make-mlock-error-return-posixly-correct-fix.patch
mm-rewrite-vmap-layer-fix.patch
mm-rewrite-vmap-layer-fix-fix.patch
mm-rewrite-vmap-layer-fix-fix-fix.patch
h8300-generic_bug-support-checkpatch-fixes.patch
pm-rework-disabling-of-user-mode-helpers-during-suspend-hibernation-cleanup.patch
container-freezer-add-tif_freeze-flag-to-all-architectures-fix.patch
container-freezer-implement-freezer-cgroup-subsystem-checkpatch-fixes.patch
container-freezer-implement-freezer-cgroup-subsystem-uninline-thaw_process-fix.patch
separate-atomic_t-declaration-from-asm-atomich-into-asm-atomic_defh-fix.patch
separate-atomic_t-declaration-from-asm-atomich-into-asm-atomic_defh-fix-fix.patch
fix-a-race-condtion-of-oops_in_progress-fix.patch
vsprintf-use-new-vsprintf-symbolic-function-pointer-format-cleanup.patch
make-taint-bit-reliable-v3-fix.patch
compat-generic-compat-get-settimeofday-checkpatch-fixes.patch
autofs4-track-uid-and-gid-of-last-mount-requester-fix.patch
autofs4-add-miscellaneous-device-for-ioctls-fix.patch
autofs4-add-miscellaneous-device-for-ioctls-fix-2.patch
autofs4-add-miscellaneous-device-for-ioctls-fix-fix-3.patch
rtc-add-device-driver-for-dallas-ds3234-spi-rtc-chip-fix.patch
fb-push-down-the-bkl-in-the-ioctl-handler-checkpatch-fixes.patch
viafb-viafbmodes-viafbtxt-fix-fix.patch
viafb-accelc-accelh-checkpatch-fixes.patch
viafb-dvic-dvih-globalc-and-globalh-checkpatch-fixes.patch
viafb-hwc-hwh-checkpatch-fixes.patch
viafb-viafbdevc-viafbdevh-checkpatch-fixes.patch
fbdev-kconfig-update-fix.patch
eink_apollofb-new-driver-for-apollo-eink-controller.patch
cgroups-fix-probable-race-with-put_css_set-and-find_css_set-fix.patch
memrlimit-add-memrlimit-controller-accounting-and-control-mm_owner-fix-checkpatch-fixes.patch
message-queues-increase-range-limits-checkpatch-fixes.patch
applicomc-fix-apparently-broken-code-in-do_ac_read.patch
drivers-char-tpm-tpmc-fix-error-patch-memory-leak.patch
w1-be-able-to-manually-add-and-remove-slaves-fix.patch
gru-driver-minor-updates-fix.patch
gcov-architecture-specific-compile-flag-adjustments-powerpc-moved-stuff.patch
nilfs2-continuous-snapshotting-file-system-fix.patch
nilfs2-continuous-snapshotting-file-system-fix-fix-2.patch
reiser4.patch
reiser4-tree_lock-fixes.patch
reiser4-tree_lock-fixes-fix.patch
reiser4-semaphore-fix.patch
slb-drop-kmem-cache-argument-from-constructor-reiser4.patch
reiser4-suid.patch
reiser4-track-upstream-changes.patch
page-owner-tracking-leak-detector.patch
nr_blockdev_pages-in_interrupt-warning.patch
slab-leaks3-default-y.patch
put_bh-debug.patch
shrink_slab-handle-bad-shrinkers.patch
getblk-handle-2tb-devices.patch
getblk-handle-2tb-devices-fix.patch
undeprecate-pci_find_device.patch
notify_change-callers-must-hold-i_mutex.patch
profile-likely-unlikely-macros.patch
drivers-net-bonding-bond_sysfsc-suppress-uninitialized-var-warning.patch
w1-build-fix.patch
security-selinux-include-netlabelh-fix-two-build-errors.patch


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: + security-selinux-include-netlabelh-fix-two-build-errors.patch added to -mm tree
  2008-09-05  3:26 + security-selinux-include-netlabelh-fix-two-build-errors.patch added to -mm tree akpm
@ 2008-09-05  4:00 ` Randy Dunlap
  2008-09-05 11:44   ` Paul Moore
  2008-09-05 16:44   ` Paul Moore
  0 siblings, 2 replies; 5+ messages in thread
From: Randy Dunlap @ 2008-09-05  4:00 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm, paul.moore, netdev

On Thu, 04 Sep 2008 20:26:11 -0700 akpm@linux-foundation.org wrote:

> The patch titled
>      security/selinux/include/netlabel.h: fix two build errors
> has been added to the -mm tree.  Its filename is
>      security-selinux-include-netlabelh-fix-two-build-errors.patch
> 
> Before you just go and hit "reply", please:
>    a) Consider who else should be cc'ed
>    b) Prefer to cc a suitable mailing list as well
>    c) Ideally: find the original patch on the mailing list and do a
>       reply-to-all to that, adding suitable additional cc's
> 
> *** Remember to use Documentation/SubmitChecklist when testing your code ***
> 
> See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find
> out what to do about this
> 
> The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
> 
> ------------------------------------------------------
> Subject: security/selinux/include/netlabel.h: fix two build errors
> From: Andrew Morton <akpm@linux-foundation.org>
> 
> security/selinux/include/netlabel.h:74: error: two or more data types in declaration specifiers
> security/selinux/include/netlabel.h:106: error: expected ';', ',' or ')' before 'u32'
> 
> Caused by
> 
>     commit b023202e2a41a61165f472cc889f37c4a260ba51
>     Author: Paul Moore <paul.moore@hp.com>
>     Date:   Tue Sep 2 10:24:41 2008 -0400
> 
>         selinux: Fix missing calls to netlbl_skbuff_err()
> 
> Cc: Paul Moore <paul.moore@hp.com>
> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
> ---
> 
>  security/selinux/include/netlabel.h |    4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff -puN security/selinux/include/netlabel.h~security-selinux-include-netlabelh-fix-two-build-errors security/selinux/include/netlabel.h
> --- a/security/selinux/include/netlabel.h~security-selinux-include-netlabelh-fix-two-build-errors
> +++ a/security/selinux/include/netlabel.h
> @@ -71,7 +71,7 @@ static inline void selinux_netlbl_cache_
>  	return;
>  }
>  
> -static inline void void selinux_netlbl_err(struct sk_buff *skb,
> +static inline void selinux_netlbl_err(struct sk_buff *skb,
>  					   int error,
>  					   int gateway)
>  {
> @@ -102,7 +102,7 @@ static inline int selinux_netlbl_skbuff_
>  }
>  
>  static inline int selinux_netlbl_skbuff_setsid(struct sk_buff *skb,
> -					       u16 family
> +					       u16 family,
>  					       u32 sid)
>  {
>  	return 0;
> _


Even with this patch, net/netlabel/netlabel_mgmt.c has build errors when CONFIG_IPV6=n:

linux-next-20080904/net/netlabel/netlabel_domainhash.c:79: warning: unused variable 'tmp6'
linux-next-20080904/net/netlabel/netlabel_domainhash.c:78: warning: unused variable 'iter6'
linux-next-20080904/net/netlabel/netlabel_domainhash.c:340: warning: unused variable 'tmp6'
linux-next-20080904/net/netlabel/netlabel_domainhash.c:301: warning: unused variable 'iter6'
linux-next-20080904/net/netlabel/netlabel_mgmt.c:219: error: implicit declaration of function 'netlbl_af6list_add'
linux-next-20080904/net/netlabel/netlabel_mgmt.c:317: error: implicit declaration of function 'netlbl_af6list_foreach_rcu'
linux-next-20080904/net/netlabel/netlabel_mgmt.c:318: error: expected ';' before '{' token
make[3]: *** [net/netlabel/netlabel_mgmt.o] Error 1

---
~Randy
Linux Plumbers Conference, 17-19 September 2008, Portland, Oregon USA
http://linuxplumbersconf.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: + security-selinux-include-netlabelh-fix-two-build-errors.patch added to -mm tree
  2008-09-05  4:00 ` Randy Dunlap
@ 2008-09-05 11:44   ` Paul Moore
  2008-09-05 16:44   ` Paul Moore
  1 sibling, 0 replies; 5+ messages in thread
From: Paul Moore @ 2008-09-05 11:44 UTC (permalink / raw)
  To: Randy Dunlap, akpm; +Cc: linux-kernel, netdev

On Friday 05 September 2008 12:00:33 am Randy Dunlap wrote:
> On Thu, 04 Sep 2008 20:26:11 -0700 akpm@linux-foundation.org wrote:

...

> > security/selinux/include/netlabel.h:74: error: two or more data
> > types in declaration specifiers
> > security/selinux/include/netlabel.h:106: error: expected ';', ','
> > or ')' before 'u32'
> >
> > Caused by
> >
> >     commit b023202e2a41a61165f472cc889f37c4a260ba51
> >     Author: Paul Moore <paul.moore@hp.com>
> >     Date:   Tue Sep 2 10:24:41 2008 -0400
> >
> >         selinux: Fix missing calls to netlbl_skbuff_err()

...

> Even with this patch, net/netlabel/netlabel_mgmt.c has build errors
> when CONFIG_IPV6=n:

Thanks, I'll get these fixed today.

-- 
paul moore
linux @ hp

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: + security-selinux-include-netlabelh-fix-two-build-errors.patch added to -mm tree
  2008-09-05  4:00 ` Randy Dunlap
  2008-09-05 11:44   ` Paul Moore
@ 2008-09-05 16:44   ` Paul Moore
  2008-09-05 17:02     ` Paul Moore
  1 sibling, 1 reply; 5+ messages in thread
From: Paul Moore @ 2008-09-05 16:44 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: linux-kernel, akpm, netdev

On Friday 05 September 2008 12:00:33 am Randy Dunlap wrote:
> Even with this patch, net/netlabel/netlabel_mgmt.c has build errors
> when CONFIG_IPV6=n:

Interesting, I tried to reproduce this quickly by changing my .config, 
running 'make oldconfig', verifying that CONFIG_IPV6 was still "n" (it 
was actually commented out), and then running 'make M=net/netlabel' ... 
the result was no error.

You are correct, I obviously made a mistake in the code (which I am 
fixing now) but I don't understand why the steps I took above didn't 
highlight the problem?  What am I missing?

> linux-next-20080904/net/netlabel/netlabel_domainhash.c:79: warning:
> unused variable 'tmp6'
> linux-next-20080904/net/netlabel/netlabel_domainhash.c:78: warning:
> unused variable 'iter6'
> linux-next-20080904/net/netlabel/netlabel_domainhash.c:340: warning:
> unused variable 'tmp6'
> linux-next-20080904/net/netlabel/netlabel_domainhash.c:301: warning:
> unused variable 'iter6'
> linux-next-20080904/net/netlabel/netlabel_mgmt.c:219: error: implicit
> declaration of function 'netlbl_af6list_add'
> linux-next-20080904/net/netlabel/netlabel_mgmt.c:317: error: implicit
> declaration of function 'netlbl_af6list_foreach_rcu'
> linux-next-20080904/net/netlabel/netlabel_mgmt.c:318: error: expected
> ';' before '{' token make[3]: *** [net/netlabel/netlabel_mgmt.o]
> Error 1

-- 
paul moore
linux @ hp

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: + security-selinux-include-netlabelh-fix-two-build-errors.patch added to -mm tree
  2008-09-05 16:44   ` Paul Moore
@ 2008-09-05 17:02     ` Paul Moore
  0 siblings, 0 replies; 5+ messages in thread
From: Paul Moore @ 2008-09-05 17:02 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: linux-kernel, akpm, netdev

On Friday 05 September 2008 12:44:15 pm Paul Moore wrote:
> On Friday 05 September 2008 12:00:33 am Randy Dunlap wrote:
> > Even with this patch, net/netlabel/netlabel_mgmt.c has build errors
> > when CONFIG_IPV6=n:
>
> Interesting, I tried to reproduce this quickly by changing my
> .config, running 'make oldconfig', verifying that CONFIG_IPV6 was
> still "n" (it was actually commented out), and then running 'make
> M=net/netlabel' ... the result was no error.
>
> You are correct, I obviously made a mistake in the code (which I am
> fixing now) but I don't understand why the steps I took above didn't
> highlight the problem?  What am I missing?

Hmmm, nevermind, the problem seems to have disappeared after 
running 'make prepare scripts'.

> > linux-next-20080904/net/netlabel/netlabel_domainhash.c:79: warning:
> > unused variable 'tmp6'
> > linux-next-20080904/net/netlabel/netlabel_domainhash.c:78: warning:
> > unused variable 'iter6'
> > linux-next-20080904/net/netlabel/netlabel_domainhash.c:340:
> > warning: unused variable 'tmp6'
> > linux-next-20080904/net/netlabel/netlabel_domainhash.c:301:
> > warning: unused variable 'iter6'
> > linux-next-20080904/net/netlabel/netlabel_mgmt.c:219: error:
> > implicit declaration of function 'netlbl_af6list_add'
> > linux-next-20080904/net/netlabel/netlabel_mgmt.c:317: error:
> > implicit declaration of function 'netlbl_af6list_foreach_rcu'
> > linux-next-20080904/net/netlabel/netlabel_mgmt.c:318: error:
> > expected ';' before '{' token make[3]: ***
> > [net/netlabel/netlabel_mgmt.o] Error 1

-- 
paul moore
linux @ hp

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-09-05 17:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-05  3:26 + security-selinux-include-netlabelh-fix-two-build-errors.patch added to -mm tree akpm
2008-09-05  4:00 ` Randy Dunlap
2008-09-05 11:44   ` Paul Moore
2008-09-05 16:44   ` Paul Moore
2008-09-05 17:02     ` Paul Moore

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.